mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 17:03:42 +00:00
switch deploy method
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
<script>
|
||||
import {base} from "$app/paths"
|
||||
import {page} from "$app/stores"
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
<a href="{base}/config/chords/" class:active={$page.url.pathname.endsWith("chords/")}>
|
||||
<a href="/config/chords" class:active={$page.url.pathname.endsWith("chords/")}>
|
||||
<span class="icon">piano</span>Chords
|
||||
</a>
|
||||
<a href="{base}/config/layout/" class:active={$page.url.pathname.endsWith("layout/")}>
|
||||
<a href="/config/layout" class:active={$page.url.pathname.endsWith("layout/")}>
|
||||
<span class="icon">keyboard</span>
|
||||
Layout
|
||||
</a>
|
||||
<a href="{base}/config/settings/" class:active={$page.url.pathname.endsWith("settings/")}>
|
||||
<a href="/config/settings" class:active={$page.url.pathname.endsWith("settings/")}>
|
||||
<span class="icon">settings</span>
|
||||
Settings
|
||||
</a>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import {redirect} from "@sveltejs/kit"
|
||||
import {base} from "$app/paths"
|
||||
|
||||
/** @type {import("./$types").PageLoad} */
|
||||
export function load() {
|
||||
throw redirect(307, `${base}/config/chords/`)
|
||||
throw redirect(300, "/config/chords")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user