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
Yusei Tahara
erp5
Commits
051678be
Commit
051678be
authored
Nov 28, 2019
by
Roque
Committed by
Roque
Dec 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: replace multiple setSetting calls by setSettingList to
speedup
parent
7e2fac60
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
27 deletions
+19
-27
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_local_jio_js.js
...plateItem/web_page_module/gadget_officejs_local_jio_js.js
+3
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_local_jio_js.xml
...lateItem/web_page_module/gadget_officejs_local_jio_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.js
...b_page_module/gadget_officejs_page_jio_configurator_js.js
+4
-8
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
..._page_module/gadget_officejs_page_jio_configurator_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js
...TemplateItem/web_page_module/gadget_officejs_router_js.js
+6
-8
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml
...emplateItem/web_page_module/gadget_officejs_router_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_local_jio_js.js
View file @
051678be
...
...
@@ -87,7 +87,7 @@
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
"
notifySubmitted
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
getSettingList
"
,
"
getSettingList
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
setSetting
List
"
,
"
setSettingList
"
)
.
declareAcquiredMethod
(
'
getUrlFor
'
,
'
getUrlFor
'
)
.
declareMethod
(
'
updateConfiguration
'
,
function
(
appcache_storage
,
origin_url
,
...
...
@@ -125,10 +125,8 @@
return
appcache_storage
.
repair
(
current_version
);
})
.
push
(
function
()
{
return
gadget
.
setSetting
(
"
migration_version
"
,
current_version
);
})
.
push
(
function
()
{
return
gadget
.
setSetting
(
"
previous_storage_name
"
,
storage_name
);
return
gadget
.
setSettingList
({
"
migration_version
"
:
current_version
,
"
previous_storage_name
"
:
storage_name
});
});
})
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_local_jio_js.xml
View file @
051678be
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
79.7652.21916.23961
</string>
</value>
<value>
<string>
9
80.6859.48060.59835
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
157
1071046.04
</float>
<float>
157
4956293.89
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.js
View file @
051678be
...
...
@@ -32,13 +32,9 @@
}
}
};
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
)
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
LOCAL
"
);
})
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
sync_reload
'
,
true
);
})
return
gadget
.
setSettingList
({
'
jio_storage_description
'
:
configuration
,
'
jio_storage_name
'
:
'
LOCAL
'
,
'
sync_reload
'
:
true
})
.
push
(
function
()
{
return
gadget
.
redirect
({
command
:
"
display
"
,
options
:
{
page
:
'
ojs_sync
'
,
auto_repair
:
'
true
'
}});
});
...
...
@@ -97,8 +93,8 @@
.
declareAcquiredMethod
(
"
translateHtml
"
,
"
translateHtml
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
reload
"
,
"
reload
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
setSettingList
"
,
"
setSettingList
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
View file @
051678be
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
72.27141.2695.3276
</string>
</value>
<value>
<string>
9
80.6862.7827.1604
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
15
45233718.42
</float>
<float>
15
74956283.0
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js
View file @
051678be
...
...
@@ -5,7 +5,7 @@
var
gadget_klass
=
rJS
(
window
)
.
declareAcquiredMethod
(
'
setSetting
'
,
'
setSetting
'
)
.
declareAcquiredMethod
(
'
setSetting
List
'
,
'
setSettingList
'
)
.
declareMethod
(
'
redirect
'
,
function
(
param_list
)
{
return
this
.
getDeclaredGadget
(
'
erp5_router
'
)
...
...
@@ -50,21 +50,19 @@
key
,
value
,
i
,
setting_dict
=
{},
queue
=
new
RSVP
.
Queue
();
function
setSetting
(
key
,
value
)
{
queue
.
push
(
function
()
{
return
gadget
.
setSetting
(
key
,
value
);
});
}
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
key
=
element_list
[
i
].
getAttribute
(
'
data-renderjs-configuration
'
);
value
=
element_list
[
i
].
textContent
;
set
Setting
(
key
,
value
)
;
set
ting_dict
[
key
]
=
value
;
}
return
queue
.
push
(
function
()
{
return
gadget
.
setSettingList
(
setting_dict
);
})
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
'
erp5_router
'
);
})
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml
View file @
051678be
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
67.24634.17714.15001
</string>
</value>
<value>
<string>
9
80.6802.7091.54510
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
15
26889176.44
</float>
<float>
15
74952936.12
</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