Commit cd4ae3d6 authored by Vincent Bechu's avatar Vincent Bechu

erp5_officejs: add todomvc to export site

parent 6f95a2dd
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<option>Appstore</option> <option>Appstore</option>
<option>MediaPlayer</option> <option>MediaPlayer</option>
<option>Trade Application</option> <option>Trade Application</option>
<option>Todomvc</option>
</select> </select>
</div> </div>
</div> </div>
......
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>960.15342.25021.61081</string> </value> <value> <string>960.25484.60987.38638</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1498204265.35</float> <float>1499259242.52</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
/*globals window, RSVP, rJS, loopEventListener, URL, document /*globals window, RSVP, rJS, loopEventListener, URL, document
FileReader, console */ FileReader, console, navigator */
/*jslint indent: 2, nomen: true, maxlen: 80*/ /*jslint indent: 2, nomen: true, maxlen: 80*/
(function (window, RSVP, rJS, jIO, URL) { (function (window, navigator, RSVP, rJS, jIO, URL) {
"use strict"; "use strict";
var origin_url = (window.location.origin + window.location.pathname).replace( var origin_url = (window.location.origin + window.location.pathname).replace(
...@@ -93,6 +93,12 @@ ...@@ -93,6 +93,12 @@
"no_installer": true, "no_installer": true,
"sub_gadget": [] "sub_gadget": []
}, },
"Todomvc": {
"url": "officejs_todomvc/",
"cache": "officejs_todomvc.appcache",
"no_installer": true,
"sub_gadget": []
},
"connection": { "connection": {
"cache": "gadget_jabberconnection.appcache", "cache": "gadget_jabberconnection.appcache",
"no_installer": true "no_installer": true
...@@ -137,6 +143,7 @@ ...@@ -137,6 +143,7 @@
len = event.target.length, len = event.target.length,
app, app,
take_installer; take_installer;
for (j = 0; j < len; j += 1) { for (j = 0; j < len; j += 1) {
form_result[event.target[j].name] = event.target[j].value; form_result[event.target[j].name] = event.target[j].value;
} }
...@@ -251,4 +258,4 @@ ...@@ -251,4 +258,4 @@
}); });
}); });
}(window, RSVP, rJS, jIO, URL)); }(window, navigator, RSVP, rJS, jIO, URL));
\ No newline at end of file \ No newline at end of file
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>960.25676.41490.62737</string> </value> <value> <string>960.34375.20392.48059</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1498824066.41</float> <float>1499338910.54</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<item> <item>
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<list> <tuple>
<string>Anonymous</string> <string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
...@@ -17,17 +17,15 @@ ...@@ -17,17 +17,15 @@
<string>Auditor</string> <string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</list> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>_Add_portal_content_Permission</string> </key> <key> <string>_Add_portal_content_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,10 +42,7 @@ ...@@ -44,10 +42,7 @@
<key> <string>_Modify_portal_content_Permission</string> </key> <key> <string>_Modify_portal_content_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -118,6 +113,7 @@ officejs_todomvc_gadget_model.js\n ...@@ -118,6 +113,7 @@ officejs_todomvc_gadget_model.js\n
officejs_todomvc_gadget_router.html\n officejs_todomvc_gadget_router.html\n
officejs_todomvc_gadget_router.js\n officejs_todomvc_gadget_router.js\n
officejs_todomvc_manifest.json\n officejs_todomvc_manifest.json\n
officejs_todomvc_serviceworker.js\n
/\n /\n
NETWORK:\n NETWORK:\n
*</string> </value> *</string> </value>
...@@ -255,7 +251,7 @@ NETWORK:\n ...@@ -255,7 +251,7 @@ NETWORK:\n
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>960.35683.10793.57514</string> </value> <value> <string>960.35777.53431.31453</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -273,7 +269,7 @@ NETWORK:\n ...@@ -273,7 +269,7 @@ NETWORK:\n
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1499337902.46</float> <float>1499344507.9</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80*/ /*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80*/
/*global self, caches, fetch, Request, Promise*/ /*global self, caches, fetch, Promise*/
(function (self, caches, fetch, Request, Promise) { (function (self, caches, fetch, Promise) {
"use strict"; "use strict";
var CACHE_VERSION = 1, var CACHE_VERSION = 1,
...@@ -8,14 +8,7 @@ ...@@ -8,14 +8,7 @@
self.addEventListener("install", function (event) { self.addEventListener("install", function (event) {
event.waitUntil(caches.open(CACHE_NAME) event.waitUntil(caches.open(CACHE_NAME)
.then(function (cache) { .then(function (cache) {
return fetch(new Request( return fetch("officejs_todomvc.appcache")
"officejs_todomvc.appcache",
{
method: 'GET',
headers: {
'Upgrade-Insecure-Requests': 1
}
}))
.then(function (cache_file) { .then(function (cache_file) {
return cache_file.text(); return cache_file.text();
}) })
...@@ -24,7 +17,6 @@ ...@@ -24,7 +17,6 @@
i, i,
take = false; take = false;
self.cache_list = []; self.cache_list = [];
self.console.log(text);
if (relative_url_list.length === 1) { if (relative_url_list.length === 1) {
relative_url_list = text.split('\n'); relative_url_list = text.split('\n');
} }
...@@ -46,13 +38,9 @@ ...@@ -46,13 +38,9 @@
take = true; take = true;
} }
} }
self.console.log(self.cache_list);
return cache.addAll(self.cache_list); return cache.addAll(self.cache_list);
}); });
}) })
.catch(function (error) {
self.console.log(error);
})
.then(function () { .then(function () {
return self.skipWaiting(); return self.skipWaiting();
})); }));
...@@ -81,4 +69,4 @@ ...@@ -81,4 +69,4 @@
})); }));
}); });
}(self, caches, fetch, Request, Promise)); }(self, caches, fetch, Promise));
\ No newline at end of file \ No newline at end of file
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>960.34534.37982.43332</string> </value> <value> <string>960.35709.39075.3652</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -250,7 +250,7 @@ ...@@ -250,7 +250,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1499268940.21</float> <float>1499339640.16</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment