Compare commits

..

No commits in common. "ad4db882f0f4d00a80ae5e0072e09c071c07ffa2" and "3532968b3399b985b1ed28ba6b89a13f35f9289b" have entirely different histories.

4 changed files with 211 additions and 189 deletions

View File

@ -20,6 +20,7 @@
OpenAPI.TOKEN = value.access_token; OpenAPI.TOKEN = value.access_token;
const jwtinfo = JSON.parse(atob(OpenAPI.TOKEN.split(".")[1])); const jwtinfo = JSON.parse(atob(OpenAPI.TOKEN.split(".")[1]));
store.login(value, jwtinfo); store.login(value, jwtinfo);
toast($_("welcome_wavinghand"));
} }
} }
}); });
@ -49,6 +50,7 @@
store.login(result.access_token, jwtinfo); store.login(result.access_token, jwtinfo);
location.replace("/"); location.replace("/");
toast.dismiss(); toast.dismiss();
toast($_("welcome_wavinghand"));
}) })
.catch((err) => { .catch((err) => {
toast.dismiss(); toast.dismiss();

View File

@ -151,6 +151,7 @@
} }
onMount(async () => { onMount(async () => {
toast.loading($_("loading-cards"));
let page = 0; let page = 0;
let pagesize = 500; let pagesize = 500;
while (page >= 0) { while (page >= 0) {
@ -171,6 +172,8 @@
dataLoaded = true; dataLoaded = true;
page++; page++;
} }
toast.dismiss();
toast.success($_("all-cards-loaded"));
}); });
</script> </script>

View File

@ -100,6 +100,7 @@
} }
onMount(async () => { onMount(async () => {
toast.loading($_("loading-donors"));
donors = (await DonorService.donorControllerGetAll()).map( donors = (await DonorService.donorControllerGetAll()).map(
(r) => { (r) => {
return { label: getDonorLabel(r), value: r }; return { label: getDonorLabel(r), value: r };
@ -110,6 +111,8 @@
return { label: getDonorLabel(r), value: r }; return { label: getDonorLabel(r), value: r };
} }
); );
toast.dismiss();
toast.success($_("all-donors-loaded"));
}); });
</script> </script>

View File

@ -31,7 +31,7 @@
}} }}
> >
<div <div
class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 sm:block sm:p-0" class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"
> >
<div class="fixed inset-0 transition-opacity" aria-hidden="true"> <div class="fixed inset-0 transition-opacity" aria-hidden="true">
<div <div
@ -67,7 +67,7 @@
/></svg /></svg
> >
</div> </div>
<div class="mt-3 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"> <h3 class="text-lg leading-6 font-medium">
{$_("read-license")} {$_("read-license")}
</h3> </h3>
@ -96,28 +96,41 @@
</div> </div>
{/if} {/if}
<!-- /// --> <!-- /// -->
<section class="container p-5"> <div class="pt-12 px-4 sm:px-6 lg:px-8 lg:pt-20 bg-gray-900 pb-12">
<h4 class="mb-1 text-3xl font-extrabold leading-tight font-mono"> <div class="text-center mb-8">
<h1
class="mt-9 font-display text-4xl leading-none font-semibold text-white sm:text-5xl lg:text-6xl"
>
{$_("about")} {$_("about")}
</h4> 🧾
<p class="mt-2 mb-2"> </h1>
<p
class="mt-2 max-w-xl mx-auto text-xl lg:max-w-3xl lg:text-2xl text-gray-300"
>
Lauf für Kaya! Lauf für Kaya!
<strong class="font-medium"> <strong class="text-white font-medium">
{$_("by")} {$_("by")}
<a href="https://odit.services" class="underline">ODIT.Services</a> <a href="https://odit.services" class="underline">ODIT.Services</a>
</strong> </strong>
<br /> <br />
<span>{$_("lfk-is-os")}</span> <span class="text-lg">{$_("lfk-is-os")}</span>
</p> </p>
<h4 class="mb-1 text-3xl font-extrabold leading-tight font-mono"> </div>
</div>
<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">
<h2 class="text-4xl font-display font-semibold md:text-5xl">
{$_("credits")} {$_("credits")}
</h4> </h2>
<p class="text-left">{$_("oss_credit_description")}</p> <div class="max-w-3xl mx-auto text-xl leading-8 font-medium mt-8">
<div class="mt-5 overflow-x-auto"> <p class="text-center">{$_("oss_credit_description")}</p>
</div>
<div class="w-screen leading-8 pl-5 mt-5">
{#await license_promise} {#await license_promise}
<p>{$_("licenses-are-being-loaded")}</p> <p class="text-center w-full">{$_("licenses-are-being-loaded")}</p>
{:then} {:then}
<table class="font-mono"> <table>
<thead class="border-b border-gray-400"> <thead class="border-b border-gray-400">
<tr class="odd:bg-white even:bg-gray-100"> <tr class="odd:bg-white even:bg-gray-100">
<th>{$_("dependency_name")}</th> <th>{$_("dependency_name")}</th>
@ -129,17 +142,17 @@
</thead> </thead>
<tbody> <tbody>
{#each licenses as l} {#each licenses as l}
<tr class="odd:bg-white even:bg-gray-100 *:p-2"> <tr class="odd:bg-white even:bg-gray-100">
<td>{l.name}</td> <td>{l.name}</td>
<td> <td>
<button {l.license || "?"}<br /><button
class="underline cursor-pointer" class="underline cursor-pointer"
on:click={() => { on:click={() => {
modal_open = true; modal_open = true;
currentlicense = l.name + "@" + l.version; currentlicense = l.name + "@" + l.version;
licensetext = licensetext =
l.licensetext || $_("no-license-text-could-be-found"); l.licensetext || $_("no-license-text-could-be-found");
}}>{l.license || "?"}</button }}>{$_("read-license")}</button
> >
</td> </td>
<td> <td>
@ -164,9 +177,9 @@
</div> </div>
{/await} {/await}
</div> </div>
<div class="w-full mt-8"> <div class="w-full leading-8 mt-8">
<p class="font-medium">{$_("icon-image-credits")}</p> <p class="text-xl font-medium">{$_("icon-image-credits")}</p>
<ul class="list-disc ml-6"> <ul class="list-disc">
<li> <li>
<a <a
class="underline" class="underline"
@ -193,4 +206,5 @@
</li> </li>
</ul> </ul>
</div> </div>
</section> </div>
</div>