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
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
Eric Zheng
slapos.core
Commits
956750c4
Commit
956750c4
authored
May 04, 2017
by
Rafael Monnerat
Committed by
Tomáš Peterka
May 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: Make JSLint happy (fix minor sintaxes)
parent
c9576208
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
...fib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
+4
-4
master/bt5/slapos_web_frontend_selector/PathTemplateItem/web_page_module/slapos-frontend-selector-cdn-gadget-js.js
...web_page_module/slapos-frontend-selector-cdn-gadget-js.js
+2
-2
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
View file @
956750c4
...
...
@@ -78,15 +78,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
now
=
new
Date
(),
context
=
$
(
this
);
// 5 minute for computer. 1 day for instance.
if
(
/#access/
.
test
(
data
.
text
)
&
/computer_module/
.
test
(
data
[
'
@document
'
]
)
&
(
now
-
created_at
<
300000
))
{
if
(
/#access/
.
test
(
data
.
text
)
&
(
/computer_module/
.
test
(
data
[
'
@document
'
])
)
&
(
now
-
created_at
<
300000
))
{
$
(
this
).
attr
(
"
class
"
,
"
monitoring_ok
"
)
.
attr
(
"
title
"
,
data
.
text
+
"
(
"
+
created_at
+
"
)
"
)
.
attr
(
"
href
"
,
data
[
'
@document
'
]);
}
else
if
(
/#access/
.
test
(
data
.
text
)
&
/software_instance_module/
.
test
(
data
[
'
@document
'
]
)
&
(
now
-
created_at
<
86400000
))
{
}
else
if
(
/#access/
.
test
(
data
.
text
)
&
(
/software_instance_module/
.
test
(
data
[
'
@document
'
])
)
&
(
now
-
created_at
<
86400000
))
{
$
(
this
).
attr
(
"
class
"
,
"
monitoring_ok
"
)
.
attr
(
"
title
"
,
data
.
text
+
"
(
"
+
created_at
+
"
)
"
)
.
attr
(
"
href
"
,
data
[
'
@document
'
]);
}
else
if
(
/#access/
.
test
(
data
.
text
)
&
/software_installation_module/
.
test
(
data
[
'
@document
'
]
)
&
(
now
-
created_at
<
86400000
))
{
}
else
if
(
/#access/
.
test
(
data
.
text
)
&
(
/software_installation_module/
.
test
(
data
[
'
@document
'
])
)
&
(
now
-
created_at
<
86400000
))
{
$
(
this
).
attr
(
"
class
"
,
"
monitoring_ok
"
)
.
attr
(
"
title
"
,
data
.
text
+
"
(
"
+
created_at
+
"
)
"
)
.
attr
(
"
href
"
,
data
[
'
@document
'
]);
...
...
@@ -133,7 +133,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
var
status_url
=
result_list
[
i
],
status_id
,
status_context
;
status_id
=
encodeURIComponent
(
Base61
.
encode
(
status_url
))
,
status_id
=
encodeURIComponent
(
Base61
.
encode
(
status_url
))
;
status_context
=
$
(
this
).
find
(
'
#
'
+
status_id
);
if
(
!
status_context
[
0
])
{
status_context
=
$
(
this
).
append
(
'
<li><a class="check_monitoring" id="
'
+
status_id
+
'
" data-url="
'
+
encodeURIComponent
(
status_url
)
+
'
"></a></li>
'
)
...
...
master/bt5/slapos_web_frontend_selector/PathTemplateItem/web_page_module/slapos-frontend-selector-cdn-gadget-js.js
View file @
956750c4
...
...
@@ -45,7 +45,7 @@
if
(
e
.
target
.
status
>=
400
)
{
return
reject
(
e
);
}
resolve
(
e
);
re
turn
re
solve
(
e
);
});
xhr
.
addEventListener
(
"
error
"
,
reject
);
xhr
.
addEventListener
(
"
progress
"
,
notify
);
...
...
@@ -247,4 +247,4 @@
runAll
();
}(
document
,
RSVP
,
XMLHttpRequest
));
\ No newline at end of file
}(
document
,
RSVP
,
XMLHttpRequest
));
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