From 5a0ac990811aaf4074b8a242e19308347bbe5be4 Mon Sep 17 00:00:00 2001 From: Kylart Date: Thu, 23 Nov 2017 16:43:50 +0100 Subject: [PATCH] Reworked all server code and implemented logger in there --- components/infoModal.vue | 7 +- package.json | 6 +- server/config/config.js | 27 ++ server/config/index.js | 11 + server/config/setupAccount.js | 26 ++ server/env/env.js | 8 + server/env/index.js | 14 + server/env/isOnline.js | 13 + server/env/releaseNotes.js | 18 ++ server/env/win.js | 19 ++ server/generateEnv.js | 122 ++++++++ server/{ => history}/history.js | 26 +- server/history/index.js | 13 + server/{ => horrible}/horrible.js | 14 +- server/horrible/index.js | 7 + server/index.js | 329 ++-------------------- server/local/index.js | 8 + server/{ => local}/local.js | 55 ++-- server/mal/index.js | 6 +- server/mal/official.js | 9 +- server/mal/scrap.js | 8 +- server/news/index.js | 7 + server/{ => news}/news.js | 13 +- server/nyaa.js | 137 --------- server/nyaa/download.js | 71 +++++ server/nyaa/getLatest.js | 61 ++++ server/nyaa/index.js | 9 + server/openExternal/index.js | 8 + server/{ => openExternal}/openExternal.js | 14 +- server/search/index.js | 12 + server/{ => search}/search.js | 29 +- server/seasons/index.js | 7 + server/{ => seasons}/seasons.js | 9 +- server/{updater.js => updater/index.js} | 0 server/utils/dir.js | 10 + server/utils/index.js | 6 +- server/utils/logger.js | 85 ++++++ server/vault/index.js | 28 +- server/watchList.js | 33 --- server/watchList/index.js | 8 + server/watchList/watchList.js | 35 +++ test/server.test.js | 17 +- 42 files changed, 750 insertions(+), 595 deletions(-) create mode 100644 server/config/config.js create mode 100644 server/config/index.js create mode 100644 server/config/setupAccount.js create mode 100644 server/env/env.js create mode 100644 server/env/index.js create mode 100644 server/env/isOnline.js create mode 100644 server/env/releaseNotes.js create mode 100644 server/env/win.js create mode 100644 server/generateEnv.js rename server/{ => history}/history.js (73%) create mode 100644 server/history/index.js rename server/{ => horrible}/horrible.js (78%) create mode 100644 server/horrible/index.js create mode 100644 server/local/index.js rename server/{ => local}/local.js (58%) create mode 100644 server/news/index.js rename server/{ => news}/news.js (57%) delete mode 100644 server/nyaa.js create mode 100644 server/nyaa/download.js create mode 100644 server/nyaa/getLatest.js create mode 100644 server/nyaa/index.js create mode 100644 server/openExternal/index.js rename server/{ => openExternal}/openExternal.js (83%) create mode 100644 server/search/index.js rename server/{ => search}/search.js (56%) create mode 100644 server/seasons/index.js rename server/{ => seasons}/seasons.js (65%) rename server/{updater.js => updater/index.js} (100%) create mode 100644 server/utils/dir.js create mode 100644 server/utils/logger.js delete mode 100644 server/watchList.js create mode 100644 server/watchList/index.js create mode 100644 server/watchList/watchList.js diff --git a/components/infoModal.vue b/components/infoModal.vue index d739369..64dc2b2 100644 --- a/components/infoModal.vue +++ b/components/infoModal.vue @@ -33,7 +33,6 @@