Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
cec9d3de
Commit
cec9d3de
authored
Jan 15, 2020
by
Francesc Guasch
Browse files
refactor(frontend): removed legacy ping backend
issue #1023
parent
cf79e0ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/js/admin.js
View file @
cec9d3de
...
...
@@ -116,9 +116,6 @@ ravadaApp.directive("solShowMachine", swMach)
};
function
machinesPageC
(
$scope
,
$http
,
$interval
,
$timeout
,
request
,
listMach
)
{
$http
.
get
(
'
/pingbackend.json
'
).
then
(
function
(
response
)
{
$scope
.
pingbe_fail
=
!
response
.
data
;
});
if
(
$scope
.
check_netdata
&&
$scope
.
check_netdata
!=
"
0
"
)
{
var
url
=
$scope
.
check_netdata
;
$scope
.
check_netdata
=
0
;
...
...
@@ -299,9 +296,6 @@ ravadaApp.directive("solShowMachine", swMach)
};
function
usersPageC
(
$scope
,
$http
,
$interval
,
request
)
{
$http
.
get
(
'
/pingbackend.json
'
).
then
(
function
(
response
)
{
$scope
.
pingbe_fail
=
!
response
.
data
;
});
$scope
.
action
=
function
(
target
,
action
,
machineId
){
$http
.
get
(
'
/
'
+
target
+
'
/
'
+
action
+
'
/
'
+
machineId
+
'
.json
'
);
};
...
...
@@ -309,9 +303,6 @@ ravadaApp.directive("solShowMachine", swMach)
};
function
messagesPageC
(
$scope
,
$http
,
$interval
,
request
)
{
$http
.
get
(
'
/pingbackend.json
'
).
then
(
function
(
response
)
{
$scope
.
pingbe_fail
=
!
response
.
data
;
});
$scope
.
getMessages
=
function
()
{
$http
.
get
(
'
/messages.json
'
).
then
(
function
(
response
)
{
$scope
.
list_message
=
response
.
data
;
...
...
public/js/ravada.js
View file @
cec9d3de
...
...
@@ -243,9 +243,6 @@
};
$scope
.
domain_remove
=
0
;
$scope
.
new_name_invalid
=
false
;
$http
.
get
(
'
/pingbackend.json
'
).
then
(
function
(
response
)
{
$scope
.
pingbe_fail
=
!
response
.
data
;
});
$scope
.
machine_info
=
function
(
id
)
{
$http
.
get
(
'
/machine/info/
'
+
$scope
.
showmachineId
+
'
.json
'
)
.
then
(
function
(
response
)
{
...
...
Write
Preview
Supports
Markdown
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