happy hippo

This commit is contained in:
sco
2020-11-03 00:48:43 +01:00
parent 228fb8349c
commit 26905c789c
5 changed files with 16 additions and 8 deletions
+3
View File
@@ -0,0 +1,3 @@
dist/
node_modules/
.vscode/
+3 -3
View File
@@ -134,7 +134,7 @@ app.get('/lancianoCheck', async (req, res) => {
'Access-Control-Allow-Origin': '*'
});
let hostRes='';
let hosts = ["10.8.0.2","10.8.0.3"];
let hosts = ["10.8.0.45","10.8.0.46"];
let promArr=[];
for(let host of hosts) {
promArr.push(ping.promise.probe(host));
@@ -143,10 +143,10 @@ app.get('/lancianoCheck', async (req, res) => {
.then(function (res) {
for (let item of res) {
if(item.alive) {
hostRes+=item.host+' is alive ';
hostRes+=item.host+' alive ';
}
else{
hostRes+=item.host+' is dead ';
hostRes+=item.host+' dead ';
}
}
})
+7 -2
View File
@@ -1,6 +1,6 @@
{
"name": "forbidden-fruit-dashboard",
"version": "2.0.0",
"version": "3.0.0",
"license": "Apache-2.0",
"scripts": {
"serve": "vue-cli-service serve",
@@ -14,7 +14,12 @@
"js-yaml": "^3.14.0",
"lodash.merge": "^4.6.2",
"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": {
"@vue/cli-plugin-babel": "~4.4.1",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "Dashboard",
"short_name": "homer",
"name": "Forbidden Fruit Dashboard",
"short_name": "FFruit",
"theme_color": "#3367D6",
"icons": [
{
+1 -1
View File
@@ -13,7 +13,7 @@ module.exports = {
appleMobileWebAppStatusBarStyle: "black",
appleMobileWebAppCapable: "yes",
name: "Forbidden Fruit Dashboard",
short_name: "FF",
short_name: "FFruit",
theme_color: "#3367D6",
icons: [
{