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
326a4c9a
Commit
326a4c9a
authored
Jun 23, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_website: render app urls
parent
18347abe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
bt5/erp5_officejs_appstore_website/PathTemplateItem/web_page_module/store_officejs_js_erp5_loader_js.js
...eItem/web_page_module/store_officejs_js_erp5_loader_js.js
+12
-1
bt5/erp5_officejs_appstore_website/PathTemplateItem/web_page_module/store_officejs_js_erp5_loader_js.xml
...Item/web_page_module/store_officejs_js_erp5_loader_js.xml
+6
-4
No files found.
bt5/erp5_officejs_appstore_website/PathTemplateItem/web_page_module/store_officejs_js_erp5_loader_js.js
View file @
326a4c9a
...
...
@@ -4621,8 +4621,19 @@
"
url
"
:
"
data/
"
+
parcel
.
type
+
"
_sample.json
"
})
.
then
(
function
(
e
)
{
var
i
,
string_response
,
app_list
=
JSON
.
parse
(
e
.
target
.
response
),
site_tld
=
window
.
location
.
origin
.
split
(
'
.
'
).
pop
();
// change all application urls TDL to current appstore site TDL
// e.g. if site is 'officejs.com' then all app urls will be '.com'
for
(
i
=
0
;
i
<
app_list
.
length
;
i
+=
1
)
{
app_list
[
i
].
application_url
=
app_list
[
i
].
application_url
.
replace
(
app_list
[
i
].
application_url
.
split
(
'
.
'
).
pop
(),
site_tld
);
}
string_response
=
JSON
.
stringify
(
app_list
);
return
{
"
response
"
:
e
.
target
.
response
,
"
response
"
:
string_
response
,
"
baggage
"
:
parcel
.
baggage
};
})
...
...
bt5/erp5_officejs_appstore_website/PathTemplateItem/web_page_module/store_officejs_js_erp5_loader_js.xml
View file @
326a4c9a
...
...
@@ -76,7 +76,9 @@
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/js
</string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
...
...
@@ -221,7 +223,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
P1
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -235,7 +237,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
70.31366.57108.55859
</string>
</value>
<value>
<string>
9
92.61706.2773.41130
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -253,7 +255,7 @@
</tuple>
<state>
<tuple>
<float>
1
537795617.18
</float>
<float>
1
624541145.81
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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