├── .gitignore
├── .project
├── README.textile
├── WEB-INF
├── app
│ ├── boot
│ │ └── server.js
│ ├── configs
│ │ ├── config.js
│ │ ├── environments.js
│ │ ├── filters.js
│ │ ├── logging.js
│ │ └── routes.js
│ ├── models
│ │ ├── docs.js
│ │ ├── events.js
│ │ ├── examples.js
│ │ ├── news.js
│ │ └── releases.js
│ ├── services
│ │ └── site.js
│ └── views
│ │ ├── .tmp_index.html.78508~
│ │ └── site.js
├── appengine-web.xml
├── forward.jsp
├── lib
│ ├── appengine-api-1.0-sdk-1.2.1.jar
│ ├── claypool.jar
│ ├── env.rhino.js
│ ├── jline.jar
│ ├── js.jar
│ ├── jslint4java-1.1.jar
│ ├── log4j-1.2.15.jar
│ └── utils
│ │ └── yuicompressor-2.4.1.jar
├── logging.conf
├── shell.js
└── web.xml
├── apps
├── README.txt
├── quiz
│ ├── boot
│ │ └── client.js
│ ├── configs
│ │ ├── config.js
│ │ ├── environments.js
│ │ ├── filters.js
│ │ ├── logging.js
│ │ └── routes.js
│ ├── controllers
│ │ └── quiz.js
│ ├── models
│ │ ├── data
│ │ │ ├── answers.json
│ │ │ └── questions.json
│ │ └── quiz.js
│ └── views
│ │ ├── quiz.js
│ │ └── templates
│ │ └── quiz.html
└── tutorial
│ ├── 0
│ ├── .tmp_index.html.64932~
│ ├── app
│ │ ├── boot
│ │ │ └── client.js
│ │ └── configs
│ │ │ └── config.js
│ └── index.html
│ ├── 1
│ ├── .tmp_index.html.40903~
│ ├── .tmp_index.html.82934~
│ ├── app
│ │ ├── boot
│ │ │ └── client.js
│ │ ├── configs
│ │ │ ├── config.js
│ │ │ └── routes.js
│ │ └── controllers
│ │ │ └── pages.js
│ └── index.html
│ ├── 2
│ ├── .tmp_index.html.40903~
│ ├── .tmp_index.html.811~
│ ├── .tmp_index.html.82934~
│ ├── app
│ │ ├── boot
│ │ │ └── client.js
│ │ ├── configs
│ │ │ ├── config.js
│ │ │ ├── logging.js
│ │ │ └── routes.js
│ │ └── controllers
│ │ │ └── pages.js
│ └── index.html
│ ├── 3
│ ├── .tmp_index.html.40903~
│ ├── .tmp_index.html.63276~
│ ├── .tmp_index.html.811~
│ ├── .tmp_index.html.82934~
│ ├── app
│ │ ├── boot
│ │ │ └── client.js
│ │ ├── configs
│ │ │ ├── config.js
│ │ │ ├── logging.js
│ │ │ └── routes.js
│ │ ├── controllers
│ │ │ └── pages.js
│ │ └── views
│ │ │ └── pages.js
│ └── index.html
│ ├── 4
│ ├── .tmp_index.html.40903~
│ ├── .tmp_index.html.63276~
│ ├── .tmp_index.html.811~
│ ├── .tmp_index.html.82934~
│ ├── app
│ │ ├── boot
│ │ │ └── client.js
│ │ ├── configs
│ │ │ ├── config.js
│ │ │ ├── logging.js
│ │ │ └── routes.js
│ │ ├── controllers
│ │ │ └── pages.js
│ │ ├── models
│ │ │ └── pages.js
│ │ └── views
│ │ │ └── pages.js
│ ├── data
│ │ ├── 1.json
│ │ ├── 2.json
│ │ ├── 3.json
│ │ ├── 4.json
│ │ └── 5.json
│ └── index.html
│ └── 5
│ ├── app
│ ├── boot
│ │ └── client.js
│ ├── configs
│ │ ├── config.js
│ │ ├── environments.js
│ │ ├── logging.js
│ │ └── routes.js
│ ├── controllers
│ │ └── pages.js
│ ├── models
│ │ └── pages.js
│ └── views
│ │ └── pages.js
│ ├── data
│ ├── 1.json
│ ├── 2.json
│ ├── 3.json
│ ├── 4.json
│ └── 5.json
│ └── index.html
├── build.properties
├── build.xml
├── css
├── blueprint
│ ├── ie.css
│ ├── plugins
│ │ ├── buttons
│ │ │ ├── icons
│ │ │ │ ├── cross.png
│ │ │ │ ├── key.png
│ │ │ │ └── tick.png
│ │ │ ├── readme.txt
│ │ │ └── screen.css
│ │ ├── fancy-type
│ │ │ ├── readme.txt
│ │ │ └── screen.css
│ │ ├── link-icons
│ │ │ ├── icons
│ │ │ │ ├── doc.png
│ │ │ │ ├── email.png
│ │ │ │ ├── external.png
│ │ │ │ ├── feed.png
│ │ │ │ ├── im.png
│ │ │ │ ├── pdf.png
│ │ │ │ ├── visited.png
│ │ │ │ └── xls.png
│ │ │ ├── readme.txt
│ │ │ └── screen.css
│ │ ├── liquidgrid
│ │ │ ├── README
│ │ │ └── liquid.css
│ │ ├── rtl
│ │ │ ├── readme.txt
│ │ │ └── screen.css
│ │ └── silksprite
│ │ │ ├── __MACOSX
│ │ │ └── sprites
│ │ │ │ ├── ._.DS_Store
│ │ │ │ ├── ._sprite.css
│ │ │ │ ├── ._sprites.png
│ │ │ │ └── ._test.htm
│ │ │ └── sprites
│ │ │ ├── .DS_Store
│ │ │ ├── sprite.css
│ │ │ ├── sprites.png
│ │ │ └── test.htm
│ ├── print.css
│ ├── screen.css
│ └── src
│ │ ├── forms.css
│ │ ├── grid.css
│ │ ├── grid.png
│ │ ├── ie.css
│ │ ├── print.css
│ │ ├── reset.css
│ │ └── typography.css
├── sharethis.css
└── site.css
├── data
├── .DS_Store
├── docs
│ ├── apis
│ │ └── 1.0.x
│ │ │ ├── plugins
│ │ │ ├── developer
│ │ │ │ ├── config.json
│ │ │ │ ├── guid.json
│ │ │ │ ├── manage.json
│ │ │ │ ├── register.json
│ │ │ │ ├── resolve.json
│ │ │ │ └── router.json
│ │ │ └── user
│ │ │ │ ├── $.json
│ │ │ │ ├── boot.json
│ │ │ │ ├── env.json
│ │ │ │ ├── event.json
│ │ │ │ ├── filters.json
│ │ │ │ ├── invert.json
│ │ │ │ ├── logger.json
│ │ │ │ ├── logging.json
│ │ │ │ ├── model.json
│ │ │ │ ├── proxy.json
│ │ │ │ ├── reboot.json
│ │ │ │ ├── request.json
│ │ │ │ ├── response.json
│ │ │ │ ├── routes.json
│ │ │ │ └── scan.json
│ │ │ └── project
│ │ │ └── conventions
│ │ │ ├── app.json
│ │ │ ├── app
│ │ │ ├── boot.json
│ │ │ ├── boot
│ │ │ │ ├── client.js.json
│ │ │ │ └── server.js.json
│ │ │ ├── configs.json
│ │ │ ├── configs
│ │ │ │ ├── config.js.json
│ │ │ │ ├── environments.js.json
│ │ │ │ ├── filters.js.json
│ │ │ │ ├── logging.js.json
│ │ │ │ └── routes.js.json
│ │ │ ├── controllers.json
│ │ │ ├── controllers
│ │ │ │ └── example.js.json
│ │ │ ├── models.json
│ │ │ ├── models
│ │ │ │ └── example.js.json
│ │ │ ├── services.json
│ │ │ ├── services
│ │ │ │ └── example.js.json
│ │ │ ├── templates.json
│ │ │ ├── templates
│ │ │ │ └── example.js.json
│ │ │ ├── views.json
│ │ │ └── views
│ │ │ │ └── example.js.json
│ │ │ └── index.html.json
│ ├── guides
│ │ └── 1.0.x
│ │ │ ├── advanced.json
│ │ │ ├── basics.json
│ │ │ └── intermediate.json
│ └── metadata.json
├── events
│ ├── logo_jquery_215x53.gif
│ ├── logo_jquery_53x53.jpg
│ ├── logo_jquery_53x53.png
│ └── metadata.json
├── examples
│ └── metadata.json
├── news
│ └── metadata.json
└── releases
│ └── metadata.json
├── dist
├── jquery.claypool-lite.js
├── jquery.claypool-lite.min.js
├── jquery.claypool.1.2.9-lite.js
├── jquery.claypool.1.2.9-lite.min.js
├── jquery.claypool.1.2.9.js
├── jquery.claypool.1.2.9.min.js
├── jquery.claypool.aop.js
├── jquery.claypool.aop.min.js
├── jquery.claypool.app.js
├── jquery.claypool.app.min.js
├── jquery.claypool.ioc.js
├── jquery.claypool.ioc.min.js
├── jquery.claypool.js
├── jquery.claypool.logging.js
├── jquery.claypool.logging.min.js
├── jquery.claypool.min.js
├── jquery.claypool.models.js
├── jquery.claypool.models.min.js
├── jquery.claypool.mvc.js
├── jquery.claypool.mvc.min.js
├── jquery.claypool.server.js
└── jquery.claypool.server.min.js
├── images
├── ajax-loader.gif
├── button.png
├── claypool-button.png
├── claypool-medium.gif
├── claypool.gif
├── claypool_logo.gif
├── favicon.ico
├── github_logo_sm.png
├── gitlogosidebar.png
├── groups_logo_sm.gif
├── lighthouseapp_logo_sm.png
├── logo_interior_transparent.png
├── star_inverting.jpg
├── star_inverting_bullet.jpg
├── subscribe.gif
├── tar.jpg
├── tar.png
├── trac_claypool.gif
├── zip.jpg
└── zip.png
├── index.html
├── lib
├── firebug
│ ├── .svn
│ │ ├── all-wcprops
│ │ ├── entries
│ │ ├── format
│ │ ├── prop-base
│ │ │ ├── errorIcon.png.svn-base
│ │ │ ├── infoIcon.png.svn-base
│ │ │ └── warningIcon.png.svn-base
│ │ └── text-base
│ │ │ ├── errorIcon.png.svn-base
│ │ │ ├── firebug.css.svn-base
│ │ │ ├── firebug.html.svn-base
│ │ │ ├── firebug.js.svn-base
│ │ │ ├── firebugx.js.svn-base
│ │ │ ├── infoIcon.png.svn-base
│ │ │ └── warningIcon.png.svn-base
│ ├── errorIcon.png
│ ├── firebug.css
│ ├── firebug.html
│ ├── firebug.js
│ ├── firebugx.js
│ ├── infoIcon.png
│ └── warningIcon.png
├── jquery-1.2.6.js
├── jquery-1.3.2.js
├── jquery-1.4.2.js
├── jquery-1.5.2.js
├── jquery.claypool.js
├── jquery.js
├── jquery.livequery-1.0.js
├── jquery.livequery-1.1.1.js
└── jquery.livequery.js
├── licenses
├── GPL-LICENSE.txt
└── MIT-LICENSE.txt
├── plugins
├── jquery.e4x.js
├── jquery.gdb.js
├── jquery.gdb.rest.js
├── jquery.json.js
├── jquery.jtemplates.js
├── jquery.loremipsum.js
├── jquery.objtree.js
└── jquery.xslt.js
├── scripts
├── doc.js
└── tutorial.js
├── server
├── README.txt
├── VERSION.txt
├── bin
│ ├── Jetty-Service.exe
│ ├── build_release_bundles.sh
│ ├── jetty-service.conf
│ └── jetty.sh
├── contexts
│ ├── README-test-jndi.txt
│ ├── README.TXT
│ ├── javadoc.xml
│ └── jquery.claypool.xml
├── etc
│ ├── jdbcRealm.properties
│ ├── jetty-ajp.xml
│ ├── jetty-bio.xml
│ ├── jetty-jaas.xml
│ ├── jetty-jmx.xml
│ ├── jetty-logging.xml
│ ├── jetty-plus.xml
│ ├── jetty-setuid.xml
│ ├── jetty-ssl.xml
│ ├── jetty-sslengine.xml
│ ├── jetty-stats.xml
│ ├── jetty-win32-service.xml
│ ├── jetty.xml
│ ├── keystore
│ ├── login.conf
│ ├── login.properties
│ ├── realm.properties
│ └── webdefault.xml
├── lib
│ ├── annotations
│ │ ├── geronimo-annotation_1.0_spec-1.0.jar
│ │ └── jetty-annotations-6.1.14.jar
│ ├── cometd
│ │ ├── cometd-api-1.0.beta4.jar
│ │ └── cometd-jetty-6.1.14.jar
│ ├── ext
│ │ ├── jetty-ajp-6.1.14.jar
│ │ ├── jetty-client-6.1.14.jar
│ │ ├── jetty-html-6.1.14.jar
│ │ ├── jetty-java5-threadpool-6.1.14.jar
│ │ ├── jetty-rewrite-handler-6.1.14.jar
│ │ ├── jetty-servlet-tester-6.1.14.jar
│ │ ├── jetty-setuid-6.1.14.jar
│ │ ├── jetty-sslengine-6.1.14.jar
│ │ └── libsetuid.so
│ ├── jetty-6.1.14.jar
│ ├── jetty-util-6.1.14.jar
│ ├── jre1.5
│ │ └── jetty-util5-6.1.14.jar
│ ├── jsp-2.0
│ │ ├── ant-1.6.5.jar
│ │ ├── commons-el-1.0.jar
│ │ ├── jasper-compiler-5.5.15.jar
│ │ ├── jasper-compiler-jdt-5.5.15.jar
│ │ ├── jasper-runtime-5.5.15.jar
│ │ ├── jcl104-over-slf4j-1.3.1.jar
│ │ ├── jsp-api-2.0.jar
│ │ ├── slf4j-api-1.3.1.jar
│ │ ├── slf4j-simple-1.3.1.jar
│ │ ├── xercesImpl-2.6.2.jar
│ │ └── xmlParserAPIs-2.6.2.jar
│ ├── jsp-2.1
│ │ ├── ant-1.6.5.jar
│ │ ├── core-3.1.1.jar
│ │ ├── jsp-2.1.jar
│ │ └── jsp-api-2.1.jar
│ ├── management
│ │ ├── jetty-management-6.1.14.jar
│ │ └── mx4j
│ │ │ ├── mx4j-3.0.1.jar
│ │ │ └── mx4j-tools-3.0.1.jar
│ ├── naming
│ │ ├── activation-1.1.jar
│ │ ├── jetty-naming-6.1.14.jar
│ │ └── mail-1.4.jar
│ ├── plus
│ │ └── jetty-plus-6.1.14.jar
│ ├── servlet-api-2.5-6.1.14.jar
│ ├── win32
│ │ ├── jetty-win32-service-java-6.1.14.jar
│ │ ├── wrapper.dll
│ │ └── wrapper.jar
│ └── xbean
│ │ └── jetty-xbean-6.1.14.jar
├── logs
│ └── tmp.txt
├── resources
│ └── log4j.properties
├── start.jar
└── webapps
│ ├── README.TXT
│ └── cometd.war
├── src
├── aop
│ ├── aspect.js
│ ├── container.js
│ ├── factory.js
│ ├── namespace.js
│ └── plugin.js
├── application
│ ├── context.js
│ ├── namespace.js
│ └── plugin.js
├── core
│ ├── cache.js
│ ├── configuration.js
│ ├── container.js
│ ├── context.js
│ ├── factory.js
│ ├── namespace.js
│ ├── plugin.js
│ └── router.js
├── ioc
│ ├── container.js
│ ├── factory.js
│ ├── instance.js
│ ├── namespace.js
│ └── plugin.js
├── logging
│ ├── appender.js
│ ├── factory.js
│ ├── formatter.js
│ ├── level.js
│ ├── logger.js
│ ├── namespace.js
│ └── plugin.js
├── models
│ ├── client.js
│ ├── factory.js
│ ├── index.js
│ ├── model.js
│ ├── namespace.js
│ ├── plugin.js
│ ├── query.js
│ └── restclient.js
├── mvc
│ ├── container.js
│ ├── controller.js
│ ├── factory.js
│ ├── hijax.js
│ ├── namespace.js
│ ├── plugin.js
│ └── view.js
└── server
│ ├── manage.js
│ ├── namespace.js
│ ├── plugin.js
│ ├── proxy.js
│ ├── rest.js
│ └── servlet.js
├── templates
└── site
│ └── html
│ ├── analytics.js
│ ├── base.js
│ ├── footer.js
│ ├── header.js
│ ├── links.js
│ ├── meta.js
│ ├── pages
│ ├── api.js
│ ├── docs.js
│ ├── error.js
│ ├── events.js
│ ├── examples.js
│ ├── examples
│ │ ├── base.js
│ │ ├── quiz.js
│ │ └── tutorial.js
│ ├── guide.js
│ ├── home.js
│ ├── news.js
│ ├── release.js
│ ├── releases.js
│ └── support.js
│ ├── request.js
│ ├── scripts.js
│ ├── status.js
│ └── stylesheets.js
└── test
├── app
├── boot
│ └── client.js
└── configs
│ ├── config.js
│ ├── environments.js
│ ├── filters.js
│ ├── logging.js
│ └── routes.js
├── index.html
├── qunit
├── jqunit-spec.js
├── testrunner.js
└── testsuite.css
└── specs
├── aop-spec.js
├── app-spec.js
├── core-spec.js
├── ioc-spec.js
├── logging-spec.js
├── models-spec.js
├── mvc-spec.js
└── server-spec.js
/.gitignore:
--------------------------------------------------------------------------------
1 | *~
2 | server/logs/*.log
3 | server/logs/*.log.*
4 | build/*.js
5 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | jquery-claypool
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/WEB-INF/app/boot/server.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Example @VERSION -
3 | *
4 | * Copyright (c) 2008-2009 ClaypoolJS
5 | *
6 | */
7 | // - BOOT THE APP -
8 | jQuery.noConflict();
9 | (function($){
10 |
11 | //A static logger for any initialization routines we might add here
12 | var log = $.logger("Site");
13 |
14 | //The environments are described in environments.js
15 | try{
16 | //$.env('defaults', "dev.server");
17 | //$.env('defaults', "appengine.server");
18 | $.env();
19 |
20 | }catch(e){
21 | log.error("Environmental selection is invalid!").exception(e);
22 | }
23 |
24 | $(document).ready(function(){
25 | log.info("Initializing Application");
26 | $.boot(function(){
27 | //you can do additional initialization here
28 | log.info("Successfully Initialized Application");
29 |
30 | });
31 | });
32 |
33 | })(jQuery);
34 |
--------------------------------------------------------------------------------
/WEB-INF/app/configs/config.js:
--------------------------------------------------------------------------------
1 | var ClaypoolJS = {
2 | /**
3 | * ClaypoolJS -
4 | *
5 | * Copyright (c) 2008-2009 ClaypoolJS
6 | *
7 | */
8 | // - NAMESPACE DECLARATIONS -
9 | // It's good form to go ahead and declare the additional namespaces you might be using
10 | // here. We define just a couple standards. Additional nested namespaces are very
11 | // useful for isolating application log message based on the categories defined by
12 | // the namespace.
13 | Models:{},
14 | Views:{},
15 | Controllers:{},
16 | Services:{}
17 | };
18 | (function($){
19 |
20 | //Scanning is a simple convention over configuration
21 | //pattern. All functions on the namespace can be accessed
22 | //via $.$, which will create the instance the first time
23 | //eg $.$('#fooModel') will return a new MyApp.Models.Foo
24 | $.scan([
25 | "ClaypoolJS.Models",
26 | "ClaypoolJS.Views",
27 | "ClaypoolJS.Services"
28 | ]);
29 |
30 | })(jQuery, ClaypoolJS);
31 |
32 |
--------------------------------------------------------------------------------
/WEB-INF/app/configs/environments.js:
--------------------------------------------------------------------------------
1 | /**
2 | *
3 | * Copyright (c) 2008-2009 ClaypoolJS
4 | *
5 | */
6 | (function($){
7 |
8 | //-------------------------------------------------------------------------------------//
9 | // - ENVIRONMENTAL CONFIGURATION -
10 | //______________________________________________________________________________________//
11 | $.env({
12 | automap:{
13 | 'file:///opt': 'dev.server',
14 | 'file:///base': 'appengine.server',
15 | 'http://localhost': 'dev.client',
16 | 'claypooljs\.com': 'prod.client'
17 | },
18 | defaults:{
19 | root:'/',
20 | data:'data/',
21 | app_dir:'/WEB-INF/jsx/',
22 | templates:'templates/'
23 | },
24 | //-------------------------------------------------------------------------------------//
25 | // - DEVELOPMENT CONFIGURATION -
26 | //______________________________________________________________________________________//
27 | dev:{
28 | server:{
29 | data:'http://localhost:8080/data/',
30 | templates:'http://localhost:8080/templates/',
31 | }
32 | },
33 | //-------------------------------------------------------------------------------------//
34 | // - TEST CONFIGURATION -
35 | //______________________________________________________________________________________//
36 | version2:{
37 | server:{
38 | templates:'http://2.latest.jquery-claypool.appspot.com/templates/'
39 | }
40 | },
41 | //-------------------------------------------------------------------------------------//
42 | // - APPENGINE CONFIGURATION -
43 | //______________________________________________________________________________________//
44 | appengine:{
45 | server:{
46 | templates:'http://www.claypooljs.com/templates/'
47 | }
48 | }
49 | });
50 |
51 | })(jQuery);
52 |
53 |
--------------------------------------------------------------------------------
/WEB-INF/app/configs/logging.js:
--------------------------------------------------------------------------------
1 | /**
2 | * ClaypoolJS @VERSION -
3 | *
4 | * Copyright (c) 2008-2009 ClaypoolJS
5 | *
6 | * dont confuse the Claypool and ClaypoolJs namespace. the ClaypoolJS namespace
7 | * is only used for the website.
8 | */
9 |
10 | (function($){
11 |
12 | $.logging([
13 | { category:"ClaypoolJS", level:"INFO" },
14 | { category:"ClaypoolJS.Models", level:"INFO" },
15 | { category:"ClaypoolJS.Views", level:"INFO" },
16 | { category:"ClaypoolJS.Controllers", level:"INFO" },
17 | { category:"ClaypoolJS.Services", level:"INFO" },
18 | { category:"ClaypoolJS.Filters", level:"INFO" },
19 | { category:"Claypool", level:"ERROR" },
20 | { category:"Claypool.Server", level:"WARN" },
21 | { category:"Claypool.MVC", level:"WARN" },
22 | { category:"Claypool.IoC", level:"WARN" },
23 | { category:"Claypool.AOP", level:"WARN" },
24 | { category:"jQuery.E4X", level:"WARN" },
25 | { category:"root", level:"ERROR" }
26 | ]);
27 |
28 | })(jQuery);
29 |
30 |
--------------------------------------------------------------------------------
/WEB-INF/app/configs/routes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 |
5 | (function($){
6 |
7 | $.routes({
8 | "hijax:server": [{
9 | id:"#site-routes",
10 | hijaxMap:
11 | [{ urls :"/jsx/$", controller:"#siteService", action:"home"},
12 | { urls :"/docs$", controller:"#siteService", action:"docs"},
13 | { urls :"/doc/<:id(.*):>$", controller:"#siteService", action:"doc"},
14 | { urls :"/events$", controller:"#siteService", action:"events"},
15 | { urls :"/event/|:id|/?$", controller:"#siteService", action:"event"},
16 | { urls :"/examples$", controller:"#siteService", action:"examples"},
17 | { urls :"/example/<:id(.*):>$", controller:"#siteService", action:"example"},
18 | { urls :"/home$", controller:"#siteService", action:"home"},
19 | { urls :"/news$", controller:"#siteService", action:"news"},
20 | { urls :"/releases$", controller:"#siteService", action:"releases"},
21 | { urls :"/release/<:id(.*):>$", controller:"#siteService", action:"release"},
22 | { urls :"/support$", controller:"#siteService", action:"support"},
23 | { urls :"/error$", controller:"#siteService", action:"error"}]
24 | }]
25 | });
26 |
27 |
28 | })(jQuery);
29 |
--------------------------------------------------------------------------------
/WEB-INF/app/models/docs.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | (function($, $M){
5 |
6 | var log,
7 | cache;
8 |
9 | $M.Docs = function(options){
10 | $.extend(true, this, options);
11 | log = $.logger('ClaypoolJS.Models.Docs');
12 | cache = {};
13 | };
14 |
15 | $.extend($M.Docs.prototype,{
16 | get: function(id){
17 | id = 'docs/'+(id||'metadata');
18 | var url = $.env('data')+id+'.json';
19 | if(!cache[url]){
20 | $.ajax({
21 | type:'GET',
22 | url:url,
23 | dataType:'text',
24 | async:false,
25 | success: function(json){
26 | log.debug('Loaded data %s',json);
27 | cache[url] = $.json2js(json)._;
28 | },
29 | error:function(xhr, status, e){
30 | log.error('failed to load data %s', url).
31 | exception(e);
32 | }
33 | });
34 | }
35 |
36 | return cache[url];
37 | },
38 | forRelease: function(release){
39 | var docs = this.get(),
40 | doc;
41 | for(i=0;i2?3:all.length)
38 | }
39 | });
40 |
41 | })(jQuery, ClaypoolJS.Models );
42 |
--------------------------------------------------------------------------------
/WEB-INF/app/models/examples.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | (function($, $M){
5 |
6 | var data,
7 | log;
8 |
9 | $M.Examples = function(options){
10 | $.extend(true, this, options);
11 | log = $.logger('ClaypoolJS.Models.Examples');
12 | };
13 |
14 | $.extend($M.Examples.prototype,{
15 | get: function(id){
16 | var url = $.env('data')+'examples/metadata.json';
17 | if(!data){
18 | $.ajax({
19 | type:'GET',
20 | url:url,
21 | dataType:'text',
22 | async:false,
23 | success: function(json){
24 | log.debug('Loaded data %s',json);
25 | data = $.json2js(json)._;
26 | },
27 | error:function(xhr, status, e){
28 | log.error('failed to load data %s',url).
29 | exception(e);
30 | }
31 | });
32 | }
33 | if(id){
34 | //find the example based on the id passed
35 | for(i=0;i2?3:all.length);
38 | }
39 | });
40 |
41 | })(jQuery, ClaypoolJS.Models);
42 |
--------------------------------------------------------------------------------
/WEB-INF/app/models/releases.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | (function($, $M){
5 |
6 | var data,
7 | log;
8 |
9 | $M.Releases = function(options){
10 | $.extend(true, this, options);
11 | log = $.logger('ClaypoolJS.Models.Releases');
12 | };
13 |
14 | $.extend($M.Releases.prototype,{
15 | get: function(id){
16 | var url = $.env('data')+'releases/metadata.json';
17 | log.debug('loading data from %s', url);
18 | if(!data){
19 | $.ajax({
20 | type:'GET',
21 | url:url,
22 | dataType:'text',
23 | async:false,
24 | success: function(json){
25 | log.debug('Loaded data %s',json);
26 | data = $.json2js(json)._;
27 | },
28 | error:function(xhr, status, e){
29 | log.error('failed to load data %s',url).
30 | exception(e);
31 | }
32 | });
33 | }
34 | if(id){
35 | //find the releases based on the id passed
36 | for(i=0;i1?2:1);
49 | }
50 | });
51 |
52 | })(jQuery, ClaypoolJS.Models);
--------------------------------------------------------------------------------
/WEB-INF/app/views/site.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | (function($, $V){
5 |
6 | var log;
7 |
8 | $V.Site = function(options){
9 | $.extend(true, this, options);
10 | log = $.logger('ClaypoolJS.Views.Site');
11 | };
12 |
13 | $.extend($V.Site.prototype, {
14 | render: function(model){
15 | log.info("Rendering html template %s ", model.template);
16 | var doc = $.e4x(model.template, model, true);
17 | log.debug('result of template : %s', doc);
18 | this.write(doc);
19 | }
20 | });
21 |
22 | })(jQuery, ClaypoolJS.Views);
23 |
--------------------------------------------------------------------------------
/WEB-INF/appengine-web.xml:
--------------------------------------------------------------------------------
1 |
2 | jquery-claypool
3 | 3
4 |
5 |
--------------------------------------------------------------------------------
/WEB-INF/forward.jsp:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/WEB-INF/lib/appengine-api-1.0-sdk-1.2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/WEB-INF/lib/appengine-api-1.0-sdk-1.2.1.jar
--------------------------------------------------------------------------------
/WEB-INF/lib/claypool.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/WEB-INF/lib/claypool.jar
--------------------------------------------------------------------------------
/WEB-INF/lib/jline.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/WEB-INF/lib/jline.jar
--------------------------------------------------------------------------------
/WEB-INF/lib/js.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/WEB-INF/lib/js.jar
--------------------------------------------------------------------------------
/WEB-INF/lib/jslint4java-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/WEB-INF/lib/jslint4java-1.1.jar
--------------------------------------------------------------------------------
/WEB-INF/lib/log4j-1.2.15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/WEB-INF/lib/log4j-1.2.15.jar
--------------------------------------------------------------------------------
/WEB-INF/lib/utils/yuicompressor-2.4.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/WEB-INF/lib/utils/yuicompressor-2.4.1.jar
--------------------------------------------------------------------------------
/WEB-INF/logging.conf:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 | #
17 | #
18 | #
19 | # For the general syntax of property based configuration files see the
20 | # documenation of org.apache.log4j.PropertyConfigurator.
21 |
22 | log4j.rootLogger=INFO, A1
23 |
24 | # A1 is set to be a ConsoleAppender which outputs to System.out.
25 | log4j.appender.A1=org.apache.log4j.ConsoleAppender
26 |
27 | # A1 uses PatternLayout.
28 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout
29 |
30 | # The conversion pattern uses format specifiers. You might want to
31 | # change the pattern an watch the output format change.
32 | log4j.appender.A1.layout.ConversionPattern=%0x %-5p: [%d] {%c} %m%n
33 |
34 | log4j.logger.claypool.server.Servlet = INFO
35 | log4j.logger.claypool.server.RequestHandler = INFO
36 | log4j.logger.claypool.server.Shell = INFO
--------------------------------------------------------------------------------
/WEB-INF/shell.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | //When the servlet is first loaded the 'outer shell'
5 | //is loaded. You can load additional resources here.
6 |
7 | try{
8 | print("\n\n\t@Loading shell for jquery-claypool server-side@\n");
9 |
10 | //env-js is our simulated browser environments so we can use all of
11 | //our favorite client side libraries and tricks
12 | load('lib/env.rhino.js');
13 |
14 | //The next line provide us with a base 'template'
15 | //and set the server window location. This must happen before
16 | //we load the rest of the javascript so that we can have a
17 | //server side context from which to begin defining our application
18 | //behavior
19 | window.location = cwd+'/index.html';
20 |
21 | print("Loaded shell. "+ window.location);
22 |
23 | }catch(e){
24 | print( "\t/********************************************************\n"+
25 | "\t * ERROR LOADING SHELL!!"+
26 | "\t * details :"+
27 | "\t * " + e.toString() +
28 | "\t ********************************************************/" );
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/apps/README.txt:
--------------------------------------------------------------------------------
1 | The examples in this folder are example of jquery-claypool client-side projects.
2 | Server-side projects are located in the WEB-INF/app directory.
--------------------------------------------------------------------------------
/apps/quiz/configs/config.js:
--------------------------------------------------------------------------------
1 | var Example = {
2 | Models:{},
3 | Views:{},
4 | Controllers:{}
5 | };
6 |
7 | (function($){
8 |
9 | $.scan([
10 | "Example.Models",
11 | "Example.Views",
12 | "Example.Controllers"
13 | ]);
14 |
15 | })(jQuery);
16 |
17 |
--------------------------------------------------------------------------------
/apps/quiz/configs/environments.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 | //-------------------------------------------------------------------------------------//
4 | // - ENVIRONMENTAL CONFIGURATION -
5 | //______________________________________________________________________________________//
6 | $.env({
7 | automap:{
8 | 'http://localhost': 'dev.client',
9 | 'claypooljs': 'prod.client'
10 | },
11 | defaults:{
12 | templates:'apps/quiz/views/templates/',
13 | root:'/',
14 | data:'apps/quiz/models/data/',
15 | appbase:{
16 | '':'/apps/quiz/',
17 | 'a':'/apps/other/'
18 | },
19 | rest: {
20 | SERVICE: "Any",
21 | URL: "/rest",
22 | AJAX: "jQuery"
23 | }
24 | },
25 | //-------------------------------------------------------------------------------------//
26 | // - DEVELOPMENT CONFIGURATION -
27 | //______________________________________________________________________________________//
28 | dev:{
29 | client:{
30 | }
31 | },
32 | //-------------------------------------------------------------------------------------//
33 | // - PRODUCTION CONFIGURATION -
34 | //______________________________________________________________________________________//
35 | appengine:{
36 | client:{
37 | }
38 | },
39 | //-------------------------------------------------------------------------------------//
40 | // - TEST CONFIGURATION -
41 | //______________________________________________________________________________________//
42 | test:{
43 | client:{
44 | }
45 | }
46 | });
47 |
48 | })(jQuery);
49 |
50 |
--------------------------------------------------------------------------------
/apps/quiz/configs/filters.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 |
4 | var log;
5 |
6 | $.filters([{
7 |
8 | id : "#exampleControllerFilter",
9 | target : "Example.Controllers.*",
10 | before : "([a-z]*)",
11 | advice : function(event){
12 | log = log||$.logger('Example.Filters');
13 | var invocation = arguments[arguments.length-1];
14 | log.debug( 'Filtering invocation before %s %s', invocation.target, invocation.method);
15 | }
16 |
17 | }]);
18 |
19 | })(jQuery);
--------------------------------------------------------------------------------
/apps/quiz/configs/logging.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Example @VERSION -
3 | *
4 | * Copyright (c) 2008-2009 ClayoolJS
5 | *
6 | */
7 | //-------------------------------------------------------------------------------------//
8 | // - LOGGERS -
9 | // - Loggers can be enabled or disabled, turned up or turned downed here. There
10 | // - are five levels for loggers, DEBUG, INFO, WARN, ERROR, and NONE. Each level
11 | // - will include log messages from higher levels but not lower. So DEBUG will
12 | // - print all messages while WARN will include error messages but not info and
13 | // - debug messages.
14 | // -
15 | // - Understanding Logging Categories is critical to using logging effectively. Every
16 | // - new logger is created with a '.' delimited name, and that name should represent
17 | // - some hierarchy. Best practice is to use Namespaces and ClassNames that represent
18 | // - the given class. For example 'Example.Controllers.User' would be a good name.
19 | // - If you want to only get warning messages from the 'Example.Controllers' components,
20 | // - but want to get all messages from 'Example.Controllers.User' you can have seperate
21 | // - configurations for each.
22 | // -
23 | // - By default, all Categories that are not explicitly configured will use the 'root'
24 | // - configuration (see below).
25 | //_____________________________________________________________________________________//
26 |
27 |
28 | (function($){
29 |
30 | $.logging([
31 | { category:"Example", level:"DEBUG" },
32 | { category:"Example.Models", level:"DEBUG" },
33 | { category:"Example.Views", level:"DEBUG" },
34 | { category:"Example.Controllers", level:"DEBUG" },
35 | { category:"Claypool", level:"DEBUG" },
36 | { category:"root", level:"DEBUG" }
37 | ]);
38 |
39 | })(jQuery);
40 |
41 |
--------------------------------------------------------------------------------
/apps/quiz/configs/routes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Example @VERSION -
3 | *
4 | * Copyright (c) 2008-2009 ClayoolJS
5 | *
6 | */
7 |
8 | (function($){
9 | $.routes({
10 | "hijax:a" : [{
11 | id:"#example-hash-routes",
12 | active: true,
13 | filter:"[href*=#examples]",
14 | stopPropagation:true,
15 | preventDefault:true,
16 | strategy:"first",
17 | hijaxMap:
18 | [{urls:"examples/|:id|/$", controller:"#quizController", action:"show"}]
19 | }],
20 | //Hijax Forms
21 | "hijax:form": [{
22 | id:"#example-form-routes",
23 | active: true,
24 | filter:"[action*=example]",
25 | stopPropagation:true,
26 | preventDefault:true,
27 | hijaxMap:
28 | [{urls:"score$", controller:"#quizController", action:"score"}]
29 | }]
30 | });
31 | })(jQuery);
32 |
33 |
--------------------------------------------------------------------------------
/apps/quiz/controllers/quiz.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Example @VERSION -
3 | *
4 | * Copyright (c) 2008-2009 ClayoolJS
5 | *
6 | */
7 | (function($, $C){
8 |
9 | var Quiz,
10 | log;
11 |
12 | $C.Quiz = function(options){
13 | $.extend(true, this, options);
14 | Quiz = $.$('#quizModel');
15 | log = $.logger('Example.Controllers.Quiz');
16 | };
17 | $.extend($C.Quiz.prototype, {
18 | show:function(event){
19 | var params = event.params();
20 | log.debug('Handling event %s, id: %s', event.target, params.id);
21 | //abc.def.hij = '123';
22 | event.v('.think').render(function(){
23 | Quiz.get('questions',function(questions){
24 | event.
25 | m({'questions':questions}).
26 | v('.update').
27 | render(function(){
28 | //preload answers
29 | Quiz.get('answers');
30 | });
31 | });
32 | });
33 | },
34 | score:function(event){
35 | var responses, score = {
36 | correct: 0,
37 | incorrect: 0,
38 | total: 0
39 | };
40 | log.debug('Handling event %s', event.target);
41 | Quiz.get('answers',function(answers){
42 | //do the scoring
43 | responses = $('input[name*=question]:checked',event.target);
44 | if(responses.length!=answers.length){
45 | //renders to default view method '.update'
46 | event.m().flash.
47 | push('Please complete all questions.');
48 | event.render();
49 | }else{
50 | score.total = score.incorrect = answers.length;
51 | $(responses).each(function(index,value){
52 | if(this.value == answers[index].value){
53 | score.incorrect--;
54 | score.correct++;
55 | }
56 | });
57 | event.
58 | m({'score':score}).
59 | v('.score').
60 | render().
61 | c('#quizController.show');//clears the flash if any
62 | }
63 | });
64 | }
65 | });
66 |
67 | })(jQuery, Example.Controllers);
--------------------------------------------------------------------------------
/apps/quiz/models/data/answers.json:
--------------------------------------------------------------------------------
1 | [{
2 | "id":0,
3 | "value":"true"
4 | },{
5 | "id":1,
6 | "value":"true"
7 | },{
8 | "id":2,
9 | "value":"true"
10 | },{
11 | "id":3,
12 | "value":"true"
13 | },{
14 | "id":4,
15 | "value":"false"
16 | },{
17 | "id":5,
18 | "value":"false"
19 | },{
20 | "id":6,
21 | "value":"true"
22 | }]
23 |
--------------------------------------------------------------------------------
/apps/quiz/models/data/questions.json:
--------------------------------------------------------------------------------
1 | [{
2 | "id":0,
3 | "label":"jquery-claypool is a jquery plugin?",
4 | "options":["true", "false"]
5 | },{
6 | "id":1,
7 | "label":"jquery-claypool is about 14K when minified and gzipped?",
8 | "options":["true", "false"]
9 | },{
10 | "id":2,
11 | "label":"jquery-claypool has an MIT/GPL license?",
12 | "options":["true", "false"]
13 | },{
14 | "id":3,
15 | "label":"jquery-claypool is a railable mvc framework?",
16 | "options":["true", "false"]
17 | },{
18 | "id":4,
19 | "label":"jquery-claypool requires you to extend classes?",
20 | "options":["true", "false"]
21 | },{
22 | "id":5,
23 | "label":"jquery-claypool requires you to use a particular model or template technology?",
24 | "options":["true", "false"]
25 | },{
26 | "id":6,
27 | "label":"jquery-claypool fits nicely with jquery and jquery-ui?",
28 | "options":["true", "false"]
29 | }]
30 |
--------------------------------------------------------------------------------
/apps/quiz/models/quiz.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Example @VERSION -
3 | *
4 | * Copyright (c) 2008-2009 ClayoolJS
5 | *
6 | */
7 | (function($, $M){
8 |
9 | var cache,
10 | log;
11 |
12 | $M.Quiz = function(options){
13 | cache = {};
14 | log = $.logger('Example.Models.Quiz');
15 | return $.extend(true, this, options);
16 | };
17 |
18 | $.extend($M.Quiz.prototype,{
19 | get: function(id,callback){
20 | var _this = this;
21 | if (!cache[id]) {
22 | $.ajax({
23 | type: 'GET',
24 | url: $.env('root') + $.env('data') + id + '.json',
25 | dataType: 'json',
26 | success: function(json){
27 | log.debug('Succesfully retreived data');
28 | cache[id] = json;
29 | if (callback && $.isFunction(callback)) {
30 | callback(json);
31 | }
32 | }
33 | });
34 | }else{
35 | if (callback && $.isFunction(callback)) {
36 | callback(cache[id]);
37 | }
38 | }
39 | }
40 | });
41 |
42 |
43 | })(jQuery, Example.Models);
--------------------------------------------------------------------------------
/apps/quiz/views/quiz.js:
--------------------------------------------------------------------------------
1 | (function($, $V){
2 |
3 |
4 | $V.Quiz = function(options){
5 | $.extend(true, this, options);
6 | };
7 |
8 | $.extend($V.Quiz.prototype,{
9 | think: function(){
10 | if(!$(this).hasTemplate()){
11 | $(this).text("loading quiz..");
12 | }
13 | },
14 | update : function(model){
15 | var _this = this;
16 | this.$log.debug("Rendering template");
17 | if(!$(this).hasTemplate()){
18 | $(this).setTemplateURL($.env('root')+$.env('templates')+"quiz.html");
19 | $(this).processTemplate(model);
20 | }
21 | if(model.flash.length>0){
22 | $('.flash',this).text(model.flash.join(' '));
23 | }else{
24 | $('.flash',this).text('');
25 | }
26 | },
27 | score : function(model){
28 | $('#quiz_score',this).text("\
29 | You got "+model.score.correct+" correct!\
30 | ");
31 | }
32 |
33 | });
34 |
35 |
36 | })(jQuery, Example.Views);
--------------------------------------------------------------------------------
/apps/quiz/views/templates/quiz.html:
--------------------------------------------------------------------------------
1 | {#template MAIN}
2 |
3 |
4 |
Take the jquery-claypool quiz!
5 |
6 | Take a moment to answer these questions about jquery-claypool ,
7 | see it in action, and learn about what it is and isn't.
8 |
9 |
31 |
32 |
33 | {#/template MAIN}
--------------------------------------------------------------------------------
/apps/tutorial/0/.tmp_index.html.64932~:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Untitled Document
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/apps/tutorial/0/app/boot/client.js:
--------------------------------------------------------------------------------
1 | // - BOOT THE APP -
2 | jQuery.noConflict();
3 | (function($){
4 |
5 | $(document).ready(function(){
6 | $.boot();
7 | });
8 |
9 | })(jQuery);
10 |
--------------------------------------------------------------------------------
/apps/tutorial/0/app/configs/config.js:
--------------------------------------------------------------------------------
1 | var Example = {
2 | Models:{},
3 | Views:{},
4 | Controllers:{}
5 | };
6 |
7 | (function($){
8 |
9 | $.scan([
10 | "Example.Models",
11 | "Example.Views",
12 | "Example.Controllers"
13 | ]);
14 |
15 | })(jQuery);
16 |
17 |
--------------------------------------------------------------------------------
/apps/tutorial/0/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/1/.tmp_index.html.40903~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/1/.tmp_index.html.82934~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/1/app/boot/client.js:
--------------------------------------------------------------------------------
1 | // - BOOT THE APP -
2 | jQuery.noConflict();
3 | (function($){
4 |
5 | $(document).ready(function(){
6 | $.boot();
7 | });
8 |
9 | })(jQuery);
10 |
--------------------------------------------------------------------------------
/apps/tutorial/1/app/configs/config.js:
--------------------------------------------------------------------------------
1 | var Example = {
2 | Models:{},
3 | Views:{},
4 | Controllers:{}
5 | };
6 |
7 | (function($){
8 |
9 | $.scan([
10 | "Example.Models",
11 | "Example.Views",
12 | "Example.Controllers"
13 | ]);
14 |
15 | })(jQuery);
16 |
17 |
--------------------------------------------------------------------------------
/apps/tutorial/1/app/configs/routes.js:
--------------------------------------------------------------------------------
1 | (function($){
2 |
3 | $.mvc({
4 | "hijax:a" : [{
5 | id:"#example-hash-routes",
6 | active:false,
7 | filter:"[href*=#example]",
8 | hijaxMap:
9 | [{urls:"page/|:id|$", controller:"#pagesController"}]
10 | }]
11 | });
12 |
13 | })(jQuery);
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/1/app/controllers/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $C){
3 |
4 | $C.Pages = function(options){
5 | $.extend(true, this, options);
6 | };
7 |
8 | $.extend($C.Pages.prototype, {
9 | handle:function(event){
10 | var id = event.params('id');
11 | alert('page '+id);
12 | }
13 | });
14 |
15 | })(jQuery, Example.Controllers);
--------------------------------------------------------------------------------
/apps/tutorial/1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Hello World!
15 |
16 |
1 |
17 |
2 |
18 |
3 |
19 |
4 |
20 |
5
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/apps/tutorial/2/.tmp_index.html.40903~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/2/.tmp_index.html.811~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Hello World!
15 |
16 |
1 |
17 |
2 |
18 |
3 |
19 |
4 |
20 |
5
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/apps/tutorial/2/.tmp_index.html.82934~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/2/app/boot/client.js:
--------------------------------------------------------------------------------
1 | // - BOOT THE APP -
2 | jQuery.noConflict();
3 | (function($){
4 |
5 | $(document).ready(function(){
6 | $.boot();
7 | });
8 |
9 | })(jQuery);
10 |
--------------------------------------------------------------------------------
/apps/tutorial/2/app/configs/config.js:
--------------------------------------------------------------------------------
1 | var Example = {
2 | Models:{},
3 | Views:{},
4 | Controllers:{}
5 | };
6 |
7 | (function($){
8 |
9 | $.scan([
10 | "Example.Models",
11 | "Example.Views",
12 | "Example.Controllers"
13 | ]);
14 |
15 | })(jQuery);
16 |
17 |
--------------------------------------------------------------------------------
/apps/tutorial/2/app/configs/logging.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 |
4 | $.logging([
5 | { category:"Example", level:"INFO" },
6 | { category:"Example.Models", level:"DEBUG" },
7 | { category:"Example.Views", level:"DEBUG" },
8 | { category:"Example.Controllers", level:"DEBUG" },
9 | { category:"Claypool", level:"INFO" },
10 | { category:"Claypool.MVC", level:"INFO" },
11 | { category:"root", level:"WARN" }
12 | ]);
13 |
14 | })(jQuery);
15 |
16 |
--------------------------------------------------------------------------------
/apps/tutorial/2/app/configs/routes.js:
--------------------------------------------------------------------------------
1 | (function($){
2 |
3 | $.mvc({
4 | "hijax:a" : [{
5 | id:"#example-hash-routes",
6 | active:false,
7 | filter:"[href*=#example]",
8 | hijaxMap:
9 | [{urls:"page/|:id|$", controller:"#pagesController"}]
10 | }]
11 | });
12 |
13 | })(jQuery);
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/2/app/controllers/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $C){
3 |
4 | var log;
5 |
6 | $C.Pages = function(options){
7 | $.extend(true, this, options);
8 | log = $.logger('Example.Controllers.Pages');
9 | };
10 |
11 | $.extend($C.Pages.prototype, {
12 | handle:function(event){
13 | var id = event.params('id');
14 | log.debug('got id %s', id);
15 | }
16 | });
17 |
18 | })(jQuery, Example.Controllers);
--------------------------------------------------------------------------------
/apps/tutorial/2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | Hello World!
16 |
17 |
1 |
18 |
2 |
19 |
3 |
20 |
4 |
21 |
5
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/apps/tutorial/3/.tmp_index.html.40903~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/3/.tmp_index.html.63276~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | Hello World!
16 |
17 |
1 |
18 |
2 |
19 |
3 |
20 |
4 |
21 |
5
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/apps/tutorial/3/.tmp_index.html.811~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Hello World!
15 |
16 |
1 |
17 |
2 |
18 |
3 |
19 |
4 |
20 |
5
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/apps/tutorial/3/.tmp_index.html.82934~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/3/app/boot/client.js:
--------------------------------------------------------------------------------
1 | // - BOOT THE APP -
2 | jQuery.noConflict();
3 | (function($){
4 |
5 | $(document).ready(function(){
6 | $.boot();
7 | });
8 |
9 | })(jQuery);
10 |
--------------------------------------------------------------------------------
/apps/tutorial/3/app/configs/config.js:
--------------------------------------------------------------------------------
1 | var Example = {
2 | Models:{},
3 | Views:{},
4 | Controllers:{}
5 | };
6 |
7 | (function($){
8 |
9 | $.scan([
10 | "Example.Models",
11 | "Example.Views",
12 | "Example.Controllers"
13 | ]);
14 |
15 | })(jQuery);
16 |
17 |
--------------------------------------------------------------------------------
/apps/tutorial/3/app/configs/logging.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 |
4 | $.logging([
5 | { category:"Example", level:"INFO" },
6 | { category:"Example.Models", level:"DEBUG" },
7 | { category:"Example.Views", level:"DEBUG" },
8 | { category:"Example.Controllers", level:"DEBUG" },
9 | { category:"Claypool", level:"INFO" },
10 | { category:"Claypool.MVC", level:"INFO" },
11 | { category:"root", level:"WARN" }
12 | ]);
13 |
14 | })(jQuery);
15 |
16 |
--------------------------------------------------------------------------------
/apps/tutorial/3/app/configs/routes.js:
--------------------------------------------------------------------------------
1 | (function($){
2 |
3 | $.mvc({
4 | "hijax:a" : [{
5 | id:"#example-hash-routes",
6 | active:false,
7 | filter:"[href*=#example]",
8 | hijaxMap:
9 | [{urls:"page/|:id|$", controller:"#pagesController"}]
10 | }]
11 | });
12 |
13 | })(jQuery);
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/3/app/controllers/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $C){
3 |
4 | var log;
5 |
6 | $C.Pages = function(options){
7 | $.extend(true, this, options);
8 | log = $.logger('Example.Controllers.Pages');
9 | };
10 |
11 | $.extend($C.Pages.prototype, {
12 | handle:function(event){
13 | var id = event.params('id');
14 | log.debug('got id %s', id);
15 | event.m({
16 | index:id,
17 | title:$.titled(3, false),
18 | description:$.paragraphs(3, false).join('\n')
19 | }).render();
20 | }
21 | });
22 |
23 | })(jQuery, Example.Controllers);
--------------------------------------------------------------------------------
/apps/tutorial/3/app/views/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $V){
3 |
4 | var log;
5 |
6 | $V.Pages = function(options){
7 | $.extend(true, this, options);
8 | log = $.logger('Example.Views.Pages');
9 | };
10 |
11 | $.extend($V.Pages.prototype, {
12 | update:function(model){
13 | log.debug('updating page %s', model.index);
14 | $('#index').text(model.index);
15 | $('#title', this).text(model.title);
16 | $('#description', this).text(model.description);
17 | }
18 | });
19 |
20 | })(jQuery, Example.Views);
--------------------------------------------------------------------------------
/apps/tutorial/3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | Hello World!
18 |
19 |
1 |
20 |
2 |
21 |
3 |
22 |
4 |
23 |
5
24 |
title
25 |
Page (? )
26 |
27 | description
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/apps/tutorial/4/.tmp_index.html.40903~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/4/.tmp_index.html.63276~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | Hello World!
16 |
17 |
1 |
18 |
2 |
19 |
3 |
20 |
4 |
21 |
5
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/apps/tutorial/4/.tmp_index.html.811~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Hello World!
15 |
16 |
1 |
17 |
2 |
18 |
3 |
19 |
4 |
20 |
5
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/apps/tutorial/4/.tmp_index.html.82934~:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Hello World!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/4/app/boot/client.js:
--------------------------------------------------------------------------------
1 | // - BOOT THE APP -
2 | jQuery.noConflict();
3 | (function($){
4 |
5 | $(document).ready(function(){
6 | $.boot();
7 | });
8 |
9 | })(jQuery);
10 |
--------------------------------------------------------------------------------
/apps/tutorial/4/app/configs/config.js:
--------------------------------------------------------------------------------
1 | var Example = {
2 | Models:{},
3 | Views:{},
4 | Controllers:{}
5 | };
6 |
7 | (function($){
8 |
9 | $.scan([
10 | "Example.Models",
11 | "Example.Views",
12 | "Example.Controllers"
13 | ]);
14 |
15 | })(jQuery);
16 |
17 |
--------------------------------------------------------------------------------
/apps/tutorial/4/app/configs/logging.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 |
4 | $.logging([
5 | { category:"Example", level:"INFO" },
6 | { category:"Example.Models", level:"DEBUG" },
7 | { category:"Example.Views", level:"DEBUG" },
8 | { category:"Example.Controllers", level:"DEBUG" },
9 | { category:"Claypool", level:"INFO" },
10 | { category:"Claypool.MVC", level:"INFO" },
11 | { category:"root", level:"WARN" }
12 | ]);
13 |
14 | })(jQuery);
15 |
16 |
--------------------------------------------------------------------------------
/apps/tutorial/4/app/configs/routes.js:
--------------------------------------------------------------------------------
1 | (function($){
2 |
3 | $.mvc({
4 | "hijax:a" : [{
5 | id:"#example-hash-routes",
6 | active:false,
7 | filter:"[href*=#example]",
8 | hijaxMap:
9 | [{urls:"page/|:id|$", controller:"#pagesController"}]
10 | }]
11 | });
12 |
13 | })(jQuery);
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/4/app/controllers/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $C){
3 |
4 | var log,
5 | Pages;
6 |
7 | $C.Pages = function(options){
8 | $.extend(true, this, options);
9 | log = $.logger('Example.Controllers.Pages');
10 | Pages = $.$('#pagesModel');
11 | };
12 |
13 | $.extend($C.Pages.prototype, {
14 | handle:function(event){
15 | var id = event.params('id');
16 | log.debug('got id %s', id);
17 | Pages.get(id,{
18 | success: function(page){
19 | event.m({
20 | index:id,
21 | title:page.title,
22 | description:page.description
23 | }).render();
24 | }
25 | });
26 |
27 | }
28 | });
29 |
30 | })(jQuery, Example.Controllers);
--------------------------------------------------------------------------------
/apps/tutorial/4/app/models/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $M){
3 |
4 | var log,
5 | cache;
6 |
7 | $M.Pages = function(options){
8 | $.extend(true, this, options);
9 | log = $.logger('Example.Models.Pages');
10 | cache = {};
11 | };
12 |
13 | $.extend($M.Pages.prototype, {
14 | get:function(id, options){
15 | log.debug('getting page %s', id);
16 | if(!cache[id]){
17 | $.ajax({
18 | url:'./data/'+id+'.json',
19 | dataType:'json',
20 | success:function(page){
21 | log.debug('got page %s', id);
22 | cache[id] = page;
23 | if(options && options.success ){
24 | options.success(page);
25 | }
26 | },
27 | error:function(xhr,status,e){
28 | log.error('error getting page %s', id).
29 | exception(e);
30 | if(options && options.error){
31 | options.error({
32 | status: status,
33 | msg: 'network error'+e
34 | });
35 | }
36 | }
37 | });
38 | }else{
39 | log.debug('got cached page %s', id);
40 | if(options && options.success){
41 | options.success(cache[id]);
42 | }
43 | }
44 | return this;
45 | }
46 | });
47 |
48 | })(jQuery, Example.Models);
--------------------------------------------------------------------------------
/apps/tutorial/4/app/views/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $V){
3 |
4 | var log;
5 |
6 | $V.Pages = function(options){
7 | $.extend(true, this, options);
8 | log = $.logger('Example.Views.Pages');
9 | };
10 |
11 | $.extend($V.Pages.prototype, {
12 | update:function(model){
13 | log.debug('updating page %s', model.index);
14 | $('#index').text(model.index);
15 | $('#title', this).text(model.title);
16 | $('#description', this).text(model.description);
17 | }
18 | });
19 |
20 | })(jQuery, Example.Views);
--------------------------------------------------------------------------------
/apps/tutorial/4/data/1.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a pig.",
3 | "description":"A pig rolls in the mud and says, 'Oink, oink'."
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/4/data/2.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a cow.",
3 | "description":"A cow eats grass all day and says 'Moo, moo'"
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/4/data/3.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a turkey",
3 | "description":"A turkey waddles around saying 'Gobble, gobble'."
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/4/data/4.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a horse.",
3 | "description":"A horse plays in the field and says 'Nay, nay'."
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/4/data/5.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a dinosaur.",
3 | "description":"It eats the pig, cow, turkey, and horse and says, 'Yum yum'"
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | Hello World!
19 |
20 |
1 |
21 |
2 |
22 |
3 |
23 |
4 |
24 |
5
25 |
title
26 |
Page (? )
27 |
28 | description
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/apps/tutorial/5/app/boot/client.js:
--------------------------------------------------------------------------------
1 | // - BOOT THE APP -
2 | jQuery.noConflict();
3 | (function($){
4 |
5 | //A static logger for any initialization routines we might add here
6 | var log = $.logger("Example");
7 |
8 | //The environments are described in environments.js
9 | try{
10 | $.env('defaults', "dev.client");
11 | }catch(e){
12 | log.error("Environmental selection is invalid!").exception(e);
13 | }
14 |
15 | $(document).ready(function(){
16 | $.boot();
17 | });
18 |
19 | })(jQuery);
20 |
--------------------------------------------------------------------------------
/apps/tutorial/5/app/configs/config.js:
--------------------------------------------------------------------------------
1 | var Example = {
2 | Models:{},
3 | Views:{},
4 | Controllers:{}
5 | };
6 |
7 | (function($){
8 |
9 | $.scan([
10 | "Example.Models",
11 | "Example.Views",
12 | "Example.Controllers"
13 | ]);
14 |
15 | })(jQuery);
16 |
17 |
--------------------------------------------------------------------------------
/apps/tutorial/5/app/configs/environments.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 |
4 | $.env({
5 | defaults:{
6 | version:'0.0.0'
7 | },
8 | dev:{
9 | client:{
10 | pages:'/apps/tutorial/5/data/'
11 | }
12 | },
13 | test:{
14 | client:{
15 | pages:'/jquery-claypool/apps/tutorial/5/data/'
16 | }
17 | },
18 | qa:{
19 | client:{
20 | pages:'/jquery-claypool-qa/apps/tutorial/5/data/'
21 | }
22 | },
23 | prod:{
24 | client:{
25 | pages:'/data/'
26 | }
27 | }
28 | });
29 |
30 | })(jQuery);
31 |
32 |
--------------------------------------------------------------------------------
/apps/tutorial/5/app/configs/logging.js:
--------------------------------------------------------------------------------
1 |
2 | (function($){
3 |
4 | $.logging([
5 | { category:"Example", level:"INFO" },
6 | { category:"Example.Models", level:"DEBUG" },
7 | { category:"Example.Views", level:"DEBUG" },
8 | { category:"Example.Controllers", level:"DEBUG" },
9 | { category:"Claypool", level:"INFO" },
10 | { category:"Claypool.MVC", level:"INFO" },
11 | { category:"root", level:"WARN" }
12 | ]);
13 |
14 | })(jQuery);
15 |
16 |
--------------------------------------------------------------------------------
/apps/tutorial/5/app/configs/routes.js:
--------------------------------------------------------------------------------
1 | (function($){
2 |
3 | $.mvc({
4 | "hijax:a" : [{
5 | id:"#example-hash-routes",
6 | active:false,
7 | filter:"[href*=#example]",
8 | hijaxMap:
9 | [{urls:"page/|:id|$", controller:"#pagesController"}]
10 | }]
11 | });
12 |
13 | })(jQuery);
14 |
15 |
--------------------------------------------------------------------------------
/apps/tutorial/5/app/controllers/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $C){
3 |
4 | var log,
5 | Pages;
6 |
7 | $C.Pages = function(options){
8 | $.extend(true, this, options);
9 | log = $.logger('Example.Controllers.Pages');
10 | Pages = $.$('#pagesModel');
11 | };
12 |
13 | $.extend($C.Pages.prototype, {
14 | handle:function(event){
15 | var id = event.params('id');
16 | log.debug('got id %s', id);
17 | Pages.get(id,{
18 | success: function(page){
19 | event.m({
20 | index:id,
21 | title:page.title,
22 | description:page.description
23 | }).render();
24 | }
25 | });
26 |
27 | }
28 | });
29 |
30 | })(jQuery, Example.Controllers);
--------------------------------------------------------------------------------
/apps/tutorial/5/app/models/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $M){
3 |
4 | var log,
5 | cache;
6 |
7 | $M.Pages = function(options){
8 | $.extend(true, this, options);
9 | log = $.logger('Example.Models.Pages');
10 | cache = {};
11 | };
12 |
13 | $.extend($M.Pages.prototype, {
14 | get:function(id, options){
15 | log.debug('getting page %s', id);
16 | if(!cache[id]){
17 | $.ajax({
18 | url:$.env('pages')+id+'.json',
19 | dataType:'json',
20 | success:function(page){
21 | log.debug('got page %s', id);
22 | cache[id] = page;
23 | if(options && options.success ){
24 | options.success(page);
25 | }
26 | },
27 | error:function(xhr,status,e){
28 | log.error('error getting page %s', id).
29 | exception(e);
30 | if(options && options.error){
31 | options.error({
32 | status: status,
33 | msg: 'network error'+e
34 | });
35 | }
36 | }
37 | });
38 | }else{
39 | log.debug('got cached page %s', id);
40 | if(options && options.success){
41 | options.success(cache[id]);
42 | }
43 | }
44 | return this;
45 | }
46 | });
47 |
48 | })(jQuery, Example.Models);
--------------------------------------------------------------------------------
/apps/tutorial/5/app/views/pages.js:
--------------------------------------------------------------------------------
1 |
2 | (function($, $V){
3 |
4 | var log;
5 |
6 | $V.Pages = function(options){
7 | $.extend(true, this, options);
8 | log = $.logger('Example.Views.Pages');
9 | };
10 |
11 | $.extend($V.Pages.prototype, {
12 | update:function(model){
13 | log.debug('updating page %s', model.index);
14 | $('#index').text(model.index);
15 | $('#title', this).text(model.title);
16 | $('#description', this).text(model.description);
17 | }
18 | });
19 |
20 | })(jQuery, Example.Views);
--------------------------------------------------------------------------------
/apps/tutorial/5/data/1.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a pig.",
3 | "description":"A pig rolls in the mud and says, 'Oink, oink'."
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/5/data/2.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a cow.",
3 | "description":"A cow eats grass all day and says 'Moo, moo'"
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/5/data/3.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a turkey",
3 | "description":"A turkey waddles around saying 'Gobble, gobble'."
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/5/data/4.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a horse.",
3 | "description":"A horse plays in the field and says 'Nay, nay'."
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/5/data/5.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"This is a dinosaur.",
3 | "description":"It eats the pig, cow, turkey, and horse and says, 'Yum yum'"
4 | }
5 |
--------------------------------------------------------------------------------
/apps/tutorial/5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | First jQuery-Claypool App
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Hello World!
20 |
21 |
1 |
22 |
2 |
23 |
3 |
24 |
4 |
25 |
5
26 |
title
27 |
Page (? )
28 |
29 | description
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/build.properties:
--------------------------------------------------------------------------------
1 |
2 | PROJECT: jquery.claypool
3 | BUILD_MAJOR: 1
4 | BUILD_MINOR: 2
5 | BUILD_ID: 9
6 | BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
7 | VERSION: ${BUILD} ${DSTAMP}
8 |
9 |
10 |
--------------------------------------------------------------------------------
/css/blueprint/ie.css:
--------------------------------------------------------------------------------
1 | /* -----------------------------------------------------------------------
2 |
3 |
4 | Blueprint CSS Framework 0.8
5 | http://blueprintcss.org
6 |
7 | * Copyright (c) 2007-Present. See LICENSE for more info.
8 | * See README for instructions on how to use Blueprint.
9 | * For credits and origins, see AUTHORS.
10 | * This is a compressed file. See the sources in the 'src' directory.
11 |
12 | ----------------------------------------------------------------------- */
13 |
14 | /* ie.css */
15 | body {text-align:center;}
16 | .container {text-align:left;}
17 | * html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {overflow-x:hidden;}
18 | * html legend {margin:-18px -8px 16px 0;padding:0;}
19 | ol {margin-left:2em;}
20 | sup {vertical-align:text-top;}
21 | sub {vertical-align:text-bottom;}
22 | html>body p code {*white-space:normal;}
23 | hr {margin:-8px auto 11px;}
24 | .clearfix, .container {display:inline-block;}
25 | * html .clearfix, * html .container {height:1%;}
26 | fieldset {padding-top:0;}
--------------------------------------------------------------------------------
/css/blueprint/plugins/buttons/icons/cross.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/buttons/icons/cross.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/buttons/icons/key.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/buttons/icons/key.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/buttons/icons/tick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/buttons/icons/tick.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/buttons/readme.txt:
--------------------------------------------------------------------------------
1 | Buttons
2 |
3 | * Gives you great looking CSS buttons, for both and .
4 | * Demo: particletree.com/features/rediscovering-the-button-element
5 |
6 |
7 | Credits
8 | ----------------------------------------------------------------
9 |
10 | * Created by Kevin Hale [particletree.com]
11 | * Adapted for Blueprint by Olav Bjorkoy [bjorkoy.com]
12 |
13 |
14 | Usage
15 | ----------------------------------------------------------------
16 |
17 | 1) Add this plugin to lib/settings.yml.
18 | See compress.rb for instructions.
19 |
20 | 2) Use the following HTML code to place the buttons on your site:
21 |
22 |
23 | Save
24 |
25 |
26 |
27 | Change Password
28 |
29 |
30 |
31 | Cancel
32 |
33 |
--------------------------------------------------------------------------------
/css/blueprint/plugins/fancy-type/readme.txt:
--------------------------------------------------------------------------------
1 | Fancy Type
2 |
3 | * Gives you classes to use if you'd like some
4 | extra fancy typography.
5 |
6 | Credits and instructions are specified above each class
7 | in the fancy-type.css file in this directory.
8 |
9 |
10 | Usage
11 | ----------------------------------------------------------------
12 |
13 | 1) Add this plugin to lib/settings.yml.
14 | See compress.rb for instructions.
15 |
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/icons/doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/link-icons/icons/doc.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/icons/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/link-icons/icons/email.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/icons/external.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/link-icons/icons/external.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/icons/feed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/link-icons/icons/feed.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/icons/im.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/link-icons/icons/im.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/icons/pdf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/link-icons/icons/pdf.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/icons/visited.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/link-icons/icons/visited.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/icons/xls.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/link-icons/icons/xls.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/readme.txt:
--------------------------------------------------------------------------------
1 | Link Icons
2 | * Icons for links based on protocol or file type.
3 |
4 | This is not supported in IE versions < 7.
5 |
6 |
7 | Credits
8 | ----------------------------------------------------------------
9 |
10 | * Marc Morgan
11 | * Olav Bjorkoy [bjorkoy.com]
12 |
13 |
14 | Usage
15 | ----------------------------------------------------------------
16 |
17 | 1) Add this line to your HTML:
18 |
--------------------------------------------------------------------------------
/css/blueprint/plugins/link-icons/screen.css:
--------------------------------------------------------------------------------
1 | /* --------------------------------------------------------------
2 |
3 | link-icons.css
4 | * Icons for links based on protocol or file type.
5 |
6 | See the Readme file in this folder for additional instructions.
7 |
8 | -------------------------------------------------------------- */
9 |
10 | /* Use this class if a link gets an icon when it shouldn't. */
11 | body a.noicon {
12 | background:transparent none !important;
13 | padding:0 !important;
14 | margin:0 !important;
15 | }
16 |
17 | /* Make sure the icons are not cut */
18 | a[href^="http:"], a[href^="mailto:"], a[href^="http:"]:visited,
19 | a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"], a[href$=".rss"],
20 | a[href$=".rdf"], a[href^="aim:"] {
21 | padding:2px 22px 2px 0;
22 | margin:-2px 0;
23 | background-repeat: no-repeat;
24 | background-position: right center;
25 | }
26 |
27 | /* External links */
28 | a[href^="http:"] { background-image: url(icons/external.png); }
29 | a[href^="mailto:"] { background-image: url(icons/email.png); }
30 | a[href^="http:"]:visited { background-image: url(icons/visited.png); }
31 |
32 | /* Files */
33 | a[href$=".pdf"] { background-image: url(icons/pdf.png); }
34 | a[href$=".doc"] { background-image: url(icons/doc.png); }
35 | a[href$=".xls"] { background-image: url(icons/xls.png); }
36 |
37 | /* Misc */
38 | a[href$=".rss"],
39 | a[href$=".rdf"] { background-image: url(icons/feed.png); }
40 | a[href^="aim:"] { background-image: url(icons/im.png); }
--------------------------------------------------------------------------------
/css/blueprint/plugins/liquidgrid/README:
--------------------------------------------------------------------------------
1 | README
2 |
3 | http://www.ixda.org/discuss.php?post=23298
4 |
--------------------------------------------------------------------------------
/css/blueprint/plugins/rtl/readme.txt:
--------------------------------------------------------------------------------
1 | RTL
2 | * Mirrors Blueprint, so it can be used with Right-to-Left languages.
3 |
4 | By Ran Yaniv Hartstein, ranh.co.il
5 |
6 | Usage
7 | ----------------------------------------------------------------
8 |
9 | 1) Add this line to your HTML:
10 |
--------------------------------------------------------------------------------
/css/blueprint/plugins/silksprite/__MACOSX/sprites/._.DS_Store:
--------------------------------------------------------------------------------
1 | 2 R @
--------------------------------------------------------------------------------
/css/blueprint/plugins/silksprite/__MACOSX/sprites/._sprite.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/silksprite/__MACOSX/sprites/._sprite.css
--------------------------------------------------------------------------------
/css/blueprint/plugins/silksprite/__MACOSX/sprites/._sprites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/silksprite/__MACOSX/sprites/._sprites.png
--------------------------------------------------------------------------------
/css/blueprint/plugins/silksprite/__MACOSX/sprites/._test.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/silksprite/__MACOSX/sprites/._test.htm
--------------------------------------------------------------------------------
/css/blueprint/plugins/silksprite/sprites/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/silksprite/sprites/.DS_Store
--------------------------------------------------------------------------------
/css/blueprint/plugins/silksprite/sprites/sprites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/plugins/silksprite/sprites/sprites.png
--------------------------------------------------------------------------------
/css/blueprint/print.css:
--------------------------------------------------------------------------------
1 | /* -----------------------------------------------------------------------
2 |
3 |
4 | Blueprint CSS Framework 0.8
5 | http://blueprintcss.org
6 |
7 | * Copyright (c) 2007-Present. See LICENSE for more info.
8 | * See README for instructions on how to use Blueprint.
9 | * For credits and origins, see AUTHORS.
10 | * This is a compressed file. See the sources in the 'src' directory.
11 |
12 | ----------------------------------------------------------------------- */
13 |
14 | /* print.css */
15 | body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;}
16 | .container {background:none;}
17 | hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;}
18 | hr.space {background:#fff;color:#fff;}
19 | h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;}
20 | code {font:.9em "Courier New", Monaco, Courier, monospace;}
21 | img {float:left;margin:1.5em 1.5em 1.5em 0;}
22 | a img {border:none;}
23 | p img.top {margin-top:0;}
24 | blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;}
25 | .small {font-size:.9em;}
26 | .large {font-size:1.1em;}
27 | .quiet {color:#999;}
28 | .hide {display:none;}
29 | a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;}
30 | a:link:after, a:visited:after {content:" (" attr(href) ") ";font-size:90%;}
--------------------------------------------------------------------------------
/css/blueprint/src/forms.css:
--------------------------------------------------------------------------------
1 | /* --------------------------------------------------------------
2 |
3 | forms.css
4 | * Sets up some default styling for forms
5 | * Gives you classes to enhance your forms
6 |
7 | Usage:
8 | * For text fields, use class .title or .text
9 |
10 | -------------------------------------------------------------- */
11 |
12 | label { font-weight: bold; }
13 | fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
14 | legend { font-weight: bold; font-size:1.2em; }
15 |
16 |
17 | /* Form fields
18 | -------------------------------------------------------------- */
19 |
20 | input.text, input.title,
21 | textarea, select {
22 | margin:0.5em 0;
23 | border:1px solid #bbb;
24 | }
25 |
26 | input.text:focus, input.title:focus,
27 | textarea:focus, select:focus {
28 | border:1px solid #666;
29 | }
30 |
31 | input.text,
32 | input.title { width: 300px; padding:5px; }
33 | input.title { font-size:1.5em; }
34 | textarea { width: 390px; height: 250px; padding:5px; }
35 |
36 |
37 | /* Success, notice and error boxes
38 | -------------------------------------------------------------- */
39 |
40 | .error,
41 | .notice,
42 | .success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; }
43 |
44 | .error { background: #FBE3E4; color: #8a1f11; border-color: #FBC2C4; }
45 | .notice { background: #FFF6BF; color: #514721; border-color: #FFD324; }
46 | .success { background: #E6EFC2; color: #264409; border-color: #C6D880; }
47 | .error a { color: #8a1f11; }
48 | .notice a { color: #514721; }
49 | .success a { color: #264409; }
50 |
--------------------------------------------------------------------------------
/css/blueprint/src/grid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/css/blueprint/src/grid.png
--------------------------------------------------------------------------------
/css/blueprint/src/ie.css:
--------------------------------------------------------------------------------
1 | /* --------------------------------------------------------------
2 |
3 | ie.css
4 |
5 | Contains every hack for Internet Explorer,
6 | so that our core files stay sweet and nimble.
7 |
8 | -------------------------------------------------------------- */
9 |
10 | /* Make sure the layout is centered in IE5 */
11 | body { text-align: center; }
12 | .container { text-align: left; }
13 |
14 | /* Fixes IE margin bugs */
15 | * html .column, * html div.span-1, * html div.span-2,
16 | * html div.span-3, * html div.span-4, * html div.span-5,
17 | * html div.span-6, * html div.span-7, * html div.span-8,
18 | * html div.span-9, * html div.span-10, * html div.span-11,
19 | * html div.span-12, * html div.span-13, * html div.span-14,
20 | * html div.span-15, * html div.span-16, * html div.span-17,
21 | * html div.span-18, * html div.span-19, * html div.span-20,
22 | * html div.span-21, * html div.span-22, * html div.span-23,
23 | * html div.span-24 { overflow-x: hidden; }
24 |
25 |
26 | /* Elements
27 | -------------------------------------------------------------- */
28 |
29 | /* Fixes incorrect styling of legend in IE6. */
30 | * html legend { margin:-18px -8px 16px 0; padding:0; }
31 |
32 | /* Fixes incorrect placement of ol numbers in IE6/7. */
33 | ol { margin-left:2em; }
34 |
35 | /* Fixes wrong line-height on sup/sub in IE. */
36 | sup { vertical-align: text-top; }
37 | sub { vertical-align: text-bottom; }
38 |
39 | /* Fixes IE7 missing wrapping of code elements. */
40 | html>body p code { *white-space: normal; }
41 |
42 | /* IE 6&7 has problems with setting proper margins. */
43 | hr { margin: -8px auto 11px; }
44 |
45 |
46 | /* Clearing
47 | -------------------------------------------------------------- */
48 |
49 | /* Makes clearfix actually work in IE */
50 | .clearfix, .container {display: inline-block;}
51 | * html .clearfix,
52 | * html .container {height: 1%;}
53 |
54 |
55 | /* Forms
56 | -------------------------------------------------------------- */
57 |
58 | /* Fixes padding on fieldset */
59 | fieldset {padding-top: 0;}
--------------------------------------------------------------------------------
/css/blueprint/src/reset.css:
--------------------------------------------------------------------------------
1 | /* --------------------------------------------------------------
2 |
3 | reset.css
4 | * Resets default browser CSS.
5 |
6 | -------------------------------------------------------------- */
7 |
8 | html, body, div, span, object, iframe,
9 | h1, h2, h3, h4, h5, h6, p, blockquote, pre,
10 | a, abbr, acronym, address, code,
11 | del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
12 | fieldset, form, label, legend,
13 | table, caption, tbody, tfoot, thead, tr, th, td {
14 | margin: 0;
15 | padding: 0;
16 | border: 0;
17 | font-weight: inherit;
18 | font-style: inherit;
19 | font-size: 100%;
20 | font-family: inherit;
21 | vertical-align: baseline;
22 | }
23 |
24 | body {
25 | line-height: 1.5;
26 | }
27 |
28 | /* Tables still need 'cellspacing="0"' in the markup. */
29 | table { border-collapse: separate; border-spacing: 0; }
30 | caption, th, td { text-align: left; font-weight: normal; }
31 | table, td, th { vertical-align: middle; }
32 |
33 | /* Remove possible quote marks (") from , . */
34 | blockquote:before, blockquote:after, q:before, q:after { content: ""; }
35 | blockquote, q { quotes: "" ""; }
36 |
37 | /* Remove annoying border on linked images. */
38 | a img { border: none; }
39 |
--------------------------------------------------------------------------------
/css/sharethis.css:
--------------------------------------------------------------------------------
1 | a.stbutton{padding:1px 5px 5px 22px;}.stbuttontext{line-height:17px;}.stico_default{background:url(http://w.sharethis.com/images/share-icon-16x16.png?CXNID=1000014.0NXC) no-repeat scroll 0 0!important;background:url(http://w.sharethis.com/images/share-icon-16x16.png?CXNID=1000014.0NXC) no-repeat scroll 0 0;}.stico_rotate{background:url(http://w.sharethis.com/images/rotating-icon.gif?CXNID=1000014.0NXC) no-repeat scroll 0 0!important;background:url(http://w.sharethis.com/images/rotating-icon.gif?CXNID=1000014.0NXC) no-repeat scroll 0 0;}.stwrapper{position:absolute;width:354px;z-index:1000000;margin:0;padding:0;top:0;left:0;visibility:hidden;}.stframe{position:absolute;z-index:1000020;left:0;top:0;}.stclose{cursor:pointer;z-index:1000030;position:absolute;text-align:right;top:10px;right:9px;text-decoration:none;font-family:Helvetica,Verdana,Arial,sans-serif;font-size:12px;}
--------------------------------------------------------------------------------
/data/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/data/.DS_Store
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/plugins/developer/guid.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/plugins/developer/guid',
4 | 'version':'1.0.x',
5 | 'label':'guid',
6 | 'plugin':'$.guid',
7 | 'sections':[{
8 | /**************************************************/
9 | 'label':'usage',
10 | 'description': <>
11 |
12 |
13 | Creates a globally unique identifier
14 |
15 | The guid plugin function is a static function on the jQuery namespace
16 | that provides an effectively unique identifier across time-space.
17 | It is similar to the jQuery expando but attempts to be unique across
18 | browser instances without a server session id.
19 |
20 |
21 | >
22 | },{
23 | /**************************************************/
24 | 'label':'options',
25 | 'description':<>
26 |
27 | No options
28 |
29 | >
30 | },{
31 | /**************************************************/
32 | 'label':'examples',
33 | 'description':<>
34 | Creates a permutationally globally unique string.
35 | $.guid();
36 | >
37 | }]
38 |
39 |
40 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/plugins/developer/resolve.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/plugins/developer/resolve',
4 | 'version':'1.0.x',
5 | 'label':'resolve',
6 | 'plugin':'$.resolve',
7 | 'sections':[{
8 | /**************************************************/
9 | 'label':'usage',
10 | 'description': <>
11 |
12 | Resolves a string into object.
13 | This method allows us to reference classes before they are loaded
14 | by simply using the string name in configurations. $.resolve
15 | simply walks down the namespace and returns null if the name
16 | can't be resolved.
17 |
18 | >
19 | },{
20 | /**************************************************/
21 | 'label':'options',
22 | 'description':<>
23 |
24 |
25 | id String
26 |
27 | A dot-delimited string.
28 |
29 | >
30 | },{
31 | /**************************************************/
32 | 'label':'examples',
33 | 'description':<>
34 |
35 | Returns the class MyApp.Models.User. if any of the names don't
36 | exist while resolving, it simply returns null.
37 |
38 | $.resolve('MyApp.Models.User');
39 | >
40 | }]
41 |
42 |
43 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/plugins/user/boot.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/plugins/user/boot',
4 | 'version':'1.0.x',
5 | 'location':['app/boot/client.js','app/boot/server.js'],
6 | 'label':'boot',
7 | 'plugin':'$.boot',
8 | 'sections':[{
9 | /**************************************************/
10 | 'label':'usage',
11 | 'description': <>
12 |
13 |
14 | Triggers the application framework to initialize, reading in all configurations and scan paths.
15 |
16 | This plugin provides an entry point to the initialization of the application similar to the way jQuery.ready provides an entry point to the the html dom being ready for plugins. The boot process can be tuned via either client.js or server.js located in app/boot/
17 |
18 | >
19 | },{
20 | /**************************************************/
21 | 'label':'options',
22 | 'description':<>
23 |
24 |
callback Function A callback to be applied after the event ApplicationInitialized and before the event ApplicationLoaded
25 |
26 | >
27 | },{
28 | /**************************************************/
29 | 'label':'examples',
30 | 'description':<>
31 |
32 | This plugin method is usually used inside $(document).ready and causes jquery.claypool to start its magic.
33 |
34 |
35 | $.boot();
36 |
37 | Adding a post-boot callback
38 |
39 |
40 | $.boot(function(){
41 | //do something
42 | });
43 |
44 | >
45 | }]
46 |
47 |
48 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/plugins/user/proxy.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/plugins/user/proxy',
4 | 'version':'1.0.x',
5 | 'location':'app/configs/proxy.js',
6 | 'label':'proxy',
7 | 'plugin':'$.proxy',
8 | 'sections':[{
9 | /**************************************************/
10 | 'label':'usage',
11 | 'description': <>
12 |
13 | {_.paragraph()}
14 |
15 | .
16 | {_.words(2, false)}
17 |
18 |
19 | {_.sentence()}
20 |
21 | >
22 | },{
23 | /**************************************************/
24 | 'label':'options',
25 | 'description':<>
26 |
27 | {_.paragraph()}
28 |
29 |
30 | .
31 | {_.words(2, false)}
32 |
33 |
34 |
35 |
36 | {_.sentence()}
37 |
38 | >
39 | },{
40 | /**************************************************/
41 | 'label':'examples',
42 | 'description':<>
43 |
44 | {_.paragraph()}
45 |
46 |
47 | .
48 | {_.words(2, false)}
49 |
50 |
51 |
52 |
53 | {_.sentence()}
54 |
55 | >
56 | }]
57 |
58 |
59 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/plugins/user/request.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/plugins/user/request',
4 | 'version':'1.0.x',
5 | 'location':['app/services/*'],
6 | 'label':'requests',
7 | 'sections':[{
8 | /**************************************************/
9 | 'label':'usage',
10 | 'description': <>
11 |
12 | {_.paragraph()}
13 |
14 | .
15 | {_.words(2, false)}
16 |
17 |
18 | {_.sentence()}
19 |
20 | >
21 | },{
22 | /**************************************************/
23 | 'label':'options',
24 | 'description':<>
25 |
26 | {_.paragraph()}
27 |
28 |
29 | .
30 | {_.words(2, false)}
31 |
32 |
33 |
34 |
35 | {_.sentence()}
36 |
37 | >
38 | },{
39 | /**************************************************/
40 | 'label':'examples',
41 | 'description':<>
42 |
43 | {_.paragraph()}
44 |
45 |
46 | .
47 | {_.words(2, false)}
48 |
49 |
50 |
51 |
52 | {_.sentence()}
53 |
54 | >
55 | }]
56 |
57 |
58 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/plugins/user/response.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/plugins/user/response',
4 | 'version':'1.0.x',
5 | 'location':['app/services/*'],
6 | 'label':'response',
7 | 'sections':[{
8 | /**************************************************/
9 | 'label':'usage',
10 | 'description': <>
11 |
12 | {_.paragraph()}
13 |
14 | .
15 | {_.words(2, false)}
16 |
17 |
18 | {_.sentence()}
19 |
20 | >
21 | },{
22 | /**************************************************/
23 | 'label':'options',
24 | 'description':<>
25 |
26 | {_.paragraph()}
27 |
28 |
29 | .
30 | {_.words(2, false)}
31 |
32 |
33 |
34 |
35 | {_.sentence()}
36 |
37 | >
38 | },{
39 | /**************************************************/
40 | 'label':'examples',
41 | 'description':<>
42 |
43 | {_.paragraph()}
44 |
45 |
46 | .
47 | {_.words(2, false)}
48 |
49 |
50 |
51 |
52 | {_.sentence()}
53 |
54 | >
55 | }]
56 |
57 |
58 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/project/conventions/app/controllers/example.js.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/project/conventions/app/controllers/example',
4 | 'version':'1.0.x',
5 | 'label':'app/controllers/example.js',
6 | 'sections':[{
7 | /**************************************************/
8 | 'label':'usage',
9 | 'description': <>
10 |
11 | {_.paragraph()}
12 |
13 | .
14 | {_.words(2, false)}
15 |
16 |
17 | {_.sentence()}
18 |
19 | >
20 | },{
21 | /**************************************************/
22 | 'label':'options',
23 | 'description':<>
24 |
25 | {_.paragraph()}
26 |
27 |
28 | .
29 | {_.words(2, false)}
30 |
31 |
32 |
33 |
34 | {_.sentence()}
35 |
36 | >
37 | },{
38 | /**************************************************/
39 | 'label':'examples',
40 | 'description':<>
41 |
42 | {_.paragraph()}
43 |
44 |
45 | .
46 | {_.words(2, false)}
47 |
48 |
49 |
50 |
51 | {_.sentence()}
52 |
53 | >
54 | }]
55 |
56 |
57 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/project/conventions/app/models/example.js.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/project/conventions/app/models/example',
4 | 'version':'1.0.x',
5 | 'label':'app/models/example.js',
6 | 'sections':[{
7 | /**************************************************/
8 | 'label':'usage',
9 | 'description': <>
10 |
11 | {_.paragraph()}
12 |
13 | .
14 | {_.words(2, false)}
15 |
16 |
17 | {_.sentence()}
18 |
19 | >
20 | },{
21 | /**************************************************/
22 | 'label':'options',
23 | 'description':<>
24 |
25 | {_.paragraph()}
26 |
27 |
28 | .
29 | {_.words(2, false)}
30 |
31 |
32 |
33 |
34 | {_.sentence()}
35 |
36 | >
37 | },{
38 | /**************************************************/
39 | 'label':'examples',
40 | 'description':<>
41 |
42 | {_.paragraph()}
43 |
44 |
45 | .
46 | {_.words(2, false)}
47 |
48 |
49 |
50 |
51 | {_.sentence()}
52 |
53 | >
54 | }]
55 |
56 |
57 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/project/conventions/app/services.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/project/conventions/app/services',
4 | 'version':'1.0.x',
5 | 'label':'app/services',
6 | 'sections':[{
7 | /**************************************************/
8 | 'label':'usage',
9 | 'description': <>
10 |
11 | {_.paragraph()}
12 |
13 | .
14 | {_.words(2, false)}
15 |
16 |
17 | {_.sentence()}
18 |
19 | >
20 | },{
21 | /**************************************************/
22 | 'label':'options',
23 | 'description':<>
24 |
25 | {_.paragraph()}
26 |
27 |
28 | .
29 | {_.words(2, false)}
30 |
31 |
32 |
33 |
34 | {_.sentence()}
35 |
36 | >
37 | },{
38 | /**************************************************/
39 | 'label':'examples',
40 | 'description':<>
41 |
42 | {_.paragraph()}
43 |
44 |
45 | .
46 | {_.words(2, false)}
47 |
48 |
49 |
50 |
51 | {_.sentence()}
52 |
53 | >
54 | }]
55 |
56 |
57 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/project/conventions/app/services/example.js.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/project/conventions/app/services/example',
4 | 'version':'1.0.x',
5 | 'label':'app/services/example.js',
6 | 'sections':[{
7 | /**************************************************/
8 | 'label':'usage',
9 | 'description': <>
10 |
11 | {_.paragraph()}
12 |
13 | .
14 | {_.words(2, false)}
15 |
16 |
17 | {_.sentence()}
18 |
19 | >
20 | },{
21 | /**************************************************/
22 | 'label':'options',
23 | 'description':<>
24 |
25 | {_.paragraph()}
26 |
27 |
28 | .
29 | {_.words(2, false)}
30 |
31 |
32 |
33 |
34 | {_.sentence()}
35 |
36 | >
37 | },{
38 | /**************************************************/
39 | 'label':'examples',
40 | 'description':<>
41 |
42 | {_.paragraph()}
43 |
44 |
45 | .
46 | {_.words(2, false)}
47 |
48 |
49 |
50 |
51 | {_.sentence()}
52 |
53 | >
54 | }]
55 |
56 |
57 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/project/conventions/app/templates.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/project/conventions/app/templates',
4 | 'version':'1.0.x',
5 | 'label':'app/templates',
6 | 'sections':[{
7 | /**************************************************/
8 | 'label':'usage',
9 | 'description': <>
10 |
11 | {_.paragraph()}
12 |
13 | .
14 | {_.words(2, false)}
15 |
16 |
17 | {_.sentence()}
18 |
19 | >
20 | },{
21 | /**************************************************/
22 | 'label':'options',
23 | 'description':<>
24 |
25 | {_.paragraph()}
26 |
27 |
28 | .
29 | {_.words(2, false)}
30 |
31 |
32 |
33 |
34 | {_.sentence()}
35 |
36 | >
37 | },{
38 | /**************************************************/
39 | 'label':'examples',
40 | 'description':<>
41 |
42 | {_.paragraph()}
43 |
44 |
45 | .
46 | {_.words(2, false)}
47 |
48 |
49 |
50 |
51 | {_.sentence()}
52 |
53 | >
54 | }]
55 |
56 |
57 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/project/conventions/app/templates/example.js.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/project/conventions/app/templates/example',
4 | 'version':'1.0.x',
5 | 'label':'app/templates/example.js',
6 | 'sections':[{
7 | /**************************************************/
8 | 'label':'usage',
9 | 'description': <>
10 |
11 | {_.paragraph()}
12 |
13 | .
14 | {_.words(2, false)}
15 |
16 |
17 | {_.sentence()}
18 |
19 | >
20 | },{
21 | /**************************************************/
22 | 'label':'options',
23 | 'description':<>
24 |
25 | {_.paragraph()}
26 |
27 |
28 | .
29 | {_.words(2, false)}
30 |
31 |
32 |
33 |
34 | {_.sentence()}
35 |
36 | >
37 | },{
38 | /**************************************************/
39 | 'label':'examples',
40 | 'description':<>
41 |
42 | {_.paragraph()}
43 |
44 |
45 | .
46 | {_.words(2, false)}
47 |
48 |
49 |
50 |
51 | {_.sentence()}
52 |
53 | >
54 | }]
55 |
56 |
57 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/project/conventions/app/views/example.js.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/project/conventions/app/views/example',
4 | 'version':'1.0.x',
5 | 'label':'app/views/example.js',
6 | 'sections':[{
7 | /**************************************************/
8 | 'label':'usage',
9 | 'description': <>
10 |
11 | {_.paragraph()}
12 |
13 | .
14 | {_.words(2, false)}
15 |
16 |
17 | {_.sentence()}
18 |
19 | >
20 | },{
21 | /**************************************************/
22 | 'label':'options',
23 | 'description':<>
24 |
25 | {_.paragraph()}
26 |
27 |
28 | .
29 | {_.words(2, false)}
30 |
31 |
32 |
33 |
34 | {_.sentence()}
35 |
36 | >
37 | },{
38 | /**************************************************/
39 | 'label':'examples',
40 | 'description':<>
41 |
42 | {_.paragraph()}
43 |
44 |
45 | .
46 | {_.words(2, false)}
47 |
48 |
49 |
50 |
51 | {_.sentence()}
52 |
53 | >
54 | }]
55 |
56 |
57 | }}
--------------------------------------------------------------------------------
/data/docs/apis/1.0.x/project/conventions/index.html.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 | /**************************************************/
3 | 'id':'apis/1.0.x/project/conventions/index.html',
4 | 'version':'1.0.x',
5 | 'label':'index.html',
6 | 'sections':[{
7 | /**************************************************/
8 | 'label':'usage',
9 | 'description': <>
10 |
11 | {_.paragraph()}
12 |
13 | .
14 | {_.words(2, false)}
15 |
16 |
17 | {_.sentence()}
18 |
19 | >
20 | },{
21 | /**************************************************/
22 | 'label':'options',
23 | 'description':<>
24 |
25 | {_.paragraph()}
26 |
27 |
28 | .
29 | {_.words(2, false)}
30 |
31 |
32 |
33 |
34 | {_.sentence()}
35 |
36 | >
37 | },{
38 | /**************************************************/
39 | 'label':'examples',
40 | 'description':<>
41 |
42 | {_.paragraph()}
43 |
44 |
45 | .
46 | {_.words(2, false)}
47 |
48 |
49 |
50 |
51 | {_.sentence()}
52 |
53 | >
54 | }]
55 |
56 |
57 | }}
--------------------------------------------------------------------------------
/data/docs/guides/1.0.x/advanced.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 |
3 | /**************************************************\
4 | * Getting Fancy *
5 | \**************************************************/
6 |
7 | 'id':'advanced',
8 | 'version':'1.0.x',
9 | 'label':'Getting Fancy',
10 | 'sections':[{
11 |
12 | 'name':'coming soon',
13 | 'subsections':[{
14 |
15 | 'name':'abc123',
16 | 'description':<>
17 |
18 | {_.paragraph()}
19 |
20 | .
21 | {_.words(2, false)}
22 |
23 |
24 | {_.sentence()}
25 |
26 | >
27 |
28 | },{
29 |
30 | 'name':'abc123',
31 | 'description':<>
32 |
33 | {_.paragraph()}
34 |
35 | .
36 | {_.words(2, false)}
37 |
38 |
39 | {_.sentence()}
40 |
41 | >
42 | }]
43 |
44 | }]//end sections
45 |
46 | }}
--------------------------------------------------------------------------------
/data/docs/guides/1.0.x/intermediate.json:
--------------------------------------------------------------------------------
1 | {'_':{
2 |
3 | /**************************************************\
4 | * Getting Rolling *
5 | \**************************************************/
6 |
7 | 'id':'intermediate',
8 | 'version':'1.0.x',
9 | 'label':'Getting Comfortable',
10 | 'sections':[{
11 |
12 | 'name':'coming soon',
13 | 'subsections':[{
14 |
15 | 'name':'abc123',
16 | 'description':<>
17 |
18 | {_.paragraph()}
19 |
20 | .
21 | {_.words(2, false)}
22 |
23 |
24 | {_.sentence()}
25 |
26 | >
27 |
28 | },{
29 |
30 | 'name':'abc123',
31 | 'description':<>
32 |
33 | {_.paragraph()}
34 |
35 | .
36 | {_.words(2, false)}
37 |
38 |
39 | {_.sentence()}
40 |
41 | >
42 | }]
43 |
44 | }]//end sections
45 |
46 | }}
--------------------------------------------------------------------------------
/data/docs/metadata.json:
--------------------------------------------------------------------------------
1 | {'_':[
2 |
3 | {
4 | 'version':'1.0.x',
5 | 'latest':true,
6 | 'guides':[
7 | 'basics'
8 | ],
9 | 'apis':{
10 | 'plugins/user':[
11 | '$',
12 | 'boot',
13 | 'env',
14 | 'event',
15 | 'filters',
16 | 'invert',
17 | 'logger',
18 | 'logging',
19 | 'model',
20 | 'proxy',
21 | 'reboot',
22 | 'request',
23 | 'response',
24 | 'routes',
25 | 'scan'
26 | ],
27 | 'plugins/developer':[
28 | 'config',
29 | 'guid',
30 | 'manage',
31 | 'register',
32 | 'resolve',
33 | 'router'
34 | ],
35 | 'project/conventions':[
36 | 'app',
37 | 'app/boot',
38 | 'app/boot/client.js',
39 | 'app/boot/server.js',
40 | 'app/configs',
41 | 'app/configs/config.js',
42 | 'app/configs/environments.js',
43 | 'app/configs/filters.js',
44 | 'app/configs/logging.js',
45 | 'app/configs/routes.js',
46 | 'app/controllers',
47 | 'app/controllers/example.js',
48 | 'app/models',
49 | 'app/models/example.js',
50 | 'app/services',
51 | 'app/services/example.js',
52 | 'app/templates',
53 | 'app/templates/example.js',
54 | 'app/views',
55 | 'app/views/example.js',
56 | 'index.html'
57 | ]
58 | }
59 | }
60 |
61 | ]}
--------------------------------------------------------------------------------
/data/events/logo_jquery_215x53.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/data/events/logo_jquery_215x53.gif
--------------------------------------------------------------------------------
/data/events/logo_jquery_53x53.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/data/events/logo_jquery_53x53.jpg
--------------------------------------------------------------------------------
/data/events/logo_jquery_53x53.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/data/events/logo_jquery_53x53.png
--------------------------------------------------------------------------------
/data/events/metadata.json:
--------------------------------------------------------------------------------
1 | {_:[
2 | {
3 | title:'jQuery Conf',
4 | url:'http://events.jquery.com/jquery-conference-2009/',
5 | date:'Sept 13th, 2009',
6 | calendar:'09/13/2009',
7 | location:'Microsoft Cambridge, Boston MA ',
8 | image:'data/events/logo_jquery_53x53.jpg',
9 | description:<>
10 |
11 | We'll be at jQuery Conf! Look for us or let us
12 | know if your coming too.
13 |
14 | >
15 | }
16 | ]}
17 |
--------------------------------------------------------------------------------
/data/examples/metadata.json:
--------------------------------------------------------------------------------
1 | {_:[
2 |
3 | {
4 | title:'An Online Quiz',
5 | id:'quiz',
6 | description:<>
7 |
8 |
9 | Our 'hello world'. It's a good place to start looking for
10 | how we start to structure an app.
11 |
12 | >,
13 | more: <>
14 |
15 | This little app demonstrates all the basics, though in the real
16 | world, if this all you needed to do you probably wouldn't need,
17 | or benifit much from jquery-claypool.
18 |
19 |
20 | Note that additional link to 'Mini-App'. This demonstrates that
21 | jquery-claypool apps can be loaded on top of each other even well
22 | after an app has been already running, this one waits about ten
23 | seconds and simulates the addition of a app that simply logs a
24 | statement to the firebug console when the link is clicked.
25 |
26 | >
27 | },
28 | {
29 | title:'Basics Tutorial Companion',
30 | id:'tutorial',
31 | description:<>
32 |
33 |
34 | Companion examples for our basics guide. See the
35 | docs for more info.
36 |
37 | >,
38 | more: <>
39 |
40 | A 6 step tutorial demonstrating all the basic concepts you
41 | need to start writing you first app with jquery-claypool.
42 |
43 | step 0 |
44 | step 1 |
45 | step 2 |
46 | step 3 |
47 | step 4 |
48 | step 5
49 | >
50 | }
51 | ]}
52 |
--------------------------------------------------------------------------------
/data/news/metadata.json:
--------------------------------------------------------------------------------
1 | {_:[
2 |
3 | {
4 | title:'Jetty Server Included!',
5 | date:'-',
6 | calendar:'09/01/2009',
7 | description:<>
8 |
9 |
10 | We are now shipping with the awesome
11 | jetty server
12 | so you can get running in seconds! Of course you can still
13 | just drop the project directly into the tomcat
14 | webapps folder too, or forget the server and go pure client.
15 |
16 | >
17 | },{
18 | title:'Deploy Directly to the Cloud',
19 | date:'-',
20 | calendar:'09/01/2009',
21 | description:<>
22 |
23 |
24 | Claypool is ready to go on Google Apps Engine with
25 | the push of a button. Go from local development
26 | to production faster than you can say 'Highly Scalable'
27 |
28 | >
29 | },{
30 | title:'New Site and finally an Official 1.0',
31 | date:'-',
32 | calendar:'09/01/2009',
33 | description:<>
34 |
35 |
36 | 1.0 is finally here
37 | and if you haven't noticed our flashy new website
38 | is written entirely with jquery-claypool and is running
39 | on Google Apps Engine.
40 |
41 | >
42 | },{
43 | title:$.titled(2,false),
44 | date:'May 30th, 2009',
45 | calendar:'05/30/2009',
46 | description:<>
47 | {$.paragraph(1, false)}
48 |
49 | >
50 | }
51 | ]}
52 |
--------------------------------------------------------------------------------
/images/ajax-loader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/ajax-loader.gif
--------------------------------------------------------------------------------
/images/button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/button.png
--------------------------------------------------------------------------------
/images/claypool-button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/claypool-button.png
--------------------------------------------------------------------------------
/images/claypool-medium.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/claypool-medium.gif
--------------------------------------------------------------------------------
/images/claypool.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/claypool.gif
--------------------------------------------------------------------------------
/images/claypool_logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/claypool_logo.gif
--------------------------------------------------------------------------------
/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/favicon.ico
--------------------------------------------------------------------------------
/images/github_logo_sm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/github_logo_sm.png
--------------------------------------------------------------------------------
/images/gitlogosidebar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/gitlogosidebar.png
--------------------------------------------------------------------------------
/images/groups_logo_sm.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/groups_logo_sm.gif
--------------------------------------------------------------------------------
/images/lighthouseapp_logo_sm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/lighthouseapp_logo_sm.png
--------------------------------------------------------------------------------
/images/logo_interior_transparent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/logo_interior_transparent.png
--------------------------------------------------------------------------------
/images/star_inverting.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/star_inverting.jpg
--------------------------------------------------------------------------------
/images/star_inverting_bullet.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/star_inverting_bullet.jpg
--------------------------------------------------------------------------------
/images/subscribe.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/subscribe.gif
--------------------------------------------------------------------------------
/images/tar.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/tar.jpg
--------------------------------------------------------------------------------
/images/tar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/tar.png
--------------------------------------------------------------------------------
/images/trac_claypool.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/trac_claypool.gif
--------------------------------------------------------------------------------
/images/zip.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/zip.jpg
--------------------------------------------------------------------------------
/images/zip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/images/zip.png
--------------------------------------------------------------------------------
/lib/firebug/.svn/all-wcprops:
--------------------------------------------------------------------------------
1 | K 25
2 | svn:wc:ra_dav:version-url
3 | V 51
4 | /svn/!svn/ver/117/trunk/ROOT/javascript/lib/firebug
5 | END
6 | warningIcon.png
7 | K 25
8 | svn:wc:ra_dav:version-url
9 | V 67
10 | /svn/!svn/ver/117/trunk/ROOT/javascript/lib/firebug/warningIcon.png
11 | END
12 | errorIcon.png
13 | K 25
14 | svn:wc:ra_dav:version-url
15 | V 65
16 | /svn/!svn/ver/117/trunk/ROOT/javascript/lib/firebug/errorIcon.png
17 | END
18 | firebug.html
19 | K 25
20 | svn:wc:ra_dav:version-url
21 | V 64
22 | /svn/!svn/ver/117/trunk/ROOT/javascript/lib/firebug/firebug.html
23 | END
24 | firebugx.js
25 | K 25
26 | svn:wc:ra_dav:version-url
27 | V 63
28 | /svn/!svn/ver/117/trunk/ROOT/javascript/lib/firebug/firebugx.js
29 | END
30 | infoIcon.png
31 | K 25
32 | svn:wc:ra_dav:version-url
33 | V 64
34 | /svn/!svn/ver/117/trunk/ROOT/javascript/lib/firebug/infoIcon.png
35 | END
36 | firebug.css
37 | K 25
38 | svn:wc:ra_dav:version-url
39 | V 63
40 | /svn/!svn/ver/117/trunk/ROOT/javascript/lib/firebug/firebug.css
41 | END
42 | firebug.js
43 | K 25
44 | svn:wc:ra_dav:version-url
45 | V 62
46 | /svn/!svn/ver/117/trunk/ROOT/javascript/lib/firebug/firebug.js
47 | END
48 |
--------------------------------------------------------------------------------
/lib/firebug/.svn/entries:
--------------------------------------------------------------------------------
1 | 9
2 |
3 | dir
4 | 230
5 | http://claypooljs.com/svn/trunk/ROOT/javascript/lib/firebug
6 | http://claypooljs.com/svn
7 |
8 |
9 |
10 | 2008-03-05T21:01:06.214597Z
11 | 3
12 | claypooljssvn
13 |
14 |
15 | svn:special svn:externals svn:needs-lock
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | d0a139ce-fd43-0410-8da8-6daffbbf90f6
28 |
29 | warningIcon.png
30 | file
31 |
32 |
33 |
34 |
35 | 2008-05-01T02:45:42.571000Z
36 | 29c7f33c47b148ff8e0213cc8c513638
37 | 2008-03-05T21:01:06.214597Z
38 | 3
39 | claypooljssvn
40 | has-props
41 |
42 | errorIcon.png
43 | file
44 |
45 |
46 |
47 |
48 | 2008-05-01T02:45:42.580000Z
49 | 011bb9b7eac7571ee8adb3cf27157c80
50 | 2008-03-05T21:01:06.214597Z
51 | 3
52 | claypooljssvn
53 | has-props
54 |
55 | firebug.html
56 | file
57 |
58 |
59 |
60 |
61 | 2008-05-01T02:45:42.587000Z
62 | 21e3dc903446aeb3e8302dcfec27dc39
63 | 2008-03-05T21:01:06.214597Z
64 | 3
65 | claypooljssvn
66 |
67 | firebugx.js
68 | file
69 |
70 |
71 |
72 |
73 | 2008-05-01T02:45:42.597000Z
74 | 5a7d11ab3059e411319aab1e729df97c
75 | 2008-03-05T21:01:06.214597Z
76 | 3
77 | claypooljssvn
78 |
79 | infoIcon.png
80 | file
81 |
82 |
83 |
84 |
85 | 2008-05-01T02:45:42.606000Z
86 | 4c28612029b22c5ac1b2df9955a94ebc
87 | 2008-03-05T21:01:06.214597Z
88 | 3
89 | claypooljssvn
90 | has-props
91 |
92 | firebug.css
93 | file
94 |
95 |
96 |
97 |
98 | 2008-05-01T02:45:42.611000Z
99 | b6fc54e6632ce662b918b59fdf90364e
100 | 2008-03-05T21:01:06.214597Z
101 | 3
102 | claypooljssvn
103 |
104 | firebug.js
105 | file
106 |
107 |
108 |
109 |
110 | 2008-05-01T02:45:42.619000Z
111 | c32da437064c8f7a1a0769d8bf1faedf
112 | 2008-03-05T21:01:06.214597Z
113 | 3
114 | claypooljssvn
115 |
116 |
--------------------------------------------------------------------------------
/lib/firebug/.svn/format:
--------------------------------------------------------------------------------
1 | 9
2 |
--------------------------------------------------------------------------------
/lib/firebug/.svn/prop-base/errorIcon.png.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mime-type
3 | V 24
4 | application/octet-stream
5 | END
6 |
--------------------------------------------------------------------------------
/lib/firebug/.svn/prop-base/infoIcon.png.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mime-type
3 | V 24
4 | application/octet-stream
5 | END
6 |
--------------------------------------------------------------------------------
/lib/firebug/.svn/prop-base/warningIcon.png.svn-base:
--------------------------------------------------------------------------------
1 | K 13
2 | svn:mime-type
3 | V 24
4 | application/octet-stream
5 | END
6 |
--------------------------------------------------------------------------------
/lib/firebug/.svn/text-base/errorIcon.png.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/lib/firebug/.svn/text-base/errorIcon.png.svn-base
--------------------------------------------------------------------------------
/lib/firebug/.svn/text-base/firebug.html.svn-base:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Firebug
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/lib/firebug/.svn/text-base/firebugx.js.svn-base:
--------------------------------------------------------------------------------
1 |
2 | if (!("console" in window) || !("firebug" in console))
3 | {
4 | var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
5 | "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
6 |
7 | window.console = {};
8 | for (var i = 0; i < names.length; ++i)
9 | window.console[names[i]] = function() {}
10 | }
--------------------------------------------------------------------------------
/lib/firebug/.svn/text-base/infoIcon.png.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/lib/firebug/.svn/text-base/infoIcon.png.svn-base
--------------------------------------------------------------------------------
/lib/firebug/.svn/text-base/warningIcon.png.svn-base:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/lib/firebug/.svn/text-base/warningIcon.png.svn-base
--------------------------------------------------------------------------------
/lib/firebug/errorIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/lib/firebug/errorIcon.png
--------------------------------------------------------------------------------
/lib/firebug/firebug.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Firebug
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/lib/firebug/firebugx.js:
--------------------------------------------------------------------------------
1 |
2 | if (!("console" in window) || !("firebug" in console))
3 | {
4 | var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
5 | "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
6 |
7 | window.console = {};
8 | for (var i = 0; i < names.length; ++i)
9 | window.console[names[i]] = function() {}
10 | }
--------------------------------------------------------------------------------
/lib/firebug/infoIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/lib/firebug/infoIcon.png
--------------------------------------------------------------------------------
/lib/firebug/warningIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/lib/firebug/warningIcon.png
--------------------------------------------------------------------------------
/licenses/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2009 John Resig, http://jquery.com/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/plugins/jquery.gdb.rest.js:
--------------------------------------------------------------------------------
1 | GAE = {
2 | Models:{},
3 | Views:{},
4 | Controllers:{},
5 | Services:{}
6 | };
7 |
8 | /**
9 | * @author thatcher
10 | */
11 | (function($, $$, $Web, $S){
12 |
13 | var log;
14 |
15 | $S.Rest = function(options){
16 | $$.extend(this, $Web.RestServlet);
17 | $.extend(true, this, options);
18 | log = $.logger('GAE.Services.Rest');
19 | };
20 |
21 | $.extend($S.Rest.prototype, $Web.RestServlet.prototype);
22 |
23 |
24 | })(jQuery, Claypool, Claypool.Server, GAE.Services);
25 |
26 |
--------------------------------------------------------------------------------
/scripts/doc.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | (function($){
5 |
6 | $( function(){
7 | $('code, pre', $('#doc')).each(function(){
8 | $(this).text($(this).text().replace('{','{','g'));
9 | });
10 | });
11 |
12 | })(jQuery);
13 |
--------------------------------------------------------------------------------
/scripts/tutorial.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 |
5 | jQuery(function($){
6 | $('a[href*=tutorial]').click(function(event){
7 | event.stopPropagation();
8 | event.preventDefault();
9 | $('#tutorial_src').attr('src',
10 | $(event.target).attr('href'));
11 | });
12 | });
--------------------------------------------------------------------------------
/server/bin/Jetty-Service.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/bin/Jetty-Service.exe
--------------------------------------------------------------------------------
/server/bin/build_release_bundles.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | [ $# -eq 1 ] || { echo "Usage - $0 jetty-dir" >&2 ; exit 1 ; }
4 |
5 | cd $1
6 | D=$(pwd)
7 | N=$(basename $D)
8 | D=$(dirname $D)
9 | cd $D
10 |
11 | find $N -type f |\
12 | egrep -v /\\.svn |\
13 | egrep -v /target |\
14 | egrep -v /\\. |\
15 | egrep -v $N/start.jar |\
16 | egrep -v $N/lib |\
17 | egrep -v $N/logs |\
18 | egrep -v $N/webapp |\
19 | egrep -v $N/javadoc |\
20 | xargs zip $D/$N-src.zip $N/logs
21 |
22 | find $N -type f |\
23 | egrep -v /\\.svn |\
24 | egrep -v /target |\
25 | egrep -v /\\. |\
26 | egrep -v $N/logs |\
27 | xargs zip $D/$N.zip $N/logs
28 |
--------------------------------------------------------------------------------
/server/bin/jetty-service.conf:
--------------------------------------------------------------------------------
1 | wrapper.java.classpath.1=../lib/win32/*.jar
2 | wrapper.java.classpath.2=../lib/*.jar
3 | wrapper.java.classpath.3=../start.jar
4 | wrapper.java.library.path.1=../lib/win32/
5 | wrapper.java.additional.1=-Djetty.home=../
6 | wrapper.java.additional.2=-Djetty.logs=../logs
7 | wrapper.java.initmemory=3
8 | wrapper.java.maxmemory=64
9 | wrapper.java.mainclass=org.mortbay.jetty.win32service.JettyServiceWrapperListener
10 | wrapper.app.parameter.1=../etc/jetty.xml
11 | wrapper.console.format=PM
12 | wrapper.console.loglevel=INFO
13 | wrapper.logfile=../logs/jetty-service.log
14 | wrapper.logfile.format=LPTM
15 | wrapper.logfile.loglevel=INFO
16 | wrapper.logfile.maxsize=0
17 | wrapper.logfile.maxfiles=0
18 | wrapper.syslog.loglevel=NONE
19 | wrapper.ntservice.name=Jetty
20 | wrapper.ntservice.displayname=Jetty6-Service
21 | wrapper.ntservice.description=Jetty is an open-source, standards-based, full-featured web server implemented entirely in java
22 | wrapper.ntservice.starttype=AUTO_START
23 | wrapper.ntservice.interactive=false
24 |
25 |
26 | wrapper.filter.trigger.1=java.lang.OutOfMemoryError
27 | wrapper.filter.action.1=RESTART
28 |
--------------------------------------------------------------------------------
/server/contexts/README-test-jndi.txt:
--------------------------------------------------------------------------------
1 | Deploying
2 | --------------
3 | Jetty does not ship with a native transaction manager, but
4 | can plugin a variety of solutions. This demo has been tested
5 | with both JOTM (http://jotm.objectweb.org) or Atomikos
6 | (http://www.atomikos.com).
7 |
8 | You will need to download the relevant jars for your chosen
9 | transaction manager, and install them into $JETTY-HOME/lib/ext.
10 | See the jetty wiki pages for JOTM(http://docs.codehaus.org/display/JETTY/JOTM)
11 | and Atomikos (http://docs.codehaus.org/display/JETTY/Atomikos)
12 | for more info.
13 |
14 | The example uses the Derby database, so also download the
15 | derby.jar and derbytools.jar file from the Derby site
16 | (http://db.apache.org/derby) and put them in $JETTY-HOME/lib/ext.
17 |
18 | Now edit $JETTY-HOME/contexts/test-jndi.xml and uncomment one of the
19 | transaction manager setups.
20 |
21 | Edit $JETTY-HOME/contexts/test-jndi.d/WEB-INF/jetty-env.xml and uncomment
22 | one of the transaction manager setups.
23 |
24 |
25 | Running the Demo
26 | ----------------
27 | You run the demo like so:
28 |
29 | java -jar start.jar
30 |
31 |
32 | Adding Support for a Different Transaction Manager
33 | --------------------------------------------------
34 |
35 | 1. Edit the filter.properties file in
36 | $JETTY-HOME/modules/examples/test-jndi-webapp/src/templates
37 | and add a new set of token and replacement strings following the
38 | pattern established for ATOMIKOS and JOTM.
39 |
40 | 2. Edit the jetty-env.xml file in
41 | $JETTY-HOME/modules/examples/test-jndi-webapp/src/templates
42 | and add configuration for new transaction manager following the
43 | pattern established for the other transaction managers.
44 |
45 | 3. Edit jetty-test-jndi.xml file in
46 | $JETTY-HOME/modules/examples/test-jndi-webapp/src/templates
47 | and add configuration for the new transaction manager following
48 | the pattern established for the other transaction managers.
49 |
50 | 4. Rebuild $JETTY-HOME/modules/examples/test-jndi-webapp (mvn clean install).
51 |
--------------------------------------------------------------------------------
/server/contexts/README.TXT:
--------------------------------------------------------------------------------
1 |
2 | This directory is scanned by the ContextDeployer instance
3 | configured by the standard $JETTY_HOME/etc/jetty.xml configuration.
4 |
5 | It should contain XmlConfiguration files that describe individual
6 | contexts to be deployed to the server. This directory is scanned
7 | for additions, removals and updates for hot deployment.
8 |
9 | Frequenty the context configuration files here will reference
10 | war files or directories from $JETTY_HOME/webapps. Care must be
11 | taken to avoid a WebAppDeployer deploying duplicates of such
12 | webapplications.
13 |
--------------------------------------------------------------------------------
/server/contexts/javadoc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 | Configure javadoc.xml
13 | /javadoc
14 | /javadoc/
15 |
16 |
17 |
18 |
19 | - index.html
20 | - contents.html
21 |
22 |
23 | max-age=3600,public
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/server/etc/jetty-ajp.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | 8009
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/server/etc/jetty-bio.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | 50000
18 | 1500
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/server/etc/jetty-jaas.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | java.security.auth.login.config
14 | /etc/login.conf
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | -
26 |
27 | Test JAAS Realm
28 | xyz
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/server/etc/jetty-logging.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/server/etc/jetty-setuid.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | false
13 | 2
14 | jetty
15 | jetty
16 |
17 |
18 |
--------------------------------------------------------------------------------
/server/etc/jetty-ssl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | 8443
18 | 30000
19 | 2000
20 | /etc/keystore
21 | OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4
22 | OBF:1u2u1wml1z7s1z7a1wnl1u2g
23 | /etc/keystore
24 | OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4
25 | 2000
26 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/server/etc/jetty-sslengine.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 8444
15 | 30000
16 | 2
17 | 100
18 | /etc/keystore
19 | OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4
20 | OBF:1u2u1wml1z7s1z7a1wnl1u2g
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/server/etc/jetty-stats.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/server/etc/jetty-win32-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | true
25 |
26 | true
27 |
28 |
29 |
--------------------------------------------------------------------------------
/server/etc/keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/etc/keystore
--------------------------------------------------------------------------------
/server/etc/login.conf:
--------------------------------------------------------------------------------
1 | xyz {
2 | org.mortbay.jetty.plus.jaas.spi.PropertyFileLoginModule required
3 | debug="true"
4 | file="${jetty.home}/etc/login.properties";
5 | };
6 |
--------------------------------------------------------------------------------
/server/etc/login.properties:
--------------------------------------------------------------------------------
1 | me=me,me,roleA
2 |
--------------------------------------------------------------------------------
/server/etc/realm.properties:
--------------------------------------------------------------------------------
1 | #
2 | # This file defines users passwords and roles for a HashUserRealm
3 | #
4 | # The format is
5 | # : [, ...]
6 | #
7 | # Passwords may be clear text, obfuscated or checksummed. The class
8 | # org.mortbay.util.Password should be used to generate obfuscated
9 | # passwords or password checksums
10 | #
11 | # If DIGEST Authentication is used, the password must be in a recoverable
12 | # format, either plain text or OBF:.
13 | #
14 | jetty: MD5:164c88b302622e17050af52c89945d44,user
15 | admin: CRYPT:ad1ks..kc.1Ug,server-administrator,content-administrator,admin
16 | other: OBF:1xmk1w261u9r1w1c1xmq
17 | plain: plain
18 | user: password
19 |
20 | # This entry is for digest auth. The credential is a MD5 hash of username:realmname:password
21 | digest: MD5:6e120743ad67abfbc385bc2bb754e297
22 |
--------------------------------------------------------------------------------
/server/lib/annotations/geronimo-annotation_1.0_spec-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/annotations/geronimo-annotation_1.0_spec-1.0.jar
--------------------------------------------------------------------------------
/server/lib/annotations/jetty-annotations-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/annotations/jetty-annotations-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/cometd/cometd-api-1.0.beta4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/cometd/cometd-api-1.0.beta4.jar
--------------------------------------------------------------------------------
/server/lib/cometd/cometd-jetty-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/cometd/cometd-jetty-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/jetty-ajp-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/jetty-ajp-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/jetty-client-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/jetty-client-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/jetty-html-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/jetty-html-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/jetty-java5-threadpool-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/jetty-java5-threadpool-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/jetty-rewrite-handler-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/jetty-rewrite-handler-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/jetty-servlet-tester-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/jetty-servlet-tester-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/jetty-setuid-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/jetty-setuid-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/jetty-sslengine-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/jetty-sslengine-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/ext/libsetuid.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/ext/libsetuid.so
--------------------------------------------------------------------------------
/server/lib/jetty-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jetty-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/jetty-util-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jetty-util-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/jre1.5/jetty-util5-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jre1.5/jetty-util5-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/ant-1.6.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/ant-1.6.5.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/commons-el-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/commons-el-1.0.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/jasper-compiler-5.5.15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/jasper-compiler-5.5.15.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/jasper-compiler-jdt-5.5.15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/jasper-compiler-jdt-5.5.15.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/jasper-runtime-5.5.15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/jasper-runtime-5.5.15.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/jcl104-over-slf4j-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/jcl104-over-slf4j-1.3.1.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/jsp-api-2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/jsp-api-2.0.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/slf4j-api-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/slf4j-api-1.3.1.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/slf4j-simple-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/slf4j-simple-1.3.1.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/xercesImpl-2.6.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/xercesImpl-2.6.2.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.0/xmlParserAPIs-2.6.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.0/xmlParserAPIs-2.6.2.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.1/ant-1.6.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.1/ant-1.6.5.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.1/core-3.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.1/core-3.1.1.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.1/jsp-2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.1/jsp-2.1.jar
--------------------------------------------------------------------------------
/server/lib/jsp-2.1/jsp-api-2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/jsp-2.1/jsp-api-2.1.jar
--------------------------------------------------------------------------------
/server/lib/management/jetty-management-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/management/jetty-management-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/management/mx4j/mx4j-3.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/management/mx4j/mx4j-3.0.1.jar
--------------------------------------------------------------------------------
/server/lib/management/mx4j/mx4j-tools-3.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/management/mx4j/mx4j-tools-3.0.1.jar
--------------------------------------------------------------------------------
/server/lib/naming/activation-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/naming/activation-1.1.jar
--------------------------------------------------------------------------------
/server/lib/naming/jetty-naming-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/naming/jetty-naming-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/naming/mail-1.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/naming/mail-1.4.jar
--------------------------------------------------------------------------------
/server/lib/plus/jetty-plus-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/plus/jetty-plus-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/servlet-api-2.5-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/servlet-api-2.5-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/win32/jetty-win32-service-java-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/win32/jetty-win32-service-java-6.1.14.jar
--------------------------------------------------------------------------------
/server/lib/win32/wrapper.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/win32/wrapper.dll
--------------------------------------------------------------------------------
/server/lib/win32/wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/win32/wrapper.jar
--------------------------------------------------------------------------------
/server/lib/xbean/jetty-xbean-6.1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/lib/xbean/jetty-xbean-6.1.14.jar
--------------------------------------------------------------------------------
/server/logs/tmp.txt:
--------------------------------------------------------------------------------
1 | here to preserve the folder in git
2 |
--------------------------------------------------------------------------------
/server/resources/log4j.properties:
--------------------------------------------------------------------------------
1 |
2 | # This is not needed by Jetty - but it helps with many web apps.
3 |
4 | log4j.rootLogger=INFO, stdout
5 |
6 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
7 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
8 | log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
9 |
10 |
--------------------------------------------------------------------------------
/server/start.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/start.jar
--------------------------------------------------------------------------------
/server/webapps/README.TXT:
--------------------------------------------------------------------------------
1 |
2 | This directory is scanned at startup by the WebAppDeployer
3 | configured in the standard $JETTY_HOME/etc/jetty.xml file.
4 |
5 | WAR files, JAR files and directories discovered are deployed
6 | as web application instances. This directory is not rescanned
7 | for hot deployment (see $JETTY_HOME/contexts for hot deployment).
8 |
9 | The directory or file name is used as the basis of the
10 | context path (eg foo.war will have a context path of /foo).
11 | A directory called root or a webapplication called root.war
12 | will be deployed to the / context path.
13 |
14 | By default, the WebAppDeployer avoids duplicate context
15 | paths, so any contexts that have been configured manually
16 | or in $JETTY_HOME/contexts will not be deployed again.
17 |
--------------------------------------------------------------------------------
/server/webapps/cometd.war:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thatcher/jquery-claypool/7073a1f98abaad108f1d5ca884b9957ed9a80a89/server/webapps/cometd.war
--------------------------------------------------------------------------------
/src/aop/namespace.js:
--------------------------------------------------------------------------------
1 |
2 | Claypool.AOP={
3 | /*
4 | * Claypool.AOP @VERSION@ - A Web 1.6180339... Javascript Application Framework
5 | *
6 | * Copyright (c) 2008 Chris Thatcher (claypooljs.com)
7 | * Dual licensed under the MIT (MIT-LICENSE.txt)
8 | * and GPL (GPL-LICENSE.txt) licenses.
9 | *
10 | * $Date: 2008-08-06 14:34:08 -0400 (Wed, 06 Aug 2008) $
11 | * $Rev: 265 $
12 | *
13 | * @projectDescription This code is adopted from the jQuery AOP plugin project. It was incorporated so it
14 | * could be extended and modified to match the overall javascript style of the rest of
15 | * Claypool. Many thanks to it's author(s), as we rely heavily on the code and learned
16 | * a lot from it's integration into Claypool.
17 | *
18 | * @author Christopher Thatcher thatcher.christopher@gmail.com
19 | * @version 0.1
20 | *
21 | * The original header is retained below:
22 | *
23 | * jQuery AOP - jQuery plugin to add features of aspect-oriented programming (AOP) to jQuery.
24 | * http://jquery-aop.googlecode.com/
25 | *
26 | * Licensed under the MIT license:
27 | * http://www.opensource.org/licenses/mit-license.php
28 | *
29 | * Version: 1.0
30 | */
31 | };
32 | (function($, $$, $$AOP){
33 |
34 | $.manage("Claypool.AOP.Container", "claypool:AOP");
35 |
36 | })( jQuery, Claypool, Claypool.AOP );
37 |
--------------------------------------------------------------------------------
/src/aop/plugin.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 | * Descibe this class
5 | * @author
6 | * @version $Rev$
7 | * @requires OtherClassName
8 | */
9 | (function($, $$, $AOP){
10 | /**
11 | * @constructor
12 | */
13 | $.extend($, {
14 | filters : function(){
15 | if(arguments.length === 0){
16 | return $.config('aop');
17 | }else{
18 | return $.config('aop', arguments[0]);
19 | }
20 | }
21 | });
22 |
23 |
24 | })( jQuery, Claypool, Claypool.AOP );
25 |
--------------------------------------------------------------------------------
/src/core/configuration.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 | * Descibe this class
5 | * @author
6 | * @version $Rev$
7 | * @requires OtherClassName
8 | */
9 | (function($, $$){
10 |
11 | $$.Configuration = {
12 | /** Please see each module for specific configuration options */
13 | //this is a short list of well knowns, but can always be '$.extend'ed
14 | ioc:[],
15 | aop:[],
16 | logging:[],
17 | mvc:{
18 | "hijax:a":[],
19 | "hijax:form":[],
20 | "hijax:button":[],
21 | "hijax:event":[]
22 | },
23 | env : {
24 | dev:{},
25 | prod:{},
26 | test:{}
27 | }
28 | };
29 |
30 | })( jQuery, Claypool );
31 |
--------------------------------------------------------------------------------
/src/core/container.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 | * Descibe this class
5 | * @author
6 | * @version $Rev$
7 | * @requires Claypool.SimpleCachingStrategy
8 | */
9 | (function($, $$){
10 |
11 | $$.Container = function(){
12 | //TODO : abstract this pattern so we can make it plug-able
13 | };
14 |
15 | })(jQuery, Claypool);
16 |
--------------------------------------------------------------------------------
/src/core/context.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 | * Descibe this class
5 | * @author
6 | * @version $Rev$
7 | * @requires Claypool.SimpleCachingStrategy
8 | */
9 | (function($, $$){
10 |
11 | $$.Context = function(options){
12 | $$.extend( this, $$.SimpleCachingStrategy);
13 | $.extend(true, this, options);
14 | this.logger = new $$.Logging.NullLogger();
15 | };
16 |
17 | $.extend($$.Context.prototype,
18 | $$.SimpleCachingStrategy.prototype,{
19 | get: function(id){ throw "MethodNotImplementedError"; },
20 | put: function(id, object){ throw "MethodNotImplementedError"; }
21 | });
22 |
23 | })(jQuery, Claypool);
24 |
25 | /**
26 | * Descibe this class
27 | * @Chris Thatcher
28 | * @version $Rev$
29 | * @requires Claypool.Context
30 | */
31 | (function($, $$){
32 | $$.ContextContributor = function(options){
33 | $$.extend( this, $$.Context);
34 | $.extend(true, this, options);
35 | this.logger = $.logger("Claypool.ContextContributor");
36 | };
37 |
38 | $.extend($$.ContextContributor.prototype,
39 | $$.Context.prototype, {
40 | registerContext: function(id){
41 | throw "MethodNotImplementedError";
42 | }
43 | });
44 |
45 | })(jQuery, Claypool);
46 |
--------------------------------------------------------------------------------
/src/core/namespace.js:
--------------------------------------------------------------------------------
1 | var Claypool={
2 | /**
3 | * Claypool @VERSION@ - A Web 1.6180339... Javascript Application Framework
4 | *
5 | * Copyright (c) 2008-2010 Chris Thatcher (claypooljs.com)
6 | * Dual licensed under the MIT (MIT-LICENSE.txt)
7 | * and GPL (GPL-LICENSE.txt) licenses.
8 | *
9 | */
10 | Logging:{
11 | //because we log in core we need a safe way to null logging
12 | //if the real Claypool.Logging isnt present. This is the safety.
13 | },
14 | extend : function(t, $class, args){
15 | $class.apply(t,args||[]);
16 | }
17 | };
18 |
19 | /**
20 | * Descibe this class
21 | * @author
22 | * @version $Rev$
23 | * @requires OtherClassName
24 | */
25 |
26 | (function($, $$){
27 | /**
28 | * @constructor
29 | */
30 |
31 | $$.Logging.NullLogger = function(){
32 | //for speed why bother implement the interface, just null the functions
33 | var nullFunction=function(){
34 | return this;
35 | };
36 | $.extend(this, {
37 | debug:nullFunction,
38 | info:nullFunction,
39 | warn:nullFunction,
40 | error:nullFunction,
41 | exception:nullFunction
42 | });
43 | return this;
44 | };
45 |
46 | $.extend($$.Logging.NullLogger.prototype, {
47 | /**
48 | * Describe what this method does
49 | * @private
50 | * @param {String} paramName Describe this parameter
51 | * @returns Describe what it returns
52 | * @type String
53 | */
54 | getLogger : function(){
55 | return new $$.Logging.NullLogger();
56 | }
57 | });
58 |
59 |
60 | })(jQuery, Claypool);
61 |
--------------------------------------------------------------------------------
/src/ioc/namespace.js:
--------------------------------------------------------------------------------
1 |
2 | Claypool.IoC={
3 | /*
4 | * Claypool.IOC @VERSION@ - A Web 1.6180339... Javascript Application Framework
5 | *
6 | * Copyright (c) 2008 Chris Thatcher (claypooljs.com)
7 | * Dual licensed under the MIT (MIT-LICENSE.txt)
8 | * and GPL (GPL-LICENSE.txt) licenses.
9 | *
10 | * $Date: 2008-08-06 14:34:08 -0400 (Wed, 06 Aug 2008) $
11 | * $Rev: 265 $
12 | *
13 | *
14 | * - Inversion of Control (Dependency Injection) Patterns -
15 | */
16 | };
17 |
18 | /**
19 | * Descibe this class
20 | * @author
21 | * @version $Rev$
22 | * @requires OtherClassName
23 | */
24 | (function($, $$, $$IoC){
25 |
26 | $.manage("Claypool.IoC.Container", "claypool:IoC");
27 |
28 | })( jQuery, Claypool, Claypool.IoC );
29 |
--------------------------------------------------------------------------------
/src/logging/level.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 | * Descibe this class
5 | * @author
6 | * @version $Rev$
7 | * @requires OtherClassName
8 | */
9 | (function($, $$, $$Log){
10 | /**
11 | * @constructor
12 | */
13 | $$Log.Level = {
14 | DEBUG:0,
15 | INFO:1,
16 | WARN:2,
17 | ERROR:3,
18 | NONE:4
19 | };
20 |
21 | })( jQuery, Claypool, Claypool.Logging );
22 |
--------------------------------------------------------------------------------
/src/logging/namespace.js:
--------------------------------------------------------------------------------
1 |
2 | Claypool.Logging={
3 | /*
4 | * Claypool @VERSION@ - A Web 1.6180339... Javascript Application Framework
5 | *
6 | * Copyright (c) 2008 Chris Thatcher (claypooljs.com)
7 | * Dual licensed under the MIT (MIT-LICENSE.txt)
8 | * and GPL (GPL-LICENSE.txt) licenses.
9 | *
10 | * $Date: 2008-08-06 14:34:08 -0400 (Wed, 06 Aug 2008) $
11 | * $Rev: 265 $
12 | */
13 |
14 | //erase safety provided by core
15 | NullLogger : null,
16 | getLogger : null
17 | };
18 |
19 | /**
20 | * Descibe this class
21 | * @author
22 | * @version $Rev$
23 | * @requires OtherClassName
24 | */
25 | (function($, $$, $$Log){
26 |
27 | $.extend($$Log, {
28 | //Static Closure Method (uses a singleton pattern)
29 | loggerFactory:null,
30 | getLogger: function(category){
31 | if(!$$Log.loggerFactory){
32 | $$Log.loggerFactory = new $$Log.Factory();
33 | }
34 | if($$Log.updated){
35 | $$Log.loggerFactory.updateConfig();
36 | $$Log.updated = false;
37 | }
38 | return $$Log.loggerFactory.create(category);
39 | }
40 | });
41 |
42 | })( jQuery, Claypool, Claypool.Logging );
43 |
--------------------------------------------------------------------------------
/src/logging/plugin.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | /**
4 | * Descibe this class
5 | * @author
6 | * @version $Rev$
7 | * @requires OtherClassName
8 | */
9 | (function($, $$, $$Log){
10 | /**
11 | * @constructor
12 | */
13 | $.extend($, {
14 | logger : function(name){
15 | return $$Log.getLogger(name);
16 | },
17 | //careful, names are very similiar!
18 | logging : function(){
19 | if(arguments.length === 0){
20 | return $.config('logging');
21 | }else{
22 | $$Log.updated = true;
23 | return $.config('logging', arguments[0]);
24 | }
25 | }
26 | });
27 |
28 | var $log;
29 |
30 | $.extend($, {
31 | debug : function(){
32 | $log = $log||$.logger("jQuery");
33 | $log.debug.apply($log,arguments);
34 | return this;
35 | },
36 | info : function(){
37 | $log = $log||$.logger("jQuery");
38 | $log.info.apply($log,arguments);
39 | return this;
40 | },
41 | warn : function(){
42 | $log = $log||$.logger("jQuery");
43 | $log.warn.apply($log,arguments);
44 | return this;
45 | },
46 | error : function(){
47 | $log = $log||$.logger("jQuery");
48 | $log.error.apply($log,arguments);
49 | return this;
50 | },
51 | exception : function(){
52 | $log = $log||$.logger("jQuery");
53 | $log.exception.apply($log,arguments);
54 | return this;
55 | }
56 | });
57 |
58 |
59 | })( jQuery, Claypool, Claypool.Logging );
60 |
--------------------------------------------------------------------------------
/src/models/client.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | (function($,$$,$M){
5 |
6 | $M.Client = function(options){
7 | $.extend(true, this, options);
8 | };
9 |
10 | $.each(['create','destroy','metadata','save','update','remove','get','find','js2query','next','previous'],
11 | function(index, value){
12 | $M.Client.prototype[value] = function(options){
13 | this.db[value]($.extend(options,{
14 | domain:this.name
15 | }));
16 | return this;
17 | };
18 | }
19 | );
20 |
21 | })(jQuery, Claypool, Claypool.Models);
22 |
--------------------------------------------------------------------------------
/src/models/namespace.js:
--------------------------------------------------------------------------------
1 | Claypool.Models = {
2 | /*
3 | * Claypool.Models @VERSION@ - A Web 1.6180339... Javascript Application Framework
4 | *
5 | * Copyright (c) 2008 Chris Thatcher (claypooljs.com)
6 | * Dual licensed under the MIT (MIT-LICENSE.txt)
7 | * and GPL (GPL-LICENSE.txt) licenses.
8 | *
9 | * $Date: 2008-08-06 14:34:08 -0400 (Wed, 06 Aug 2008) $
10 | * $Rev: 265 $
11 | *
12 | *
13 | */
14 | };
15 |
16 |
17 | /**
18 | * store configuration for building indexes
19 | **/
20 | Claypool.Configuration.index = [];
21 |
--------------------------------------------------------------------------------
/src/models/plugin.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | (function($,$$,$M){
5 |
6 | $.extend($, {
7 | db: function(options){
8 | return new $M.Factory(options);
9 | },
10 | model: function(name, fields, options){
11 | return new $M.Model(name, fields, options);
12 | },
13 | query: function(options){
14 | return new $M.Query(options);
15 | },
16 | index: function(){
17 | if(arguments.length === 0){
18 | return $.config('index');
19 | }else{
20 | return $.config('index', arguments[0]);
21 | }
22 | }
23 | });
24 |
25 | })(jQuery, Claypool, Claypool.Models);
26 |
--------------------------------------------------------------------------------
/src/mvc/controller.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * In Claypool a controller is meant to be expose various
4 | * aggregations of event-scope state.
5 | *
6 | * @author
7 | * @version $Rev$
8 | * @requires OtherClassName
9 | */
10 | (function($, $$, $$MVC){
11 | /**
12 | * @constructor
13 | */
14 | $$MVC.Controller = function(options){
15 | $$.extend(this, $$.SimpleCachingStrategy);
16 | $.extend(true, this, options);
17 | this.logger = $.logger("Claypool.MVC.Controller");
18 | };
19 | $.extend($$MVC.Controller.prototype,
20 | $$.SimpleCachingStrategy.prototype,{
21 | handle: function(event){
22 | throw "MethodNotImplementedError";
23 | }
24 | });
25 |
26 | })( jQuery, Claypool, Claypool.MVC );
27 |
--------------------------------------------------------------------------------
/src/mvc/namespace.js:
--------------------------------------------------------------------------------
1 | Claypool.MVC = {
2 | /*
3 | * Claypool.MVC @VERSION@ - A Web 1.6180339... Javascript Application Framework
4 | *
5 | * Copyright (c) 2008 Chris Thatcher (claypooljs.com)
6 | * Dual licensed under the MIT (MIT-LICENSE.txt)
7 | * and GPL (GPL-LICENSE.txt) licenses.
8 | *
9 | * $Date: 2008-08-06 14:34:08 -0400 (Wed, 06 Aug 2008) $
10 | * $Rev: 265 $
11 | *
12 | *
13 | */
14 | };
15 |
16 | (function($){
17 |
18 | $.manage("Claypool.MVC.Container", "claypool:MVC", function(container){
19 | var i,
20 | id,
21 | router,
22 | config = container.factory.getConfig(),
23 | type;
24 | for(type in config){
25 | container.logger.debug("eagerly loading mvc routers: %s", type);
26 | for(i=0;i
2 |
10 |
--------------------------------------------------------------------------------
/templates/site/html/base.js:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | Claypool: A jQuery Web 1.6180339... Application Framework
6 |
7 | {extend('site/html/meta.js')}
8 |
13 | {extend('site/html/stylesheets.js')}
14 |
19 | {extend('site/html/links.js')}
20 |
25 | {extend('site/html/scripts.js')}
26 |
31 |
32 |
33 |
38 |
41 |
42 |
43 |
44 |
45 |
46 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
62 |
73 |
74 |
79 | {extend('site/html/analytics.js')}
80 |
81 |
82 |
--------------------------------------------------------------------------------
/templates/site/html/footer.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/templates/site/html/header.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/templates/site/html/links.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
10 |
11 |
--------------------------------------------------------------------------------
/templates/site/html/meta.js:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
12 |
16 |
--------------------------------------------------------------------------------
/templates/site/html/pages/error.js:
--------------------------------------------------------------------------------
1 |
2 | {extend("site/html/base.js")}
3 |
4 | An unexpected error occured.
5 |
6 |
7 |
--------------------------------------------------------------------------------
/templates/site/html/pages/examples.js:
--------------------------------------------------------------------------------
1 |
2 | {extend("site/html/base.js")}
3 |
4 |
5 |
examples
6 | {$(examples).map(function(){
7 | return {
8 | div:{
9 | $class:'span-20 prepend-1',
10 | $:[
11 | {div:{
12 | $class:'span-12 column noborder',
13 | $:[$.e4x(this.description)]
14 | }},
15 | {div:{
16 | $class:'span-6 column noborder',
17 | $:[{h4:
18 | {a:{
19 | $href: $.env('root')+'example/'+this.id,
20 | $:this.title
21 | }}
22 | }]
23 | }}
24 | ]
25 | }
26 | };
27 | }).e4x()}
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/templates/site/html/pages/examples/base.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
{example.title}
8 | Example
9 | ( {example.id} )
10 |
11 |
12 |
13 | example will go here
14 |
15 |
16 |
17 |
18 | {example.description}
19 |
20 | {example.more}
21 |
22 |
23 |
24 | {$(example.notes).map(function(index, note){
25 | return {li:note};
26 | }).e4x()}
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/templates/site/html/pages/examples/tutorial.js:
--------------------------------------------------------------------------------
1 |
2 | {extend("site/html/base.js")}
3 | {extend("site/html/pages/examples/base.js?tutorial")}
4 |
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/templates/site/html/pages/news.js:
--------------------------------------------------------------------------------
1 |
2 | {extend("site/html/base.js")}
3 |
4 |
5 |
news archives
6 | {$(news).map(function(index){
7 | return {
8 | div:{
9 | $class:'span-20 prepend-1',
10 | $:[
11 | //{strong:this.date},
12 | {div:{
13 | $class:'span-12 column noborder',
14 | $:[$.e4x(this.description)]
15 | }},
16 | {div:{
17 | $class:'span-6 column noborder',
18 | $:[{h4:this.title}]
19 | }}
20 | ]
21 | }
22 | };
23 | }).e4x()}
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/templates/site/html/request.js:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 | Claypool Server
12 |
13 |
14 |
15 |
Request Details
16 |
The current time is : {new Date()}
17 |
18 |
Request URL details
19 |
{htmlListItem(model, "Details")}
20 |
21 |
22 |
Request Parameters
23 |
{htmlListItem(model.parameters, "Parameters")}
24 |
25 |
29 |
30 |
Prefered Locales
31 |
{htmlListItem(model.locales, "Locales")}
32 |
33 |
34 |
Request Attributes
35 |
{htmlListItem(model.attributes, "Attributes")}
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/templates/site/html/scripts.js:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/templates/site/html/status.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | Claypool Server
4 |
5 |
6 |
7 |
Claypool Server Status
8 |
The current time is : {new Date()}
9 |
10 |
Application Global Details
11 |
{htmlListItem(window, "Global")}
12 |
13 |
14 |
Application Location Details
15 |
{htmlListItem(window.location, "Location")}
16 |
17 |
18 |
Application Navigator Details
19 |
{htmlListItem(window.navigator, "Navigator")}
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/templates/site/html/stylesheets.js:
--------------------------------------------------------------------------------
1 |
2 |
7 |
11 |
12 |
17 |
21 |
24 |
25 |
30 |
36 |
--------------------------------------------------------------------------------
/test/app/boot/client.js:
--------------------------------------------------------------------------------
1 | // - BOOT THE APP -
2 | jQuery.noConflict();
3 | (function($){
4 |
5 | //this is the jquery 'ready' callback
6 | $(function(){
7 | //this is the jquery.claypool boot hook
8 | $.boot(function(){
9 | //you can do additional initialization here
10 | });
11 | });
12 |
13 | })(jQuery);
14 |
--------------------------------------------------------------------------------
/test/app/configs/environments.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author thatcher
3 | */
4 | (function($){
5 | //-------------------------------------------------------------------------------------//
6 | // - ENVIRONMENTAL CONFIGURATION -
7 | //______________________________________________________________________________________//
8 | $.config("env", {
9 | defaults:{
10 | templates:'app/views/templates',
11 | rest: {
12 | SERVICE: "Any",
13 | URL: "/rest",
14 | AJAX: "jQuery"
15 | }
16 | },
17 | //-------------------------------------------------------------------------------------//
18 | // - DEVELOPMENT CONFIGURATION -
19 | //______________________________________________________________________________________//
20 | dev:{
21 | client:{
22 | }
23 | },
24 | //-------------------------------------------------------------------------------------//
25 | // - PRODUCTION CONFIGURATION -
26 | //______________________________________________________________________________________//
27 | prod:{
28 | client:{
29 | }
30 | },
31 | //-------------------------------------------------------------------------------------//
32 | // - TEST CONFIGURATION -
33 | //______________________________________________________________________________________//
34 | test:{
35 | client:{
36 | }
37 | }
38 | });
39 |
40 | })(jQuery);
41 |
42 |
--------------------------------------------------------------------------------
/test/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jquery-claypool unit tests
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/test/specs/aop-spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery-claypool aop-spec
3 | *
4 | * @author Chris Thatcher
5 | * @email thatcher.christopher@gmail.com
6 | */
7 | (function($){
8 |
9 | // RSpec/Bacon Style
10 | with (jqUnit) {
11 |
12 | describe('jquery-claypool', 'aop-spec', {
13 |
14 | before: function(){
15 | //no setup for this portion of the spec
16 | }
17 |
18 | }).should('do something cool', function(){
19 |
20 | });
21 |
22 | }
23 |
24 | })(jQuery);
25 |
26 |
--------------------------------------------------------------------------------
/test/specs/app-spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery-claypool server-spec
3 | *
4 | * @author Chris Thatcher
5 | * @email thatcher.christopher@gmail.com
6 | */
7 | (function($){
8 |
9 | // RSpec/Bacon Style
10 | with (jqUnit) {
11 |
12 | describe('jquery-claypool', 'server-spec', {
13 |
14 | before: function(){
15 | //no setup for this portion of the spec
16 | }
17 |
18 | }).should('do something cool', function(){
19 |
20 | });
21 |
22 | }
23 |
24 | })(jQuery);
25 |
26 |
--------------------------------------------------------------------------------
/test/specs/core-spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery-claypool core-spec
3 | *
4 | * @author Chris Thatcher
5 | * @email thatcher.christopher@gmail.com
6 | */
7 | (function($){
8 |
9 | // RSpec/Bacon Style
10 | with (jqUnit) {
11 |
12 | describe('jquery-claypool', 'core-spec', {
13 |
14 | before: function(){
15 | //no setup for this portion of the spec
16 | }
17 |
18 | }).should('do something cool', function(){
19 |
20 | });
21 |
22 | }
23 |
24 | })(jQuery);
25 |
26 |
--------------------------------------------------------------------------------
/test/specs/ioc-spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery-claypool server-spec
3 | *
4 | * @author Chris Thatcher
5 | * @email thatcher.christopher@gmail.com
6 | */
7 | (function($){
8 |
9 | // RSpec/Bacon Style
10 | with (jqUnit) {
11 |
12 | describe('jquery-claypool', 'ioc-spec', {
13 |
14 | before: function(){
15 | //no setup for this portion of the spec
16 | }
17 |
18 | }).should('do something cool', function(){
19 |
20 | });
21 |
22 | }
23 |
24 | })(jQuery);
25 |
26 |
--------------------------------------------------------------------------------
/test/specs/logging-spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery-claypool logging-spec
3 | *
4 | * @author Chris Thatcher
5 | * @email thatcher.christopher@gmail.com
6 | */
7 | (function($){
8 |
9 | // RSpec/Bacon Style
10 | with (jqUnit) {
11 |
12 | describe('jquery-claypool', 'logging-spec', {
13 |
14 | before: function(){
15 | //no setup for this portion of the spec
16 | }
17 |
18 | }).should('do something cool', function(){
19 |
20 | });
21 |
22 | }
23 |
24 | })(jQuery);
25 |
26 |
--------------------------------------------------------------------------------
/test/specs/models-spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery-claypool models-spec
3 | *
4 | * @author Chris Thatcher
5 | * @email thatcher.christopher@gmail.com
6 | */
7 | (function($){
8 |
9 | // RSpec/Bacon Style
10 | with (jqUnit) {
11 |
12 | describe('jquery-claypool', 'models-spec', {
13 |
14 | before: function(){
15 | //no setup for this portion of the spec
16 | }
17 |
18 | }).should('do something cool', function(){
19 |
20 | });
21 |
22 | }
23 |
24 | })(jQuery);
25 |
26 |
--------------------------------------------------------------------------------
/test/specs/mvc-spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery-claypool mvc-spec
3 | *
4 | * @author Chris Thatcher
5 | * @email thatcher.christopher@gmail.com
6 | */
7 | (function($){
8 |
9 | // RSpec/Bacon Style
10 | with (jqUnit) {
11 |
12 | describe('jquery-claypool', 'mvc-spec', {
13 |
14 | before: function(){
15 | //no setup for this portion of the spec
16 | }
17 |
18 | }).should('do something cool', function(){
19 |
20 | });
21 |
22 | }
23 |
24 | })(jQuery);
25 |
26 |
--------------------------------------------------------------------------------
/test/specs/server-spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery-claypool server-spec
3 | *
4 | * @author Chris Thatcher
5 | * @email thatcher.christopher@gmail.com
6 | */
7 | (function($){
8 |
9 | // RSpec/Bacon Style
10 | with (jqUnit) {
11 |
12 | describe('jquery-claypool', 'server-spec', {
13 |
14 | before: function(){
15 | //no setup for this portion of the spec
16 | }
17 |
18 | }).should('do something cool', function(){
19 |
20 | });
21 |
22 | }
23 |
24 | })(jQuery);
25 |
26 |
--------------------------------------------------------------------------------