Compare commits
6 Commits
59d5ad5bd3
...
848fb2fb65
Author | SHA1 | Date | |
---|---|---|---|
848fb2fb65 | |||
6529907a13 | |||
e5ec98bf6f | |||
2048533fda | |||
cb58fdfd8e | |||
9684c22da3 |
@ -3,11 +3,8 @@
|
|||||||
import "toastify-js/src/toastify.css";
|
import "toastify-js/src/toastify.css";
|
||||||
import { Route, router } from "tinro";
|
import { Route, router } from "tinro";
|
||||||
router.subscribe((routeInfo) => {
|
router.subscribe((routeInfo) => {
|
||||||
// console.log(routeInfo.path);
|
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
});
|
});
|
||||||
// console.log($router.path);
|
|
||||||
// console.log(config);
|
|
||||||
if (config.prefersHashRouting) {
|
if (config.prefersHashRouting) {
|
||||||
if (config.prefersHashRouting === true) {
|
if (config.prefersHashRouting === true) {
|
||||||
router.useHashNavigation();
|
router.useHashNavigation();
|
||||||
@ -56,16 +53,22 @@
|
|||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
navigator.serviceWorker.register("/sw.js").then(
|
navigator.serviceWorker.register("/sw.js").then(
|
||||||
(registration) => {
|
(registration) => {
|
||||||
console.log(`sw successful with scope: ${registration.scope}`);
|
// console.log(`sw successful with scope: ${registration.scope}`);
|
||||||
},
|
},
|
||||||
(err) => {
|
(err) => {
|
||||||
console.log(`sw failed: ${err}`);
|
// console.log(`sw failed: ${err}`);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.bg-gray-900 {
|
||||||
|
background-color: #121317;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<Route>
|
<Route>
|
||||||
{#if $router.path === '/forgot_password'}
|
{#if $router.path === '/forgot_password'}
|
||||||
<Route path="/forgot_password">
|
<Route path="/forgot_password">
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
d="M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z" /></svg>
|
d="M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z" /></svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
||||||
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
<h3 class="text-lg leading-6 font-medium">
|
||||||
{$_('read-license')}
|
{$_('read-license')}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="mt-2 mb-6">
|
<div class="mt-2 mb-6">
|
||||||
@ -107,13 +107,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pt-0 pb-16 bg-gray-50 overflow-hidden lg:pt-12 lg:py-24">
|
<div class="pt-0 pb-16 overflow-hidden lg:pt-12 lg:py-24">
|
||||||
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
|
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
|
||||||
<h2 class="text-4xl font-display font-semibold text-gray-900 md:text-5xl">
|
<h2 class="text-4xl font-display font-semibold md:text-5xl">
|
||||||
{$_('credits')}
|
{$_('credits')}
|
||||||
</h2>
|
</h2>
|
||||||
<div
|
<div
|
||||||
class="max-w-3xl mx-auto text-xl leading-8 font-medium text-gray-900 mt-8">
|
class="max-w-3xl mx-auto text-xl leading-8 font-medium mt-8">
|
||||||
<p class="text-center">{$_('oss_credit_description')}</p>
|
<p class="text-center">{$_('oss_credit_description')}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-screen leading-8 pl-5 mt-5">
|
<div class="w-screen leading-8 pl-5 mt-5">
|
||||||
@ -164,14 +164,14 @@
|
|||||||
</div>
|
</div>
|
||||||
{/await}
|
{/await}
|
||||||
</div>
|
</div>
|
||||||
<h2 class="text-4xl font-display font-semibold text-gray-900 md:text-5xl">
|
<h2 class="text-4xl font-display font-semibold md:text-5xl">
|
||||||
Fragen
|
Fragen
|
||||||
</h2>
|
</h2>
|
||||||
<div class="mt-6 border-t-2 border-gray-100 pt-10">
|
<div class="mt-6 border-t-2 border-gray-100 pt-10">
|
||||||
<dl class="md:grid md:grid-cols-2 md:gap-8">
|
<dl class="md:grid md:grid-cols-2 md:gap-8">
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<dt class="text-lg leading-6 font-medium text-gray-900">Q</dt>
|
<dt class="text-lg leading-6 font-medium">Q</dt>
|
||||||
<dd class="mt-2">
|
<dd class="mt-2">
|
||||||
<p class="text-base text-gray-500">A</p>
|
<p class="text-base text-gray-500">A</p>
|
||||||
</dd>
|
</dd>
|
||||||
@ -179,13 +179,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mt-12 sm:mt-0">
|
<div class="mt-12 sm:mt-0">
|
||||||
<div id="team-pricing">
|
<div id="team-pricing">
|
||||||
<dt class="text-lg leading-6 font-medium text-gray-900">Q</dt>
|
<dt class="text-lg leading-6 font-medium">Q</dt>
|
||||||
<dd class="mt-2">
|
<dd class="mt-2">
|
||||||
<p class="text-base text-gray-500">A</p>
|
<p class="text-base text-gray-500">A</p>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-12">
|
<div class="mt-12">
|
||||||
<dt class="text-lg leading-6 font-medium text-gray-900">Q</dt>
|
<dt class="text-lg leading-6 font-medium">Q</dt>
|
||||||
<dd class="mt-2">
|
<dd class="mt-2">
|
||||||
<p class="text-base text-gray-500">A</p>
|
<p class="text-base text-gray-500">A</p>
|
||||||
</dd>
|
</dd>
|
||||||
|
@ -3,23 +3,33 @@
|
|||||||
import { clickOutside } from "./outsideclick";
|
import { clickOutside } from "./outsideclick";
|
||||||
import { focusTrap } from "svelte-focus-trap";
|
import { focusTrap } from "svelte-focus-trap";
|
||||||
import { tracks as tracksstore } from "../store.js";
|
import { tracks as tracksstore } from "../store.js";
|
||||||
import { TrackService } from "@odit/lfk-client-js";
|
import { TrackService, UserService } from "@odit/lfk-client-js";
|
||||||
|
import isEmail from "validator/es/lib/isEmail";
|
||||||
import Toastify from "toastify-js";
|
import Toastify from "toastify-js";
|
||||||
import "toastify-js/src/toastify.css";
|
import "toastify-js/src/toastify.css";
|
||||||
|
import About from "./About.svelte";
|
||||||
export let modal_open;
|
export let modal_open;
|
||||||
let trackname_input;
|
let firstname_input;
|
||||||
|
let lastname_input;
|
||||||
|
let middlename_input;
|
||||||
|
let password_input;
|
||||||
|
let email_input;
|
||||||
function focus(el) {
|
function focus(el) {
|
||||||
el.focus();
|
el.focus();
|
||||||
}
|
}
|
||||||
$: trackname_input_value = "";
|
$: middlename_input_value = "";
|
||||||
|
$: password_input_value = "";
|
||||||
|
$: email_input_value = "";
|
||||||
|
$: lastname_input_value = "";
|
||||||
|
$: firstname_input_value = "";
|
||||||
$: track_min_duration = 0;
|
$: track_min_duration = 0;
|
||||||
$: tracklength = 0;
|
$: tracklength = 0;
|
||||||
$: processed_last_submit = true;
|
$: processed_last_submit = true;
|
||||||
$: smart_track_min_duration_placeholder = parseInt(tracklength || 0) * 0.369;
|
$: isPasswordValid = password_input_value.trim().length === 0;
|
||||||
$: isTracknameValid = trackname_input_value.trim().length === 0;
|
$: isEmailValid = isEmail(email_input_value);
|
||||||
$: isTracklengthValid = tracklength <= 0;
|
$: isLastnameValid = lastname_input_value.trim().length === 0;
|
||||||
$: trackMintimevalid = track_min_duration >= 0;
|
$: isFirstnameValid = firstname_input_value.trim().length === 0;
|
||||||
$: createbtnenabled = !isTracknameValid && !isTracklengthValid;
|
$: createbtnenabled = !isFirstnameValid && !isLastnameValid;
|
||||||
(function () {
|
(function () {
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
e = e || window.event;
|
e = e || window.event;
|
||||||
@ -38,22 +48,23 @@
|
|||||||
if (processed_last_submit === true) {
|
if (processed_last_submit === true) {
|
||||||
processed_last_submit = false;
|
processed_last_submit = false;
|
||||||
const toast = Toastify({
|
const toast = Toastify({
|
||||||
text: $_("track-is-being-added"),
|
text: "User is being added...",
|
||||||
duration: -1,
|
duration: -1,
|
||||||
}).showToast();
|
}).showToast();
|
||||||
TrackService.trackControllerPost({
|
UserService.userControllerPost({
|
||||||
distance: parseInt(tracklength),
|
firstname: firstname_input_value,
|
||||||
name: trackname_input_value,
|
lastname: lastname_input_value,
|
||||||
minimumLapTime: track_min_duration,
|
middlename: middlename_input_value,
|
||||||
|
email:email_input_value,password:password_input_value
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
trackname_input_value = "";
|
firstname_input_value = "";
|
||||||
track_min_duration = 0;
|
lastname_input_value = "";
|
||||||
tracklength = 0;
|
middlename_input_value = "";
|
||||||
modal_open = false;
|
modal_open = false;
|
||||||
//
|
//
|
||||||
Toastify({
|
Toastify({
|
||||||
text: $_("track-added"),
|
text: "User added",
|
||||||
duration: 500,
|
duration: 500,
|
||||||
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
|
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
|
||||||
}).showToast();
|
}).showToast();
|
||||||
@ -105,94 +116,123 @@
|
|||||||
class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-100 sm:mx-0 sm:h-10 sm:w-10">
|
class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-100 sm:mx-0 sm:h-10 sm:w-10">
|
||||||
<svg
|
<svg
|
||||||
class="h-6 w-6 text-blue-600"
|
class="h-6 w-6 text-blue-600"
|
||||||
fill="none"
|
fill="currentColor"
|
||||||
width="24"
|
width="24"
|
||||||
height="24"
|
height="24"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 640 512"><path
|
viewBox="0 0 640 512"><path
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
d="M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z" /></svg>
|
d="M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z" /></svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
||||||
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
||||||
{$_('create-a-new-track')}
|
Create a new User
|
||||||
</h3>
|
</h3>
|
||||||
<div class="mt-2 mb-6">
|
<div class="mt-2 mb-6">
|
||||||
<p class="text-sm text-gray-500">
|
<p class="text-sm text-gray-500">
|
||||||
{$_('please-provide-the-required-information-to-add-a-new-track')}
|
Please provide the required information to add a new user.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-6 gap-6">
|
<div class="grid grid-cols-6 gap-6">
|
||||||
<div class="col-span-6">
|
<div class="col-span-6">
|
||||||
<label
|
<label
|
||||||
for="trackname"
|
for="firstname"
|
||||||
class="block text-sm font-medium text-gray-700">{$_('track-name')}</label>
|
class="block text-sm font-medium text-gray-700">First Name</label>
|
||||||
<input
|
<input
|
||||||
use:focus
|
use:focus
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
placeholder={$_('track-name')}
|
placeholder="First Name"
|
||||||
class:border-red-500={isTracknameValid}
|
class:border-red-500={isFirstnameValid}
|
||||||
class:focus:border-red-500={isTracknameValid}
|
class:focus:border-red-500={isFirstnameValid}
|
||||||
class:focus:ring-red-500={isTracknameValid}
|
class:focus:ring-red-500={isFirstnameValid}
|
||||||
bind:value={trackname_input_value}
|
bind:value={firstname_input_value}
|
||||||
bind:this={trackname_input}
|
bind:this={firstname_input}
|
||||||
|
type="text"
|
||||||
|
name="firstname"
|
||||||
|
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
||||||
|
{#if isFirstnameValid}
|
||||||
|
<span
|
||||||
|
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
||||||
|
First Name is required
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
<div class="col-span-6">
|
||||||
|
<label
|
||||||
|
for="trackname"
|
||||||
|
class="block text-sm font-medium text-gray-700">Middle Name</label>
|
||||||
|
<input
|
||||||
|
autocomplete="off"
|
||||||
|
placeholder="Middle Name"
|
||||||
|
bind:value={middlename_input_value}
|
||||||
|
bind:this={middlename_input}
|
||||||
type="text"
|
type="text"
|
||||||
name="trackname"
|
name="trackname"
|
||||||
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
||||||
{#if isTracknameValid}
|
</div>
|
||||||
|
<div class="col-span-6">
|
||||||
|
<label
|
||||||
|
for="lastname"
|
||||||
|
class="block text-sm font-medium text-gray-700">Last Name</label>
|
||||||
|
<input
|
||||||
|
autocomplete="off"
|
||||||
|
placeholder="Last Name"
|
||||||
|
class:border-red-500={isLastnameValid}
|
||||||
|
class:focus:border-red-500={isLastnameValid}
|
||||||
|
class:focus:ring-red-500={isLastnameValid}
|
||||||
|
bind:value={lastname_input_value}
|
||||||
|
bind:this={lastname_input}
|
||||||
|
type="text"
|
||||||
|
name="lastname"
|
||||||
|
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
||||||
|
{#if isLastnameValid}
|
||||||
<span
|
<span
|
||||||
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
||||||
Track name must not be empty
|
Last Name is required
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-6">
|
<div class="col-span-6">
|
||||||
<label
|
<label
|
||||||
for="track_length_m"
|
for="password"
|
||||||
class="block text-sm font-medium text-gray-700">{$_('track-length-in-m')}</label>
|
class="block text-sm font-medium text-gray-700">Password</label>
|
||||||
<div class="mt-1 flex rounded-md shadow-sm">
|
|
||||||
<input
|
<input
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
class:border-red-500={isTracklengthValid}
|
placeholder="Password"
|
||||||
class:focus:border-red-500={isTracklengthValid}
|
class:border-red-500={isPasswordValid}
|
||||||
class:focus:ring-red-500={isTracklengthValid}
|
class:focus:border-red-500={isPasswordValid}
|
||||||
bind:value={tracklength}
|
class:focus:ring-red-500={isPasswordValid}
|
||||||
type="number"
|
bind:value={password_input_value}
|
||||||
name="track_length_m"
|
bind:this={password_input}
|
||||||
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full rounded-none rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 p-2"
|
type="password"
|
||||||
placeholder="1000" />
|
name="password"
|
||||||
<span
|
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
||||||
class="inline-flex items-center px-3 rounded-r-md border border-gray-300 bg-gray-50 text-gray-500 text-sm">m</span>
|
{#if isPasswordValid}
|
||||||
</div>
|
|
||||||
{#if isTracklengthValid}
|
|
||||||
<span
|
<span
|
||||||
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
||||||
Track length must be greater than 0
|
Password is required
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-6">
|
<div class="col-span-6">
|
||||||
<label
|
<label
|
||||||
for="track_min_duration"
|
for="email"
|
||||||
class="block text-sm font-medium text-gray-700">{$_('minimum-lap-time-in-s')}</label>
|
class="block text-sm font-medium text-gray-700">E-Mail</label>
|
||||||
<div class="mt-1 flex rounded-md shadow-sm">
|
|
||||||
<input
|
<input
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
class:border-red-500={!trackMintimevalid}
|
placeholder="E-Mail"
|
||||||
class:focus:border-red-500={!trackMintimevalid}
|
class:border-red-500={!isEmailValid}
|
||||||
class:focus:ring-red-500={!trackMintimevalid}
|
class:focus:border-red-500={!isEmailValid}
|
||||||
bind:value={track_min_duration}
|
class:focus:ring-red-500={!isEmailValid}
|
||||||
type="number"
|
bind:value={email_input_value}
|
||||||
name="track_min_duration"
|
bind:this={email_input}
|
||||||
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full rounded-none rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 p-2"
|
type="email"
|
||||||
placeholder={smart_track_min_duration_placeholder} />
|
name="email"
|
||||||
<span
|
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
||||||
class="inline-flex items-center px-3 rounded-r-md border border-gray-300 bg-gray-50 text-gray-500 text-sm">s</span>
|
{#if !isEmailValid}
|
||||||
</div>
|
|
||||||
{#if !trackMintimevalid}
|
|
||||||
<span
|
<span
|
||||||
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
||||||
minimum lap time must be a positive number or 0
|
valid email is required
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
import store from "../store";
|
import store from "../store";
|
||||||
import NoComponentLoaded from "./NoComponentLoaded.svelte";
|
import NoComponentLoaded from "./NoComponentLoaded.svelte";
|
||||||
|
import { AuthService, OpenAPI } from "@odit/lfk-client-js";
|
||||||
|
|
||||||
let activePage = "dashboard";
|
let activePage = "dashboard";
|
||||||
let dropdown1 = false;
|
let dropdown1 = false;
|
||||||
@ -32,10 +33,10 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="min-h-screen bg-gray-50">
|
<section class="min-h-screen bg-gray-50 dark:bg-black dark:text-gray-100">
|
||||||
<nav
|
<nav
|
||||||
class:hidden={!navOpen && mobile}
|
class:hidden={!navOpen && mobile}
|
||||||
class="select-none fixed top-0 left-0 z-20 h-full pb-10 overflow-x-hidden overflow-y-auto transition origin-left transform bg-white border-r w-60 md:translate-x-0">
|
class="select-none fixed top-0 left-0 z-20 h-full pb-10 overflow-x-hidden overflow-y-auto transition origin-left transform border-r w-60 md:translate-x-0">
|
||||||
<a href="/" class="flex items-center px-4 py-5">
|
<a href="/" class="flex items-center px-4 py-5">
|
||||||
<img
|
<img
|
||||||
src="/lfk-logo.png"
|
src="/lfk-logo.png"
|
||||||
@ -45,8 +46,9 @@
|
|||||||
</a>
|
</a>
|
||||||
<nav class="text-sm font-medium text-gray-600" aria-label="Main Navigation">
|
<nav class="text-sm font-medium text-gray-600" aria-label="Main Navigation">
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={$router.path === '/'}
|
||||||
class:bg-gray-100={$router.path === '/'}
|
class:bg-gray-100={$router.path === '/'}
|
||||||
class="flex items-center px-4 py-3 text-gray-900 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="/">
|
href="/">
|
||||||
<svg
|
<svg
|
||||||
class="flex-shrink-0 w-5 h-5 mr-2 text-gray-400 transition group-hover:text-gray-600"
|
class="flex-shrink-0 w-5 h-5 mr-2 text-gray-400 transition group-hover:text-gray-600"
|
||||||
@ -59,6 +61,7 @@
|
|||||||
<span>{$_('dashboard-title')}</span>
|
<span>{$_('dashboard-title')}</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={$router.path.includes('/orgs/')}
|
||||||
class:bg-gray-100={$router.path.includes('/orgs/')}
|
class:bg-gray-100={$router.path.includes('/orgs/')}
|
||||||
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="/orgs/">
|
href="/orgs/">
|
||||||
@ -74,6 +77,7 @@
|
|||||||
<span>{$_('orgs')}</span>
|
<span>{$_('orgs')}</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={$router.path === '/users/'}
|
||||||
class:bg-gray-100={$router.path === '/users/'}
|
class:bg-gray-100={$router.path === '/users/'}
|
||||||
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="/users/">
|
href="/users/">
|
||||||
@ -89,8 +93,9 @@
|
|||||||
<span>{$_('users')}</span>
|
<span>{$_('users')}</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={$router.path === '/runners/'}
|
||||||
class:bg-gray-100={$router.path === '/runners/'}
|
class:bg-gray-100={$router.path === '/runners/'}
|
||||||
class="flex items-center px-4 py-3 text-gray-900 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="/runners/">
|
href="/runners/">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
@ -104,8 +109,9 @@
|
|||||||
<span>{$_('runners')}</span>
|
<span>{$_('runners')}</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={$router.path === '/teams/'}
|
||||||
class:bg-gray-100={$router.path === '/teams/'}
|
class:bg-gray-100={$router.path === '/teams/'}
|
||||||
class="flex items-center px-4 py-3 text-gray-900 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="/teams/">
|
href="/teams/">
|
||||||
<svg
|
<svg
|
||||||
class="flex-shrink-0 w-5 h-5 mr-2 text-gray-400 transition group-hover:text-gray-600"
|
class="flex-shrink-0 w-5 h-5 mr-2 text-gray-400 transition group-hover:text-gray-600"
|
||||||
@ -119,8 +125,9 @@
|
|||||||
<span>{$_('teams')}</span>
|
<span>{$_('teams')}</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={$router.path === '/tracks/'}
|
||||||
class:bg-gray-100={$router.path === '/tracks/'}
|
class:bg-gray-100={$router.path === '/tracks/'}
|
||||||
class="flex items-center px-4 py-3 text-gray-900 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="/tracks/">
|
href="/tracks/">
|
||||||
<svg
|
<svg
|
||||||
class="flex-shrink-0 w-5 h-5 mr-2 text-gray-400 transition group-hover:text-gray-600"
|
class="flex-shrink-0 w-5 h-5 mr-2 text-gray-400 transition group-hover:text-gray-600"
|
||||||
@ -134,6 +141,7 @@
|
|||||||
<span>{$_('tracks')}</span>
|
<span>{$_('tracks')}</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={activePage === 'blub'}
|
||||||
class:bg-gray-100={activePage === 'blub'}
|
class:bg-gray-100={activePage === 'blub'}
|
||||||
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="#">
|
href="#">
|
||||||
@ -153,6 +161,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
class:dark:bg-gray-900={activePage === 'blub'}
|
||||||
class:bg-gray-100={activePage === 'blub'}
|
class:bg-gray-100={activePage === 'blub'}
|
||||||
class="flex items-center justify-between px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center justify-between px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
role="button"
|
role="button"
|
||||||
@ -228,6 +237,7 @@
|
|||||||
<span>{$_('changelog')}</span>
|
<span>{$_('changelog')}</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={$router.path === '/settings/'}
|
||||||
class:bg-gray-100={$router.path === '/settings/'}
|
class:bg-gray-100={$router.path === '/settings/'}
|
||||||
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="/settings/">
|
href="/settings/">
|
||||||
@ -244,6 +254,7 @@
|
|||||||
<span>{$_('settings')}</span>
|
<span>{$_('settings')}</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
|
class:dark:bg-gray-900={$router.path === '/about/'}
|
||||||
class:bg-gray-100={$router.path === '/about/'}
|
class:bg-gray-100={$router.path === '/about/'}
|
||||||
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
href="/about/">
|
href="/about/">
|
||||||
@ -263,6 +274,7 @@
|
|||||||
tabindex="0"
|
tabindex="0"
|
||||||
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
AuthService.authControllerLogout({ token: OpenAPI.TOKEN });
|
||||||
logout();
|
logout();
|
||||||
}}>
|
}}>
|
||||||
<svg
|
<svg
|
||||||
@ -280,7 +292,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<div class="ml-0 transition md:ml-60">
|
<div class="ml-0 transition md:ml-60">
|
||||||
<header
|
<header
|
||||||
class="flex items-center justify-between w-full px-4 bg-white border-b h-14">
|
class="flex items-center justify-between w-full px-4 border-b h-14">
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
navOpen = !navOpen;
|
navOpen = !navOpen;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
<span class="mb-1 text-3xl font-extrabold leading-tight text-gray-900">
|
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
||||||
Orgs
|
Orgs
|
||||||
</span>
|
</span>
|
||||||
<p class="mb-8 text-lg text-gray-500">
|
<p class="mb-8 text-lg text-gray-500">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
<span class="mb-1 text-3xl font-extrabold leading-tight text-gray-900">
|
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
||||||
Orgs
|
Orgs
|
||||||
</span>
|
</span>
|
||||||
<p class="mb-8 text-lg text-gray-500">
|
<p class="mb-8 text-lg text-gray-500">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
<span class="mb-1 text-3xl font-extrabold leading-tight text-gray-900">
|
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
||||||
{$_('runners')}
|
{$_('runners')}
|
||||||
</span>
|
</span>
|
||||||
<p class="mb-8 text-lg text-gray-500">läuft bei ihnen</p>
|
<p class="mb-8 text-lg text-gray-500">läuft bei ihnen</p>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
class="flex flex-col lg:flex-row w-full lg:space-x-2 space-y-2 lg:space-y-0 mb-2 lg:mb-4">
|
class="flex flex-col lg:flex-row w-full lg:space-x-2 space-y-2 lg:space-y-0 mb-2 lg:mb-4">
|
||||||
<a href="/runners/" class="w-full lg:w-1/4">
|
<a href="/runners/" class="w-full lg:w-1/4">
|
||||||
<div
|
<div
|
||||||
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890">
|
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890 dark:bg-gray-900 dark:text-white">
|
||||||
<div class="flex flex-row items-center justify-between">
|
<div class="flex flex-row items-center justify-between">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="text-xs uppercase font-light text-grey-500">
|
<div class="text-xs uppercase font-light text-grey-500">
|
||||||
@ -29,6 +29,7 @@
|
|||||||
<svg
|
<svg
|
||||||
height="24"
|
height="24"
|
||||||
width="24"
|
width="24"
|
||||||
|
fill="currentColor"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none" />
|
viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none" />
|
||||||
<path
|
<path
|
||||||
@ -38,7 +39,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="w-full lg:w-1/4">
|
<div class="w-full lg:w-1/4">
|
||||||
<div
|
<div
|
||||||
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890">
|
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890 dark:bg-gray-900 dark:text-white">
|
||||||
<div class="flex flex-row items-center justify-between">
|
<div class="flex flex-row items-center justify-between">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="text-xs uppercase font-light text-grey-500">
|
<div class="text-xs uppercase font-light text-grey-500">
|
||||||
@ -47,7 +48,7 @@
|
|||||||
<div class="text-xl font-bold">{stats.total_scans}</div>
|
<div class="text-xl font-bold">{stats.total_scans}</div>
|
||||||
</div><svg
|
</div><svg
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
fill="none"
|
fill="currentColor"
|
||||||
stroke-width="2"
|
stroke-width="2"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
stroke-linecap="round"
|
stroke-linecap="round"
|
||||||
@ -63,7 +64,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-full lg:w-1/4">
|
<div class="w-full lg:w-1/4">
|
||||||
<div
|
<div
|
||||||
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890">
|
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890 dark:bg-gray-900 dark:text-white">
|
||||||
<div class="flex flex-row items-center justify-between">
|
<div class="flex flex-row items-center justify-between">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="text-xs uppercase font-light text-grey-500">
|
<div class="text-xs uppercase font-light text-grey-500">
|
||||||
@ -73,6 +74,7 @@
|
|||||||
</div><svg
|
</div><svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
height="24"
|
height="24"
|
||||||
|
fill="currentColor"
|
||||||
width="24"><path d="M0 0h24v24H0z" fill="none" />
|
width="24"><path d="M0 0h24v24H0z" fill="none" />
|
||||||
<path
|
<path
|
||||||
d="M15 18.5A6.48 6.48 0 019.24 15H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24A6.491 6.491 0 0115 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3A8.955 8.955 0 0015 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06a8.262 8.262 0 000 2H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z" /></svg>
|
d="M15 18.5A6.48 6.48 0 019.24 15H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24A6.491 6.491 0 0115 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3A8.955 8.955 0 0015 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06a8.262 8.262 0 000 2H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z" /></svg>
|
||||||
@ -81,7 +83,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-full lg:w-1/4">
|
<div class="w-full lg:w-1/4">
|
||||||
<div
|
<div
|
||||||
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890">
|
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890 dark:bg-gray-900 dark:text-white">
|
||||||
<div class="flex flex-row items-center justify-between">
|
<div class="flex flex-row items-center justify-between">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="text-xs uppercase font-light text-grey-500">
|
<div class="text-xs uppercase font-light text-grey-500">
|
||||||
@ -92,9 +94,11 @@
|
|||||||
km
|
km
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path
|
<svg
|
||||||
d="M0 0h24v24H0z"
|
fill="currentColor"
|
||||||
fill="none" />
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
height="24"
|
||||||
|
width="24"><path d="M0 0h24v24H0z" fill="none" />
|
||||||
<path
|
<path
|
||||||
d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z" /></svg>
|
d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z" /></svg>
|
||||||
</div>
|
</div>
|
||||||
@ -102,7 +106,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a href="/teams/" class="w-full lg:w-1/4">
|
<a href="/teams/" class="w-full lg:w-1/4">
|
||||||
<div
|
<div
|
||||||
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890">
|
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890 dark:bg-gray-900 dark:text-white">
|
||||||
<div class="flex flex-row items-center justify-between">
|
<div class="flex flex-row items-center justify-between">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="text-xs uppercase font-light text-grey-500">
|
<div class="text-xs uppercase font-light text-grey-500">
|
||||||
@ -131,7 +135,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<a href="/orgs/" class="w-full lg:w-1/4">
|
<a href="/orgs/" class="w-full lg:w-1/4">
|
||||||
<div
|
<div
|
||||||
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890">
|
class="widget w-full p-4 rounded-lg bg-white border border-grey-100 dark:bg-grey-895 dark:border-grey-890 dark:bg-gray-900 dark:text-white">
|
||||||
<div class="flex flex-row items-center justify-between">
|
<div class="flex flex-row items-center justify-between">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="text-xs uppercase font-light text-grey-500">
|
<div class="text-xs uppercase font-light text-grey-500">
|
||||||
@ -141,6 +145,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<svg
|
<svg
|
||||||
height="24"
|
height="24"
|
||||||
|
fill="currentColor"
|
||||||
width="24"
|
width="24"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z" />
|
viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z" />
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="bg-white divide-y divide-gray-200">
|
<tbody class="divide-y divide-gray-200">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-6 py-4 whitespace-nowrap">
|
<td class="px-6 py-4 whitespace-nowrap">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
<span class="mb-1 text-3xl font-extrabold leading-tight text-gray-900">
|
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
||||||
{$_('teams')}
|
{$_('teams')}
|
||||||
</span>
|
</span>
|
||||||
<p class="mb-8 text-lg text-gray-500">everything is more fun together 🏃♂️🏃♀️🏃♂️</p>
|
<p class="mb-8 text-lg text-gray-500">everything is more fun together 🏃♂️🏃♀️🏃♂️</p>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
<span class="mb-1 text-3xl font-extrabold leading-tight text-gray-900">
|
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
||||||
Tracks
|
Tracks
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
class="mb-4 text-3xl font-extrabold leading-tight text-gray-900">{user.firstname}
|
class="mb-4 text-3xl font-extrabold leading-tight">{user.firstname}
|
||||||
{user.middlename || ''}
|
{user.middlename || ''}
|
||||||
{user.lastname}
|
{user.lastname}
|
||||||
<button
|
<button
|
||||||
@ -101,7 +101,7 @@
|
|||||||
placeholder="First name"
|
placeholder="First name"
|
||||||
type="text"
|
type="text"
|
||||||
name="firstname"
|
name="firstname"
|
||||||
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 dark:bg-gray-900 dark:text-gray-100 rounded-md p-2" />
|
||||||
</div>
|
</div>
|
||||||
<div class="text-sm w-full">
|
<div class="text-sm w-full">
|
||||||
<label for="middlename" class="font-medium text-gray-700">Middle name</label>
|
<label for="middlename" class="font-medium text-gray-700">Middle name</label>
|
||||||
@ -110,7 +110,7 @@
|
|||||||
placeholder="Middle name"
|
placeholder="Middle name"
|
||||||
type="text"
|
type="text"
|
||||||
name="middlename"
|
name="middlename"
|
||||||
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 dark:bg-gray-900 dark:text-gray-100 rounded-md p-2" />
|
||||||
</div>
|
</div>
|
||||||
<div class="text-sm w-full">
|
<div class="text-sm w-full">
|
||||||
<label for="lastname" class="font-medium text-gray-700">Last name</label>
|
<label for="lastname" class="font-medium text-gray-700">Last name</label>
|
||||||
@ -119,7 +119,7 @@
|
|||||||
placeholder="Last name"
|
placeholder="Last name"
|
||||||
type="text"
|
type="text"
|
||||||
name="lastname"
|
name="lastname"
|
||||||
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" />
|
class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 dark:bg-gray-900 dark:text-gray-100 rounded-md p-2" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{:catch error}
|
{:catch error}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
<span class="mb-1 text-3xl font-extrabold leading-tight text-gray-900">
|
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
||||||
Users
|
Users
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="bg-white divide-y divide-gray-200">
|
<tbody class="divide-y divide-gray-200">
|
||||||
{#each users as u}
|
{#each users as u}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-6 py-4 whitespace-nowrap">
|
<td class="px-6 py-4 whitespace-nowrap">
|
||||||
@ -78,8 +78,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="ml-4">
|
<div class="ml-4">
|
||||||
<div class="text-sm font-medium text-gray-900">
|
<div
|
||||||
|
class="text-sm font-medium text-gray-900 dark:text-gray-100">
|
||||||
{u.firstname}
|
{u.firstname}
|
||||||
|
{u.middlename || ''}
|
||||||
|
{u.lastname}
|
||||||
</div>
|
</div>
|
||||||
<div class="text-sm text-gray-500">
|
<div class="text-sm text-gray-500">
|
||||||
{u.email || u.username}
|
{u.email || u.username}
|
||||||
@ -88,7 +91,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-nowrap">
|
<td class="px-6 py-4 whitespace-nowrap">
|
||||||
<div class="text-sm text-gray-900">
|
<div class="text-sm text-gray-900 dark:text-gray-100">
|
||||||
Regional Paradigm Technician
|
Regional Paradigm Technician
|
||||||
</div>
|
</div>
|
||||||
<div class="text-sm text-gray-500">Optimization</div>
|
<div class="text-sm text-gray-500">Optimization</div>
|
||||||
@ -104,7 +107,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
||||||
{#each u.groups as g}
|
{#each u.groups as g}
|
||||||
<a href="../groups/{g.id}"
|
<a
|
||||||
|
href="../groups/{g.id}"
|
||||||
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">{g.name}</a>
|
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">{g.name}</a>
|
||||||
{/each}
|
{/each}
|
||||||
</td>
|
</td>
|
||||||
@ -113,65 +117,87 @@
|
|||||||
<a
|
<a
|
||||||
href="./{u.id}"
|
href="./{u.id}"
|
||||||
class="text-indigo-600 hover:text-indigo-900">Edit</a>
|
class="text-indigo-600 hover:text-indigo-900">Edit</a>
|
||||||
<span tabindex="0" href="#" class="ml-4 text-red-600 hover:text-red-900 cursor-pointer">Delete</span>
|
<span
|
||||||
|
tabindex="0"
|
||||||
|
href="#"
|
||||||
|
class="ml-4 text-red-600 hover:text-red-900 cursor-pointer">Delete</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800">
|
<div
|
||||||
<span class="flex items-center col-span-3">
|
class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-900">
|
||||||
Showing 21-30 of 100
|
<span class="flex items-center col-span-3"> Showing 21-30 of 100 </span>
|
||||||
</span>
|
<span class="col-span-2" />
|
||||||
<span class="col-span-2"></span>
|
|
||||||
<!-- Pagination -->
|
<!-- Pagination -->
|
||||||
<span class="flex col-span-4 mt-2 sm:mt-auto sm:justify-end">
|
<span class="flex col-span-4 mt-2 sm:mt-auto sm:justify-end">
|
||||||
<nav aria-label="Table navigation">
|
<nav aria-label="Table navigation">
|
||||||
<ul class="inline-flex items-center">
|
<ul class="inline-flex items-center">
|
||||||
<li>
|
<li>
|
||||||
<button class="px-3 py-1 rounded-md rounded-l-lg focus:outline-none focus:shadow-outline-purple" aria-label="Previous">
|
<button
|
||||||
<svg aria-hidden="true" class="w-4 h-4 fill-current" viewBox="0 0 20 20">
|
class="px-3 py-1 rounded-md rounded-l-lg focus:outline-none focus:shadow-outline-purple"
|
||||||
<path d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" fill-rule="evenodd"></path>
|
aria-label="Previous">
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
class="w-4 h-4 fill-current"
|
||||||
|
viewBox="0 0 20 20">
|
||||||
|
<path
|
||||||
|
d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
fill-rule="evenodd" />
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
<button
|
||||||
|
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
||||||
1
|
1
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
<button
|
||||||
|
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
||||||
2
|
2
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button class="px-3 py-1 text-white transition-colors duration-150 bg-purple-600 border border-r-0 border-purple-600 rounded-md focus:outline-none focus:shadow-outline-purple">
|
<button
|
||||||
|
class="px-3 py-1 text-white transition-colors duration-150 bg-purple-600 border border-r-0 border-purple-600 rounded-md focus:outline-none focus:shadow-outline-purple">
|
||||||
3
|
3
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
<button
|
||||||
|
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
||||||
4
|
4
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
<li><span class="px-3 py-1">...</span></li>
|
||||||
<li>
|
<li>
|
||||||
<span class="px-3 py-1">...</span>
|
<button
|
||||||
</li>
|
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
||||||
<li>
|
|
||||||
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
|
||||||
8
|
8
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
<button
|
||||||
|
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
|
||||||
9
|
9
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button class="px-3 py-1 rounded-md rounded-r-lg focus:outline-none focus:shadow-outline-purple" aria-label="Next">
|
<button
|
||||||
<svg class="w-4 h-4 fill-current" aria-hidden="true" viewBox="0 0 20 20">
|
class="px-3 py-1 rounded-md rounded-r-lg focus:outline-none focus:shadow-outline-purple"
|
||||||
<path d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" fill-rule="evenodd"></path>
|
aria-label="Next">
|
||||||
|
<svg
|
||||||
|
class="w-4 h-4 fill-current"
|
||||||
|
aria-hidden="true"
|
||||||
|
viewBox="0 0 20 20">
|
||||||
|
<path
|
||||||
|
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
fill-rule="evenodd" />
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user