Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
137
Merge Requests
137
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
6f95a2dd
Commit
6f95a2dd
authored
Jul 06, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs_todomvc: use manifest in service worker and use Officejs Skin
parent
d555aa80
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
534 additions
and
27 deletions
+534
-27
bt5/officejs_todomvc/PathTemplateItem/web_page_module/officejs_todomvc_appcache.xml
...emplateItem/web_page_module/officejs_todomvc_appcache.xml
+347
-0
bt5/officejs_todomvc/PathTemplateItem/web_page_module/officejs_todomvc_manifest_json.xml
...teItem/web_page_module/officejs_todomvc_manifest_json.xml
+67
-2
bt5/officejs_todomvc/PathTemplateItem/web_page_module/officejs_todomvc_serviceworker_js.js
...Item/web_page_module/officejs_todomvc_serviceworker_js.js
+47
-19
bt5/officejs_todomvc/PathTemplateItem/web_page_module/officejs_todomvc_serviceworker_js.xml
...tem/web_page_module/officejs_todomvc_serviceworker_js.xml
+65
-0
bt5/officejs_todomvc/PathTemplateItem/web_site_module/officejs_todomvc.xml
...mvc/PathTemplateItem/web_site_module/officejs_todomvc.xml
+5
-5
bt5/officejs_todomvc/bt/dependency_list
bt5/officejs_todomvc/bt/dependency_list
+1
-1
bt5/officejs_todomvc/bt/template_keep_last_workflow_history_only_path_list
...mvc/bt/template_keep_last_workflow_history_only_path_list
+1
-0
bt5/officejs_todomvc/bt/template_path_list
bt5/officejs_todomvc/bt/template_path_list
+1
-0
No files found.
bt5/officejs_todomvc/PathTemplateItem/web_page_module/officejs_todomvc_appcache.xml
0 → 100644
View file @
6f95a2dd
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Manifest"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<list>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</list>
</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>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<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>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
officejs_todomvc.appcache
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
officejs_todomvc_appcache
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Manifest
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
CACHE MANIFEST\n
# generated on Fri 09 Jun 2016 11:45:33 +0000\n
CACHE:\n
rsvp.js\n
renderjs.js\n
jiodev.js\n
handlebars.js\n
officejs_todomvc_icon.svg\n
officejs_todomvc_icon.png\n
officejs_todomvc.css\n
officejs_todomvc_gadget_index.html\n
officejs_todomvc_gadget_index.js\n
officejs_todomvc_gadget_model.html\n
officejs_todomvc_gadget_model.js\n
officejs_todomvc_gadget_router.html\n
officejs_todomvc_gadget_router.js\n
officejs_todomvc_manifest.json\n
/\n
NETWORK:\n
*
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS Todomvc App Cache
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1499260563.32
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
960.35683.10793.57514
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1499337902.46
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
empty
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1499259329.4
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/officejs_todomvc/PathTemplateItem/web_page_module/officejs_todomvc_manifest_json.xml
View file @
6f95a2dd
...
...
@@ -113,11 +113,11 @@
"short_name": "OfficeJS TodoMVC",\n
"name": "OfficeJS TodoMVC App",\n
"icons": [{\n
"src": "officejs_todomvc_icon.svg
?format=svg
",\n
"src": "officejs_todomvc_icon.svg",\n
"sizes": "any",\n
"type": "image/svg"\n
}, {\n
"src": "officejs_todomvc_icon.png
?format=png
",\n
"src": "officejs_todomvc_icon.png",\n
"sizes": "any",\n
"type": "image/png"\n
}],\n
...
...
@@ -160,6 +160,12 @@
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
...
...
@@ -219,4 +225,63 @@
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
960.34282.23500.6178
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1499259585.11
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/officejs_todomvc/PathTemplateItem/web_page_module/officejs_todomvc_serviceworker_js.js
View file @
6f95a2dd
/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80*/
/*global self, caches, fetch*/
(
function
(
self
,
caches
,
fetch
)
{
/*global self, caches, fetch
, Request, Promise
*/
(
function
(
self
,
caches
,
fetch
,
Request
,
Promise
)
{
"
use strict
"
;
var
CACHE_VERSION
=
1
,
...
...
@@ -8,22 +8,50 @@
self
.
addEventListener
(
"
install
"
,
function
(
event
)
{
event
.
waitUntil
(
caches
.
open
(
CACHE_NAME
)
.
then
(
function
(
cache
)
{
return
cache
.
addAll
([
"
./
"
,
"
rsvp.js
"
,
"
renderjs.js
"
,
"
jiodev.js
"
,
"
handlebars.js
"
,
"
officejs_todomvc_icon.svg?format=svg
"
,
"
officejs_todomvc_icon.png?format=png
"
,
"
officejs_todomvc.css
"
,
"
officejs_todomvc_gadget_index.html
"
,
"
officejs_todomvc_gadget_index.js
"
,
"
officejs_todomvc_gadget_model.html
"
,
"
officejs_todomvc_gadget_model.js
"
,
"
officejs_todomvc_gadget_router.html
"
,
"
officejs_todomvc_gadget_router.js
"
]);
return
fetch
(
new
Request
(
"
officejs_todomvc.appcache
"
,
{
method
:
'
GET
'
,
headers
:
{
'
Upgrade-Insecure-Requests
'
:
1
}
}))
.
then
(
function
(
cache_file
)
{
return
cache_file
.
text
();
})
.
then
(
function
(
text
)
{
var
relative_url_list
=
text
.
split
(
'
\r\n
'
),
i
,
take
=
false
;
self
.
cache_list
=
[];
self
.
console
.
log
(
text
);
if
(
relative_url_list
.
length
===
1
)
{
relative_url_list
=
text
.
split
(
'
\n
'
);
}
if
(
relative_url_list
.
length
===
1
)
{
relative_url_list
=
text
.
split
(
'
\r
'
);
}
for
(
i
=
0
;
i
<
relative_url_list
.
length
;
i
+=
1
)
{
if
(
relative_url_list
[
i
].
indexOf
(
"
NETWORK:
"
)
>=
0
)
{
take
=
false
;
}
if
(
take
&&
relative_url_list
[
i
]
!==
""
&&
relative_url_list
[
i
].
charAt
(
0
)
!==
'
#
'
&&
relative_url_list
[
i
].
charAt
(
0
)
!==
'
'
)
{
relative_url_list
[
i
].
replace
(
"
\r
"
,
""
);
self
.
cache_list
.
push
(
relative_url_list
[
i
]);
}
if
(
relative_url_list
[
i
].
indexOf
(
"
CACHE:
"
)
>=
0
)
{
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
();
...
...
@@ -53,4 +81,4 @@
}));
});
}(
self
,
caches
,
fetch
));
\ No newline at end of file
}(
self
,
caches
,
fetch
,
Request
,
Promise
));
\ No newline at end of file
bt5/officejs_todomvc/PathTemplateItem/web_page_module/officejs_todomvc_serviceworker_js.xml
View file @
6f95a2dd
...
...
@@ -138,6 +138,12 @@
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
...
...
@@ -197,4 +203,63 @@
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
960.34534.37982.43332
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1499268940.21
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/officejs_todomvc/PathTemplateItem/web_site_module/officejs_todomvc.xml
View file @
6f95a2dd
...
...
@@ -319,7 +319,7 @@
</item>
<item>
<key>
<string>
configuration_content_security_policy
</string>
</key>
<value>
<string>
default-src \'self\'; img-src \'self\' data:; media-src \'self\' blob:; connect-src \'self\' https://*.dropboxapi.com/ data: ; script-src \'self\' \'unsafe-eval\'; font-src \'self\'; style-src \'self\' data:; frame-src \'self\' data:
</string>
</value>
<value>
<string>
default-src \'self\'; img-src \'self\' data:; media-src \'self\' blob:; connect-src \'self\' https://*.dropboxapi.com/ data: ; script-src \'self\' \'unsafe-eval\'; font-src \'self\'; style-src \'self\' data:; frame-src \'self\' data:
; manifest-src \'self\'
</string>
</value>
</item>
<item>
<key>
<string>
configuration_default_view_action_reference
</string>
</key>
...
...
@@ -411,7 +411,7 @@
</item>
<item>
<key>
<string>
skin_selection_name
</string>
</key>
<value>
<string>
RJS
</string>
</value>
<value>
<string>
Officejs
</string>
</value>
</item>
<item>
<key>
<string>
static_language_selection
</string>
</key>
...
...
@@ -590,7 +590,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
eyqs
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -604,7 +604,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
58.54619.44309.32563
</string>
</value>
<value>
<string>
9
60.34510.4262.4761
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -622,7 +622,7 @@
</tuple>
<state>
<tuple>
<float>
149
2782706.69
</float>
<float>
149
9338097.81
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/officejs_todomvc/bt/dependency_list
View file @
6f95a2dd
erp5_web_renderjs_ui
\ No newline at end of file
erp5_officejs
\ No newline at end of file
bt5/officejs_todomvc/bt/template_keep_last_workflow_history_only_path_list
View file @
6f95a2dd
image_module/officejs_todomvc_icon_png
image_module/officejs_todomvc_icon_svg
web_page_module/officejs_todomvc_appcache
web_page_module/officejs_todomvc_css
web_page_module/officejs_todomvc_gadget_index_html
web_page_module/officejs_todomvc_gadget_index_js
...
...
bt5/officejs_todomvc/bt/template_path_list
View file @
6f95a2dd
image_module/officejs_todomvc_icon_png
image_module/officejs_todomvc_icon_svg
web_page_module/officejs_todomvc_appcache
web_page_module/officejs_todomvc_css
web_page_module/officejs_todomvc_gadget_index_html
web_page_module/officejs_todomvc_gadget_index_js
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment