Browse Source

Fix JSON by not outputting error

master
Kevin Mok 4 years ago
parent
commit
f668efb218
Signed by: Kevin-Mok GPG Key ID: 6E920656BBAD3E6C
  1. 2
      .gitignore
  2. 1
      server-pages.csv
  3. 6
      server-status.js

2
.gitignore

@ -1,4 +1,4 @@
server-pages-test.csv
server-pages-*.csv
# npm {{{ -

1
server-pages.csv

@ -1,5 +1,6 @@
shortUrl,url,siteTitle,description,repo,repoUrl
cal.khkm.tk,https://cal.khkm.tk,"Baïkal server","CalDAV/CardDAV server.",sabre-io/Baikal,https://github.com/sabre-io/Baikal
ataraxy.tk,http://ataraxy.tk/,"Ataraxy | Call of Duty: Mobile Clan","Site for my Call of Duty: Mobile clan.",Kevin-Mok/codm.ataraxy.tk,https://git.kevin-mok.com/Kevin-Mok/codm.ataraxy.tk
git.kevin-mok.com,https://git.kevin-mok.com,"Kevin Mok's Gitea","Git server.",go-gitea/gitea,https://github.com/go-gitea/gitea
img.khkm.tk,https://img.khkm.tk,"Kevin's Images","Image hosting.",LycheeOrg/Lychee,https://github.com/LycheeOrg/Lychee/
kevin-mok.com,https://kevin-mok.com," Kevin Mok ","Personal site (this site).",Kevin-Mok/my-site,https://git.kevin-mok.com/Kevin-Mok/my-site

6
server-status.js

@ -16,10 +16,12 @@ const checkIfTitleMatches = obj => {
} else {
obj['status'] = 'down'
}
return true
// return true
},
error => { // failure handler
console.log(error)
// console.log(error)
obj['status'] = 'down'
// return false
})
}

Loading…
Cancel
Save