qa: Make some crappy hacks to let sveltekit work with baseurl

This commit is contained in:
nemunaire 2022-11-07 04:57:00 +01:00
commit 5560a526b1
6 changed files with 39 additions and 20 deletions

View file

@ -26,9 +26,11 @@
export let activemenu = "";
$: {
const path = $page.url.pathname.split("/");
const path = $page.url.href.substr(document.baseURI.length-1).split("/");
if (path.length > 1) {
activemenu = path[1];
} else {
activemenu = "";
}
}
</script>

View file

@ -2,7 +2,6 @@
import { goto } from '$app/navigation';
import {
Icon,
Spinner,
} from 'sveltestrap';
@ -77,9 +76,6 @@
<Spinner size="sm" />
{:else if $exercicesIdx[todo.id_exercice]}
{$exercicesIdx[todo.id_exercice].title}
{#if $exercicesIdx[todo.id_exercice].wip}
<Icon name="cone-striped" />
{/if}
{/if}
</td>
<td>

View file

@ -2,7 +2,6 @@
import { goto } from '$app/navigation';
import {
Icon,
Spinner,
} from 'sveltestrap';
@ -84,9 +83,6 @@
<Spinner size="sm" />
{:else}
{$exercicesIdx[todo.id_exercice].title}
{#if $exercicesIdx[todo.id_exercice].wip}
<Icon name="cone-striped" />
{/if}
{/if}
</td>
</tr>

View file

@ -1,2 +1 @@
export const ssr = false;
export const prerender = true;