From d8b32c25c061706157732128736e0caa0499fb67 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sat, 6 May 2023 21:53:43 +0100 Subject: [PATCH] pis (!2) Reviewed-on: https://git.fjla.uk/OwlBoard/web/pulls/2 --- .dockerignore | 6 +- .eslintrc.js | 31 ++ .gitignore | 1 + 404.html | 1 + auth.html | 49 ++ board-staff.html | 135 ++++++ board.html | 16 +- conf/nginx.conf | 9 +- conn-err.html | 1 + find-code.html | 22 +- help.html | 3 +- index.html | 42 +- issue.html | 107 ++-- js/auth.js | 79 +++ js/find-code.js | 163 +++---- js/index.js | 28 +- js/issue.js | 124 ++--- js/lib.board.js | 340 ++++++------- js/lib.main.js | 239 +++++---- js/pis.js | 75 +++ js/settings.js | 146 ++++-- js/simple-board.js | 348 ++++++------- js/staff-board.js | 241 +++++++++ js/stat.js | 47 +- package-lock.json | 1125 +++++++++++++++++++++++++++++++++++++++++++ package.json | 14 + pis.html | 76 +++ settings.html | 27 +- stat.html | 7 +- styles/board.css | 7 - styles/main.css | 10 + styles/pis.css | 45 ++ styles/settings.css | 1 + sw.js | 150 +++--- 34 files changed, 2870 insertions(+), 845 deletions(-) create mode 100644 .eslintrc.js create mode 100644 .gitignore create mode 100644 auth.html create mode 100644 board-staff.html create mode 100644 js/auth.js create mode 100644 js/pis.js create mode 100644 js/staff-board.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 pis.html create mode 100644 styles/pis.css diff --git a/.dockerignore b/.dockerignore index 9a715f5..f06a337 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,6 @@ .dockerignore -Dockerfile \ No newline at end of file +Dockerfile +package.json +package-lock.json +.eslintrc.js +node_modules \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..073ba35 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,31 @@ +module.exports = { + 'env': { + 'browser': true, + 'es2021': true + }, + 'extends': 'eslint:recommended', + 'overrides': [ + ], + 'parserOptions': { + 'ecmaVersion': 'latest' + }, + 'rules': { + 'indent': [ + 'error', + 2 + ], + 'linebreak-style': [ + 'error', + 'unix' + ], + 'quotes': [ + 'error', + 'single' + ], + 'semi': [ + 'error', + 'never' + ], + 'no-undef': 'off', + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/404.html b/404.html index 0ba9f97..dd6f42c 100644 --- a/404.html +++ b/404.html @@ -2,6 +2,7 @@ + diff --git a/auth.html b/auth.html new file mode 100644 index 0000000..13990db --- /dev/null +++ b/auth.html @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + OwlBoard + + + +
+
+
+

Registering

+
+ + +
+ + + + Home + + +
+ + + + + OwlBoard Logo + +
+
+ + + + diff --git a/board-staff.html b/board-staff.html new file mode 100644 index 0000000..fe8f827 --- /dev/null +++ b/board-staff.html @@ -0,0 +1,135 @@ + + + + + + + + + + + OwlBoard - Loading + + + + + + + + + + +
+
+
+

\nLoading

+
+ +
+ + +
+
+ + + + +

+ +
+
+
+
+ +
+ + + + + + + + + + + + +
Train Services
HeadcodeOriginDest.Plat.Sch Arr.Exp Arr.Sch Dep.Exp Dep.
+
+ +
+

There are no scheduled train services from this station

+
+ +
+ + + + + + + + + + + +
Ferry Services
OriginDest.Sch Arr.Exp Arr.Sch Dep.Exp Dep.
+
+ +
+ + + + + + + + + + + + +
Bus Services
HeadcodeOriginDest.Sch Arr.Exp Arr.Sch Dep.Exp Dep.
+
+ +
+

Oops

+

There was an error with your request

+

You are not authorised to view staff versions, you can sign up in settings

+

The station you are searching for cannot be found

+

The station has no data. It may not be in operation yet/anymore.

+

Connection Error, check your data connection. Retrying.

+
+ + +
+ + \ No newline at end of file diff --git a/board.html b/board.html index 29f3d76..e788d3e 100644 --- a/board.html +++ b/board.html @@ -1,18 +1,20 @@ - - + + + + OwlBoard - Loading - - - - + + + + @@ -27,7 +29,7 @@