qa: Make some crappy hacks to let sveltekit work with baseurl
This commit is contained in:
parent
0e19b59452
commit
5560a526b1
6 changed files with 39 additions and 20 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
export const ssr = false;
|
||||
export const prerender = true;
|
||||
|
|
|
|||
Reference in a new issue