Add code registration page

This commit is contained in:
Fred Boniface
2024-03-09 20:35:17 +00:00
parent b9d18950b9
commit 4dd9ea05d6
6 changed files with 125 additions and 11 deletions

View File

@@ -21,10 +21,10 @@
const pageText: string[] = [
'<h3>Resgistration Errors</h3>' +
"<p>There is an issue registering with GWR email addresses being caused by the phishing prevension system in use.</p>" +
'<p>There is an issue registering with GWR email addresses being caused by the phishing prevension system in use.</p>' +
'<p>You will be able to use Headcode and PIS lookups without registering.</p>' +
'<p>Staff departure boards will remain unavailable unless registered due to sensitive information which may be shown.</p>' +
'<p>Join the conversation on the <a href="https://www.facebook.com/owlboard.support">Facebook page</a> where updates will be given.</p>',
'<p>Join the conversation on the <a href="https://www.facebook.com/owlboard.support">Facebook page</a> where updates will be given.</p>'
];
</script>

View File

@@ -1,7 +1,7 @@
import { dev } from '$app/environment';
const testUrl: string = 'http://localhost:8460'
const prodUrl: string = 'https://owlboard.info'
const testUrl: string = 'http://localhost:8460';
const prodUrl: string = 'https://owlboard.info';
export function getApiUrl() {
if (dev) {

View File

@@ -11,8 +11,10 @@
<span class="pis">PIS: {pisObject.code}</span>
{:else if pisObject['skipCount'] > 0}
<span class="pis">PIS: {pisObject.code}</span>
<br>
<span class="pis-text">(skip {pisObject.skipType}{#if pisObject.skipCount > 1} {" " + pisObject.skipCount} stops{:else} stop{/if})</span>
<br />
<span class="pis-text"
>(skip {pisObject.skipType}{#if pisObject.skipCount > 1} {' ' + pisObject.skipCount} stops{:else} stop{/if})</span
>
{/if}
{/if}
@@ -28,4 +30,4 @@
font-weight: 600;
color: var(--main-text-color);
}
</style>
</style>

View File

@@ -46,8 +46,10 @@
<LoadingText />
{:then serviceDetail}
{#if serviceDetail.stpIndicator === 'C'}
<p class="text-message">This has been removed from the timetable for today.<br /><br>
The service will not run, another service may be running in its place.</p>
<p class="text-message">
This has been removed from the timetable for today.<br /><br />
The service will not run, another service may be running in its place.
</p>
{:else}
{#if serviceDetail.vstp}
<div class="vstp">VSTP</div>