Commit cd4ae3d6 authored by Vincent Bechu's avatar Vincent Bechu

erp5_officejs: add todomvc to export site

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