Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
appmonitor-dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
appmonitor-dashboard
Commits
dc7eb030
Commit
dc7eb030
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'abstract_ubd_class' into 'master'
fix timer See merge request
!2
parents
f33a69d4
e1c490ff
No related branches found
No related tags found
1 merge request
!2
fix timer
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public_html/javascript/functions.js
+1
-4
1 addition, 4 deletions
public_html/javascript/functions.js
public_html/javascript/ubd.class.js
+4
-4
4 additions, 4 deletions
public_html/javascript/ubd.class.js
public_html/main.css
+1
-1
1 addition, 1 deletion
public_html/main.css
with
6 additions
and
9 deletions
public_html/javascript/functions.js
+
1
−
4
View file @
dc7eb030
...
...
@@ -289,7 +289,7 @@ var oUbdApps=new ubd(
'
url
'
:
_getUrlWithTags
,
// remark: this is a function
'
header
'
:
{
"
headers
"
:
oHeaders
},
'
renderer
'
:
_getAllAppsStatus
,
'
ttl
'
:
0
,
'
ttl
'
:
REFRESHTIME
,
}
);
...
...
@@ -299,8 +299,5 @@ var oUbdApps=new ubd(
oUbdTag
.
update
();
oUbdApps
.
update
();
// cyclic updates of the app status view
window
.
setInterval
(
"
oUbdApps.update();
"
,
REFRESHTIME
*
1000
);
// ----------------------------------------------------------------------
\ No newline at end of file
This diff is collapsed.
Click to expand it.
public_html/javascript/ubd.class.js
+
4
−
4
View file @
dc7eb030
...
...
@@ -147,7 +147,7 @@ var ubd = function(){
// clearInterval(this._oTimer);
if
(
this
.
_iTTL
)
{
let
self
=
this
;
self
.
_oTimer
=
window
.
setTimeout
(
self
.
update
,
this
.
_iTTL
*
1000
);
self
.
_oTimer
=
window
.
setTimeout
(
function
(){
self
.
update
()
}
,
this
.
_iTTL
*
1000
);
// self._oTimer=window.setInterval(self.update, this._iTTL*1000);
}
},
...
...
@@ -165,9 +165,9 @@ var ubd = function(){
return
0
;
}
try
{
let
response
=
await
fetch
(
url
,
self
.
_oHeader
);
let
response
=
await
fetch
(
url
,
this
.
_oHeader
);
if
(
response
.
ok
)
{
self
.
_body
=
await
response
.
json
();
this
.
_body
=
await
response
.
json
();
this
.
render
();
}
else
{
...
...
@@ -183,7 +183,7 @@ var ubd = function(){
+
'
</div>
'
);
console
.
error
(
e
);
}
this
.
resetTimer
();
}
// ----------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
public_html/main.css
+
1
−
1
View file @
dc7eb030
...
...
@@ -64,7 +64,7 @@ td{vertical-align: top;}
.app
.url
{
font-size
:
80%
;
font-weight
:
normal
;
margin-right
:
2em
;}
.result0
{
background
:
#dfd
!important
;
background
:
linear-gradient
(
#ded
,
#beb
)
!important
;
color
:
#383
}
.result1
{
background
:
#eee
!important
;
background
:
linear-gradient
(
#e
e
e
,
#d
d
d
)
!important
;
color
:
#666
;}
.result1
{
background
:
#eee
!important
;
background
:
linear-gradient
(
#e
d
e
,
#d
b
d
)
!important
;
color
:
#666
;}
.result2
{
background
:
#fff8d0
!important
;
background
:
linear-gradient
(
#fff0d0
,
#ffe0a0
)
!important
;
color
:
#870
;}
.result3
{
background
:
#fcd
!important
;
background
:
linear-gradient
(
#fcd
,
#faa
)
!important
;
color
:
#800
;}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment