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
Nikola Balog
erp5
Commits
d233dc6b
Commit
d233dc6b
authored
Dec 29, 2023
by
Roque
Browse files
Options
Browse Files
Download
Plain Diff
Upgrade ojs monitoring app
See merge request
nexedi/erp5!1848
parents
bab42871
f1a5c5e1
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
771 additions
and
9 deletions
+771
-9
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_dispatch_js.js
...Item/web_page_module/gadget_erp5_page_ojsm_dispatch_js.js
+12
-1
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_dispatch_js.xml
...tem/web_page_module/gadget_erp5_page_ojsm_dispatch_js.xml
+3
-3
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_landing_html.html
...m/web_page_module/gadget_erp5_page_ojsm_landing_html.html
+16
-0
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_landing_html.xml
...em/web_page_module/gadget_erp5_page_ojsm_landing_html.xml
+348
-0
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_landing_js.js
...eItem/web_page_module/gadget_erp5_page_ojsm_landing_js.js
+41
-0
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_landing_js.xml
...Item/web_page_module/gadget_erp5_page_ojsm_landing_js.xml
+344
-0
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/monitoring_jio_storage_js.js
...TemplateItem/web_page_module/monitoring_jio_storage_js.js
+1
-1
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/monitoring_jio_storage_js.xml
...emplateItem/web_page_module/monitoring_jio_storage_js.xml
+6
-4
No files found.
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_dispatch_js.js
View file @
d233dc6b
...
...
@@ -31,7 +31,15 @@
})
.
push
(
function
(
result
)
{
if
(
result
===
undefined
||
result
.
data
.
total_rows
===
0
)
{
// no result from the query
if
(
gadget
.
state
.
url
&&
gadget
.
state
.
username
&&
gadget
.
state
.
password
)
{
return
gadget
.
redirect
({
"
command
"
:
"
display
"
,
"
options
"
:
{
"
page
"
:
"
ojsm_opml_add
"
,
"
url
"
:
gadget
.
state
.
url
,
"
username
"
:
gadget
.
state
.
username
,
"
password
"
:
gadget
.
state
.
password
,
"
query
"
:
gadget
.
state
.
original_query
}
});
}
return
;
}
if
(
result
.
data
.
total_rows
===
1
)
{
...
...
@@ -123,6 +131,9 @@
return
gadget
.
changeState
({
original_query
:
original_query
,
query
:
options
.
query
,
url
:
options
.
url
,
username
:
options
.
username
,
password
:
options
.
password
,
portal_type
:
portal_type
||
"
promise
"
,
import_opml
:
portal_type
===
undefined
?
false
:
options
.
import_opml
||
true
});
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_dispatch_js.xml
View file @
d233dc6b
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
963.38066.29413.61576
</string>
</value>
<value>
<string>
1012.62724.50149.41113
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -266,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>
1
540892674.51
</float>
<float>
1
701717676.56
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_landing_html.html
0 → 100644
View file @
d233dc6b
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
<title>
ERP5 Page Monitoring Landing
</title>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_erp5_page_ojsm_landing.js"
type=
"text/javascript"
></script>
</head>
<body>
</body>
</html>
\ No newline at end of file
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_landing_html.xml
0 → 100644
View file @
d233dc6b
This diff is collapsed.
Click to expand it.
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_landing_js.js
0 → 100644
View file @
d233dc6b
/*global window, rJS */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
)
{
"
use strict
"
;
rJS
(
window
)
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
,
redirect_options
=
{
"
page
"
:
"
ojsm_dispatch
"
,
"
url
"
:
options
.
url
,
"
username
"
:
options
.
username
,
"
password
"
:
options
.
password
,
"
query
"
:
options
.
query
};
if
(
options
.
query
)
{
return
gadget
.
redirect
({
"
command
"
:
"
display
"
,
"
options
"
:
redirect_options
});
}
if
(
options
.
url
&&
options
.
username
&&
options
.
password
)
{
redirect_options
.
page
=
"
ojsm_opml_add
"
;
return
gadget
.
redirect
({
"
command
"
:
"
display
"
,
"
options
"
:
redirect_options
});
}
return
gadget
.
redirect
({
"
command
"
:
"
display
"
,
"
options
"
:
{
"
page
"
:
"
ojsm_status_list
"
}
});
});
}(
window
,
rJS
));
\ No newline at end of file
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_landing_js.xml
0 → 100644
View file @
d233dc6b
This diff is collapsed.
Click to expand it.
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/monitoring_jio_storage_js.js
View file @
d233dc6b
...
...
@@ -654,7 +654,7 @@
portal_type
:
element
.
portal_type
||
element
.
type
||
item_result
.
type
,
status
:
status
,
reference
:
id_hash
,
reference
:
element
.
reference
||
id_hash
,
active
:
true
});
opml_document_list
.
push
({
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/monitoring_jio_storage_js.xml
View file @
d233dc6b
...
...
@@ -76,7 +76,9 @@
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/javascript
</string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
...
...
@@ -233,7 +235,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -247,7 +249,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
972.3978.30023.34679
</string>
</value>
<value>
<string>
1012.51177.40041.21742
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -267,7 +269,7 @@
</tuple>
<state>
<tuple>
<float>
1
543851108.12
</float>
<float>
1
701111013.97
</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