29 Commits
0.1.4 ... 1.0.0

Author SHA1 Message Date
5d764a80a7 🚀Bumped version to 1.0.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-15 21:15:42 +02:00
0f32c71ef0 improved clock position on xl
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-15 21:14:09 +02:00
4b1a1a324b improved clock alignment 2023-04-15 21:12:42 +02:00
569296928e fix container width 2023-04-15 21:12:34 +02:00
c33157e2d4 bump windicss 2023-04-15 21:12:25 +02:00
ee9799736f formatting 2023-04-15 21:04:09 +02:00
8d38e81b78 improved footer 2023-04-15 21:04:01 +02:00
7005ec6a28 updated width 2023-04-15 21:01:32 +02:00
38b0fccb5a fix: font responsiveness 2023-04-15 20:59:28 +02:00
8a4974ffa9 fix: typo 2023-04-15 20:59:02 +02:00
9b83b38356 text responsiveness 2023-04-15 20:54:40 +02:00
047941babb formatting 2023-04-15 20:54:03 +02:00
f909575ca5 1 more empty state 2023-04-15 20:53:54 +02:00
70a6120447 update font to match lfk 2023 branding
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-15 20:45:28 +02:00
b483ed1e49 drop "teams_distance" screen 2023-04-15 20:39:20 +02:00
2ce93b45c7 improved empty state 2023-04-15 20:39:04 +02:00
8139a3f60b add empty state for runners_laptime
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-15 20:37:26 +02:00
431fc5a047 format donation total
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-15 20:34:29 +02:00
b287db4d0a pin clock to bottom
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-15 20:34:14 +02:00
b3ce711e6b fix: width of general container 2023-04-15 20:26:22 +02:00
456c0635a4 reload data every 90s
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-15 20:02:06 +02:00
b50398f6eb monospace clock 2023-04-15 20:01:55 +02:00
e04e6713bc default fallback on no data 2023-04-15 20:01:49 +02:00
de373390ba updated pnpm lock 2023-04-15 20:01:34 +02:00
5be665b65f 🚀Bumped version to 0.1.5
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-29 20:09:39 +02:00
324612b5dd Switched ci over to pnpm cache
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-29 20:08:19 +02:00
ca1c96b252 Docker copy all 2023-03-29 20:06:46 +02:00
d284e8184c pinned dependencies 2023-03-29 20:06:26 +02:00
701aae9ed4 Switched dockerfile over to pnpm + cache
And bumped build image to fresh node
2023-03-29 20:05:12 +02:00
11 changed files with 3034 additions and 6273 deletions

View File

@@ -12,6 +12,13 @@ get:
path: odit-registry-builder path: odit-registry-builder
name: password name: password
---
kind: secret
name: npm_url
get:
path: odit-npm-cache
name: url
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
@@ -26,6 +33,9 @@ steps:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
build_args:
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: registry.odit.services/lfk/beamershow repo: registry.odit.services/lfk/beamershow
tags: tags:
- dev - dev
@@ -37,6 +47,34 @@ trigger:
event: event:
- push - push
---
kind: pipeline
type: kubernetes
name: build:latest
steps:
- name: build latest
image: plugins/docker
depends_on: [clone]
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args:
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: registry.odit.services/lfk/beamershow
tags:
- latest
registry: registry.odit.services
mtu: 1000
trigger:
branch:
- main
event:
- push
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
@@ -50,6 +88,9 @@ steps:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
build_args:
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: registry.odit.services/lfk/beamershow repo: registry.odit.services/lfk/beamershow
tags: tags:
- '${DRONE_TAG}' - '${DRONE_TAG}'

View File

