This commit is contained in:
parent
f296cbc1a0
commit
4af5c4545b
@ -1,30 +0,0 @@
|
|||||||
<template>
|
|
||||||
<h1>{{ msg }}</h1>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite Documentation</a> |
|
|
||||||
<a href="https://v3.vuejs.org/" target="_blank">Vue 3 Documentation</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<button @click="state.count++">count is: {{ state.count }}</button>
|
|
||||||
<p>
|
|
||||||
Edit
|
|
||||||
<code>components/HelloWorld.vue</code> to test hot module replacement.
|
|
||||||
</p>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { reactive } from 'vue'
|
|
||||||
|
|
||||||
defineProps({
|
|
||||||
msg: String
|
|
||||||
})
|
|
||||||
|
|
||||||
const state = reactive({ count: 0 })
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
a {
|
|
||||||
color: #42b983;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,109 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="min-h-screen flex items-center justify-center">
|
|
||||||
<div class="max-w-md w-full py-12 px-6">
|
|
||||||
<img class="mx-auto h-24 w-auto" src="/favicon-lfk.png" alt="" />
|
|
||||||
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-center">Lauf für Kaya! - Registrieren</h1>
|
|
||||||
<p
|
|
||||||
class="mx-auto leading-relaxed text-base text-center"
|
|
||||||
>Bitte anmelden...</p>
|
|
||||||
<div class="mt-5">
|
|
||||||
<div class="rounded-md shadow-sm">
|
|
||||||
<div>
|
|
||||||
<input
|
|
||||||
aria-label="E-Mail Adresse"
|
|
||||||
name="email"
|
|
||||||
type="email"
|
|
||||||
required
|
|
||||||
class="border-gray-300 placeholder-gray-500 appearance-none rounded-none relative block w-full px-3 py-2 border text-gray-900 rounded-t-md focus:outline-none focus:shadow-outline-blue focus:border-blue-300 focus:z-10 sm:text-sm"
|
|
||||||
placeholder="E-Mail Adresse"
|
|
||||||
v-model="mail"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="-mt-px relative">
|
|
||||||
<input
|
|
||||||
aria-label="Passwort"
|
|
||||||
name="password"
|
|
||||||
type="password"
|
|
||||||
required
|
|
||||||
class="border-gray-300 placeholder-gray-500 appearance-none rounded-none relative block w-full px-3 py-2 border text-gray-900 rounded-b-md focus:outline-none focus:shadow-outline-blue focus:border-blue-300 focus:z-10 sm:text-sm"
|
|
||||||
placeholder="Passwort"
|
|
||||||
/>
|
|
||||||
<div class="absolute inset-y-0 right-0 pr-3 flex items-center text-sm">
|
|
||||||
<a href="/selfservice/reset" class="text-gray-900 underline">Passwort vergessen?</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="mt-5">
|
|
||||||
<button
|
|
||||||
v-if="loading === false"
|
|
||||||
@click="login"
|
|
||||||
type="submit"
|
|
||||||
class="relative block w-full py-2 px-3 border border-transparent rounded-md font-semibold bg-gray-800 hover:bg-gray-700 focus:bg-gray-900 focus:outline-none focus:shadow-outline sm:text-sm text-white"
|
|
||||||
>
|
|
||||||
<span class="absolute left-0 inset-y pl-3">
|
|
||||||
<svg class="h-5 w-5 text-gray-500" fill="currentColor" viewBox="0 0 20 20">
|
|
||||||
<path
|
|
||||||
fill-rule="evenodd"
|
|
||||||
d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
Log in
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
v-if="loading === true"
|
|
||||||
type="submit"
|
|
||||||
class="relative block w-full py-2 px-3 border border-transparent rounded-md font-semibold bg-yellow-500 sm:text-sm text-black"
|
|
||||||
>
|
|
||||||
<span class="absolute left-0 inset-y pl-3">
|
|
||||||
<svg class="h-5 w-5 text-gray-500" fill="currentColor" viewBox="0 0 20 20">
|
|
||||||
<path
|
|
||||||
fill-rule="evenodd"
|
|
||||||
d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
Logging in...
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="mt-6">
|
|
||||||
<div class="relative">
|
|
||||||
<div class="absolute inset-0 flex items-center">
|
|
||||||
<div class="w-full border-t border-gray-300"></div>
|
|
||||||
</div>
|
|
||||||
<div class="relative flex justify-center text-sm">
|
|
||||||
<span class="px-2 bg-white dark:bg-gray-900">Sie haben noch keinen Account?</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="mt-6">
|
|
||||||
<a
|
|
||||||
href="/selfservice/register"
|
|
||||||
class="block w-full text-center py-2 px-3 border border-gray-300 rounded-md font-medium hover:border-gray-400 focus:outline-none focus:border-gray-400 sm:text-sm"
|
|
||||||
>Account erstellen</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { ref } from "vue";
|
|
||||||
import axios from "redaxios";
|
|
||||||
import Toastify from "toastify-js";
|
|
||||||
|
|
||||||
let mail = ref("");
|
|
||||||
let loading = ref(false);
|
|
||||||
function login() {
|
|
||||||
loading.value = true;
|
|
||||||
axios.get("").then((res) => {
|
|
||||||
loading.value = false;
|
|
||||||
Toastify({
|
|
||||||
text: "Login läuft...",
|
|
||||||
duration: 3000,
|
|
||||||
}).showToast();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,109 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="min-h-screen flex items-center justify-center">
|
|
||||||
<div class="max-w-md w-full py-12 px-6">
|
|
||||||
<!-- <img class="mx-auto h-8 w-auto" src="/img/tailwindui-logo.svg" alt="" /> -->
|
|
||||||
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-center">Login</h1>
|
|
||||||
<p
|
|
||||||
class="mx-auto leading-relaxed text-base text-center"
|
|
||||||
>Bitte anmelden...</p>
|
|
||||||
<div class="mt-5">
|
|
||||||
<div class="rounded-md shadow-sm">
|
|
||||||
<div>
|
|
||||||
<input
|
|
||||||
aria-label="E-Mail Adresse"
|
|
||||||
name="email"
|
|
||||||
type="email"
|
|
||||||
required
|
|
||||||
class="border-gray-300 placeholder-gray-500 appearance-none rounded-none relative block w-full px-3 py-2 border text-gray-900 rounded-t-md focus:outline-none focus:shadow-outline-blue focus:border-blue-300 focus:z-10 sm:text-sm"
|
|
||||||
placeholder="E-Mail Adresse"
|
|
||||||
v-model="mail"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="-mt-px relative">
|
|
||||||
<input
|
|
||||||
aria-label="Passwort"
|
|
||||||
name="password"
|
|
||||||
type="password"
|
|
||||||
required
|
|
||||||
class="border-gray-300 placeholder-gray-500 appearance-none rounded-none relative block w-full px-3 py-2 border text-gray-900 rounded-b-md focus:outline-none focus:shadow-outline-blue focus:border-blue-300 focus:z-10 sm:text-sm"
|
|
||||||
placeholder="Passwort"
|
|
||||||
/>
|
|
||||||
<div class="absolute inset-y-0 right-0 pr-3 flex items-center text-sm">
|
|
||||||
<a href="/selfservice/reset" class="text-gray-900 underline">Passwort vergessen?</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="mt-5">
|
|
||||||
<button
|
|
||||||
v-if="loading === false"
|
|
||||||
@click="login"
|
|
||||||
type="submit"
|
|
||||||
class="relative block w-full py-2 px-3 border border-transparent rounded-md font-semibold bg-gray-800 hover:bg-gray-700 focus:bg-gray-900 focus:outline-none focus:shadow-outline sm:text-sm text-white"
|
|
||||||
>
|
|
||||||
<span class="absolute left-0 inset-y pl-3">
|
|
||||||
<svg class="h-5 w-5 text-gray-500" fill="currentColor" viewBox="0 0 20 20">
|
|
||||||
<path
|
|
||||||
fill-rule="evenodd"
|
|
||||||
d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
Log in
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
v-if="loading === true"
|
|
||||||
type="submit"
|
|
||||||
class="relative block w-full py-2 px-3 border border-transparent rounded-md font-semibold bg-yellow-500 sm:text-sm text-black"
|
|
||||||
>
|
|
||||||
<span class="absolute left-0 inset-y pl-3">
|
|
||||||
<svg class="h-5 w-5 text-gray-500" fill="currentColor" viewBox="0 0 20 20">
|
|
||||||
<path
|
|
||||||
fill-rule="evenodd"
|
|
||||||
d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
Logging in...
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="mt-6">
|
|
||||||
<div class="relative">
|
|
||||||
<div class="absolute inset-0 flex items-center">
|
|
||||||
<div class="w-full border-t border-gray-300"></div>
|
|
||||||
</div>
|
|
||||||
<div class="relative flex justify-center text-sm">
|
|
||||||
<span class="px-2 bg-white dark:bg-gray-900">Sie haben noch keinen Account?</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="mt-6">
|
|
||||||
<a
|
|
||||||
href="/selfservice/register"
|
|
||||||
class="block w-full text-center py-2 px-3 border border-gray-300 rounded-md font-medium hover:border-gray-400 focus:outline-none focus:border-gray-400 sm:text-sm"
|
|
||||||
>Account erstellen</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { ref } from "vue";
|
|
||||||
import axios from "redaxios";
|
|
||||||
import Toastify from "toastify-js";
|
|
||||||
|
|
||||||
let mail = ref("");
|
|
||||||
let loading = ref(false);
|
|
||||||
function login() {
|
|
||||||
loading.value = true;
|
|
||||||
axios.get("").then((res) => {
|
|
||||||
loading.value = false;
|
|
||||||
Toastify({
|
|
||||||
text: "Login läuft...",
|
|
||||||
duration: 3000,
|
|
||||||
}).showToast();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -25,7 +25,7 @@
|
|||||||
"invalid_input_phone_number_should_be_international_format": "ungültige Eingabe... Die Telefonnummer sollte ein internationales Format haben",
|
"invalid_input_phone_number_should_be_international_format": "ungültige Eingabe... Die Telefonnummer sollte ein internationales Format haben",
|
||||||
"lap_time": "Rundenzeit",
|
"lap_time": "Rundenzeit",
|
||||||
"lap_times": "Rundenzeiten",
|
"lap_times": "Rundenzeiten",
|
||||||
"login_link_gesendet_an_user_email_value": "Login-Link gesendet an",
|
"login_link_gesendet_an_user_email_value": "Login-Link gesendet an ",
|
||||||
"login_link_is_requested": "Login-Link wird angefordert...",
|
"login_link_is_requested": "Login-Link wird angefordert...",
|
||||||
"lost_your_registration_mail": "Brauchen Sie einen neuen Login-Link?",
|
"lost_your_registration_mail": "Brauchen Sie einen neuen Login-Link?",
|
||||||
"main_page_text": "Hier können Sie sich für den Lauf Für Kaya! registrieren oder ihr Läuferprofil verwalten.",
|
"main_page_text": "Hier können Sie sich für den Lauf Für Kaya! registrieren oder ihr Läuferprofil verwalten.",
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"invalid_input_phone_number_should_be_international_format": "invalid input... phone number should be international format",
|
"invalid_input_phone_number_should_be_international_format": "invalid input... phone number should be international format",
|
||||||
"lap_time": "Lap time",
|
"lap_time": "Lap time",
|
||||||
"lap_times": "Lap times",
|
"lap_times": "Lap times",
|
||||||
"login_link_gesendet_an_user_email_value": "Login-Link sent to",
|
"login_link_gesendet_an_user_email_value": "Login-Link sent to ",
|
||||||
"login_link_is_requested": "Login link is requested...",
|
"login_link_is_requested": "Login link is requested...",
|
||||||
"lost_your_registration_mail": "Lost your registration mail?",
|
"lost_your_registration_mail": "Lost your registration mail?",
|
||||||
"main_page_text": "Here you can register for the Lauf Für Kaya! or manage your runner profile.",
|
"main_page_text": "Here you can register for the Lauf Für Kaya! or manage your runner profile.",
|
||||||
@ -63,7 +63,7 @@
|
|||||||
"the_system_is_not_properly_configured_please_contact_the_system_administrator_for_help": "The system is not properly configured. Please contact the system administrator for help.",
|
"the_system_is_not_properly_configured_please_contact_the_system_administrator_for_help": "The system is not properly configured. Please contact the system administrator for help.",
|
||||||
"this_is_not_a_valid_international_phone_number": "This is not a valid international phone number",
|
"this_is_not_a_valid_international_phone_number": "This is not a valid international phone number",
|
||||||
"total": "Total",
|
"total": "Total",
|
||||||
"urkunde_generiert": "",
|
"urkunde_generiert": "created certificate",
|
||||||
"urkunde_konnte_nicht_generiert_werden": "could not create your certificate...",
|
"urkunde_konnte_nicht_generiert_werden": "could not create your certificate...",
|
||||||
"urkunde_wird_generiert": "creating certificate...",
|
"urkunde_wird_generiert": "creating certificate...",
|
||||||
"view_my_data": "View my data",
|
"view_my_data": "View my data",
|
||||||
|
@ -483,7 +483,7 @@
|
|||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
import { TYPE, useToast } from "vue-toastification";
|
import { TYPE, useToast } from "vue-toastification";
|
||||||
import axios from "redaxios";
|
import axios from "redaxios";
|
||||||
import bwipjs from "bwip-js";
|
import { toCanvas } from "bwip-js";
|
||||||
import Footer from "@/components/Footer.vue";
|
import Footer from "@/components/Footer.vue";
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@ -505,7 +505,7 @@ function textToBase64Barcode(text) {
|
|||||||
) {
|
) {
|
||||||
codeconfig.height = 10;
|
codeconfig.height = 10;
|
||||||
}
|
}
|
||||||
bwipjs.toCanvas(canvas, codeconfig);
|
toCanvas(canvas, codeconfig);
|
||||||
return canvas.toDataURL("image/png");
|
return canvas.toDataURL("image/png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
<div class="min-h-screen flex items-center justify-center">
|
<div class="min-h-screen flex items-center justify-center">
|
||||||
<div class="max-w-md w-full py-12 px-6">
|
<div class="max-w-md w-full py-12 px-6">
|
||||||
<img class="mx-auto h-24 w-auto" src="/favicon-lfk.png" alt />
|
<img class="mx-auto h-24 w-auto" src="/favicon-lfk.png" alt />
|
||||||
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-center">Lauf für Kaya! - {{ $t('profile')
|
<h1 class="sm:text-3xl text-2xl font-semibold title-font mb-4 text-center font-[Athiti]">Lauf für Kaya! - {{
|
||||||
|
$t('profile')
|
||||||
}}</h1>
|
}}</h1>
|
||||||
<p class="mx-auto leading-relaxed text-base text-center">
|
<p class="mx-auto leading-relaxed text-base text-center">
|
||||||
{{ $t('access_is_only_provided_via_your_email_link') }}
|
{{ $t('access_is_only_provided_via_your_email_link') }}
|
||||||
@ -27,7 +28,7 @@
|
|||||||
class="dark:bg-gray-800 mt-1 block w-full shadow-sm sm:text-sm border-2 bg-gray-50 text-gray-500 rounded-md p-2" />
|
class="dark:bg-gray-800 mt-1 block w-full shadow-sm sm:text-sm border-2 bg-gray-50 text-gray-500 rounded-md p-2" />
|
||||||
<p v-if="!isEmail(user_email) && user_email !== ''" class="text-sm">{{
|
<p v-if="!isEmail(user_email) && user_email !== ''" class="text-sm">{{
|
||||||
$t('please_provide_valid_mail')
|
$t('please_provide_valid_mail')
|
||||||
}}</p>
|
}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<button :disabled="(!state.submit_enabled)"
|
<button :disabled="(!state.submit_enabled)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user