From 1c5685d68f1b73270fb814fe04cbb490eb90ba5f Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 14 Nov 2008 15:39:19 +0000 Subject: Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f --- .../js/dojox/data/demos/demo_DataDemoTable.html | 130 ---------- .../js/dojox/data/demos/demo_FlickrRestStore.html | 275 --------------------- includes/js/dojox/data/demos/demo_FlickrStore.html | 199 --------------- includes/js/dojox/data/demos/demo_LazyLoad.html | 66 ----- includes/js/dojox/data/demos/demo_MultiStores.html | 72 ------ includes/js/dojox/data/demos/demo_PicasaStore.html | 188 -------------- .../data/demos/demo_QueryReadStore_ComboBox.html | 56 ----- .../demos/demo_QueryReadStore_FilteringSelect.html | 56 ----- .../dojox/data/demos/demo_QueryReadStore_grid.html | 129 ---------- includes/js/dojox/data/demos/flickrDemo.css | 29 --- .../dojox/data/demos/flickrDemo.css.commented.css | 35 --- includes/js/dojox/data/demos/geography.json | 45 ---- includes/js/dojox/data/demos/geography.xml | 51 ---- .../dojox/data/demos/geography/Argentina/data.json | 5 - .../js/dojox/data/demos/geography/Brazil/data.json | 5 - .../data/demos/geography/Canada/Ottawa/data.json | 6 - .../data/demos/geography/Canada/Toronto/data.json | 6 - .../js/dojox/data/demos/geography/Canada/data.json | 10 - .../js/dojox/data/demos/geography/China/data.json | 4 - .../geography/Commonwealth of Australia/data.json | 5 - .../js/dojox/data/demos/geography/Egypt/data.json | 5 - .../js/dojox/data/demos/geography/France/data.json | 4 - .../dojox/data/demos/geography/Germany/data.json | 4 - .../js/dojox/data/demos/geography/India/data.json | 4 - .../js/dojox/data/demos/geography/Italy/data.json | 4 - .../data/demos/geography/Kenya/Mombasa/data.json | 5 - .../data/demos/geography/Kenya/Nairobi/data.json | 5 - .../js/dojox/data/demos/geography/Kenya/data.json | 9 - .../demos/geography/Mexico/Guadalajara/data.json | 7 - .../demos/geography/Mexico/Mexico City/data.json | 6 - .../js/dojox/data/demos/geography/Mexico/data.json | 10 - .../dojox/data/demos/geography/Mongolia/data.json | 4 - .../js/dojox/data/demos/geography/Russia/data.json | 4 - .../js/dojox/data/demos/geography/Spain/data.json | 4 - .../data/demos/geography/Sudan/Khartoum/data.json | 5 - .../js/dojox/data/demos/geography/Sudan/data.json | 6 - .../geography/United States of America/data.json | 4 - includes/js/dojox/data/demos/geography/root.json | 39 --- includes/js/dojox/data/demos/picasaDemo.css | 37 --- .../dojox/data/demos/picasaDemo.css.commented.css | 44 ---- .../js/dojox/data/demos/stores/LazyLoadJSIStore.js | 142 ----------- includes/js/dojox/data/demos/widgets/FlickrView.js | 36 --- .../js/dojox/data/demos/widgets/FlickrViewList.js | 37 --- includes/js/dojox/data/demos/widgets/PicasaView.js | 37 --- .../js/dojox/data/demos/widgets/PicasaViewList.js | 37 --- .../data/demos/widgets/templates/FlickrView.html | 34 --- .../demos/widgets/templates/FlickrViewList.html | 2 - .../data/demos/widgets/templates/PicasaView.html | 35 --- .../demos/widgets/templates/PicasaViewList.html | 2 - 49 files changed, 1944 deletions(-) delete mode 100644 includes/js/dojox/data/demos/demo_DataDemoTable.html delete mode 100644 includes/js/dojox/data/demos/demo_FlickrRestStore.html delete mode 100644 includes/js/dojox/data/demos/demo_FlickrStore.html delete mode 100644 includes/js/dojox/data/demos/demo_LazyLoad.html delete mode 100644 includes/js/dojox/data/demos/demo_MultiStores.html delete mode 100644 includes/js/dojox/data/demos/demo_PicasaStore.html delete mode 100644 includes/js/dojox/data/demos/demo_QueryReadStore_ComboBox.html delete mode 100644 includes/js/dojox/data/demos/demo_QueryReadStore_FilteringSelect.html delete mode 100644 includes/js/dojox/data/demos/demo_QueryReadStore_grid.html delete mode 100644 includes/js/dojox/data/demos/flickrDemo.css delete mode 100644 includes/js/dojox/data/demos/flickrDemo.css.commented.css delete mode 100644 includes/js/dojox/data/demos/geography.json delete mode 100644 includes/js/dojox/data/demos/geography.xml delete mode 100644 includes/js/dojox/data/demos/geography/Argentina/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Brazil/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Canada/Ottawa/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Canada/Toronto/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Canada/data.json delete mode 100644 includes/js/dojox/data/demos/geography/China/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Commonwealth of Australia/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Egypt/data.json delete mode 100644 includes/js/dojox/data/demos/geography/France/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Germany/data.json delete mode 100644 includes/js/dojox/data/demos/geography/India/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Italy/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Kenya/Mombasa/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Kenya/Nairobi/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Kenya/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Mexico/Guadalajara/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Mexico/Mexico City/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Mexico/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Mongolia/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Russia/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Spain/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Sudan/Khartoum/data.json delete mode 100644 includes/js/dojox/data/demos/geography/Sudan/data.json delete mode 100644 includes/js/dojox/data/demos/geography/United States of America/data.json delete mode 100644 includes/js/dojox/data/demos/geography/root.json delete mode 100644 includes/js/dojox/data/demos/picasaDemo.css delete mode 100644 includes/js/dojox/data/demos/picasaDemo.css.commented.css delete mode 100644 includes/js/dojox/data/demos/stores/LazyLoadJSIStore.js delete mode 100644 includes/js/dojox/data/demos/widgets/FlickrView.js delete mode 100644 includes/js/dojox/data/demos/widgets/FlickrViewList.js delete mode 100644 includes/js/dojox/data/demos/widgets/PicasaView.js delete mode 100644 includes/js/dojox/data/demos/widgets/PicasaViewList.js delete mode 100644 includes/js/dojox/data/demos/widgets/templates/FlickrView.html delete mode 100644 includes/js/dojox/data/demos/widgets/templates/FlickrViewList.html delete mode 100644 includes/js/dojox/data/demos/widgets/templates/PicasaView.html delete mode 100644 includes/js/dojox/data/demos/widgets/templates/PicasaViewList.html (limited to 'includes/js/dojox/data/demos') diff --git a/includes/js/dojox/data/demos/demo_DataDemoTable.html b/includes/js/dojox/data/demos/demo_DataDemoTable.html deleted file mode 100644 index 09761b9..0000000 --- a/includes/js/dojox/data/demos/demo_DataDemoTable.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - Dojo Visual Loader Test - - - - - - - - - - -

