diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index ca8e6d1..7f883f5 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -1,31 +1,25 @@
module.exports = {
- root: true,
- extends: [
- 'eslint:recommended',
- 'plugin:@typescript-eslint/recommended',
- 'plugin:svelte/recommended',
- 'prettier'
- ],
- parser: '@typescript-eslint/parser',
- plugins: ['@typescript-eslint'],
- parserOptions: {
- sourceType: 'module',
- ecmaVersion: 2020,
- extraFileExtensions: ['.svelte']
- },
- env: {
- browser: true,
- es2017: true,
- node: true
- },
- overrides: [
- {
- files: ['*.svelte'],
- parser: 'svelte-eslint-parser',
- parserOptions: {
- parser: '@typescript-eslint/parser'
- }
- }
- ]
+ root: true,
+ extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'],
+ parser: '@typescript-eslint/parser',
+ plugins: ['@typescript-eslint'],
+ parserOptions: {
+ sourceType: 'module',
+ ecmaVersion: 2020,
+ extraFileExtensions: ['.svelte']
+ },
+ env: {
+ browser: true,
+ es2017: true,
+ node: true
+ },
+ overrides: [
+ {
+ files: ['*.svelte'],
+ parser: 'svelte-eslint-parser',
+ parserOptions: {
+ parser: '@typescript-eslint/parser'
+ }
+ }
+ ]
};
-
diff --git a/README.md b/README.md
index 35bfa4d..09c15c2 100644
--- a/README.md
+++ b/README.md
@@ -2,14 +2,14 @@
owlboard-svelte is the OwlBoard web-frontend as of version 2023.7.1 replacing the previous version (https://git.fjla.uk/owlboard/web) and moving from a raw HTML/CSS/JS to a statically build Svelte website.
-The decision was made because as new features were added, the markup and code started to become difficult to manage and maintain. The Svelte version introduces reusable components simplifying the maintenance and the addition of new features.
+The decision was made because as new features were added, the markup and code started to become difficult to manage and maintain. The Svelte version introduces reusable components simplifying the maintenance and the addition of new features.
## Building
-To build owlboard-svelte, simply clone the repo and run `npm run build` which will build a static website in the `build` folder. The static files can then be uplaoded to a webserver of your choice.
+To build owlboard-svelte, simply clone the repo and run `npm run build` which will build a static website in the `build` folder. The static files can then be uplaoded to a webserver of your choice.
The website is build statically for server performance reasons - running an nginx server is lighter than running Node considering that much of the data fetching and processing happens on the client side anyway due to user UUID access keys being required.
## TypeScript
-Any new code added to the website should be written in TypeScript - where Javascript is extended, it should be re-written into TypeScript.
\ No newline at end of file
+Any new code added to the website should be written in TypeScript - where Javascript is extended, it should be re-written into TypeScript.
diff --git a/src/lib/DevBanner.svelte b/src/lib/DevBanner.svelte
index 4b6dda1..f69414e 100644
--- a/src/lib/DevBanner.svelte
+++ b/src/lib/DevBanner.svelte
@@ -1,19 +1,19 @@
The staff version of OwlBoard offers several extra features:
-
-
Access the Train Finder
-
Access the PIS Finder
-
More detailed departure boards:
+
+
+ {#if isLoading}
+
+ {:else if state == 'unreg'}
+
The staff version of OwlBoard offers several extra features:
-
Non-Passenger movements
-
Hidden platform numbers
-
Display up to 25 services
+
Access the Train Finder
+
Access the PIS Finder
+
More detailed departure boards:
+
+
Non-Passenger movements
+
Hidden platform numbers
+
Display up to 25 services
+
-
-
To register, you will need to enter a work email address to receive a confirmation email
-
-{:else if state == 'sent'}
-
An email has been sent, click the link in the email to activate your profile.
-
When you click the link, your authorisation key will be automatically be stored in your browser.
-
If you use multiple browsers, you will only be logged in using the browser you open the link with.
-
You will be able to register again using the same email address
-{:else if state == 'unauth'}
-
The email address you entered does not belong to an authorised business.
-
If you think this is an error, you can report an issue in the 'More' menu.
-{:else if state == 'error'}
-
There was an error processing your request.
-
Check that the email you entered was correct or try again later.
-{:else if state == 'reg'}
-
- You are already registered for OwlBoard. If you've recently logged out or updated, you may need to refresh this page to register as old data could still be stored in your
- browser.
-
-{/if}
-{/if}
+
To register, you will need to enter a work email address to receive a confirmation email
+
+ {:else if state == 'sent'}
+
An email has been sent, click the link in the email to activate your profile.
+
When you click the link, your authorisation key will be automatically be stored in your browser.
+
If you use multiple browsers, you will only be logged in using the browser you open the link with.
+
You will be able to register again using the same email address
+ {:else if state == 'unauth'}
+
The email address you entered does not belong to an authorised business.
+
If you think this is an error, you can report an issue by reporting an issue.
+ {:else if state == 'error'}
+
There was an error processing your request.
+
Check that the email you entered was correct or try again later.
+ {:else if state == 'reg'}
+
+ You are already registered for OwlBoard. If you've recently logged out or updated, you may need to refresh this page to register as old data could still be stored in your
+ browser.
+