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
Thomas Gambier
erp5
Commits
9a1ae6f1
Commit
9a1ae6f1
authored
Jun 12, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: add afs export zip
/reviewed-on
nexedi/erp5!287
parent
f8ac3412
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
23 deletions
+35
-23
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js
...web_page_module/gadget_officejs_jio_appcachestorage_js.js
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml
...eb_page_module/gadget_officejs_jio_appcachestorage_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_html.html
...tem/web_page_module/gadget_officejs_page_export_html.html
+1
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_html.xml
...Item/web_page_module/gadget_officejs_page_export_html.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.js
...ateItem/web_page_module/gadget_officejs_page_export_js.js
+27
-16
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.xml
...teItem/web_page_module/gadget_officejs_page_export_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js
View file @
9a1ae6f1
...
...
@@ -11,7 +11,7 @@
(
window
.
location
.
pathname
.
endsWith
(
'
/
'
)
?
''
:
'
/
'
)
+
((
spec
.
version
!==
undefined
)
?
(
spec
.
version
+
(
spec
.
version
.
endsWith
(
'
/
'
)
?
''
:
'
/
'
))
:
""
));
this
.
_relative_url_list
=
[
this
.
_origin_url
,
spec
.
manifest
];
this
.
_relative_url_list
=
[
"
/
"
,
spec
.
manifest
];
this
.
_prefix
=
spec
.
prefix
;
if
(
this
.
_take_installer
)
{
this
.
_relative_url_list
=
[
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml
View file @
9a1ae6f1
...
...
@@ -239,7 +239,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
959.
27850.19778.42888
</string>
</value>
<value>
<string>
959.
47786.31692.33024
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>
149
5022155.16
</float>
<float>
149
7260492.27
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_html.html
View file @
9a1ae6f1
...
...
@@ -44,6 +44,7 @@
<option>
Onlyoffice Presentation
</option>
<option>
Web Table Editor
</option>
<option>
Image Editor
</option>
<option>
Awesome Free Software Publisher List
</option>
</select>
</div>
</div>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_html.xml
View file @
9a1ae6f1
...
...
@@ -231,7 +231,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
959.
28004.53691.26077
</string>
</value>
<value>
<string>
959.
47786.31692.33024
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -249,7 +249,7 @@
</tuple>
<state>
<tuple>
<float>
149
5031755.24
</float>
<float>
149
7259706.13
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.js
View file @
9a1ae6f1
...
...
@@ -63,6 +63,12 @@
"
officejs_setting_gadget
"
]
},
"
Awesome Free Software Publisher List
"
:
{
"
url
"
:
"
afs/
"
,
"
cache
"
:
"
gadget_erp5_afs.appcache
"
,
"
no_installer
"
:
true
,
"
sub_gadget
"
:
[]
},
"
officejs_ckeditor_gadget
"
:
{
"
cache
"
:
"
gadget_ckeditor.appcache
"
},
...
...
@@ -101,7 +107,8 @@
i
=
0
,
form_result
=
{},
len
=
event
.
target
.
length
,
app
;
app
,
take_installer
;
for
(
j
=
0
;
j
<
len
;
j
+=
1
)
{
form_result
[
event
.
target
[
j
].
name
]
=
event
.
target
[
j
].
value
;
}
...
...
@@ -112,12 +119,13 @@
function
fill
(
zip_file
)
{
if
(
i
<
len
)
{
var
sub_app
=
app
.
sub_gadget
[
i
];
return
gadget
.
fillZip
(
application_dict
[
sub_app
].
cache
,
origin_url
+
app
.
url
,
zip_file
,
sub_app
+
"
/
"
)
return
gadget
.
fillZip
({
cache
:
application_dict
[
sub_app
].
cache
,
site_url
:
origin_url
+
app
.
url
,
zip_file
:
zip_file
,
prefix
:
sub_app
+
"
/
"
,
take_installer
:
application_dict
[
sub_app
].
no_installer
?
false
:
true
})
.
push
(
function
(
zip_file
)
{
i
+=
1
;
return
fill
(
zip_file
);
...
...
@@ -126,7 +134,11 @@
return
zip_file
;
}
return
gadget
.
fillZip
(
app
.
cache
,
origin_url
+
app
.
url
)
return
gadget
.
fillZip
({
cache
:
app
.
cache
,
site_url
:
origin_url
+
app
.
url
,
take_installer
:
app
.
no_installer
?
false
:
true
})
.
push
(
function
(
zip_file
)
{
return
fill
(
zip_file
);
})
...
...
@@ -152,8 +164,7 @@
g
.
props
.
element
=
element
;
});
})
.
declareMethod
(
"
fillZip
"
,
function
(
cache_file
,
site_url
,
zip_file
,
prefix
)
{
.
declareMethod
(
"
fillZip
"
,
function
(
options
)
{
var
gadget
=
this
,
file_storage
=
jIO
.
createJIO
({
type
:
"
replicate
"
,
...
...
@@ -166,13 +177,13 @@
check_remote_modification
:
false
,
remote_sub_storage
:
{
type
:
"
filesystem
"
,
document
:
site_url
,
document
:
options
.
site_url
,
sub_storage
:
{
type
:
"
appcache
"
,
take_installer
:
true
,
manifest
:
cache_fil
e
,
origin_url
:
site_url
,
prefix
:
prefix
||
""
take_installer
:
options
.
take_installer
,
manifest
:
options
.
cach
e
,
origin_url
:
options
.
site_url
,
prefix
:
options
.
prefix
||
""
}
},
signature_storage
:
{
...
...
@@ -180,7 +191,7 @@
},
local_sub_storage
:
{
type
:
"
zipfile
"
,
file
:
zip_file
file
:
options
.
zip_file
}
});
return
file_storage
.
repair
()
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.xml
View file @
9a1ae6f1
...
...
@@ -227,7 +227,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
959.
47786.31692.33024
</string>
</value>
<value>
<string>
959.
65151.59597.35276
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -245,7 +245,7 @@
</tuple>
<state>
<tuple>
<float>
149
6652073.28
</float>
<float>
149
7260154.62
</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