Dojox Data Demo Table

- - - - - - - - - - - - - - -
- - - - - - - - - - diff --git a/includes/js/dojox/data/demos/demo_FlickrRestStore.html b/includes/js/dojox/data/demos/demo_FlickrRestStore.html deleted file mode 100644 index a094bc6..0000000 --- a/includes/js/dojox/data/demos/demo_FlickrRestStore.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - Demo of FlickrRestStore - - - - - - - -

- DEMO: FlickrRestStore Search -

-
-

- Description: -

-

- This simple demo shows how services, such as Flickr, can be wrapped by the datastore API. - In this demo, you can search public Flickr images through a FlickrRestStore by specifying - a series of tags (separated by spaces) to search on. The results will be displayed below the search box. -

-

- For fun, search on the 3dny tag! -

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Status: - -
-
- User ID: - -
-
- Set ID - -
-
- Tags: - -
-
- Full Text - -
-
- Tagmode: - - - - Sort - - - -
- Number of Pictures: - -
-
- Page: - -
-
- -
-
-
-
-
- - - diff --git a/includes/js/dojox/data/demos/demo_FlickrStore.html b/includes/js/dojox/data/demos/demo_FlickrStore.html deleted file mode 100644 index 5ca48cf..0000000 --- a/includes/js/dojox/data/demos/demo_FlickrStore.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - Demo of FlickrStore - - - - - - - -

- DEMO: FlickrStore Search -

-
-

- Description: -

-

- This simple demo shows how services, such as Flickr, can be wrapped by the datastore API. In this demo, you can search public Flickr images through a simple FlickrStore by specifying a series of tags (separated by spaces) to search on. The results will be displayed below the search box. -

-

- For fun, search on the 3dny tag! -

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Status: - -
-
- ID: - -
-
- Tags: - -
-
- Tagmode: - - -
- Number of Pictures: - -
-
- -
-
-
-
-
- - - diff --git a/includes/js/dojox/data/demos/demo_LazyLoad.html b/includes/js/dojox/data/demos/demo_LazyLoad.html deleted file mode 100644 index 358ce84..0000000 --- a/includes/js/dojox/data/demos/demo_LazyLoad.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - Demo of Lazy Loading Datastore - - - - - - - -

- DEMO: Lazy Loading Datastore used by dijit.Tree -

-
-

- Description: -

-

- This simple demo shows how the dijit.Tree widget can work with a Datastore that does lazy-loading of values into the tree. - In this demo, the Datastore is an extension of ItemFileReadStore that overrides the isItemLoaded() and loadItem() functions of - with ones that can detect 'stub' items and use the data in the stub item to load the real data for that item when it - is required. In this demo, the real data is required when one of the tree nodes is expanded. -

-

- The key thing to note is that all the lazy-loading logic (how to locate the data from the backend and so forth) is encapsulated - into the store functions. The dijit.Tree widget only knows about and uses the dojo.data.Read API interfaces to call to the store to - get items, test if child items are fully loaded or not, and to invoke the loadItem() function on items that are not yet fully - loaded but have been requested to be expanded into view. It has no knowledge of how the store actually goes and gets the data. -

- -
- - -
- - - Continents -
-
- - - diff --git a/includes/js/dojox/data/demos/demo_MultiStores.html b/includes/js/dojox/data/demos/demo_MultiStores.html deleted file mode 100644 index 9faa8be..0000000 --- a/includes/js/dojox/data/demos/demo_MultiStores.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - Demo of Multiple Widgets using different Datastores - - - - - - - -

