Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
7516d3579f
|
|||
|
2c503f9b03
|
|||
|
6a0b014d55
|
|||
|
b7f792c6f9
|
|||
|
528b025e55
|
|||
|
368e97c6bb
|
21
CHANGELOG.md
21
CHANGELOG.md
@@ -2,10 +2,31 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
||||
|
||||
#### [1.1.4](https://git.odit.services/lfk/kiosk/compare/1.1.3...1.1.4)
|
||||
|
||||
- feat: improve registration flow [`2c503f9`](https://git.odit.services/lfk/kiosk/commit/2c503f9b0333b668730c4eb11deb5184ee49f295)
|
||||
|
||||
#### [1.1.3](https://git.odit.services/lfk/kiosk/compare/1.1.2...1.1.3)
|
||||
|
||||
> 2 April 2025
|
||||
|
||||
- chore(release): 1.1.3 [`6a0b014`](https://git.odit.services/lfk/kiosk/commit/6a0b014d55b129eef17d70bb9a86203a272d3ad3)
|
||||
- fix: registration without email [`b7f792c`](https://git.odit.services/lfk/kiosk/commit/b7f792c6f99249acd0c8c1154800c4442ad5a8b0)
|
||||
|
||||
#### [1.1.2](https://git.odit.services/lfk/kiosk/compare/1.1.1...1.1.2)
|
||||
|
||||
> 2 April 2025
|
||||
|
||||
- fix: build [`368e97c`](https://git.odit.services/lfk/kiosk/commit/368e97c6bba238b605532aa9c598ace5f2bac592)
|
||||
- chore(release): 1.1.2 [`528b025`](https://git.odit.services/lfk/kiosk/commit/528b025e55ce6d4ab0dec32803d201d057725dac)
|
||||
|
||||
#### [1.1.1](https://git.odit.services/lfk/kiosk/compare/1.1.0...1.1.1)
|
||||
|
||||
> 2 April 2025
|
||||
|
||||
- refactor(ci): Switch to actions [`0177c50`](https://git.odit.services/lfk/kiosk/commit/0177c506516c5e21b4f73e1086b587ab2f1d8f50)
|
||||
- feat: improved registration [`6dcdba6`](https://git.odit.services/lfk/kiosk/commit/6dcdba6568def337dcd1e4e6db5c75df09c1f938)
|
||||
- 🚀Bumped version to 1.1.1 [`6acd8bb`](https://git.odit.services/lfk/kiosk/commit/6acd8bb6340f0d874e8ab8b9e1a93a5fd05fd3b6)
|
||||
- feat: disable chrome autocomplete [`525c096`](https://git.odit.services/lfk/kiosk/commit/525c096f7a757105947da62e8dac75a24e0aa757)
|
||||
|
||||
#### [1.1.0](https://git.odit.services/lfk/kiosk/compare/1.0.0...1.1.0)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
FROM registry.odit.services/hub/library/node:19.9.0-alpine3.16 AS build
|
||||
ARG NPM_REGISTRY_URL=registry.npmjs.org
|
||||
FROM registry.odit.services/hub/library/node:23.10.0-alpine3.21 AS build
|
||||
# ARG NPM_REGISTRY_URL=registry.npmjs.org
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json *.config.cjs *.config.js *.config.ts tsconfig.json .npmrc ./
|
||||
RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
|
||||
RUN npm i -g pnpm@10.7
|
||||
RUN pnpm i
|
||||
|
||||
COPY src ./src
|
||||
@@ -11,5 +11,5 @@ COPY static ./static
|
||||
RUN pnpm build
|
||||
|
||||
# final image
|
||||
FROM registry.odit.services/library/nginx-brotli:3.15 as final
|
||||
FROM registry.odit.services/library/nginx-brotli:3.15 AS final
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@lfk/kiosk",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.4",
|
||||
"private": false,
|
||||
"license": "MIT",
|
||||
"repository": "https://git.odit.services/lfk/kiosk",
|
||||
@@ -68,11 +68,11 @@
|
||||
"git": {
|
||||
"commit": true,
|
||||
"requireCleanWorkingDir": false,
|
||||
"commitMessage": "🚀Bumped version to ${version}",
|
||||
"commitMessage": "chore(release): ${version}",
|
||||
"requireBranch": "main",
|
||||
"push": true,
|
||||
"tag": true,
|
||||
"tagName": null,
|
||||
"tagName": "${version}",
|
||||
"tagAnnotation": "${version}"
|
||||
},
|
||||
"npm": {
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<script>
|
||||
import { OpenAPI } from '@odit/lfk-client-js';
|
||||
import { env } from '$env/dynamic/public';
|
||||
import '../app.postcss';
|
||||
import '@fontsource/athiti';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
OpenAPI.BASE = env.PUBLIC_BASE_URL || 'https://run.lauf-fuer-kaya.de';
|
||||
OpenAPI.BASE = 'https://run.lauf-fuer-kaya.de';
|
||||
onMount(() => {
|
||||
window.addEventListener('keydown', (e) => {
|
||||
// F1
|
||||
|
||||
@@ -32,10 +32,16 @@
|
||||
|
||||
async function register() {
|
||||
try {
|
||||
let emailToSend = null;
|
||||
if (email !== '') {
|
||||
if (email.includes('@')) {
|
||||
emailToSend = email;
|
||||
}
|
||||
}
|
||||
response = (await RunnerService.runnerControllerPost({
|
||||
firstname,
|
||||
lastname,
|
||||
email,
|
||||
email: emailToSend,
|
||||
group
|
||||
})) as ResponseRunner;
|
||||
showResult = true;
|
||||
@@ -104,6 +110,7 @@
|
||||
<input
|
||||
on:keydown={(e) => {
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
document.getElementById('lastname')?.focus();
|
||||
}
|
||||
if (e.keyCode === 40) {
|
||||
@@ -114,7 +121,7 @@
|
||||
autocomplete="one-time-code"
|
||||
id="firstname"
|
||||
name="firstname"
|
||||
class="placeholder:text-black dark:placeholder:text-white py-3 px-4 block w-full border-gray-500 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-200 dark:text-gray-400 border"
|
||||
class="font-semibold placeholder:font-normal placeholder:text-black dark:placeholder:text-gray-200 py-3 px-4 block w-full border-gray-500 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-200 dark:text-white border"
|
||||
required
|
||||
placeholder="Vorname"
|
||||
bind:value={firstname}
|
||||
@@ -154,8 +161,8 @@
|
||||
<div class="relative">
|
||||
<input
|
||||
on:keydown={(e) => {
|
||||
console.log(e.keyCode);
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
document.getElementById('email')?.focus();
|
||||
}
|
||||
if (e.keyCode === 38) {
|
||||
@@ -169,7 +176,7 @@
|
||||
type="lastname"
|
||||
id="lastname"
|
||||
name="lastname"
|
||||
class="placeholder:text-black dark:placeholder:text-white py-3 px-4 block w-full border-gray-500 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-200 dark:text-gray-400 border"
|
||||
class="font-semibold placeholder:font-normal placeholder:text-black dark:placeholder:text-gray-200 py-3 px-4 block w-full border-gray-500 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-200 dark:text-white border"
|
||||
required
|
||||
placeholder="Nachname"
|
||||
aria-describedby="lastname-error"
|
||||
@@ -211,8 +218,8 @@
|
||||
<div class="relative">
|
||||
<input
|
||||
on:keydown={(e) => {
|
||||
console.log(e.keyCode);
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
document.getElementById('submit')?.focus();
|
||||
}
|
||||
if (e.keyCode === 38) {
|
||||
@@ -226,7 +233,7 @@
|
||||
type="email"
|
||||
id="email"
|
||||
name="email"
|
||||
class="placeholder:text-black dark:placeholder:text-white py-3 px-4 block w-full border-gray-500 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-200 dark:text-gray-400 border"
|
||||
class="font-semibold placeholder:font-normal placeholder:text-black dark:placeholder:text-gray-200 py-3 px-4 block w-full border-gray-500 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-200 dark:text-white border"
|
||||
placeholder="E-Mail (optional)"
|
||||
aria-describedby="lastname-error"
|
||||
bind:value={email}
|
||||
@@ -260,6 +267,11 @@
|
||||
<!-- End Form Group -->
|
||||
|
||||
<button
|
||||
on:keydown={(e) => {
|
||||
if (e.keyCode === 38) {
|
||||
document.getElementById('email')?.focus();
|
||||
}
|
||||
}}
|
||||
id="submit"
|
||||
type="submit"
|
||||
disabled={!firstname || !lastname}
|
||||
|
||||
Reference in New Issue
Block a user