This commit is contained in:
parent
e62277bdd2
commit
5b15141ecc
@ -2,11 +2,11 @@
|
|||||||
// import TailwindStyles from "./TailwindStyles.svelte";
|
// import TailwindStyles from "./TailwindStyles.svelte";
|
||||||
import { Route, router } from "tinro";
|
import { Route, router } from "tinro";
|
||||||
router.subscribe((routeInfo) => {
|
router.subscribe((routeInfo) => {
|
||||||
console.log(routeInfo.path);
|
// console.log(routeInfo.path);
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
});
|
});
|
||||||
console.log($router.path);
|
// console.log($router.path);
|
||||||
console.log(config);
|
// console.log(config);
|
||||||
if (config.prefersHashRouting) {
|
if (config.prefersHashRouting) {
|
||||||
if (config.prefersHashRouting === true) {
|
if (config.prefersHashRouting === true) {
|
||||||
router.useHashNavigation();
|
router.useHashNavigation();
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
// the name to use for the internal file input
|
// the name to use for the internal file input
|
||||||
let name = "filepond";
|
let name = "filepond";
|
||||||
function handleInit() {
|
function handleInit() {
|
||||||
console.log("FilePond has initialised");
|
// console.log("FilePond has initialised");
|
||||||
}
|
}
|
||||||
function handleAddFile(err, fileItem) {
|
function handleAddFile(err, fileItem) {
|
||||||
console.log("A file has been added", fileItem);
|
// console.log("A file has been added", fileItem);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -2,19 +2,16 @@
|
|||||||
import { StatsService } from "@odit/lfk-client-js";
|
import { StatsService } from "@odit/lfk-client-js";
|
||||||
import { _ } from "svelte-i18n";
|
import { _ } from "svelte-i18n";
|
||||||
const stats_promise = StatsService.statsControllerGet();
|
const stats_promise = StatsService.statsControllerGet();
|
||||||
stats_promise.then((res) => {
|
|
||||||
console.log(res);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<h1>Allgemeine Statistiken</h1>
|
<h1>{$_('general-stats')}</h1>
|
||||||
{#await stats_promise}
|
{#await stats_promise}
|
||||||
<div
|
<div
|
||||||
class="bg-teal-lightest border-t-4 border-teal rounded-b text-teal-darkest px-4 py-3 shadow-md my-2"
|
class="bg-teal-lightest border-t-4 border-teal rounded-b text-teal-darkest px-4 py-3 shadow-md my-2"
|
||||||
role="alert">
|
role="alert">
|
||||||
<p class="font-bold">stats are being loaded...</p>
|
<p class="font-bold">{$_('stats-are-being-loaded')}</p>
|
||||||
<p class="text-sm">This might take a moment 👀</p>
|
<p class="text-sm">{$_('this-might-take-a-moment')}</p>
|
||||||
</div>
|
</div>
|
||||||
{:then stats}
|
{:then stats}
|
||||||
<div
|
<div
|
||||||
|
@ -42,5 +42,6 @@
|
|||||||
"credits": "",
|
"credits": "",
|
||||||
"runners": "Läufer",
|
"runners": "Läufer",
|
||||||
"total-distance": "gelaufene Strecke",
|
"total-distance": "gelaufene Strecke",
|
||||||
"dashboard-greeting": "Willkommen"
|
"dashboard-greeting": "Willkommen",
|
||||||
|
"general-stats": "Allgemeine Statistiken"
|
||||||
}
|
}
|
||||||
|
@ -67,5 +67,8 @@
|
|||||||
"orgs": "Orgs",
|
"orgs": "Orgs",
|
||||||
"users": "Users",
|
"users": "Users",
|
||||||
"teams": "Teams",
|
"teams": "Teams",
|
||||||
"faq": "FAQ"
|
"faq": "FAQ",
|
||||||
|
"this-might-take-a-moment": "This might take a moment 👀",
|
||||||
|
"stats-are-being-loaded": "stats are being loaded...",
|
||||||
|
"general-stats": "General Stats"
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ const store = () => {
|
|||||||
state.access_token = access_token;
|
state.access_token = access_token;
|
||||||
state.jwtinfo = jwtinfo;
|
state.jwtinfo = jwtinfo;
|
||||||
state.isLoggedIn = true;
|
state.isLoggedIn = true;
|
||||||
console.log('login performed');
|
// console.log('login performed');
|
||||||
return state;
|
return state;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user