- DEMO: Multiple DataStore implementations with dojo.data aware Widgets -

-
-

- Description: -

-

- This simple demo shows how widgets which know only the dojo.data interfaces can work with data sources of varying formats. In this case an OpmlStore - and a ItemFileReadStore are used to house the same data in different formats. -

- -
- - -
-
- -

- Widgets using OpmlStore: -

-
- ComboBox:
- -
-
- - Tree:
-
-
- -

- Widgets using ItemFileReadStore: -

-
- ComboBox:
- -
-
- - Tree:
-
-
- - diff --git a/includes/js/dojox/data/demos/demo_PicasaStore.html b/includes/js/dojox/data/demos/demo_PicasaStore.html deleted file mode 100644 index 78bc961..0000000 --- a/includes/js/dojox/data/demos/demo_PicasaStore.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - Demo of PicasaStore - - - - - - - -

- DEMO: PicasaStore Search -

-
-

- Description: -

-

- This simple demo shows how services, such as Flickr, can be wrapped by the datastore API. In this demo, you can search public Flickr images through a simple FlickrStore by specifying a series of tags (separated by spaces) to search on. The results will be displayed below the search box. -

-

- For fun, search on the 3dny tag! -

- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- Status: - -
-
- ID: - -
-
- Query: - -
-
- Number of Pictures: - -
-
-
- -
-
-
-
-
- - - diff --git a/includes/js/dojox/data/demos/demo_QueryReadStore_ComboBox.html b/includes/js/dojox/data/demos/demo_QueryReadStore_ComboBox.html deleted file mode 100644 index f6d187f..0000000 --- a/includes/js/dojox/data/demos/demo_QueryReadStore_ComboBox.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - Dojox QueryReadStore+ComboBox Demo - - - - - - -

Dojox QueryReadStore + ComboBox demo

- -

Everything is created ONLY in markup

-
-
-
- -
-
- var w = dijit.byId("cb1"); -
= w.value -
= w.item ? w.store.getValue(w.item, "id") : "-" -
= w.getDisplayedValue() -
= w.isValid() -
-
- - - - diff --git a/includes/js/dojox/data/demos/demo_QueryReadStore_FilteringSelect.html b/includes/js/dojox/data/demos/demo_QueryReadStore_FilteringSelect.html deleted file mode 100644 index addaeca..0000000 --- a/includes/js/dojox/data/demos/demo_QueryReadStore_FilteringSelect.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - Dojox QueryReadStore+FilteringSelect Demo - - - - - - -

Dojox QueryReadStore + FilteringSelect demo

- -

Everything is created ONLY in markup

-
-
-
- -
-
- var w = dijit.byId("fs1"); -
= w.value -
= w.item ? w.store.getValue(w.item, "id") : "-" -
= w.getDisplayedValue() -
= w.isValid() -
-
- - - - diff --git a/includes/js/dojox/data/demos/demo_QueryReadStore_grid.html b/includes/js/dojox/data/demos/demo_QueryReadStore_grid.html deleted file mode 100644 index 3f7db7e..0000000 --- a/includes/js/dojox/data/demos/demo_QueryReadStore_grid.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - Dojox QueryReadStore+grid Demo - - - - - - -

Dojox QueryReadStore + Grid demo - paging, sortable and filterable all server-side

- -

The grid is in HTML, store, model, etc. are JS, sorting is added by extending the model class

- Capabilities: load data from server, show data, paging (30 rows at a time), sort, filter
- You can see that data are loaded upon demand by scrolling down in the grid below line #30, - open FireBug and you see a server request being issued, to retreive another 30 rows/items.
-

- -
- -

The store and grid are "generated" and connected in HTML, filtering is done via JS

