happy hippo
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
dist/
|
||||||
|
node_modules/
|
||||||
|
.vscode/
|
||||||
@@ -134,7 +134,7 @@ app.get('/lancianoCheck', async (req, res) => {
|
|||||||
'Access-Control-Allow-Origin': '*'
|
'Access-Control-Allow-Origin': '*'
|
||||||
});
|
});
|
||||||
let hostRes='';
|
let hostRes='';
|
||||||
let hosts = ["10.8.0.2","10.8.0.3"];
|
let hosts = ["10.8.0.45","10.8.0.46"];
|
||||||
let promArr=[];
|
let promArr=[];
|
||||||
for(let host of hosts) {
|
for(let host of hosts) {
|
||||||
promArr.push(ping.promise.probe(host));
|
promArr.push(ping.promise.probe(host));
|
||||||
@@ -143,10 +143,10 @@ app.get('/lancianoCheck', async (req, res) => {
|
|||||||
.then(function (res) {
|
.then(function (res) {
|
||||||
for (let item of res) {
|
for (let item of res) {
|
||||||
if(item.alive) {
|
if(item.alive) {
|
||||||
hostRes+=item.host+' is alive ';
|
hostRes+=item.host+' alive ';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
hostRes+=item.host+' is dead ';
|
hostRes+=item.host+' dead ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+7
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "forbidden-fruit-dashboard",
|
"name": "forbidden-fruit-dashboard",
|
||||||
"version": "2.0.0",
|
"version": "3.0.0",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
@@ -14,7 +14,12 @@
|
|||||||
"js-yaml": "^3.14.0",
|
"js-yaml": "^3.14.0",
|
||||||
"lodash.merge": "^4.6.2",
|
"lodash.merge": "^4.6.2",
|
||||||
"register-service-worker": "^1.7.1",
|
"register-service-worker": "^1.7.1",
|
||||||
"vue": "^2.6.11"
|
"vue": "^2.6.11",
|
||||||
|
"compression": "^1.7.4",
|
||||||
|
"dotenv": "^8.2.0",
|
||||||
|
"express": "^4.17.1",
|
||||||
|
"ping": "^0.3.0",
|
||||||
|
"rpio": "^2.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~4.4.1",
|
"@vue/cli-plugin-babel": "~4.4.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Dashboard",
|
"name": "Forbidden Fruit Dashboard",
|
||||||
"short_name": "homer",
|
"short_name": "FFruit",
|
||||||
"theme_color": "#3367D6",
|
"theme_color": "#3367D6",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ module.exports = {
|
|||||||
appleMobileWebAppStatusBarStyle: "black",
|
appleMobileWebAppStatusBarStyle: "black",
|
||||||
appleMobileWebAppCapable: "yes",
|
appleMobileWebAppCapable: "yes",
|
||||||
name: "Forbidden Fruit Dashboard",
|
name: "Forbidden Fruit Dashboard",
|
||||||
short_name: "FF",
|
short_name: "FFruit",
|
||||||
theme_color: "#3367D6",
|
theme_color: "#3367D6",
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user