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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
feac976f
Commit
feac976f
authored
Jul 16, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_base: metadata info field in app view
parent
49c4e98b
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1106 additions
and
3 deletions
+1106
-3
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_metadata_html.html
...em/web_page_module/gadget_ojs_appstore_metadata_html.html
+18
-0
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_metadata_html.xml
...tem/web_page_module/gadget_ojs_appstore_metadata_html.xml
+344
-0
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_metadata_js.js
...teItem/web_page_module/gadget_ojs_appstore_metadata_js.js
+21
-0
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_metadata_js.xml
...eItem/web_page_module/gadget_ojs_appstore_metadata_js.xml
+346
-0
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_publish_button_css.css
...eb_page_module/gadget_ojs_appstore_publish_button_css.css
+1
-1
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_publish_button_css.xml
...eb_page_module/gadget_ojs_appstore_publish_button_css.xml
+2
-2
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwarePublication_getMetadataStatus.py
...cejs_appstore_ui/SoftwarePublication_getMetadataStatus.py
+50
-0
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwarePublication_getMetadataStatus.xml
...ejs_appstore_ui/SoftwarePublication_getMetadataStatus.xml
+62
-0
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwarePublication_view.xml
...ns/erp5_officejs_appstore_ui/SoftwarePublication_view.xml
+1
-0
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwarePublication_view/metadata_configuration.xml
...re_ui/SoftwarePublication_view/metadata_configuration.xml
+261
-0
No files found.
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_metadata_html.html
0 → 100644
View file @
feac976f
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
OfficeJS Metadata Status
</title>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"gadget_ojs_appstore_metadata.js"
></script>
</head>
<body>
<div></div>
</body>
</html>
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_metadata_html.xml
0 → 100644
View file @
feac976f
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_metadata_js.js
0 → 100644
View file @
feac976f
/*global window, rJS*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
)
{
"
use strict
"
;
rJS
(
window
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
value
=
"
Not found
"
;
if
(
options
.
metadata
.
message
)
{
value
=
options
.
metadata
.
message
;
}
return
this
.
changeState
({
value
:
value
});
})
.
onStateChange
(
function
(
modification_dict
)
{
var
div
=
this
.
element
.
querySelector
(
"
div
"
);
if
(
modification_dict
.
hasOwnProperty
(
'
value
'
))
{
div
.
textContent
=
modification_dict
.
value
;
}
});
}(
window
,
rJS
));
\ No newline at end of file
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_metadata_js.xml
0 → 100644
View file @
feac976f
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_publish_button_css.css
View file @
feac976f
...
@@ -37,6 +37,6 @@ div[data-gadget-scope='field_publication_action'] a{
...
@@ -37,6 +37,6 @@ div[data-gadget-scope='field_publication_action'] a{
-webkit-border-radius
:
.3125em
/*{global-radii-blocks}*/
;
-webkit-border-radius
:
.3125em
/*{global-radii-blocks}*/
;
border-radius
:
.3125em
/*{global-radii-blocks}*/
;
border-radius
:
.3125em
/*{global-radii-blocks}*/
;
color
:
white
;
color
:
white
;
padding
:
0.5em
2em
;
padding
:
0.
4
5em
2em
;
margin
:
auto
;
margin
:
auto
;
}
}
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_publish_button_css.xml
View file @
feac976f
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
70.12324.25659.5154
</string>
</value>
<value>
<string>
9
92.13065.39275.59033
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
537779679.88
</float>
<float>
1
626464688.12
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwarePublication_getMetadataStatus.py
0 → 100644
View file @
feac976f
import
json
portal
=
context
.
getPortalObject
()
software_publication
=
context
return_dict
=
{
"status"
:
1
,
"message"
:
"Wait for Submit"
}
if
software_publication
.
getSimulationState
()
==
'draft'
:
return
return_dict
software_publication_line
=
software_publication
.
objectValues
(
portal_type
=
"Software Publication Line"
,
)[
0
]
software_product
=
software_publication_line
.
getResourceValue
(
portal_type
=
"Software Product"
)
web_site
=
software_product
.
SoftwareProduct_getRelatedWebSite
()
version
=
software_publication
.
getReference
().
replace
(
"SP-"
,
""
)
try
:
web_section
=
web_site
[
version
]
except
KeyError
:
return_dict
[
"message"
]
=
'Not found'
return
return_dict
manifest_url
=
web_section
.
getLayoutProperty
(
'configuration_webapp_manifest_url'
,
default
=
None
)
if
manifest_url
is
None
:
return_dict
[
"message"
]
=
'Configuration webapp manifest url not found'
return
return_dict
manifest
=
portal
.
portal_catalog
.
getResultValue
(
reference
=
version
+
'/'
+
manifest_url
)
if
manifest
is
None
:
return_dict
[
"message"
]
=
'Configuration webapp manifest not found'
return
return_dict
try
:
data
=
json
.
loads
(
manifest
.
getData
())
except
ValueError
:
return_dict
[
"message"
]
=
'Invalid configuration webapp manifest JSON'
return
return_dict
src_icon
=
data
[
'icons'
][
0
][
'src'
]
logo
=
portal
.
portal_catalog
.
getResultValue
(
reference
=
'%'
+
src_icon
,
version
=
version
,
portal_type
=
'File'
)
if
not
logo
:
return_dict
[
"message"
]
=
"App logo '%s' not found"
%
src_icon
return
return_dict
return_dict
[
"status"
]
=
0
return_dict
[
"message"
]
=
"OK"
return
return_dict
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwarePublication_getMetadataStatus.xml
0 → 100644
View file @
feac976f
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwarePublication_getMetadataStatus
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwarePublication_view.xml
View file @
feac976f
...
@@ -101,6 +101,7 @@
...
@@ -101,6 +101,7 @@
<string>
my_title
</string>
<string>
my_title
</string>
<string>
my_translated_simulation_state_title
</string>
<string>
my_translated_simulation_state_title
</string>
<string>
publication_action
</string>
<string>
publication_action
</string>
<string>
metadata_configuration
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwarePublication_view/metadata_configuration.xml
0 → 100644
View file @
feac976f
This diff is collapsed.
Click to expand it.
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