- This store is by default sorted descending by name (not as the one above, which is ascending). -
-
-
- - - - - - diff --git a/includes/js/dojox/data/demos/flickrDemo.css b/includes/js/dojox/data/demos/flickrDemo.css deleted file mode 100644 index 793d1c6..0000000 --- a/includes/js/dojox/data/demos/flickrDemo.css +++ /dev/null @@ -1,29 +0,0 @@ -.flickrView { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; - border-collapse: separate; - width: 100%; -} -.flickrView th { - text-align: left; -} -.flickrView tr { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; -} -.flickrView tr td { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; -} -.flickrView { - background-color: #EFEFEF; -} -.flickrTitle { - background-color: #CCCCCC; -} diff --git a/includes/js/dojox/data/demos/flickrDemo.css.commented.css b/includes/js/dojox/data/demos/flickrDemo.css.commented.css deleted file mode 100644 index 7e75a5d..0000000 --- a/includes/js/dojox/data/demos/flickrDemo.css.commented.css +++ /dev/null @@ -1,35 +0,0 @@ -.flickrView { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; - border-collapse: separate; - width: 100%; -} - -.flickrView th { - text-align: left; -} - -.flickrView tr { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; -} - -.flickrView tr td { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; -} - -.flickrView { - background-color: #EFEFEF; -} - -.flickrTitle { - background-color: #CCCCCC; -} - diff --git a/includes/js/dojox/data/demos/geography.json b/includes/js/dojox/data/demos/geography.json deleted file mode 100644 index c2f01bb..0000000 --- a/includes/js/dojox/data/demos/geography.json +++ /dev/null @@ -1,45 +0,0 @@ -{ identifier: 'name', - label: 'name', - items: [ - { name:'Africa', type:'continent', children:[ - { name:'Egypt', type:'country' }, - { name:'Kenya', type:'country', children:[ - { name:'Nairobi', type:'city' }, - { name:'Mombasa', type:'city' } ] - }, - { name:'Sudan', type:'country', children: - { name:'Khartoum', type:'city' } - } ] - }, - { name:'Asia', type:'continent', children:[ - { name:'China', type:'country' }, - { name:'India', type:'country' }, - { name:'Russia', type:'country' }, - { name:'Mongolia', type:'country' } ] - }, - { name:'Australia', type:'continent', population:'21 million', children: - { name:'Commonwealth of Australia', type:'country', population:'21 million'} - }, - { name:'Europe', type:'continent', children:[ - { name:'Germany', type:'country' }, - { name:'France', type:'country' }, - { name:'Spain', type:'country' }, - { name:'Italy', type:'country' } ] - }, - { name:'North America', type:'continent', children:[ - { name:'Mexico', type:'country', population:'108 million', area:'1,972,550 sq km', children:[ - { name:'Mexico City', type:'city', population:'19 million', timezone:'-6 UTC'}, - { name:'Guadalajara', type:'city', population:'4 million', timezone:'-6 UTC' } ] - }, - { name:'Canada', type:'country', population:'33 million', area:'9,984,670 sq km', children:[ - { name:'Ottawa', type:'city', population:'0.9 million', timezone:'-5 UTC'}, - { name:'Toronto', type:'city', population:'2.5 million', timezone:'-5 UTC' }] - }, - { name:'United States of America', type:'country' } ] - }, - { name:'South America', type:'continent', children:[ - { name:'Brazil', type:'country', population:'186 million' }, - { name:'Argentina', type:'country', population:'40 million' } ] - } ] -} - diff --git a/includes/js/dojox/data/demos/geography.xml b/includes/js/dojox/data/demos/geography.xml deleted file mode 100644 index 070a8c1..0000000 --- a/includes/js/dojox/data/demos/geography.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - geography.opml - 2006-11-10 - 2006-11-13 - Magellan, Ferdinand - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/js/dojox/data/demos/geography/Argentina/data.json b/includes/js/dojox/data/demos/geography/Argentina/data.json deleted file mode 100644 index 17ba291..0000000 --- a/includes/js/dojox/data/demos/geography/Argentina/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - name:'Argentina', - type:'country', - population:'40 million' -} diff --git a/includes/js/dojox/data/demos/geography/Brazil/data.json b/includes/js/dojox/data/demos/geography/Brazil/data.json deleted file mode 100644 index a326c24..0000000 --- a/includes/js/dojox/data/demos/geography/Brazil/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - name:'Brazil', - type:'country', - population:'186 million' -} diff --git a/includes/js/dojox/data/demos/geography/Canada/Ottawa/data.json b/includes/js/dojox/data/demos/geography/Canada/Ottawa/data.json deleted file mode 100644 index df3bbc8..0000000 --- a/includes/js/dojox/data/demos/geography/Canada/Ottawa/data.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - name:'Ottawa', - type:'city', - population:'0.9 million', - timezone:'-5 UTC' -} diff --git a/includes/js/dojox/data/demos/geography/Canada/Toronto/data.json b/includes/js/dojox/data/demos/geography/Canada/Toronto/data.json deleted file mode 100644 index 534409b..0000000 --- a/includes/js/dojox/data/demos/geography/Canada/Toronto/data.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - name:'Toronto', - type:'city', - population:'2.5 million', - timezone:'-5 UTC' -} diff --git a/includes/js/dojox/data/demos/geography/Canada/data.json b/includes/js/dojox/data/demos/geography/Canada/data.json deleted file mode 100644 index 6ef34ed..0000000 --- a/includes/js/dojox/data/demos/geography/Canada/data.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - name:'Canada', - type:'country', - population:'33 million', area:'9,984,670 sq km', - children:[ - {stub:'Ottawa'}, - {stub:'Toronto'} - ] -} - diff --git a/includes/js/dojox/data/demos/geography/China/data.json b/includes/js/dojox/data/demos/geography/China/data.json deleted file mode 100644 index 72c29cc..0000000 --- a/includes/js/dojox/data/demos/geography/China/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'China', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/Commonwealth of Australia/data.json b/includes/js/dojox/data/demos/geography/Commonwealth of Australia/data.json deleted file mode 100644 index e093295..0000000 --- a/includes/js/dojox/data/demos/geography/Commonwealth of Australia/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - name:'Commonwealth of Australia', - type:'country', - population:'21 million' -} diff --git a/includes/js/dojox/data/demos/geography/Egypt/data.json b/includes/js/dojox/data/demos/geography/Egypt/data.json deleted file mode 100644 index d355537..0000000 --- a/includes/js/dojox/data/demos/geography/Egypt/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - name:'Egypt', - type:'country' -} - diff --git a/includes/js/dojox/data/demos/geography/France/data.json b/includes/js/dojox/data/demos/geography/France/data.json deleted file mode 100644 index 5b5f3c3..0000000 --- a/includes/js/dojox/data/demos/geography/France/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'France', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/Germany/data.json b/includes/js/dojox/data/demos/geography/Germany/data.json deleted file mode 100644 index 1656257..0000000 --- a/includes/js/dojox/data/demos/geography/Germany/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'Germany', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/India/data.json b/includes/js/dojox/data/demos/geography/India/data.json deleted file mode 100644 index 3103f89..0000000 --- a/includes/js/dojox/data/demos/geography/India/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'India', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/Italy/data.json b/includes/js/dojox/data/demos/geography/Italy/data.json deleted file mode 100644 index 6e6b076..0000000 --- a/includes/js/dojox/data/demos/geography/Italy/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'Italy', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/Kenya/Mombasa/data.json b/includes/js/dojox/data/demos/geography/Kenya/Mombasa/data.json deleted file mode 100644 index 28aa849..0000000 --- a/includes/js/dojox/data/demos/geography/Kenya/Mombasa/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - name:'Mombasa', - type:'city', - population: "Unknown" -} diff --git a/includes/js/dojox/data/demos/geography/Kenya/Nairobi/data.json b/includes/js/dojox/data/demos/geography/Kenya/Nairobi/data.json deleted file mode 100644 index f5658ec..0000000 --- a/includes/js/dojox/data/demos/geography/Kenya/Nairobi/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - name:'Nairobi', - type:'city', - population: "Unknown" -} diff --git a/includes/js/dojox/data/demos/geography/Kenya/data.json b/includes/js/dojox/data/demos/geography/Kenya/data.json deleted file mode 100644 index 9253c25..0000000 --- a/includes/js/dojox/data/demos/geography/Kenya/data.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - name:'Kenya', - type:'country', - children:[ - {stub:'Nairobi'}, - {stub:'Mombasa'} - ] -} - diff --git a/includes/js/dojox/data/demos/geography/Mexico/Guadalajara/data.json b/includes/js/dojox/data/demos/geography/Mexico/Guadalajara/data.json deleted file mode 100644 index 059fc82..0000000 --- a/includes/js/dojox/data/demos/geography/Mexico/Guadalajara/data.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - name:'Guadalajara', - type:'city', - population:'4 million', - timezone:'-6 UTC' -} - diff --git a/includes/js/dojox/data/demos/geography/Mexico/Mexico City/data.json b/includes/js/dojox/data/demos/geography/Mexico/Mexico City/data.json deleted file mode 100644 index 8c67622..0000000 --- a/includes/js/dojox/data/demos/geography/Mexico/Mexico City/data.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - name:'Mexico City', - type:'city', - population:'19 million', - timezone:'-6 UTC' -} diff --git a/includes/js/dojox/data/demos/geography/Mexico/data.json b/includes/js/dojox/data/demos/geography/Mexico/data.json deleted file mode 100644 index aa381e4..0000000 --- a/includes/js/dojox/data/demos/geography/Mexico/data.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - name:'Mexico', - type:'country', - population:'108 million', - area:'1,972,550 sq km', - children:[ - {stub:'Mexico City'}, - {stub:'Guadalajara'} - ] -} diff --git a/includes/js/dojox/data/demos/geography/Mongolia/data.json b/includes/js/dojox/data/demos/geography/Mongolia/data.json deleted file mode 100644 index 4c60b22..0000000 --- a/includes/js/dojox/data/demos/geography/Mongolia/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'Mongolia', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/Russia/data.json b/includes/js/dojox/data/demos/geography/Russia/data.json deleted file mode 100644 index 5d9a6ba..0000000 --- a/includes/js/dojox/data/demos/geography/Russia/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'Russia', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/Spain/data.json b/includes/js/dojox/data/demos/geography/Spain/data.json deleted file mode 100644 index d9a1210..0000000 --- a/includes/js/dojox/data/demos/geography/Spain/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'Spain', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/Sudan/Khartoum/data.json b/includes/js/dojox/data/demos/geography/Sudan/Khartoum/data.json deleted file mode 100644 index befa3c7..0000000 --- a/includes/js/dojox/data/demos/geography/Sudan/Khartoum/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - name:'Khartoum', - type:'city' -} - diff --git a/includes/js/dojox/data/demos/geography/Sudan/data.json b/includes/js/dojox/data/demos/geography/Sudan/data.json deleted file mode 100644 index fe7585b..0000000 --- a/includes/js/dojox/data/demos/geography/Sudan/data.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - name:'Sudan', - type:'country', - children:{stub:'Khartoum'} -} - diff --git a/includes/js/dojox/data/demos/geography/United States of America/data.json b/includes/js/dojox/data/demos/geography/United States of America/data.json deleted file mode 100644 index 7dbdd61..0000000 --- a/includes/js/dojox/data/demos/geography/United States of America/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - name:'United States of America', - type:'country' -} diff --git a/includes/js/dojox/data/demos/geography/root.json b/includes/js/dojox/data/demos/geography/root.json deleted file mode 100644 index dda74f5..0000000 --- a/includes/js/dojox/data/demos/geography/root.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - identifier: 'name', - label: 'name', - items: [ - { name:'Africa', type:'continent', - children:[{_reference:'Egypt'}, {_reference:'Kenya'}, {_reference:'Sudan'}] }, - { name:'Egypt', type:'stub', parent: 'geography'}, - { name:'Kenya', type:'stub', parent: 'geography'}, - { name:'Sudan', type:'stub', parent: 'geography'}, - - { name:'Asia', type:'continent', - children:[{_reference:'China'}, {_reference:'India'}, {_reference:'Russia'}, {_reference:'Mongolia'}] }, - { name:'China', type:'stub', parent: 'geography'}, - { name:'India', type:'stub', parent: 'geography'}, - { name:'Russia', type:'stub', parent: 'geography'}, - { name:'Mongolia', type:'stub', parent: 'geography'}, - - { name:'Australia', type:'continent', population:'21 million', - children:{_reference:'Commonwealth of Australia'}}, - { name:'Commonwealth of Australia', type:'stub', parent:'geography'}, - - { name:'Europe', type:'continent', - children:[{_reference:'Germany'}, {_reference:'France'}, {_reference:'Spain'}, {_reference:'Italy'}] }, - { name:'Germany', type:'stub', parent: 'geography'}, - { name:'France', type:'stub', parent: 'geography'}, - { name:'Spain', type:'stub', parent: 'geography'}, - { name:'Italy', type:'stub', parent: 'geography'}, - - { name:'North America', type:'continent', - children:[{_reference:'Mexico'}, {_reference:'Canada'}, {_reference:'United States of America'}] }, - { name:'Mexico', type:'stub', parent: 'geography'}, - { name:'Canada', type:'stub', parent: 'geography'}, - { name:'United States of America', type:'stub', parent: 'geography'}, - - { name:'South America', type:'continent', - children:[{_reference:'Brazil'}, {_reference:'Argentina'}] }, - { name:'Brazil', type:'stub', parent: 'geography'}, - { name:'Argentina', type:'stub', parent: 'geography'} -]} diff --git a/includes/js/dojox/data/demos/picasaDemo.css b/includes/js/dojox/data/demos/picasaDemo.css deleted file mode 100644 index 9163d40..0000000 --- a/includes/js/dojox/data/demos/picasaDemo.css +++ /dev/null @@ -1,37 +0,0 @@ -.picasaView { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; - border-collapse: separate; - width: 100%; -} -.picasaView th { - text-align: left; -} -.picasaView tr { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; -} -.picasaView tr td { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; -} -.picasaView { - background-color: #EFEFEF; - float: left; - width: 250px; - height: 250px; -} -.picasaSummary { - width: 250px; - height: 30px; - overflow: hidden; - } -.picasaTitle { - background-color: #CCCCCC; -} diff --git a/includes/js/dojox/data/demos/picasaDemo.css.commented.css b/includes/js/dojox/data/demos/picasaDemo.css.commented.css deleted file mode 100644 index e274f87..0000000 --- a/includes/js/dojox/data/demos/picasaDemo.css.commented.css +++ /dev/null @@ -1,44 +0,0 @@ -.picasaView { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; - border-collapse: separate; - width: 100%; -} - -.picasaView th { - text-align: left; -} - -.picasaView tr { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; -} - -.picasaView tr td { - padding: 3 3 3 3; - border-width: 1px; - border-style: solid; - border-color: #000000; -} - -.picasaView { - background-color: #EFEFEF; - float: left; - width: 250px; - height: 250px; -} - -.picasaSummary { - width: 250px; - height: 30px; - overflow: hidden; - } - -.picasaTitle { - background-color: #CCCCCC; -} - diff --git a/includes/js/dojox/data/demos/stores/LazyLoadJSIStore.js b/includes/js/dojox/data/demos/stores/LazyLoadJSIStore.js deleted file mode 100644 index e7acff7..0000000 --- a/includes/js/dojox/data/demos/stores/LazyLoadJSIStore.js +++ /dev/null @@ -1,142 +0,0 @@ -if(!dojo._hasResource["dojox.data.demos.stores.LazyLoadJSIStore"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.data.demos.stores.LazyLoadJSIStore"] = true; -dojo.provide("dojox.data.demos.stores.LazyLoadJSIStore"); -dojo.require("dojo.data.ItemFileReadStore"); - -dojo.declare("dojox.data.demos.stores.LazyLoadJSIStore", dojo.data.ItemFileReadStore, { - constructor: function(/* object */ keywordParameters){ - // LazyLoadJSIStore extends ItemFileReadStore to implement an - // example of lazy-loading/faulting in items on-demand. - // Note this is certianly not a perfect implementation, it is - // an example. - }, - - isItemLoaded: function(/*object*/ item) { - // summary: - // Overload of the isItemLoaded function to look for items of type 'stub', which indicate - // the data hasn't been loaded in yet. - // - // item: - // The item to examine. - - //For this store, if it has the value of stub for its type attribute, - //then the item basn't been fully loaded yet. It's just a placeholder. - if(this.getValue(item, "type") === "stub"){ - return false; - } - return true; - }, - - loadItem: function(keywordArgs){ - // summary: - // Overload of the loadItem function to fault in items. This assumes the data for an item is laid out - // in a RESTful sort of pattern name0/name1/data.json and so on and uses that to load the data. - // It will also detect stub items in the newly loaded item and insert the stubs into the ItemFileReadStore - // list so they can also be loaded in on-demand. - // - // item: - // The item to examine. - - var item = keywordArgs.item; - this._assertIsItem(item); - - //Build the path to the data.json for this item - //The path consists of where its parent was loaded from - //plus the item name. - var itemName = this.getValue(item, "name"); - var parent = this.getValue(item, "parent"); - var dataUrl = ""; - if (parent){ - dataUrl += (parent + "/"); - } - - //For this store, all child input data is loaded from a url that ends with data.json - dataUrl += itemName + "/data.json"; - - //Need a reference to the store to call back to its structures. - var self = this; - - // Callback for handling a successful load. - var gotData = function(data){ - //Now we need to modify the existing item a bit to take it out of stub state - //Since we extend the store and have knowledge of the internal - //structure, this can be done here. Now, is we extended - //a write store, we could call the write APIs to do this too - //But for a simple demo the diretc modification in the store function - //is sufficient. - - //Clear off the stub indicators. - delete item.type; - delete item.parent; - - //Set up the loaded values in the format ItemFileReadStore uses for attributes. - for (i in data) { - if (dojo.isArray(data[i])) { - item[i] = data[i]; - }else{ - item[i] = [data[i]]; - } - } - - //Reset the item in the reference. - self._arrayOfAllItems[item[self._itemNumPropName]] = item; - - //Scan the new values in the item for extra stub items we need to - //add to the items array of the store so they can be lazy-loaded later... - var attributes = self.getAttributes(item); - for(i in attributes){ - var values = self.getValues(item, attributes[i]); - for (var j = 0; j < values.length; j++) { - var value = values[j]; - - if(typeof value === "object"){ - if(value["stub"] ){ - //We have a stub reference here, we need to create the stub item - var stub = { - type: ["stub"], - name: [value["stub"]], // - parent: [itemName] //The child stub item is parented by this item name... - }; - if (parent) { - //Add in any parents to your parent so URL construstruction is accurate. - stub.parent[0] = parent + "/" + stub.parent[0]; - } - //Finalize the addition of the new stub item into the ItemFileReadStore list. - self._arrayOfAllItems.push(stub); - stub[self._storeRefPropName] = self; - stub[self._itemNumPropName] = (self._arrayOfAllItems.length - 1); //Last one pushed in should be the item - values[j] = stub; //Set the stub item back in its place and replace the stub notation. - } - } - } - } - - //Done processing! Call the onItem, if any. - if(keywordArgs.onItem){ - var scope = keywordArgs.scope ? keywordArgs.scope : dojo.global; - keywordArgs.onItem.call(scope, item); - } - }; - - //Callback for any errors that occur during load. - var gotError = function(error){ - //Call the onComplete, if any - if(keywordArgs.onError){ - var scope = keywordArgs.scope ? keywordArgs.scope : dojo.global; - keywordArgs.onError.call(scope, error); - } - }; - - //Fire the get and pass the proper callbacks to the deferred. - var xhrArgs = { - url: dataUrl, - handleAs: "json-comment-optional" - }; - var d = dojo.xhrGet(xhrArgs); - d.addCallback(gotData); - d.addErrback(gotError); - } -}); - - -} diff --git a/includes/js/dojox/data/demos/widgets/FlickrView.js b/includes/js/dojox/data/demos/widgets/FlickrView.js deleted file mode 100644 index cacb127..0000000 --- a/includes/js/dojox/data/demos/widgets/FlickrView.js +++ /dev/null @@ -1,36 +0,0 @@ -if(!dojo._hasResource["dojox.data.demos.widgets.FlickrView"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.data.demos.widgets.FlickrView"] = true; -dojo.provide("dojox.data.demos.widgets.FlickrView"); -dojo.require("dijit._Templated"); -dojo.require("dijit._Widget"); - -dojo.declare("dojox.data.demos.widgets.FlickrView", [dijit._Widget, dijit._Templated], { - //Simple demo widget for representing a view of a Flickr Item. - - templateString:"\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t\n
\n\t\t\t\t\n\t\t\t\t\tTitle:\n\t\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tAuthor:\n\t\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tImage:\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\n", - - //Attach points for reference. - titleNode: null, - descriptionNode: null, - imageNode: null, - authorNode: null, - - title: "", - author: "", - imageUrl: "", - iconUrl: "", - - postCreate: function(){ - this.titleNode.appendChild(document.createTextNode(this.title)); - this.authorNode.appendChild(document.createTextNode(this.author)); - var href = document.createElement("a"); - href.setAttribute("href", this.imageUrl); - href.setAttribute("target", "_blank"); - var imageTag = document.createElement("img"); - imageTag.setAttribute("src", this.iconUrl); - href.appendChild(imageTag); - this.imageNode.appendChild(href); - } -}); - -} diff --git a/includes/js/dojox/data/demos/widgets/FlickrViewList.js b/includes/js/dojox/data/demos/widgets/FlickrViewList.js deleted file mode 100644 index 2c3c881..0000000 --- a/includes/js/dojox/data/demos/widgets/FlickrViewList.js +++ /dev/null @@ -1,37 +0,0 @@ -if(!dojo._hasResource["dojox.data.demos.widgets.FlickrViewList"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.data.demos.widgets.FlickrViewList"] = true; -dojo.provide("dojox.data.demos.widgets.FlickrViewList"); -dojo.require("dijit._Templated"); -dojo.require("dijit._Widget"); -dojo.require("dojox.data.demos.widgets.FlickrView"); - -dojo.declare("dojox.data.demos.widgets.FlickrViewList", [dijit._Widget, dijit._Templated], { - //Simple demo widget that is just a list of FlickrView Widgets. - - templateString:"
\n\n", - - //Attach points for reference. - listNode: null, - - postCreate: function(){ - this.fViewWidgets = []; - }, - - clearList: function(){ - while(this.list.firstChild){ - this.list.removeChild(this.list.firstChild); - } - for(var i = 0; i < this.fViewWidgets.length; i++){ - this.fViewWidgets[i].destroy(); - } - this.fViewWidgets = []; - }, - - addView: function(viewData){ - var newView = new dojox.data.demos.widgets.FlickrView(viewData); - this.fViewWidgets.push(newView); - this.list.appendChild(newView.domNode); - } -}); - -} diff --git a/includes/js/dojox/data/demos/widgets/PicasaView.js b/includes/js/dojox/data/demos/widgets/PicasaView.js deleted file mode 100644 index 6b100ac..0000000 --- a/includes/js/dojox/data/demos/widgets/PicasaView.js +++ /dev/null @@ -1,37 +0,0 @@ -if(!dojo._hasResource["dojox.data.demos.widgets.PicasaView"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.data.demos.widgets.PicasaView"] = true; -dojo.provide("dojox.data.demos.widgets.PicasaView"); -dojo.require("dijit._Templated"); -dojo.require("dijit._Widget"); - -dojo.declare("dojox.data.demos.widgets.PicasaView", [dijit._Widget, dijit._Templated], { - //Simple demo widget for representing a view of a Picasa Item. - - templateString:"\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t\n
\n\t\t\t\t\n\t\t\t\t\tTitle:\n\t\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tAuthor:\n\t\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tSummary:\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\n", - - //Attach points for reference. - titleNode: null, - descriptionNode: null, - imageNode: null, - authorNode: null, - - title: "", - author: "", - imageUrl: "", - iconUrl: "", - - postCreate: function(){ - this.titleNode.appendChild(document.createTextNode(this.title)); - this.authorNode.appendChild(document.createTextNode(this.author)); - this.descriptionNode.appendChild(document.createTextNode(this.description)); - var href = document.createElement("a"); - href.setAttribute("href", this.imageUrl); - href.setAttribute("target", "_blank"); - var imageTag = document.createElement("img"); - imageTag.setAttribute("src", this.iconUrl); - href.appendChild(imageTag); - this.imageNode.appendChild(href); - } -}); - -} diff --git a/includes/js/dojox/data/demos/widgets/PicasaViewList.js b/includes/js/dojox/data/demos/widgets/PicasaViewList.js deleted file mode 100644 index 45371cd..0000000 --- a/includes/js/dojox/data/demos/widgets/PicasaViewList.js +++ /dev/null @@ -1,37 +0,0 @@ -if(!dojo._hasResource["dojox.data.demos.widgets.PicasaViewList"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.data.demos.widgets.PicasaViewList"] = true; -dojo.provide("dojox.data.demos.widgets.PicasaViewList"); -dojo.require("dijit._Templated"); -dojo.require("dijit._Widget"); -dojo.require("dojox.data.demos.widgets.PicasaView"); - -dojo.declare("dojox.data.demos.widgets.PicasaViewList", [dijit._Widget, dijit._Templated], { - //Simple demo widget that is just a list of PicasaView Widgets. - - templateString:"
\n\n", - - //Attach points for reference. - listNode: null, - - postCreate: function(){ - this.fViewWidgets = []; - }, - - clearList: function(){ - while(this.list.firstChild){ - this.list.removeChild(this.list.firstChild); - } - for(var i = 0; i < this.fViewWidgets.length; i++){ - this.fViewWidgets[i].destroy(); - } - this.fViewWidgets = []; - }, - - addView: function(viewData){ - var newView = new dojox.data.demos.widgets.PicasaView(viewData); - this.fViewWidgets.push(newView); - this.list.appendChild(newView.domNode); - } -}); - -} diff --git a/includes/js/dojox/data/demos/widgets/templates/FlickrView.html b/includes/js/dojox/data/demos/widgets/templates/FlickrView.html deleted file mode 100644 index b9d3bf9..0000000 --- a/includes/js/dojox/data/demos/widgets/templates/FlickrView.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - -
- - Title: - - -
- - Author: - - -
- - Image: - -
-
- diff --git a/includes/js/dojox/data/demos/widgets/templates/FlickrViewList.html b/includes/js/dojox/data/demos/widgets/templates/FlickrViewList.html deleted file mode 100644 index 3a9f565..0000000 --- a/includes/js/dojox/data/demos/widgets/templates/FlickrViewList.html +++ /dev/null @@ -1,2 +0,0 @@ -
- diff --git a/includes/js/dojox/data/demos/widgets/templates/PicasaView.html b/includes/js/dojox/data/demos/widgets/templates/PicasaView.html deleted file mode 100644 index 88dbb31..0000000 --- a/includes/js/dojox/data/demos/widgets/templates/PicasaView.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - -
- - Title: - - -
- - Author: - - -
- - Summary: - - -
-
- diff --git a/includes/js/dojox/data/demos/widgets/templates/PicasaViewList.html b/includes/js/dojox/data/demos/widgets/templates/PicasaViewList.html deleted file mode 100644 index 3a9f565..0000000 --- a/includes/js/dojox/data/demos/widgets/templates/PicasaViewList.html +++ /dev/null @@ -1,2 +0,0 @@ -
- -- cgit v1.2.3