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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
erp5
Commits
a603cbfc
Commit
a603cbfc
authored
Apr 30, 2018
by
Valentin Benozillo
Committed by
Xiaowu Zhang
May 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui][erp5_officejs] Add Progressive APP feature for Officejs application
parent
a4d10997
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
217 additions
and
7 deletions
+217
-7
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader.html.html
...Item/web_page_module/gadget_officejs_bootloader.html.html
+1
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader.html.xml
...eItem/web_page_module/gadget_officejs_bootloader.html.xml
+3
-3
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebSection_renderOfficeJSApplicationPage.py
...b_officejs_ui/WebSection_renderOfficeJSApplicationPage.py
+10
-2
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebSection_viewOfficeJSApplicationPreference.xml
...icejs_ui/WebSection_viewOfficeJSApplicationPreference.xml
+1
-0
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebSection_viewOfficeJSApplicationPreference/my_configuration_webapp_manifest_url.xml
...cationPreference/my_configuration_webapp_manifest_url.xml
+96
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_html.html
...teItem/web_page_module/rjs_gadget_erp5_launcher_html.html
+1
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_html.xml
...ateItem/web_page_module/rjs_gadget_erp5_launcher_html.xml
+2
-2
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_viewRenderJSPreference.xml
...s/erp5_web_renderjs/WebSection_viewRenderJSPreference.xml
+1
-0
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_viewRenderJSPreference/my_configuration_webapp_manifest_url.xml
...nderJSPreference/my_configuration_webapp_manifest_url.xml
+96
-0
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
...5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
+6
-0
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader.html.html
View file @
a603cbfc
...
...
@@ -5,6 +5,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
OfficeJS Install
</title>
${webapp_manifest_full_link_tag}
<script
src=
"${latest_version}/rsvp.js"
></script>
<script
src=
"${latest_version}/renderjs.js"
></script>
<script
src=
"${latest_version}/jiodev.js"
></script>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader.html.xml
View file @
a603cbfc
...
...
@@ -227,7 +227,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
vincent
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -241,7 +241,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
4.45561.47559.9591
</string>
</value>
<value>
<string>
96
7.13437.59295.35805
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -259,7 +259,7 @@
</tuple>
<state>
<tuple>
<float>
15
15750984.2
6
</float>
<float>
15
25098912.1
6
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebSection_renderOfficeJSApplicationPage.py
View file @
a603cbfc
...
...
@@ -6,10 +6,18 @@ if response is None:
default_web_page
=
context
web_section
=
REQUEST
.
get
(
"current_web_section"
)
return
default_web_page
.
WebPage_viewAsWeb
(
mapping_dict
=
{
mapping_dict
=
{
"latest_version"
:
web_section
.
getLayoutProperty
(
"configuration_latest_version"
,
default
=
"development"
),
"latest_document_version"
:
web_section
.
getLayoutProperty
(
"configuration_latest_document_version"
,
default
=
context
.
getWebSiteValue
().
getId
()
+
"-dev"
),
"redirect_url"
:
web_section
.
getLayoutProperty
(
"configuration_redirect_url"
,
default
=
""
),
"cache_file"
:
web_section
.
getLayoutProperty
(
"configuration_cache_file"
,
default
=
""
),
"application_name"
:
web_section
.
getTitle
(),
})
}
configuration_webapp_manifest_url
=
web_section
.
getLayoutProperty
(
"configuration_webapp_manifest_url"
,
default
=
None
)
if
configuration_webapp_manifest_url
is
None
:
mapping_dict
[
"webapp_manifest_full_link_tag"
]
=
''
else
:
mapping_dict
[
"webapp_manifest_full_link_tag"
]
=
'<link rel="manifest" href="'
+
configuration_webapp_manifest_url
+
'">'
return
default_web_page
.
WebPage_viewAsWeb
(
mapping_dict
=
mapping_dict
)
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebSection_viewOfficeJSApplicationPreference.xml
View file @
a603cbfc
...
...
@@ -78,6 +78,7 @@
<string>
my_configuration_resource_base_url
</string>
<string>
my_configuration_x_frame_options
</string>
<string>
my_configuration_cache_file
</string>
<string>
my_configuration_webapp_manifest_url
</string>
<string>
my_configuration_redirect_url
</string>
</list>
</value>
...
...
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebSection_viewOfficeJSApplicationPreference/my_configuration_webapp_manifest_url.xml
0 → 100644
View file @
a603cbfc
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_configuration_webapp_manifest_url
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_reference
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Web App Manifest
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_html.html
View file @
a603cbfc
...
...
@@ -10,6 +10,7 @@
<meta
name=
"description"
content=
"${site_description}"
>
<meta
name=
"keywords"
content=
"${site_keywords}"
>
<link
rel=
"stylesheet"
href=
"${stylesheet_url}"
>
${webapp_manifest_full_link_tag}
<script
data-renderjs-configuration=
"application_title"
type=
"text/x-renderjs-configuration"
>
$
{
application_title
}
</script>
<script
data-renderjs-configuration=
"panel_gadget"
type=
"text/x-renderjs-configuration"
>
$
{
panel_gadget
}
</script>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_html.xml
View file @
a603cbfc
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
5.19244.9866.14694
</string>
</value>
<value>
<string>
96
7.13407.40041.25821
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
15
17843980
.1
</float>
<float>
15
25095613
.1
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_viewRenderJSPreference.xml
View file @
a603cbfc
...
...
@@ -98,6 +98,7 @@
<list>
<string>
my_configuration_panel_gadget_url
</string>
<string>
my_configuration_manifest_url
</string>
<string>
my_configuration_webapp_manifest_url
</string>
<string>
my_configuration_service_worker_url
</string>
<string>
my_configuration_jio_gadget_url
</string>
<string>
my_configuration_translation_gadget_url
</string>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_viewRenderJSPreference/my_configuration_webapp_manifest_url.xml
0 → 100644
View file @
a603cbfc
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_configuration_webapp_manifest_url
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_reference
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Web App Manifest
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
View file @
a603cbfc
...
...
@@ -59,4 +59,10 @@ if configuration_manifest_url is None:
else
:
mapping_dict
[
"manifest_attribute"
]
=
'manifest="%s"'
%
configuration_manifest_url
configuration_webapp_manifest_url
=
web_section
.
getLayoutProperty
(
"configuration_webapp_manifest_url"
,
default
=
None
)
if
configuration_webapp_manifest_url
is
None
:
mapping_dict
[
"webapp_manifest_full_link_tag"
]
=
''
else
:
mapping_dict
[
"webapp_manifest_full_link_tag"
]
=
'<link rel="manifest" href="'
+
configuration_webapp_manifest_url
+
'">'
return
view_as_web_method
(
mapping_dict
=
mapping_dict
)
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