@@ -2,11 +2,50 @@
All notable changes to this project will be documented in this file. Dates are displayed in UTC. All notable changes to this project will be documented in this file. Dates are displayed in UTC.
#### [1.0.0](https://git.odit.services/lfk/beamershow/compare/0.1.5...1.0.0)
- pin clock to bottom [`b287db4`](https://git.odit.services/lfk/beamershow/commit/b287db4d0a57e8a07d30b756ce0bea30da5ef4e3)
- update font to match lfk 2023 branding [`70a6120`](https://git.odit.services/lfk/beamershow/commit/70a61204471cea8f8d5dc17ad225c39c5cd91a43)
- bump windicss [`c33157e`](https://git.odit.services/lfk/beamershow/commit/c33157e2d4c5e4a5e9d30d96650e0bfa5ab1ab57)
- 1 more empty state [`f909575`](https://git.odit.services/lfk/beamershow/commit/f909575ca5ac862ec8e34d783831c2fcb53f2083)
- add empty state for runners_laptime [`8139a3f`](https://git.odit.services/lfk/beamershow/commit/8139a3f60b3544a8992d97b8b9d49520b28270bd)
- updated pnpm lock [`de37339`](https://git.odit.services/lfk/beamershow/commit/de373390ba7051e22f1c4904b1ed60e1dc0e0c7a)
- text responsiveness [`9b83b38`](https://git.odit.services/lfk/beamershow/commit/9b83b38356b3faa677421a98c8655bc2357fb489)
- fix: font responsiveness [`38b0fcc`](https://git.odit.services/lfk/beamershow/commit/38b0fccb5abf762b88d5a8a3ad27cb80cf85ccb0)
- fix: typo [`8a4974f`](https://git.odit.services/lfk/beamershow/commit/8a4974ffa95b4d45f14c14130d7b7cb584c5cb52)
- format donation total [`431fc5a`](https://git.odit.services/lfk/beamershow/commit/431fc5a0474076568e9184d4c6b9819af6cc2e3f)
- default fallback on no data [`e04e671`](https://git.odit.services/lfk/beamershow/commit/e04e6713bc282810da2a0d103484cb6043af6063)
- formatting [`047941b`](https://git.odit.services/lfk/beamershow/commit/047941babbccb1f0674347babfa1468ac51fa487)
- monospace clock [`b50398f`](https://git.odit.services/lfk/beamershow/commit/b50398f6eb4e99e4d1c0d654e2710b265186837a)
- formatting [`ee97997`](https://git.odit.services/lfk/beamershow/commit/ee9799736f912f32e37e0d5d06a5591ec6180a31)
- improved clock position on xl [`0f32c71`](https://git.odit.services/lfk/beamershow/commit/0f32c71ef0e0267b2dc271507346c60b83eaa176)
- improved clock alignment [`4b1a1a3`](https://git.odit.services/lfk/beamershow/commit/4b1a1a324b865354472e45e0ef24230678be6111)
- fix container width [`5692969`](https://git.odit.services/lfk/beamershow/commit/569296928ee0a3c21844c183d74a36d759f65150)
- improved footer [`8d38e81`](https://git.odit.services/lfk/beamershow/commit/8d38e81b782252c84163aa87ec660199a2e2b065)
- updated width [`7005ec6`](https://git.odit.services/lfk/beamershow/commit/7005ec6a28b50763a5e4ee42a8d50e9953149168)
- drop "teams_distance" screen [`b483ed1`](https://git.odit.services/lfk/beamershow/commit/b483ed1e49aebbdfb59b41df75160a8acab546b2)
- improved empty state [`2ce93b4`](https://git.odit.services/lfk/beamershow/commit/2ce93b45c772284e59d84f063069e1546434bbc3)
- fix: width of general container [`b3ce711`](https://git.odit.services/lfk/beamershow/commit/b3ce711e6b8a8497ccbe6e5eea5ff1d6cd550e91)
- reload data every 90s [`456c063`](https://git.odit.services/lfk/beamershow/commit/456c0635a4fb5e129e94d4537fb735dc94933a12)
#### [0.1.5](https://git.odit.services/lfk/beamershow/compare/0.1.4...0.1.5)
> 29 March 2023
- Switched dockerfile over to pnpm + cache [`701aae9`](https://git.odit.services/lfk/beamershow/commit/701aae9ed4af66b973e88fec384e46752fcb9ca2)
- Switched ci over to pnpm cache [`324612b`](https://git.odit.services/lfk/beamershow/commit/324612b5ddc1cf148a7750a02cdce557bef54d38)
- pinned dependencies [`d284e81`](https://git.odit.services/lfk/beamershow/commit/d284e8184c5a3c357398e3ab5a24a2e611001640)
- 🚀Bumped version to 0.1.5 [`5be665b`](https://git.odit.services/lfk/beamershow/commit/5be665b65fc021ae8ae544a965444cc29ec20e62)
- Docker copy all [`ca1c96b`](https://git.odit.services/lfk/beamershow/commit/ca1c96b252c9665b94dd9ef37c700afbb0039d46)
#### [0.1.4](https://git.odit.services/lfk/beamershow/compare/0.1.3...0.1.4) #### [0.1.4](https://git.odit.services/lfk/beamershow/compare/0.1.3...0.1.4)
> 5 February 2023
- cleanup invalid track stuff (leftovers from scanclient) [`c485898`](https://git.odit.services/lfk/beamershow/commit/c485898b7db7ae09f6e405e12aa6d458833f2dcf) - cleanup invalid track stuff (leftovers from scanclient) [`c485898`](https://git.odit.services/lfk/beamershow/commit/c485898b7db7ae09f6e405e12aa6d458833f2dcf)
- bullet-proof login ux [`ea08127`](https://git.odit.services/lfk/beamershow/commit/ea08127927e2b1ebcbcd7907fbf51a66a43da421) - bullet-proof login ux [`ea08127`](https://git.odit.services/lfk/beamershow/commit/ea08127927e2b1ebcbcd7907fbf51a66a43da421)
- add rst command [`ee6af3e`](https://git.odit.services/lfk/beamershow/commit/ee6af3e06921ef33651076b8767149c2df3a1f2d) - add rst command [`ee6af3e`](https://git.odit.services/lfk/beamershow/commit/ee6af3e06921ef33651076b8767149c2df3a1f2d)
- 🚀Bumped version to 0.1.4 [`7f7b743`](https://git.odit.services/lfk/beamershow/commit/7f7b743f414b77902a358b6bd813412096d195b3)
- Settings: reload on lang change [`e0f400a`](https://git.odit.services/lfk/beamershow/commit/e0f400a800f2652cf3edf2ac0a5f802b65d0c460) - Settings: reload on lang change [`e0f400a`](https://git.odit.services/lfk/beamershow/commit/e0f400a800f2652cf3edf2ac0a5f802b65d0c460)
#### [0.1.3](https://git.odit.services/lfk/beamershow/compare/0.1.2...0.1.3) #### [0.1.3](https://git.odit.services/lfk/beamershow/compare/0.1.2...0.1.3)

View File

@@ -1,12 +1,12 @@
FROM node:15.11.0-alpine3.13 FROM registry.odit.services/hub/library/node:19.8.1-alpine3.16 as build
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
WORKDIR /app WORKDIR /app
COPY . .
RUN yarn COPY . ./
RUN yarn build RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8 && pnpm i
RUN pnpm build
# final image # final image
FROM alpine FROM registry.odit.services/library/nginx-brotli:3.15 as final
COPY --from=0 /app/dist /app COPY --from=build /app/dist /usr/share/nginx/html
FROM fholzer/nginx-brotli:v1.19.1
COPY --from=1 /app /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf COPY ./nginx.conf /etc/nginx/nginx.conf

View File

@@ -6,6 +6,11 @@
<title>LfK!Beamershow</title> <title>LfK!Beamershow</title>
<base href="./" /> <base href="./" />
<link rel="icon" type="image/png" href="./favicon.png" /> <link rel="icon" type="image/png" href="./favicon.png" />
<style>
* {
font-family: "Athiti", sans-serif;
}
</style>
</head> </head>
<body class="bg-white font-family-karla h-screen"> <body class="bg-white font-family-karla h-screen">

File diff suppressed because it is too large Load Diff

View File

@@ -1,48 +1,51 @@
{ {
"name": "@lfk/beamershow", "name": "@lfk/beamershow",
"version": "0.1.4", "version": "1.0.0",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
"format": "prettier --write --plugin-search-dir=. ./**/*.html ./**/*.svelte", "format": "prettier --write --plugin-search-dir=. ./**/*.html ./**/*.svelte",
"prepare": "husky install", "prepare": "husky install",
"license:export": "license-exporter --markdown && git stage licenses.md", "license:export": "license-exporter --markdown && git stage licenses.md",
"release": "release-it --only-version" "release": "release-it --only-version"
}, },
"devDependencies": { "devDependencies": {
"@odit/license-exporter": "^0.0.11", "@odit/license-exporter": "0.0.11",
"@svitejs/vite-plugin-svelte": "^0.11.1", "@svitejs/vite-plugin-svelte": "0.11.1",
"@tsconfig/svelte": "^1.0.10", "@tsconfig/svelte": "1.0.10",
"@types/html-minifier": "^4.0.0", "@types/html-minifier": "4.0.0",
"axios": "^0.21.1", "axios": "0.21.1",
"html-minifier": "^4.0.0", "html-minifier": "4.0.0",
"husky": "^5.1.3", "husky": "5.1.3",
"prettier": "^2.2.1", "prettier": "2.2.1",
"prettier-plugin-svelte": "^2.2.0", "prettier-plugin-svelte": "2.2.0",
"release-it": "14.5.0", "release-it": "14.5.0",
"svelte": "3.36.0", "svelte": "3.36.0",
"svelte-i18n": "3.3.9", "svelte-i18n": "3.3.9",
"svelte-preprocess": "4.7.0", "svelte-preprocess": "4.7.0",
"validator": "^13.5.2", "validator": "13.5.2",
"vite": "2.1.4", "vite": "2.1.4",
"vite-plugin-windicss": "0.11.2" "vite-plugin-windicss": "1.8.10"
}, },
"release-it": { "release-it": {
"git": { "git": {
"commit": true, "commit": true,
"requireCleanWorkingDir": false, "requireCleanWorkingDir": false,
"commitMessage": "🚀Bumped version to ${version}", "commitMessage": "🚀Bumped version to ${version}",
"requireBranch": "main", "requireBranch": "main",
"push": false, "push": false,
"tag": true, "tag": true,
"tagName": null, "tagName": null,
"tagAnnotation": "${version}" "tagAnnotation": "${version}"
}, },
"npm": { "npm": {
"publish": false "publish": false
}, },
"hooks": { "hooks": {
"after:bump": "npx auto-changelog --commit-limit false -p -u --hide-credit && git add CHANGELOG.md && node order.js && git add src/locales" "after:bump": "npx auto-changelog --commit-limit false -p -u --hide-credit && git add CHANGELOG.md && node order.js && git add src/locales"
} }
} },
} "dependencies": {
"@fontsource/athiti": "^4.5.10"
}
}

2608
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -11,7 +11,7 @@
"runners_distance", "runners_distance",
"runners_laptime", "runners_laptime",
"orgs_distance", "orgs_distance",
"teams_distance", // "teams_distance",
]; ];
$: current_page = "general"; $: current_page = "general";
$: general = {}; $: general = {};
@@ -130,7 +130,7 @@
}, 1000); }, 1000);
setInterval(() => { setInterval(() => {
fetch_all(); fetch_all();
}, 15000); }, 90000);
setInterval(() => { setInterval(() => {
current_page = pages.cycle(current_page); current_page = pages.cycle(current_page);
}, 20000); }, 20000);
@@ -140,228 +140,277 @@
class="min-h-screen flex items-center justify-center bg-gray-100" class="min-h-screen flex items-center justify-center bg-gray-100"
style="background-image: url('/beamershow_background.png');background-position: center;background-size: contain;background-repeat:no-repeat;" style="background-image: url('/beamershow_background.png');background-position: center;background-size: contain;background-repeat:no-repeat;"
> >
<div class="max-w-xl w-full"> <div class="w-full">
{#if current_page === "general"} <div class="w-3/4 xl:w-1/2 mx-auto">
<div transition:slide|local> <!-- -->
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900"> {#if current_page === "general"}
{hours}:{minutes}:{seconds} <div transition:slide|local>
</h1> <h1
<!-- --> class="mr-6 text-5xl xl:text-7xl font-bold text-center text-gray-900"
<div class="flex flex-wrap -mx-1 overflow-hidden mt-5"> >
<div class="my-1 px-1 w-full overflow-hidden sm:w-1/2 md:w-1/3"> Statistiken
<h1 class="text-5xl font-semibold text-center text-gray-900"> </h1>
{general.total_runners} <!-- -->
</h1> <div class="flex flex-wrap -mx-1 overflow-hidden mt-5">
<h1 class="text-2xl font-semibold text-center text-gray-900"> <div class="my-1 px-1 w-full overflow-hidden sm:w-1/2 md:w-1/3">
{$_("laeufer")} <h1 class="text-5xl font-bold text-center text-gray-900">
</h1> {general.total_runners || "0"}
</div> </h1>
<div class="my-1 px-1 w-full overflow-hidden sm:w-1/2 md:w-1/3"> <h1 class="text-2xl font-semibold text-center text-gray-900">
<h1 class="text-5xl font-semibold text-center text-gray-900"> {$_("laeufer")}
{general.total_distance} </h1>
</h1> </div>
<h1 class="text-2xl font-semibold text-center text-gray-900"> <div class="my-1 px-1 w-full overflow-hidden sm:w-1/2 md:w-1/3">
{$_("kilometer-gesamt")} <h1 class="text-5xl font-bold text-center text-gray-900">
</h1> {general.total_distance || "0"}
</div> </h1>
<div class="my-1 px-1 w-full overflow-hidden sm:w-1/2 md:w-1/3"> <h1 class="text-2xl font-semibold text-center text-gray-900">
<h1 class="text-5xl font-semibold text-center text-gray-900"> {$_("kilometer-gesamt")}
{general.total_donation} </h1>
</h1> </div>
<h1 class="text-2xl font-semibold text-center text-gray-900"> <div class="my-1 px-1 w-full overflow-hidden sm:w-1/2 md:w-1/3">
{$_("spendensumme")} <h1 class="text-5xl font-bold text-center text-gray-900">
</h1> {parseFloat(
((general.total_donation || 0) / 100).toFixed(2)
).toLocaleString(undefined, {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
}) || "0"}
</h1>
<h1 class="text-2xl font-semibold text-center text-gray-900">
{$_("spendensumme")}
</h1>
</div>
</div> </div>
</div> </div>
</div> {:else if current_page === "runners_distance"}
{:else if current_page === "runners_distance"} <div transition:slide|local>
<div transition:slide|local> <h1
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900 mb-5"> class="mr-6 text-5xl xl:text-7xl font-bold text-center text-gray-900 mb-3"
{$_("top-laeufer")} ({$_("distanz")}) >
</h1> {$_("top-laeufer")} ({$_("distanz")})
<table class="table p-4 bg-white shadow rounded-lg w-full"> </h1>
<thead> {#if runners_by_laptime.length === 0}
<tr> <p class="w-full text-center text-3xl font-semibold">
<th Noch keine Daten...
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" </p>
> {:else}
{$_("platz")} <table
</th> class="table font-semibold p-4 bg-white shadow rounded-lg w-full"
<th >
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" <thead>
> <tr>
{$_("laeufer")} <th
</th> class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
<th >
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" {$_("platz")}
> </th>
{$_("organisation")} <th
</th> class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
<th >
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" {$_("laeufer")}
> </th>
{$_("kilometer")} <th
</th> class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
</tr> >
</thead> {$_("organisation")}
<tbody> </th>
{#each runners as r, i} <th
<tr class="text-gray-700"> class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
<td class="border p-4 dark:border-dark-5"> >
{i + 1} {$_("kilometer")}
</td> </th>
<td class="border p-4 dark:border-dark-5"> </tr>
{r.firstname} </thead>
{r.lastname} <tbody>
</td> {#each runners as r, i}
<td class="border p-4 dark:border-dark-5"> <tr class="text-gray-700">
{r.group.name} <td class="border p-4 dark:border-dark-5">
</td> {i + 1}
<td class="border p-4 dark:border-dark-5"> </td>
{r.distance / 1000} km <td class="border p-4 dark:border-dark-5">
</td> {r.firstname}
{r.lastname}
</td>
<td class="border p-4 dark:border-dark-5">
{r.group.name}
</td>
<td class="border p-4 dark:border-dark-5">
{r.distance / 1000} km
</td>
</tr>
{/each}
</tbody>
</table>
{/if}
</div>
{:else if current_page === "runners_laptime"}
<div transition:slide|local>
<h1
class="mr-6 text-5xl xl:text-7xl font-bold text-center text-gray-900 mb-3"
>
{$_("top-laeufer")} ({$_("rundenzeit")})
</h1>
{#if runners_by_laptime.length === 0}
<p class="w-full text-center text-3xl font-semibold">
Noch keine Daten...
</p>
{:else}
<table
class="table font-semibold p-4 bg-white shadow rounded-lg w-full"
>
<thead>
<tr>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("platz")}
</th>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("laeufer")}
</th>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("organisation")}
</th>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("schnellste-rundenzeit")}
</th>
</tr>
</thead>
<tbody>
{#each runners_by_laptime as r, i}
<tr class="text-gray-700">
<td class="border p-4 dark:border-dark-5">
{i + 1}
</td>
<td class="border p-4 dark:border-dark-5">
{r.firstname}
{r.lastname}
</td>
<td class="border p-4 dark:border-dark-5">
{r.group.name}
</td>
<td class="border p-4 dark:border-dark-5">
{format_laptime(r.minLaptime)}
</td>
</tr>
{/each}
</tbody>
</table>
{/if}
</div>
{:else if current_page === "orgs_distance"}
<div transition:slide|local>
<h1
class="mr-6 text-5xl xl:text-7xl font-bold text-center text-gray-900 mb-3"
>
{$_("top-organisationen")}
</h1>
<table
class="table font-semibold p-4 bg-white shadow rounded-lg w-full"
>
<thead>
<tr>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("platz")}
</th>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("organsiation")}
</th>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("kilometer")}
</th>
</tr> </tr>
{/each} </thead>
</tbody> <tbody>
</table> {#each orgs as o, i}
</div> <tr class="text-gray-700">
{:else if current_page === "runners_laptime"} <td class="border p-4 dark:border-dark-5">
<div transition:slide|local> {i + 1}
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900 mb-5"> </td>
{$_("top-laeufer")} ({$_("rundenzeit")}) <td class="border p-4 dark:border-dark-5">
</h1> {o.name}
<table class="table p-4 bg-white shadow rounded-lg w-full"> </td>
<thead> <td class="border p-4 dark:border-dark-5">
<tr> {o.distance / 1000} km
<th </td>
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" </tr>
> {/each}
{$_("platz")} </tbody>
</th> </table>
<th </div>
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" {:else if current_page === "teams_distance"}
> <div transition:slide|local>
{$_("laeufer")} <h1
</th> class="mr-6 text-5xl xl:text-7xl font-bold text-center text-gray-900 mb-3"
<th >
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" {$_("top-teams")}
> </h1>
{$_("organisation")} <table
</th> class="table font-semibold p-4 bg-white shadow rounded-lg w-full"
<th >
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" <thead>
> <tr>
{$_("schnellste-rundenzeit")} <th
</th> class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
</tr> >
</thead> {$_("platz")}
<tbody> </th>
{#each runners_by_laptime as r, i} <th
<tr class="text-gray-700"> class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
<td class="border p-4 dark:border-dark-5"> >
{i + 1} {$_("team")}
</td> </th>
<td class="border p-4 dark:border-dark-5"> <th
{r.firstname} class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
{r.lastname} >
</td> {$_("kilometer")}
<td class="border p-4 dark:border-dark-5"> </th>
{r.group.name}
</td>
<td class="border p-4 dark:border-dark-5">
{format_laptime(r.minLaptime)}
</td>
</tr> </tr>
{/each} </thead>
</tbody> <tbody>
</table> {#each teams as t, i}
</div> <tr class="text-gray-700">
{:else if current_page === "orgs_distance"} <td class="border p-4 dark:border-dark-5">
<div transition:slide|local> {i + 1}
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900 mb-5"> </td>
{$_("top-organsiationen")} <td class="border p-4 dark:border-dark-5">
</h1> {t.name}
<table class="table p-4 bg-white shadow rounded-lg w-full"> </td>
<thead> <td class="border p-4 dark:border-dark-5">
<tr> {t.distance / 1000} km
<th </td>
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" </tr>
> {/each}
{$_("platz")} </tbody>
</th> </table>
<th </div>
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900" {:else}
> <!-- content here -->
{$_("organsiation")} {/if}
</th> </div>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("kilometer")}
</th>
</tr>
</thead>
<tbody>
{#each orgs as o, i}
<tr class="text-gray-700">
<td class="border p-4 dark:border-dark-5">
{i + 1}
</td>
<td class="border p-4 dark:border-dark-5">
{o.name}
</td>
<td class="border p-4 dark:border-dark-5">
{o.distance / 1000} km
</td>
</tr>
{/each}
</tbody>
</table>
</div>
{:else if current_page === "teams_distance"}
<div transition:slide|local>
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900 mb-5">
{$_("top-teams")}
</h1>
<table class="table p-4 bg-white shadow rounded-lg w-full">
<thead>
<tr>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("platz")}
</th>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("team")}
</th>
<th
class="border p-4 dark:border-dark-5 whitespace-nowrap font-normal text-gray-900"
>
{$_("kilometer")}
</th>
</tr>
</thead>
<tbody>
{#each teams as t, i}
<tr class="text-gray-700">
<td class="border p-4 dark:border-dark-5">
{i + 1}
</td>
<td class="border p-4 dark:border-dark-5">
{t.name}
</td>
<td class="border p-4 dark:border-dark-5">
{t.distance / 1000} km
</td>
</tr>
{/each}
</tbody>
</table>
</div>
{:else}
<!-- content here -->
{/if}
</div> </div>
<h1
class="text-6xl font-semibold text-right text-gray-900 font-mono top-2 w-full fixed pr-4 xl:top-6 xl:pr-8"
>
{hours}:{minutes}:{seconds}
</h1>
<h1
class="text-xl xl:text-3xl font-medium text-center text-gray-900 font-mono bottom-2 xl:bottom-4 w-full fixed"
>
<span class="text-black font-extrabold">LfK!2023 </span>powered by
ODIT.Services
</h1>
</div> </div>

View File

@@ -34,7 +34,7 @@
"the_provided_scan_station_is_disabled": "Die angegebene Scanstation ist deaktiviert.", "the_provided_scan_station_is_disabled": "Die angegebene Scanstation ist deaktiviert.",
"the_provided_scan_station_token_is_invalid": "Der angegebene Scanstation-Token ist ungültig.", "the_provided_scan_station_token_is_invalid": "Der angegebene Scanstation-Token ist ungültig.",
"top-laeufer": "Top-Läufer", "top-laeufer": "Top-Läufer",
"top-organsiationen": "Top-Organsiationen", "top-organisationen": "Top-Organisationen",
"top-teams": "Top-Teams", "top-teams": "Top-Teams",
"track_distance": "Länge des Tracks", "track_distance": "Länge des Tracks",
"track_id": "Track ID", "track_id": "Track ID",

View File

@@ -34,7 +34,7 @@
"the_provided_scan_station_is_disabled": "The provided scan station is disabled.", "the_provided_scan_station_is_disabled": "The provided scan station is disabled.",
"the_provided_scan_station_token_is_invalid": "The provided scan station token is invalid.", "the_provided_scan_station_token_is_invalid": "The provided scan station token is invalid.",
"top-laeufer": "Top runners", "top-laeufer": "Top runners",
"top-organsiationen": "Top organizations", "top-organisationen": "Top organizations",
"top-teams": "Top teams", "top-teams": "Top teams",
"track_distance": "Track Distance", "track_distance": "Track Distance",
"track_id": "Track ID", "track_id": "Track ID",

View File

@@ -1,5 +1,6 @@
import App from './App.svelte'; import App from './App.svelte';
import 'windi.css'; import 'windi.css';
import "@fontsource/athiti"
const app = new App({ const app = new App({
target: document.body target: document.body