Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
d78f3520
Commit
d78f3520
authored
Mar 31, 2016
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Basic import/export for monitoring settings
parent
2aa455b7
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1033 additions
and
78 deletions
+1033
-78
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_appcache.xml
...mplateItem/web_page_module/gadget_monitoring_appcache.xml
+7
-4
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_application_panel_html.xml
..._page_module/gadget_monitoring_application_panel_html.xml
+5
-4
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_custom_css.xml
...lateItem/web_page_module/gadget_monitoring_custom_css.xml
+20
-3
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_overview_js.xml
...web_page_module/gadget_monitoring_hosting_overview_js.xml
+2
-3
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_import_export_html.xml
.../web_page_module/gadget_monitoring_import_export_html.xml
+406
-0
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_import_export_js.xml
...em/web_page_module/gadget_monitoring_import_export_js.xml
+558
-0
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_login_js.xml
...mplateItem/web_page_module/gadget_monitoring_login_js.xml
+6
-10
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_login_widget_js.xml
...tem/web_page_module/gadget_monitoring_login_widget_js.xml
+6
-14
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_js.xml
...eb_page_module/gadget_monitoring_promise_interface_js.xml
+5
-3
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_settings_configurator_html.xml
...e_module/gadget_monitoring_settings_configurator_html.xml
+5
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_static_js.xml
...plateItem/web_page_module/gadget_monitoring_static_js.xml
+11
-33
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_listbox_js.xml
...m/web_page_module/gadget_monitoring_widget_listbox_js.xml
+2
-2
No files found.
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_appcache.xml
View file @
d78f3520
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
CACHE MANIFEST\n
CACHE MANIFEST\n
# generated on Fri,
25
Mars 2016 11:45:33 +0000\n
# generated on Fri,
30
Mars 2016 11:45:33 +0000\n
# XXX + fonts\n
# XXX + fonts\n
# images/ajax-loader.gif\n
# images/ajax-loader.gif\n
CACHE:\n
CACHE:\n
...
@@ -129,11 +129,12 @@ gadget_translate.js\n
...
@@ -129,11 +129,12 @@ gadget_translate.js\n
handlebars.js\n
handlebars.js\n
i18next.js\n
i18next.js\n
jiodev.js\n
jiodev.js\n
jio_dev_rssfeed_storage.js\n
jquery.js\n
jquery.js\n
jquery.magnific-popup.min.js\n
jquery.magnific-popup.min.js\n
jquerymobile.css\n
jquerymobile.css\n
jquerymobile.js\n
jquerymobile.js\n
j
io_dev_rssfeed_storage
.js\n
j
sen.min
.js\n
magnific-popup.css\n
magnific-popup.css\n
renderjs.js\n
renderjs.js\n
rsvp.js\n
rsvp.js\n
...
@@ -143,6 +144,7 @@ gadget_monitoring_chart.html\n
...
@@ -143,6 +144,7 @@ gadget_monitoring_chart.html\n
gadget_monitoring_document_edit.html\n
gadget_monitoring_document_edit.html\n
gadget_monitoring_header.html\n
gadget_monitoring_header.html\n
gadget_monitoring_hosting_overview.html\n
gadget_monitoring_hosting_overview.html\n
gadget_monitoring_import_export.html\n
gadget_monitoring_jio.html\n
gadget_monitoring_jio.html\n
gadget_monitoring_login.html\n
gadget_monitoring_login.html\n
gadget_monitoring_login_widget.html\n
gadget_monitoring_login_widget.html\n
...
@@ -165,6 +167,7 @@ gadget_monitoring_chart.js\n
...
@@ -165,6 +167,7 @@ gadget_monitoring_chart.js\n
gadget_monitoring_document_edit.js\n
gadget_monitoring_document_edit.js\n
gadget_monitoring_header.js\n
gadget_monitoring_header.js\n
gadget_monitoring_hosting_overview.js\n
gadget_monitoring_hosting_overview.js\n
gadget_monitoring_import_export.js\n
gadget_monitoring_jio.js\n
gadget_monitoring_jio.js\n
gadget_monitoring_login.js\n
gadget_monitoring_login.js\n
gadget_monitoring_login_widget.js\n
gadget_monitoring_login_widget.js\n
...
@@ -323,7 +326,7 @@ NETWORK:\n
...
@@ -323,7 +326,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
950.
4056.16865.34099
</string>
</value>
<value>
<string>
950.
11734.46994.47240
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -341,7 +344,7 @@ NETWORK:\n
...
@@ -341,7 +344,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
8896288.17
</float>
<float>
145
9356896.12
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_application_panel_html.xml
View file @
d78f3520
...
@@ -151,10 +151,11 @@
...
@@ -151,10 +151,11 @@
<script
id=
"panel-template-body"
type=
"text/x-handlebars-template"
>
\n
<script
id=
"panel-template-body"
type=
"text/x-handlebars-template"
>
\n
<div
class=
"ui-content"
>
\n
<div
class=
"ui-content"
>
\n
<ul
data-role=
"listview"
class=
"ui-listview"
>
\n
<ul
data-role=
"listview"
class=
"ui-listview"
>
\n
<li><a
href=
"#page=status_list"
><i
class=
"fa fa-th-list"
></i><span
data-i18n=
"Promises Overview"
>
Promises Overview
</span></a></li>
\n
<li><a
href=
"#page=overview"
><i
class=
"fa fa-cube"
></i><span
data-i18n=
"Instances Overview"
>
Instances Overview
</span></a></li>
\n
<li><a
href=
"#page=hosting_overview"
><i
class=
"fa fa-globe"
></i><span
data-i18n=
"Applications Overview"
>
Applications Overview
</span></a></li>
\n
<li><a
href=
"#page=hosting_overview"
><i
class=
"fa fa-globe"
></i><span
data-i18n=
"Applications Overview"
>
Applications Overview
</span></a></li>
\n
<li><a
href=
"#page=overview"
><i
class=
"fa fa-cube"
></i><span
data-i18n=
"Instances Overview"
>
Instances Overview
</span></a></li>
\n
<li><a
href=
"#page=status_list"
><i
class=
"fa fa-th-list"
></i><span
data-i18n=
"Promises Overview"
>
Promises Overview
</span></a></li>
\n
<li><a
href=
"#page=settings_configurator"
><i
class=
"fa fa-cog"
></i><span
data-i18n=
"Monitoring Configuration"
>
Monitoring Configuration
</span></a></li>
\n
<li><a
href=
"#page=settings_configurator"
><i
class=
"fa fa-cog"
></i><span
data-i18n=
"Monitoring Configuration"
>
Monitoring Configuration
</span></a></li>
\n
<li><a
href=
"#page=import_export"
><i
class=
"fa fa-exchange"
></i><span
data-i18n=
"Import / Export"
>
Import / Export
</span></a></li>
\n
</ul>
\n
</ul>
\n
</div>
\n
</div>
\n
</script>
\n
</script>
\n
...
@@ -303,7 +304,7 @@
...
@@ -303,7 +304,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.63903.8246.8413
</string>
</value>
<value>
<string>
9
50.11404.26472.10461
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -321,7 +322,7 @@
...
@@ -321,7 +322,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
8554861.74
</float>
<float>
145
9508166.41
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_custom_css.xml
View file @
d78f3520
...
@@ -208,6 +208,11 @@ html.ui-mobile .ui-grid-container.ui-responsive > ul > li, html.ui-mobile .ui-gr
...
@@ -208,6 +208,11 @@ html.ui-mobile .ui-grid-container.ui-responsive > ul > li, html.ui-mobile .ui-gr
color: rgba(128, 128, 128, 0.66);\n
color: rgba(128, 128, 128, 0.66);\n
}\n
}\n
\n
\n
.text-data {\n
height: 120px;\n
color: #596167;\n
}\n
\n
.text-overview {\n
.text-overview {\n
max-width: 200px;\n
max-width: 200px;\n
white-space: nowrap;\n
white-space: nowrap;\n
...
@@ -330,6 +335,18 @@ table tr.line-edit {\n
...
@@ -330,6 +335,18 @@ table tr.line-edit {\n
border: 1px solid #A2A2A2;\n
border: 1px solid #A2A2A2;\n
}\n
}\n
\n
\n
html head + body h2.section-title {\n
margin: 0;\n
margin-top: 40px;\n
color: #557186;\n
margin-left: 2px;\n
}\n
\n
html head + body h2.section-title > span {\n
font-size: 22px;\n
padding-left: 10px;\n
}\n
\n
html head + body .ui-panel-overview > h2 {\n
html head + body .ui-panel-overview > h2 {\n
font-weight: bold;\n
font-weight: bold;\n
font-size: 105%;\n
font-size: 105%;\n
...
@@ -592,7 +609,7 @@ html .custom-grid-wrap table thead tr th {\n
...
@@ -592,7 +609,7 @@ html .custom-grid-wrap table thead tr th {\n
vertical-align: middle;\n
vertical-align: middle;\n
text-align: left;\n
text-align: left;\n
position: relative;\n
position: relative;\n
cursor: pointer;
\n
/*cursor: pointer;*/
\n
}\n
}\n
.infobox:hover {\n
.infobox:hover {\n
background: rgba(128, 128, 128, .1);\n
background: rgba(128, 128, 128, .1);\n
...
@@ -951,7 +968,7 @@ html table.instance-overview td:first-child > a, html table.instance-overview td
...
@@ -951,7 +968,7 @@ html table.instance-overview td:first-child > a, html table.instance-overview td
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.64125.34749.3423
5
</string>
</value>
<value>
<string>
9
50.11464.24567.1544
5
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -969,7 +986,7 @@ html table.instance-overview td:first-child > a, html table.instance-overview td
...
@@ -969,7 +986,7 @@ html table.instance-overview td:first-child > a, html table.instance-overview td
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
8581200.97
</float>
<float>
145
9341758.63
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_overview_js.xml
View file @
d78f3520
...
@@ -224,7 +224,6 @@
...
@@ -224,7 +224,6 @@
promise_list =
[];\n
promise_list =
[];\n
gadget.props.opml_dict =
url_description_dict;\n
gadget.props.opml_dict =
url_description_dict;\n
opml_tmp_key_list =
[];\n
opml_tmp_key_list =
[];\n
console.log(url_description_dict);\n
for
(key
in
url_description_dict)
{\n
for
(key
in
url_description_dict)
{\n
opml_tmp_key_list.push(key);\n
opml_tmp_key_list.push(key);\n
promise_list.push(gadget.props.jio_gadget.getMonitorUrlListFromOpml(\n
promise_list.push(gadget.props.jio_gadget.getMonitorUrlListFromOpml(\n
...
@@ -741,7 +740,7 @@
...
@@ -741,7 +740,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
950.3039.
1259.9813
</string>
</value>
<value>
<string>
950.3039.
65061.43776
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -759,7 +758,7 @@
...
@@ -759,7 +758,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
8835199.54
</float>
<float>
145
9761305.99
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_import_export_html.xml
0 → 100644
View file @
d78f3520
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
classification/collaborative/public
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_monitoring_import_export.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_monitoring_import_export_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<!DOCTYPE html>
\n
<html>
\n
<head>
\n
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
\n
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
\n
<title>
Monitoring Configurator
</title>
\n
\n
<!-- renderjs -->
\n
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
\n
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
\n
<script
src=
"jsen.min.js"
type=
"text/javascript"
></script>
\n
\n
<script
src=
"gadget_monitoring_import_export.js"
type=
"text/javascript"
></script>
\n
</head>
\n
<body>
\n
<div
data-gadget-url=
"gadget_monitoring_jio.html"
data-gadget-scope=
"jio_gadget"
data-gadget-sandbox=
"public"
></div>
\n
<div
data-gadget-url=
"gadget_monitoring_login_widget.html"
data-gadget-scope=
"login_gadget"
data-gadget-sandbox=
"public"
></div>
\n
\n
<div
data-role=
"tabs"
class=
"config-tabs"
>
\n
<div
data-role=
"navbar"
>
\n
<ul>
\n
<li><a
href=
"#config-export"
data-ajax=
"false"
>
Export Settings
</a></li>
\n
<li><a
href=
"#config-import"
data-ajax=
"false"
>
Import Settings
</a></li>
\n
</ul>
\n
</div>
\n
<div
id=
"config-export"
class=
"ui-body-c ui-content"
>
\n
<h2
class=
"section-title"
><i
class=
"fa fa-download fa-2x"
></i><span
data-i18n=
""
>
Save Monitoring Configuration
</span></h2>
\n
<div
class=
"ui-body-c ui-content-sections"
>
\n
<div
class=
"ui-field-contain"
>
\n
<label
data-i18n=
"Setting Content:"
>
Settings Content (json format):
</label>
\n
<textarea
name=
"settings-data"
class=
"text-data"
></textarea>
\n
</div>
\n
</div>
\n
<div
class=
"select-storage ui-controlgroup ui-controlgroup-horizontal"
>
\n
<div
class=
"ui-grid-b ui-responsive"
>
\n
<div
class=
"ui-block-a"
></div>
\n
<div
class=
"ui-block-b"
>
\n
</div>
\n
<div
class=
"ui-block-c"
>
\n
<button
data-i18n=
"Reload Settings"
class=
"ui-btn-btn-right btn-reload"
>
Reload Settings
</button>
\n
</div>
\n
</div>
\n
</div>
\n
</div>
\n
<div
id=
"config-import"
class=
"ui-body-c ui-content"
>
\n
<h2
class=
"section-title"
><i
class=
"fa fa-upload fa-2x"
></i><span
data-i18n=
""
>
Load Your Monitoring Configuration
</span></h2>
\n
<div
class=
"ui-body-c ui-content-sections"
>
\n
<div
class=
"ui-field-contain"
>
\n
<label
data-i18n=
"Setting Content:"
>
Settings Content (json format):
</label>
\n
<textarea
name=
"settings-data-input"
class=
"text-data"
></textarea>
\n
</div>
\n
</div>
\n
<div
class=
"ui-text-right padding-5"
>
\n
<span
class=
"ui-text-error"
></span>
\n
</div>
\n
<div
class=
"select-storage ui-controlgroup ui-controlgroup-horizontal"
>
\n
<div
class=
"ui-grid-b ui-responsive"
>
\n
<div
class=
"ui-block-a"
></div>
\n
<div
class=
"ui-block-b"
>
\n
</div>
\n
<div
class=
"ui-block-c"
>
\n
<button
data-i18n=
"Reload Settings"
class=
"ui-btn-btn-right btn-save"
>
Import Settings
</button>
\n
</div>
\n
</div>
\n
</div>
\n
</div>
\n
</div>
\n
\n
</body>
\n
</html>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Monitoring Import Export
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1459337186.91
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
950.11579.61166.10564
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1459353714.18
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1459337116.02
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_import_export_js.xml
0 → 100644
View file @
d78f3520
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
classification/collaborative/public
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_monitoring_import_export.js
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_monitoring_import_export_js
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS, RSVP, jsen, Rusha, $ */\n
/*jslint nomen: true, indent: 2, maxerr: 3*/\n
(function (window, rJS, RSVP, jsen, Rusha, $) {\n
"use strict";\n
\n
function getMonitoringSetting(gadget) {\n
return gadget.getSetting(\'monitor_url_description\')\n
.push(function (monitor_url_description) {\n
return monitor_url_description;\n
})\n
.push(function (monitor_url_dict) {\n
var setting_dict = {};\n
if (!monitor_url_dict) {\n
return setting_dict;\n
}\n
return gadget.getDeclaredGadget("jio_gadget")\n
.push(function (jio_gadget) {\n
return jio_gadget.get(\'urls\');\n
})\n
.push(function (monitor_base_url_dict) {\n
var key;\n
\n
setting_dict.opml_description = [];\n
setting_dict.monitor_url = [];\n
for (key in monitor_url_dict) {\n
setting_dict.opml_description.push(monitor_url_dict[key]);\n
}\n
if (monitor_base_url_dict) {\n
for (key in monitor_base_url_dict) {\n
setting_dict.monitor_url.push(monitor_base_url_dict[key]);\n
}\n
}\n
return setting_dict;\n
});\n
});\n
}\n
\n
function validateJsonConfiguration(json_value) {\n
var validate,\n
json_schema = {\n
"$schema": "http://json-schema.org/draft-04/schema#",\n
"type" : "object",\n
"properties": {\n
"opml_description": {\n
"description": "list of monitor opml URL",\n
"type": "array",\n
"items": {\n
"type": "object",\n
"properties": {\n
"href": {\n
"description": "OPML URL",\n
"type": "string"\n
},\n
"title": {\n
"description": "OPML title",\n
"type": "string"\n
}\n
},\n
"additionalProperties": false\n
}\n
},\n
"monitor_url": {\n
"description": "list of registered monitor instance URL",\n
"type": "array",\n
"required": [\'hash\', "url", "parent_url"],\n
"items": {\n
"type": "object",\n
"properties": {\n
"hash": {\n
"description": "hash string",\n
"type": "string"\n
},\n
"url": {\n
"description": "url of monitor instance",\n
"type": "string"\n
},\n
"parent_url": {\n
"description": "URL to parent instance",\n
"type": "string"\n
}\n
},\n
"additionalProperties": false\n
}\n
}\n
},\n
\n
"additionalProperties": false\n
};\n
\n
return new RSVP.Queue()\n
.push(function () {\n
validate = jsen(json_schema);\n
return validate(json_value);\n
});\n
}\n
\n
var gadget_klass = rJS(window),\n
hashCode = new Rusha().digestFromString;\n
\n
gadget_klass\n
.ready(function (g) {\n
g.props = {};\n
return g.getElement()\n
.push(function (element) {\n
g.props.element = element;\n
g.props.deferred = RSVP.defer();\n
});\n
})\n
.ready(function (g) {\n
return g.getDeclaredGadget("login_gadget")\n
.push(function (login_gadget) {\n
g.props.login_gadget = login_gadget;\n
});\n
})\n
.ready(function (g) {\n
return g.getDeclaredGadget("jio_gadget")\n
.push(function (jio_gadget) {\n
g.props.jio_gadget = jio_gadget;\n
return jio_gadget.createJio({\n
type: "indexeddb",\n
database: "setting"\n
});\n
});\n
})\n
.declareAcquiredMethod("getSetting", "getSetting")\n
.declareAcquiredMethod("setSetting", "setSetting")\n
.declareAcquiredMethod("redirect", "redirect")\n
.declareMethod("render", function (options) {\n
var gadget = this,\n
url_description_dict;\n
return getMonitoringSetting(gadget)\n
.push(function (setting_dict) {\n
gadget.props.element.querySelector(\'textarea[name="settings-data"]\')\n
.innerHTML = JSON.stringify(setting_dict);\n
return gadget.props.deferred.resolve();\n
});\n
})\n
\n
\n
.declareService(function () {\n
var gadget = this;\n
\n
return new RSVP.Queue()\n
.push(function () {\n
return gadget.props.deferred.promise;\n
})\n
.push(function () {\n
return $(gadget.props.element.querySelector("a[href=\'#config-export\']")).trigger(\'click\');\n
})\n
.push(function () {\n
var promise_list = [];\n
promise_list.push(loopEventListener(\n
gadget.props.element.querySelector(\'.btn-reload\'),\n
\'click\',\n
true,\n
function () {\n
return new RSVP.Queue()\n
.push(function () {\n
return getMonitoringSetting(gadget);\n
})\n
.push(function (setting_dict) {\n
$(gadget.props.element.querySelector(\'textarea[name="settings-data"]\'))\n
.val(JSON.stringify(setting_dict));\n
});\n
}\n
));\n
\n
promise_list.push(loopEventListener(\n
gadget.props.element.querySelector(\'.btn-save\'),\n
\'click\',\n
true,\n
function () {\n
var json_string = $(gadget.props.element.querySelector(\'textarea[name="settings-data-input"]\')).val(),\n
configuration_dict,\n
monitor_url_dict = {},\n
monitor_opml_url_dict = {},\n
i;\n
gadget.props.element.querySelector(\'.ui-text-error\')\n
.innerHTML = "";\n
\n
try {\n
configuration_dict = JSON.parse(json_string);\n
} catch (e) {\n
gadget.props.element.querySelector(\'.ui-text-error\')\n
.innerHTML = \'Error: Invalid json content!\';\n
return;\n
}\n
\n
return validateJsonConfiguration(configuration_dict)\n
.push(function (validate_result) {\n
if (validate_result) {\n
for (i = 0; i < configuration_dict.opml_description.length; i += 1) {\n
monitor_opml_url_dict[\n
hashCode(configuration_dict.opml_description[i].href)\n
] = configuration_dict.opml_description[i];\n
}\n
for (i = 0; i < configuration_dict.monitor_url.length; i += 1) {\n
monitor_url_dict[\n
hashCode(configuration_dict.monitor_url[i].url)\n
] = configuration_dict.monitor_url[i];\n
}\n
return gadget.props.login_gadget.setUrlDict(monitor_url_dict)\n
.push(function () {\n
return gadget.setSetting(\'monitor_url_description\', monitor_opml_url_dict);\n
})\n
.push(function () {\n
return gadget.redirect({\n
page: \'settings_configurator\',\n
tab: \'manage\'\n
});\n
});\n
} else {\n
gadget.props.element.querySelector(\'.ui-text-error\')\n
.innerHTML = \'Error: Content is not a valid Monitoring Json configuration!\';\n
}\n
});\n
}\n
));\n
});\n
});\n
\n
}(window, rJS, RSVP, jsen, Rusha, $));
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Monitoring Import Export Gadget JS
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1459338522.11
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
950.14162.28880.43042
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1459502615.34
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1459338433.74
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_login_js.xml
View file @
d78f3520
...
@@ -110,9 +110,9 @@
...
@@ -110,9 +110,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global document, window, rJS */\n
/*global document, window, rJS
, Rusha, btoa
*/\n
/*jslint nomen: true, indent: 2, maxerr: 3*/\n
/*jslint nomen: true, indent: 2, maxerr: 3*/\n
(function (window, document, rJS) {\n
(function (window, document, rJS
, Rusha, btoa
) {\n
"use strict";\n
"use strict";\n
\n
\n
var gadget_klass = rJS(window),\n
var gadget_klass = rJS(window),\n
...
@@ -121,11 +121,7 @@
...
@@ -121,11 +121,7 @@
llogin_tooltip_template = Handlebars.compile(\n
llogin_tooltip_template = Handlebars.compile(\n
templater.getElementById("login-toltip-template").innerHTML\n
templater.getElementById("login-toltip-template").innerHTML\n
),\n
),\n
hashCode;\n
hashCode = new Rusha().digestFromString;\n
\n
hashCode = function (s) {\n
return s.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0); \n
};\n
\n
\n
gadget_klass\n
gadget_klass\n
.ready(function (g) {\n
.ready(function (g) {\n
...
@@ -246,7 +242,7 @@
...
@@ -246,7 +242,7 @@
});\n
});\n
});\n
});\n
\n
\n
}(window, document, rJS));
}(window, document, rJS
, Rusha, btoa
));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -383,7 +379,7 @@
...
@@ -383,7 +379,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.54056.59252.46080
</string>
</value>
<value>
<string>
9
50.13111.28749.20002
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -401,7 +397,7 @@
...
@@ -401,7 +397,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
7966675.88
</float>
<float>
145
9439547.16
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_login_widget_js.xml
View file @
d78f3520
...
@@ -108,19 +108,13 @@
...
@@ -108,19 +108,13 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string>
/*global document, window, rJS, Rusha, btoa */\n
/*global document, window, rJS */\n
/*jslint nomen: true, indent: 2, maxerr: 3*/\n
/*jslint nomen: true, indent: 2, maxerr: 3*/\n
(function (window, document, rJS) {\n
(function (window, document, rJS
, Rusha, btoa
) {\n
"use strict";\n
"use strict";\n
\n
\n
var gadget_klass = rJS(window),\n
var gadget_klass = rJS(window),\n
hashCode;\n
hashCode = new Rusha().digestFromString;\n
\n
hashCode = function (s) {\n
return s.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0); \n
};\n
\n
\n
\n
\n
function getUrlInfo(gadget, key, default_value) {\n
function getUrlInfo(gadget, key, default_value) {\n
...
@@ -337,9 +331,7 @@
...
@@ -337,9 +331,7 @@
return updateUrlValue(gadget, url, login, password);\n
return updateUrlValue(gadget, url, login, password);\n
});\n
});\n
\n
\n
}(window, document, rJS));
}(window, document, rJS, Rusha, btoa));
</string>
</value>
]]>
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -474,7 +466,7 @@
...
@@ -474,7 +466,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
949.54
052.60822.44663
</string>
</value>
<value>
<string>
949.54
108.24790.65006
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -492,7 +484,7 @@
...
@@ -492,7 +484,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
7967142.65
</float>
<float>
145
9439672.87
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_js.xml
View file @
d78f3520
...
@@ -332,9 +332,11 @@
...
@@ -332,9 +332,11 @@
var i,\n
var i,\n
history_list = [];\n
history_list = [];\n
\n
\n
if (result_list) {\n
for (i = 0; i < result_list.data.rows.length; i += 1) {\n
for (i = 0; i < result_list.data.rows.length; i += 1) {\n
history_list.push(result_list.data.rows[i].value);\n
history_list.push(result_list.data.rows[i].value);\n
}\n
}\n
}\n
history_content = history_widget_template({history_list: history_list});\n
history_content = history_widget_template({history_list: history_list});\n
gadget.property_dict.element.querySelector("#promise-overview .ui-block-a")\n
gadget.property_dict.element.querySelector("#promise-overview .ui-block-a")\n
.innerHTML += history_content;\n
.innerHTML += history_content;\n
...
@@ -640,7 +642,7 @@
...
@@ -640,7 +642,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1458
124466.18
</float>
<float>
1458
901454.83
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_settings_configurator_html.xml
View file @
d78f3520
...
@@ -273,6 +273,9 @@
...
@@ -273,6 +273,9 @@
<i
class=
"fa fa-spinner fa-2x fa-spin"
></i>
\n
<i
class=
"fa fa-spinner fa-2x fa-spin"
></i>
\n
</span>
\n
</span>
\n
</div>
\n
</div>
\n
<div
class=
"padding-5"
>
\n
<a
href=
"#page=hosting_overview"
>
Access Applications
</a>
\n
</div>
\n
</div>
\n
</div>
\n
</div>
\n
</div>
\n
</div>
\n
</div>
\n
...
@@ -420,7 +423,7 @@
...
@@ -420,7 +423,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.65333.22535.21930
</string>
</value>
<value>
<string>
9
50.14227.11651.3003
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -438,7 +441,7 @@
...
@@ -438,7 +441,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
8641047.48
</float>
<float>
145
9506471.61
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_static_js.xml
View file @
d78f3520
...
@@ -110,9 +110,9 @@
...
@@ -110,9 +110,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS, btoa, RSVP, $ */\n
/*global window, rJS, btoa, RSVP, $
, Rusha
*/\n
/*jslint nomen: true, indent: 2, maxerr: 3*/\n
/*jslint nomen: true, indent: 2, maxerr: 3*/\n
(function (window, rJS, RSVP, $, btoa) {\n
(function (window, rJS, RSVP, $, btoa
, Rusha
) {\n
"use strict";\n
"use strict";\n
\n
\n
function validateHttpUrl(value) {\n
function validateHttpUrl(value) {\n
...
@@ -168,10 +168,6 @@
...
@@ -168,10 +168,6 @@
});\n
});\n
});\n
});\n
}\n
}\n
\n
function hashCode (s) {\n
return s.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0); \n
}\n
\n
\n
function setUrlConfiguration(gadget, url, title) {\n
function setUrlConfiguration(gadget, url, title) {\n
return gadget.getSetting(\'monitor_url_description\')\n
return gadget.getSetting(\'monitor_url_description\')\n
...
@@ -184,29 +180,8 @@
...
@@ -184,29 +180,8 @@
url_description_dict = {};\n
url_description_dict = {};\n
}\n
}\n
\n
\n
// url will be saved by group (hosting subscription) identified by their id\n
tmp = hashCode(url);\n
tmp = hashCode(url) + \'\';\n
/*if (url_description_dict.hasOwnProperty(tmp)) {\n
// this entry will be overridden\n
}*/\n
url_description_dict[tmp] = {href: url, title: title};\n
url_description_dict[tmp] = {href: url, title: title};\n
/*\n
tmp_dict = {};\n
tmp_dict.root_title = group_name;\n
if (tmp_dict.urls === undefined) {\n
tmp_dict.urls = [];\n
}\n
for (i = 0; i < description_list.length; i += 1) {\n
\n
if (description_list[i].htmlurl) {\n
tmp_dict.urls.push({\n
url: description_list[i].htmlurl,\n
title: description_list[i].title,\n
root_title: description_list[i].opml_title\n
});\n
}\n
}\n
url_description_dict[tmp] = tmp_dict;*/\n
return gadget.setSetting(\'monitor_url_description\', url_description_dict);\n
return gadget.setSetting(\'monitor_url_description\', url_description_dict);\n
});\n
});\n
}\n
}\n
...
@@ -358,7 +333,8 @@
...
@@ -358,7 +333,8 @@
\n
\n
opml_url_template = Handlebars.compile(\n
opml_url_template = Handlebars.compile(\n
templater.getElementById("template-opmlurl-list").innerHTML\n
templater.getElementById("template-opmlurl-list").innerHTML\n
);\n
),\n
hashCode = new Rusha().digestFromString;\n
\n
\n
gadget_klass\n
gadget_klass\n
.ready(function (g) {\n
.ready(function (g) {\n
...
@@ -720,7 +696,7 @@
...
@@ -720,7 +696,7 @@
parent_url:
gadget.props.opml_url\n
parent_url:
gadget.props.opml_url\n
//parent_title:
root_name\n
//parent_title:
root_name\n
};\n
};\n
credential_dict[
hashCode(
tmp.url
)
+
\'\'
]
=
tmp;\n
credential_dict[
hashCode(
tmp.url
)
]
=
tmp;\n
}\n
}\n
}\n
}\n
if
(credential_dict)
{\n
if
(credential_dict)
{\n
...
@@ -779,7 +755,9 @@
...
@@ -779,7 +755,9 @@
});\n
});\n
});\n
});\n
\n
\n
}(window,
rJS,
RSVP,
$,
btoa));
}(window,
rJS,
RSVP,
$,
btoa,
Rusha));\n
\n
]]
></string>
</value>
]]
></string>
</value>
</item>
</item>
...
@@ -916,7 +894,7 @@
...
@@ -916,7 +894,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.65344.30338.2974
7
</string>
</value>
<value>
<string>
9
50.11430.27817.6005
7
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -934,7 +912,7 @@
...
@@ -934,7 +912,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
8641325.5
6
</float>
<float>
145
9439866.3
6
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_listbox_js.xml
View file @
d78f3520
...
@@ -586,7 +586,7 @@
...
@@ -586,7 +586,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.59889.7208.51251
</string>
</value>
<value>
<string>
9
50.12978.57403.22323
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -604,7 +604,7 @@
...
@@ -604,7 +604,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
8314048.86
</float>
<float>
145
9432097.87
</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