diff options
Diffstat (limited to 'js/dojo/dojox/resources')
| -rw-r--r-- | js/dojo/dojox/resources/README.template | 42 | ||||
| -rw-r--r-- | js/dojo/dojox/resources/_modules.js | 252 | ||||
| -rw-r--r-- | js/dojo/dojox/resources/explore.php | 149 |
3 files changed, 443 insertions, 0 deletions
diff --git a/js/dojo/dojox/resources/README.template b/js/dojo/dojox/resources/README.template new file mode 100644 index 0000000..6073c81 --- /dev/null +++ b/js/dojo/dojox/resources/README.template @@ -0,0 +1,42 @@ +------------------------------------------------------------------------------- +Project Name +------------------------------------------------------------------------------- +Version X.XXX +Release date: MM/DD/YYYY +------------------------------------------------------------------------------- +Project state: +[Object1]: experimental | alpha | beta | production +[Object2]: experimental | alpha | beta | production +------------------------------------------------------------------------------- +[ ] l18n support? +[ ] a11y support? +------------------------------------------------------------------------------- +Credits +[Object1]: Author one (author contact info) +[Object2]: Author two (author contact info) +------------------------------------------------------------------------------- +Project description + +Describe the point of the project here. +------------------------------------------------------------------------------- +Dependencies: + +List any dependencies here. +------------------------------------------------------------------------------- +Documentation + +Any notes about documentation--such as a link to a page in the Book of Dojo, +documentation state, etc.--should go here. +------------------------------------------------------------------------------- +Installation instructions + +Use this to explain in detail what a person needs to do in order to use this +project. Include URLs for grabbing source, URLs for any dependencies, etc. +Also be sure to include any additional information, such as where to place +CSS files, images, other media, etc. The goal is that someone reading this +file can follow your instructions and be using this project within minutes. +------------------------------------------------------------------------------- +Additional Notes + +Anything else you think is of interest (for example, object hierarchy) should +be placed here. diff --git a/js/dojo/dojox/resources/_modules.js b/js/dojo/dojox/resources/_modules.js new file mode 100644 index 0000000..9b8bfa6 --- /dev/null +++ b/js/dojo/dojox/resources/_modules.js @@ -0,0 +1,252 @@ +/*===== +// this file is in place as a quick way to give summaries to all available dojox projects. + +dojox = { + // summary: + // DojoX: the home for Dojo eXtensions + // + // description: + // DojoX is a collection of subprojects provided by Dojo committers and subject to + // the generous licensing and policies of the [Dojo CLA](http://dojotoolkit.org/cla) + // Each subproject in DojoX has its own top-level directory and a README file with + // status information and project status and a stability rating (experimental, beta, stable) + // + // Projects may or may not depend on other top-level Dojo projects, like Dojo or Dijit. + // Unlike Dojo and Dijit, code is not subject to i18n and a11y restrictions and may vary + // in quality (experimental code is encouraged in DojoX, but currently prohibited in Dojo + // and Dijit) + // + // DojoX projects may mature to a stable state and stay in DojoX, or on occasion + // after proving themselves may migrate to Dojo Core or Dijit. Dojo and Dijit projects + // are constrained both by development resources as well as design goals, so DojoX is + // a natural place to provide enhanced behavior or extend Dojo Core or Dijit primitives. + // DojoX can also be an incubator for entirely new projects. +} + +dojox.analytics = { + // summary: Website analytics and client monitoring system +}; + +dojox.atom = { + // summary: Implements the Atom Syndication Format and Atom Publishing Protocol +}; + +dojox.av = { + // summary: Provides Audio/Video capabilities +}; + +dojox.charting = { + // summary: Vector graphic, data-driven graphs and charts +}; + +dojox.collections = { + // summary: A set of lists and hashes for easy use within your applications. +}; + +dojox.color = { + // summary: Advanced color methods, including HSV, HSL, and CMYK conversion, a color generator and advanced colorspace calculations. +}; + +dojox.cometd = { + // summary: A cometd client written in Dojo +}; + +dojox.data = { + // summary: Additional dojo.data data stores and demos +}; + +dojox.date = { + // summary: Additional date manipulation functions +}; + +dojox.drawing = { + // summary: A vector drawing program +}; + +dojox.dtl = { + // summary: Django Templating Language implementation +}; + +dojox.editor = { + // summary: Extensions for dijit.Editor +}; + +dojox.embed = { + // summary: Base code for embedding for external objects like Flash, Quicktime +}; + +dojox.encoding = { + // summary: Various encoding algorithms, including crypto and digests. +}; + +dojox.flash = { + // summary: Utilities to embed and communicate with Flash-based objects +}; + +dojox.form = { + // summary: Form-related widgets +}; + +dojox.fx = { + // summary: Extension animations to the core dojo FX project + // + // description: + // A package of animations, and FX-related code, extending Dojo Core fx. + // Including this package includes all the Base and Core fx packages. + // + + style: { // summary: Module to provide CSS animations + }, + + scroll: { // summary: Module to provide scroll-related FX + } +}; +dojox.fx["ext-dojo"] = { + // summary: Direct extensions to dojo.fx namespace + NodeList: { + // summary: module to include to support dojox.fx animations in dojo.query() + } +}; + +dojox.gfx = { + // summary: Cross-browser vector graphics API + // description: + // + // dojox.gfx is an advanced API providing normalized vector drawing + // in a variety of browsers. It has individual renderers for SVG, VML, + // Canvas, and Silverlight. +}; + +dojox.gfx3d = { + // summary: A 3d API for dojox.gfx +}; + +dojox.grid = { + // summary: An advanced Grid widget with virtual scrolling, cell editing, and much more +}; + +dojox.help = { + // summary: TODOC +}; + +dojox.highlight = { + // summary: A client-side syntax highlighting engine. + // description: + // This project parses pre > code nodes, and applies syntax highlighting for + // a wide variety of languages. Simply dojo.require() in all the + // dojox.highlight.languages you wish to include in your highlighingting, + // and customize colors in the highlight.css. + // + // It is provided as a dojo package, contributed under CLA + // by Ivan Sagalaev and is available originally from: + // http://softwaremaniacs.org/soft/highlight/en/ + // +}; + +dojox.html = { + // summary: TODOC +}; + +dojox.image = { + // summary: A collection of image related widgets +}; + +dojox.io = { + // summary: Extensions to the Core dojo.io transports +}; + +dojox.jq = { + // summary: A JQuery compatibility layer +}; + +dojox.jsonPath = { + // summary: A query system for JavaScript objects +}; + +dojox.lang = { + // summary: Language specific extensions + functional: { + // summary: Functional language constructs, including currying and lambda. + } +}; + +dojox.layout = { + // summary: A collection of layout related Widgets +}; + +dojox.math = { + // summary: A collection of various advanced math functions. +}; + +dojox.robot = { + // summary: TODOC +}; + +dojox.rpc = { + // summary: TODOC +}; + +dojox.secure = { + // summary: TODOC +}; + +dojox.sketch = { + // summary: TODOC +}; + +dojox.sql = { + // summary: objects to support Dojo Offline (dojox.off) DEPRECATED +}; + +dojox.storage = { + // summary: Objects for mass storage within the browser. For when cookies just aren't enough. +}; + +dojox.string = { + // summary: A collection of various objects for advanced string manipulation, including a Builder and a tokenizer. +}; + +dojox.testing = { + // summary: TODOC +}; + +dojox.timing = { + // summary: A set of objects to perform advanced time-based tasks, including a basic Timer. +}; + +dojox.uuid = { + // summary: Universally Unique Identifier (UUID) implementations, including an implementation of UUID 2 +}; + +dojox.validate = { + // summary: Additional input validation methods + ca : { + // summary: Methods specific to the Canadian provinces + }, + creditCard : { + // summary: Validate various credit card types + } +}; + +dojox.widget = { + // summary: A collection of un-categorized widgets, or code not requiring its own package. + // + // description: + // These are standalone widgets with varying levels of stability. Some are useful, + // some were created for demonstration purposes, and learning tools. The each maintain + // their own .css file (typically dojox/widget/WidgetName/WidgetName.css) +}; + +dojox.wire = { + // summary: + // Declarative data binding and action tags for simplified MVC +}; + +dojox.xml = { + // summary: XML utilities. Currently only includes a DomParser, which returns a psuedo-XML document in JSON-like form. +}; + +dojox.xmpp = { + // summary: TODOC +}; +=====*/ diff --git a/js/dojo/dojox/resources/explore.php b/js/dojo/dojox/resources/explore.php new file mode 100644 index 0000000..0644832 --- /dev/null +++ b/js/dojo/dojox/resources/explore.php @@ -0,0 +1,149 @@ +<?php // IF you don't have PHP5 installed, you can't use this index! ?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + + <link rel="stylesheet" href="../../dijit/tests/css/dijitTests.css"> + <link rel="stylesheet" href="../../dijit/themes/tundra/tundra.css"> + <link rel="stylesheet" href="../../dojox/widget/Dialog/Dialog.css"> + <style type="text/css"> + .innard { + padding:12px; + margin-top:0; + } + </style> + <title>Dojo Toolkit - DojoX Demos and Tests by Project</title> + + <script src="../../dojo/dojo.js"></script> + <script type="text/javascript"> + dojo.require('dojox.widget.Dialog'); + dojo.require("dojo.fx.easing"); + dojo.addOnLoad(function(){ + var dialog = new dojox.widget.Dialog({ title: "About", viewportPadding:100, fixedSize:true }); + dialog.startup(); + dojo.query("span.projectname + a") + .connect("onclick",function(e){ + e.preventDefault(); + dojo.xhrGet({ + url: e.target.href, + load: function(data){ + var content = data.replace(/\</g,"<"); + dialog.show(); + dialog.setContent("<pre class='innard'>" + content + "</pre>"); + } + }) + }) + ; + }); + </script> + +</head> +<body> + + <h1 class="testTitle">DojoX test files overview</h1> + + <table id="testMatrix"> + <thead> + <tr class="top"><th rowspan="2">Test</th><th colspan="4">Tundra</th><th colspan="4">Nihilo</th><th colspan="4">Soria</th></tr> + <tr class="tests"><th>Normal</th><th>a11y</th><th>rtl</th><th>a11y + rtl<th>Normal</th><th>a11y</th><th>rtl</th><th>a11y + rtl<th>Normal</th><th>a11y</th><th>rtl</th><th>a11y + rtl</tr> + </thead> + <tbody><?php + + foreach(getprojects() as $project){ + $note = ""; + if($project['readme']){ + $note = "<a class='readmeLink' href='".$project['readme']."'>about</a>"; + } + if($project['tests'] || $project['demos']){ + print "<tr class='spacer'><td colspan='13'><span class='projectname'>dojox.". $project['name'] . "</span> ".$note."</td></tr>"; + + if($project['tests']){ + printLinks($project['tests']); + } + if($project['demos']){ + printLinks($project['demos']); + } + + } + + } + // printLinks("./tree","Dijit Tree Tests"); + + ?> + </tbody> + </table> + + <p>* note: All themes and modes included for completeness. Some projects don't even use themes. The "basic" link + is the direct link to the file with no enhancements. The test file must include _testCommon from dijit to + include theme / rtl / a11y testing capabilities.</p> +</body> +</html> +<?php + +function getprojects(){ + $projects = array(); + $path = "../../dojox"; + $handle = opendir($path); + while(false !== ($file = readdir($handle))){ + $README = ""; + $full = $path."/".$file; + if(is_dir($full)){ + if(file_exists($full."/README")){ + $README = $full."/README"; + } + $tests = false; $demos = false; + if(is_dir($full."/tests")){ + $tests = $full."/tests"; + } + if(is_dir($full."/demos")){ + $demos = $full."/demos"; + } + $projects[] = array( + "name" => $file, + "tests" => $tests, + "demos" => $demos, + "readme" => $README + ); + } + } + return $projects; +} + +function printLinks($path){ + $handle = opendir($path); + $i = 0; + + while(false !== ($file = readdir($handle))){ + if(preg_match("/([a-zA-Z])(.*)\.html/", $file, $matches)){ + $base = $matches[0]; + $link = $path."/".$matches[0]; + print + "<tr class='testRow ". (++$i % 2 ==0 ? "alt" : "") ."'>" . + + "<td class='label'>" . $base . "</td>" . + + // standard / tundra: + "<td><a href='".$link."'>basic</a></td>" . + "<td><a href='".$link."?a11y=true'>a11y</a></td>" . + "<td><a href='".$link."?dir=rtl'>rtl</a></td>" . + "<td><a href='".$link."?dir=rtl&a11y=true'>both</a></td>" . + + // nihilo + "<td><a href='".$link."?theme=nihilo'>nihilo</a></td>" . + "<td><a href='".$link."?theme=nihilo&a11y=true'>a11y</a></td>" . + "<td><a href='".$link."?theme=nihilo&dir=rtl'>rtl</a></td>" . + "<td><a href='".$link."?theme=nihilo&dir=rtl&a11y=true'>combo</a></td>" . + + // soria + "<td><a href='".$link."?theme=soria'>soria</a></td>" . + "<td><a href='".$link."?theme=soria&a11y=true'>a11y</a></td>" . + "<td><a href='".$link."?theme=soria&dir=rtl'>rtl</a></td>" . + "<td><a href='".$link."?theme=soria&dir=rtl&a11y=true'>combo</a></td>" . + + "</tr>"; + } + } +} + +?> |
