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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
e7557d20
Commit
e7557d20
authored
Nov 26, 2018
by
Alain Takoudjou
Committed by
Rafael Monnerat
Sep 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_monitoring] fix date timezone when UTC ofset is not set
parent
05871c0d
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
110 additions
and
66 deletions
+110
-66
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_hosting_subscription_list_js.js
...ule/gadget_erp5_page_ojsm_hosting_subscription_list_js.js
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_hosting_subscription_list_js.xml
...le/gadget_erp5_page_ojsm_hosting_subscription_list_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_resources_view_js.xml
...b_page_module/gadget_erp5_page_ojsm_resources_view_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_software_instance_list_js.js
...module/gadget_erp5_page_ojsm_software_instance_list_js.js
+2
-3
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_software_instance_list_js.xml
...odule/gadget_erp5_page_ojsm_software_instance_list_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_status_list_js.js
...m/web_page_module/gadget_erp5_page_ojsm_status_list_js.js
+4
-5
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_status_list_js.xml
.../web_page_module/gadget_erp5_page_ojsm_status_list_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_hosting_subscription_view_js.js
...odule/gadget_officejs_jio_hosting_subscription_view_js.js
+2
-3
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_hosting_subscription_view_js.xml
...dule/gadget_officejs_jio_hosting_subscription_view_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_promise_view_js.js
...em/web_page_module/gadget_officejs_jio_promise_view_js.js
+21
-17
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_promise_view_js.xml
...m/web_page_module/gadget_officejs_jio_promise_view_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_software_instance_view_js.js
...e_module/gadget_officejs_jio_software_instance_view_js.js
+5
-6
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_software_instance_view_js.xml
..._module/gadget_officejs_jio_software_instance_view_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_appcache.xml
...m/web_page_module/gadget_officejs_monitoring_appcache.xml
+5
-3
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_custom_css.xml
...web_page_module/gadget_officejs_monitoring_custom_css.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_header_js.xml
.../web_page_module/gadget_officejs_monitoring_header_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/monitoring_jio_storage_js.js
...TemplateItem/web_page_module/monitoring_jio_storage_js.js
+49
-7
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/monitoring_jio_storage_js.xml
...emplateItem/web_page_module/monitoring_jio_storage_js.xml
+2
-2
No files found.
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_hosting_subscription_list_js.js
View file @
e7557d20
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
editable
:
0
,
editable
:
0
,
hidden
:
0
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
new
Date
(
result
.
data
.
rows
[
i
].
value
.
status_date
).
toUTCString
()
,
"
default
"
:
result
.
data
.
rows
[
i
].
value
.
status_date
,
key
:
"
date
"
,
key
:
"
date
"
,
required
:
0
,
required
:
0
,
timezone_style
:
0
,
timezone_style
:
1
,
title
:
"
Status Date
"
,
title
:
"
Status Date
"
,
type
:
"
DateTimeField
"
type
:
"
DateTimeField
"
}
}
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_hosting_subscription_list_js.xml
View file @
e7557d20
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
971.
13495.30840.12936
</string>
</value>
<value>
<string>
971.
33408.64727.5632
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
154
1763899.25
</float>
<float>
154
2965869.33
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_resources_view_js.xml
View file @
e7557d20
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
971.4
0812.22256.57156
</string>
</value>
<value>
<string>
971.4
3798.57526.26624
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1542
208228.6
7
</float>
<float>
1542
387970.1
7
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_software_instance_list_js.js
View file @
e7557d20
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
var
i
,
value
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
date
"
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
date
"
))
{
value
=
new
Date
(
result
.
data
.
rows
[
i
].
value
.
date
);
result
.
data
.
rows
[
i
].
value
.
date
=
{
result
.
data
.
rows
[
i
].
value
.
date
=
{
field_gadget_param
:
{
field_gadget_param
:
{
allow_empty_time
:
0
,
allow_empty_time
:
0
,
...
@@ -27,10 +26,10 @@
...
@@ -27,10 +26,10 @@
editable
:
0
,
editable
:
0
,
hidden
:
0
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
value
.
toUTCString
()
,
"
default
"
:
result
.
data
.
rows
[
i
].
value
.
date
,
key
:
"
date
"
,
key
:
"
date
"
,
required
:
0
,
required
:
0
,
timezone_style
:
0
,
timezone_style
:
1
,
title
:
"
Status Date
"
,
title
:
"
Status Date
"
,
type
:
"
DateTimeField
"
type
:
"
DateTimeField
"
}
}
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_software_instance_list_js.xml
View file @
e7557d20
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
971.33
301.63517.11571
</string>
</value>
<value>
<string>
971.33
401.54396.27033
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
154
1763469.75
</float>
<float>
154
2962938.07
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_status_list_js.js
View file @
e7557d20
...
@@ -17,21 +17,20 @@
...
@@ -17,21 +17,20 @@
var
i
,
j
,
tmp
,
value
,
len
=
result
.
data
.
total_rows
;
var
i
,
j
,
tmp
,
value
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
lastBuildDate
"
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
lastBuildDate
"
))
{
value
=
new
Date
(
result
.
data
.
rows
[
i
].
value
.
lastBuildDate
);
result
.
data
.
rows
[
i
].
value
.
lastBuildDate
=
{
result
.
data
.
rows
[
i
].
value
.
lastBuildDate
=
{
field_gadget_param
:
{
field_gadget_param
:
{
allow_empty_time
:
0
,
//
allow_empty_time: 0,
ampm_time_style
:
0
,
//
ampm_time_style: 0,
css_class
:
"
date_field
"
,
css_class
:
"
date_field
"
,
date_only
:
0
,
date_only
:
0
,
description
:
"
The Date
"
,
description
:
"
The Date
"
,
editable
:
0
,
editable
:
0
,
hidden
:
0
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
value
.
toUTCString
()
,
"
default
"
:
result
.
data
.
rows
[
i
].
value
.
lastBuildDate
,
key
:
"
lastBuildDate
"
,
key
:
"
lastBuildDate
"
,
required
:
0
,
required
:
0
,
timezone_style
:
0
,
timezone_style
:
1
,
title
:
"
Promise Date
"
,
title
:
"
Promise Date
"
,
type
:
"
DateTimeField
"
type
:
"
DateTimeField
"
}
}
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_status_list_js.xml
View file @
e7557d20
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
971.
33406.11946.4669
4
</string>
</value>
<value>
<string>
971.
52364.9776.5623
4
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
154
1763839.91
</float>
<float>
154
2962994.23
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_hosting_subscription_view_js.js
View file @
e7557d20
...
@@ -40,7 +40,6 @@
...
@@ -40,7 +40,6 @@
len
=
result
.
data
.
total_rows
;
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
date
"
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
date
"
))
{
value
=
new
Date
(
result
.
data
.
rows
[
i
].
value
.
date
);
result
.
data
.
rows
[
i
].
value
.
date
=
{
result
.
data
.
rows
[
i
].
value
.
date
=
{
field_gadget_param
:
{
field_gadget_param
:
{
allow_empty_time
:
0
,
allow_empty_time
:
0
,
...
@@ -51,10 +50,10 @@
...
@@ -51,10 +50,10 @@
editable
:
0
,
editable
:
0
,
hidden
:
0
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
value
.
toUTCString
()
,
"
default
"
:
result
.
data
.
rows
[
i
].
value
.
date
,
key
:
"
date
"
,
key
:
"
date
"
,
required
:
0
,
required
:
0
,
timezone_style
:
0
,
timezone_style
:
1
,
title
:
"
Status Date
"
,
title
:
"
Status Date
"
,
type
:
"
DateTimeField
"
type
:
"
DateTimeField
"
}
}
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_hosting_subscription_view_js.xml
View file @
e7557d20
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
971.
13402.10882.4606
2
</string>
</value>
<value>
<string>
971.
37886.23794.3710
2
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1542
032541.78
</float>
<float>
1542
965932.66
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_promise_view_js.js
View file @
e7557d20
...
@@ -172,8 +172,8 @@
...
@@ -172,8 +172,8 @@
promise
:
options
.
doc
,
promise
:
options
.
doc
,
jio_key
:
options
.
jio_key
,
jio_key
:
options
.
jio_key
,
status
:
options
.
doc
.
category
,
status
:
options
.
doc
.
category
,
status_date
:
new
Date
(
options
.
doc
.
pubDate
)
,
status_date
:
options
.
doc
.
pubDate
,
report_date
:
new
Date
(
options
.
doc
.
lastBuildDate
)
,
report_date
:
options
.
doc
.
lastBuildDate
,
title
:
options
.
doc
.
source
,
title
:
options
.
doc
.
source
,
promise_output
:
options
.
doc
.
description
,
promise_output
:
options
.
doc
.
description
,
private_url
:
pass_url
,
private_url
:
pass_url
,
...
@@ -227,6 +227,13 @@
...
@@ -227,6 +227,13 @@
len
,
len
,
start
;
start
;
function
addUTCTimezone
(
date_string
)
{
if
(
new
RegExp
(
/
[
+-
][\d]{2}\:?[\d]{2}
$/
).
test
(
date_string
))
{
return
date_string
;
}
return
date_string
+
"
+0000
"
;
}
if
(
status_history
&&
status_history
.
hasOwnProperty
(
'
data
'
))
{
if
(
status_history
&&
status_history
.
hasOwnProperty
(
'
data
'
))
{
// the status history list is reversed ([old, ...., newest])
// the status history list is reversed ([old, ...., newest])
len
=
status_history
.
data
.
length
;
len
=
status_history
.
data
.
length
;
...
@@ -264,13 +271,11 @@
...
@@ -264,13 +271,11 @@
editable
:
0
,
editable
:
0
,
hidden
:
0
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
new
Date
(
"
default
"
:
addUTCTimezone
(
status_history
.
data
[
i
].
date
||
status_history
.
data
[
i
].
date
||
status_history
.
data
[
i
][
'
start-date
'
]),
status_history
.
data
[
i
][
'
start-date
'
]
).
toUTCString
(),
key
:
"
start_date
"
,
key
:
"
start_date
"
,
required
:
0
,
required
:
0
,
timezone_style
:
0
,
timezone_style
:
1
,
title
:
"
Date
"
,
title
:
"
Date
"
,
type
:
"
DateTimeField
"
type
:
"
DateTimeField
"
}
}
...
@@ -285,13 +290,12 @@
...
@@ -285,13 +290,12 @@
editable
:
0
,
editable
:
0
,
hidden
:
0
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
new
Date
(
"
default
"
:
addUTCTimezone
(
status_history
.
data
[
i
][
'
change-date
'
]
||
status_history
.
data
[
i
][
'
change-date
'
]
||
new
Date
(
status_history
.
data
[
i
][
'
change-time
'
]
*
1000
)
status_history
.
data
[
i
][
'
change-time
'
]
*
1000
.
toUTCString
()),
).
toUTCString
(),
key
:
"
change_date
"
,
key
:
"
change_date
"
,
required
:
0
,
required
:
0
,
timezone_style
:
0
,
timezone_style
:
1
,
title
:
"
Status Date
"
,
title
:
"
Status Date
"
,
type
:
"
DateTimeField
"
type
:
"
DateTimeField
"
}
}
...
@@ -355,26 +359,26 @@
...
@@ -355,26 +359,26 @@
"
your_status_date
"
:
{
"
your_status_date
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
"
Status Since
"
,
"
title
"
:
"
Status Since
"
,
"
default
"
:
gadget
.
state
.
status_date
.
toUTCString
()
,
"
default
"
:
gadget
.
state
.
status_date
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
status_date
"
,
"
key
"
:
"
status_date
"
,
"
hidden
"
:
0
,
"
hidden
"
:
0
,
"
timezone_style
"
:
0
,
"
timezone_style
"
:
1
,
"
date_only
"
:
0
,
"
date_only
"
:
0
,
"
type
"
:
"
DateTimeField
"
"
type
"
:
"
DateTimeField
"
},
},
"
your_report_date
"
:
{
"
your_report_date
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
"
Report Date
"
,
"
title
"
:
"
Report Date
"
,
"
default
"
:
gadget
.
state
.
report_date
.
toUTCString
()
,
"
default
"
:
gadget
.
state
.
report_date
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
report_date
"
,
"
key
"
:
"
report_date
"
,
"
hidden
"
:
0
,
"
hidden
"
:
0
,
"
timezone_style
"
:
0
,
"
timezone_style
"
:
1
,
"
date_only
"
:
0
,
"
date_only
"
:
0
,
"
type
"
:
"
DateTimeField
"
"
type
"
:
"
DateTimeField
"
},
},
...
@@ -518,7 +522,7 @@
...
@@ -518,7 +522,7 @@
"
sort
"
:
[],
"
sort
"
:
[],
"
hide_sort
"
:
true
,
"
hide_sort
"
:
true
,
"
command
"
:
"
reload
"
,
"
command
"
:
"
reload
"
,
"
title
"
:
"
Promise Status
list (On live)
"
,
"
title
"
:
"
Promise Status
History
"
,
"
type
"
:
"
ListBox
"
"
type
"
:
"
ListBox
"
}
}
}},
}},
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_promise_view_js.xml
View file @
e7557d20
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
971.
40824.2567.53640
</string>
</value>
<value>
<string>
971.
63542.55851.49134
</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>
154
2294280.54
</float>
<float>
154
3572898.71
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_software_instance_view_js.js
View file @
e7557d20
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
return
gadget
.
changeState
({
return
gadget
.
changeState
({
jio_key
:
options
.
jio_key
,
jio_key
:
options
.
jio_key
,
status
:
gadget
.
state
.
instance
.
status
,
status
:
gadget
.
state
.
instance
.
status
,
report_date
:
new
Date
(
gadget
.
state
.
instance
.
date
)
,
report_date
:
gadget
.
state
.
instance
.
date
,
title
:
current_document
.
title
,
title
:
current_document
.
title
,
error
:
current_document
.
state
.
error
,
error
:
current_document
.
state
.
error
,
success
:
current_document
.
state
.
success
,
success
:
current_document
.
state
.
success
,
...
@@ -120,7 +120,6 @@
...
@@ -120,7 +120,6 @@
var
i
,
j
,
tmp
,
value
,
len
=
result
.
data
.
total_rows
;
var
i
,
j
,
tmp
,
value
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
lastBuildDate
"
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
lastBuildDate
"
))
{
value
=
new
Date
(
result
.
data
.
rows
[
i
].
value
.
lastBuildDate
);
result
.
data
.
rows
[
i
].
value
.
lastBuildDate
=
{
result
.
data
.
rows
[
i
].
value
.
lastBuildDate
=
{
field_gadget_param
:
{
field_gadget_param
:
{
allow_empty_time
:
0
,
allow_empty_time
:
0
,
...
@@ -131,10 +130,10 @@
...
@@ -131,10 +130,10 @@
editable
:
0
,
editable
:
0
,
hidden
:
0
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
value
.
toUTCString
()
,
"
default
"
:
result
.
data
.
rows
[
i
].
value
.
lastBuildDate
,
key
:
"
lastBuildDate
"
,
key
:
"
lastBuildDate
"
,
required
:
0
,
required
:
0
,
timezone_style
:
0
,
timezone_style
:
1
,
title
:
"
Promise Date
"
,
title
:
"
Promise Date
"
,
type
:
"
DateTimeField
"
type
:
"
DateTimeField
"
}
}
...
@@ -295,13 +294,13 @@
...
@@ -295,13 +294,13 @@
"
your_report_date
"
:
{
"
your_report_date
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
"
Report Date
"
,
"
title
"
:
"
Report Date
"
,
"
default
"
:
gadget
.
state
.
report_date
.
toUTCString
()
,
"
default
"
:
gadget
.
state
.
report_date
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
report_date
"
,
"
key
"
:
"
report_date
"
,
"
hidden
"
:
0
,
"
hidden
"
:
0
,
"
timezone_style
"
:
0
,
"
timezone_style
"
:
1
,
"
date_only
"
:
0
,
"
date_only
"
:
0
,
"
type
"
:
"
DateTimeField
"
"
type
"
:
"
DateTimeField
"
},
},
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_software_instance_view_js.xml
View file @
e7557d20
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
971.
33402.59013.3256
3
</string>
</value>
<value>
<string>
971.
52392.46096.6188
3
</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>
154
1763622.66
</float>
<float>
154
2962862.93
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_appcache.xml
View file @
e7557d20
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
CACHE MANIFEST\n
<value>
<string>
CACHE MANIFEST\n
# generated on Fri, 1
6 Jul 2018 17:48:21
+0000\n
# generated on Fri, 1
9 Nov 2018 16:43:45
+0000\n
# XXX + fonts\n
# XXX + fonts\n
# images/ajax-loader.gif\n
# images/ajax-loader.gif\n
CACHE:\n
CACHE:\n
...
@@ -149,6 +149,8 @@ gadget_erp5_router.html\n
...
@@ -149,6 +149,8 @@ gadget_erp5_router.html\n
gadget_erp5_router.js\n
gadget_erp5_router.js\n
gadget_html5_input.html\n
gadget_html5_input.html\n
gadget_html5_input.js\n
gadget_html5_input.js\n
gadget_erp5_configure_editor.html\n
gadget_erp5_configure_editor.js\n
gadget_erp5_searchfield.html\n
gadget_erp5_searchfield.html\n
gadget_erp5_searchfield.js\n
gadget_erp5_searchfield.js\n
gadget_erp5_pt_form_list.html\n
gadget_erp5_pt_form_list.html\n
...
@@ -387,7 +389,7 @@ NETWORK:\n
...
@@ -387,7 +389,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
971.
13516.48622.23296
</string>
</value>
<value>
<string>
971.
57732.65002.56098
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -405,7 +407,7 @@ NETWORK:\n
...
@@ -405,7 +407,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
154
0570672.89
</float>
<float>
154
3224326.23
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_custom_css.xml
View file @
e7557d20
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
63.27666.8050.30907
</string>
</value>
<value>
<string>
9
71.43784.34275.28586
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
10935596.91
</float>
<float>
15
42388521.4
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_header_js.xml
View file @
e7557d20
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
2.38483.42476.54152
</string>
</value>
<value>
<string>
96
3.27666.8050.30907
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
07899173.02
</float>
<float>
15
42277962.83
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/monitoring_jio_storage_js.js
View file @
e7557d20
...
@@ -31,7 +31,34 @@
...
@@ -31,7 +31,34 @@
*/
*/
var
rusha
=
new
Rusha
(),
var
rusha
=
new
Rusha
(),
OPML_ATTACHMENT_NAME
=
"
__opml__
"
;
OPML_ATTACHMENT_NAME
=
"
__opml__
"
,
ZONE_LIST
=
[
"
-1200
"
,
"
-1100
"
,
"
-1000
"
,
"
-0900
"
,
"
-0800
"
,
"
-0700
"
,
"
-0600
"
,
"
-0500
"
,
"
-0400
"
,
"
-0300
"
,
"
-0200
"
,
"
-0100
"
,
"
+0000
"
,
"
+0100
"
,
"
+0200
"
,
"
+0300
"
,
"
+0400
"
,
"
+0500
"
,
"
+0600
"
,
"
+0700
"
,
"
+0800
"
,
"
+0900
"
,
"
+1000
"
,
"
+1100
"
,
"
+1200
"
];
function
generateHash
(
str
)
{
function
generateHash
(
str
)
{
return
rusha
.
digestFromString
(
str
);
return
rusha
.
digestFromString
(
str
);
...
@@ -378,7 +405,7 @@
...
@@ -378,7 +405,7 @@
var
status
=
element
.
status
.
toUpperCase
();
var
status
=
element
.
status
.
toUpperCase
();
if
(
hosting
.
instance_amount
===
0
)
{
if
(
hosting
.
instance_amount
===
0
)
{
hosting
.
status_date
=
element
.
date
;
hosting
.
status_date
=
fixDateTimezone
(
element
.
date
)
;
}
}
if
(
hosting
.
status
===
"
ERROR
"
)
{
if
(
hosting
.
status
===
"
ERROR
"
)
{
return
;
return
;
...
@@ -391,6 +418,15 @@
...
@@ -391,6 +418,15 @@
}
}
}
}
function
fixDateTimezone
(
date_string
)
{
// set default timezone offset to UTC
// XXX should be removed later
if
(
ZONE_LIST
.
indexOf
(
date_string
.
slice
(
-
5
))
===
-
1
)
{
return
date_string
+
"
+0000
"
;
}
return
date_string
;
}
function
getOpmlTree
(
context
,
opml_url
,
opml_spec
,
basic_login
,
opml_title
)
{
function
getOpmlTree
(
context
,
opml_url
,
opml_spec
,
basic_login
,
opml_title
)
{
var
opml_storage
,
var
opml_storage
,
opml_document_list
=
[],
opml_document_list
=
[],
...
@@ -412,7 +448,7 @@
...
@@ -412,7 +448,7 @@
opml_url
:
opml_url
,
opml_url
:
opml_url
,
status
:
"
WARNING
"
,
status
:
"
WARNING
"
,
instance_amount
:
0
,
instance_amount
:
0
,
status_date
:
new
Date
()
status_date
:
(
new
Date
()).
toUTCString
()
+
"
+0000
"
};
};
return
getDocumentAsAttachment
(
context
,
opml_url
,
OPML_ATTACHMENT_NAME
)
return
getDocumentAsAttachment
(
context
,
opml_url
,
OPML_ATTACHMENT_NAME
)
.
push
(
function
(
opml_doc
)
{
.
push
(
function
(
opml_doc
)
{
...
@@ -579,6 +615,12 @@
...
@@ -579,6 +615,12 @@
// XXX - document need to be updated to keep compatibility
// XXX - document need to be updated to keep compatibility
element
=
fixGlobalInstanceDocument
(
element
);
element
=
fixGlobalInstanceDocument
(
element
);
}
}
// XXX - fixing date timezone
element
.
date
=
fixDateTimezone
(
element
.
date
);
}
// XXX - fixing date timezone
if
(
element
.
pubDate
!==
undefined
)
{
element
.
pubDate
=
fixDateTimezone
(
element
.
pubDate
);
}
}
id_hash
=
generateHash
(
item_result
.
parent_id
+
id_hash
=
generateHash
(
item_result
.
parent_id
+
...
@@ -595,8 +637,8 @@
...
@@ -595,8 +637,8 @@
};
};
if
(
item_result
.
current_signature
.
hasOwnProperty
(
id_hash
))
{
if
(
item_result
.
current_signature
.
hasOwnProperty
(
id_hash
))
{
if
(
item_result
.
current_signature
[
id_hash
].
signature
if
(
item_result
.
current_signature
[
id_hash
].
signature
===
===
signature
)
{
signature
)
{
// the document was not modified return
// the document was not modified return
delete
item_result
.
current_signature
[
id_hash
];
delete
item_result
.
current_signature
[
id_hash
];
return
;
return
;
...
@@ -625,8 +667,8 @@
...
@@ -625,8 +667,8 @@
if
(
result_list
[
i
].
type
===
"
promise
"
)
{
if
(
result_list
[
i
].
type
===
"
promise
"
)
{
// the first element of rss is the header
// the first element of rss is the header
extra_dict
=
{
extra_dict
=
{
lastBuildDate
:
result_list
[
i
].
result
.
data
.
rows
[
0
].
doc
lastBuildDate
:
fixDateTimezone
(
result_list
[
i
].
result
.
data
.
.
lastBuildDate
,
rows
[
0
].
doc
.
lastBuildDate
)
,
channel
:
result_list
[
i
].
result
.
data
.
rows
[
0
].
doc
.
description
,
channel
:
result_list
[
i
].
result
.
data
.
rows
[
0
].
doc
.
description
,
channel_item
:
result_list
[
i
].
result
.
data
.
rows
[
0
].
doc
.
title
channel_item
:
result_list
[
i
].
result
.
data
.
rows
[
0
].
doc
.
title
};
};
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/monitoring_jio_storage_js.xml
View file @
e7557d20
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
65.42058.36320.56678
</string>
</value>
<value>
<string>
9
71.53440.65205.20872
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
154
0559911.98
</float>
<float>
154
2966332.7
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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