mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 08:52:59 +00:00
switch deploy method
This commit is contained in:
6
src/routes/+error.svelte
Normal file
6
src/routes/+error.svelte
Normal file
@@ -0,0 +1,6 @@
|
||||
<script>
|
||||
import {page} from "$app/stores"
|
||||
</script>
|
||||
|
||||
<h1>{$page.status}</h1>
|
||||
<pre>{$page.error.message}</pre>
|
||||
@@ -1,2 +1,3 @@
|
||||
export const prerender = true
|
||||
export const trailingSlash = "always"
|
||||
|
||||
export const trailingSlash = "never"
|
||||
|
||||
@@ -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/`)
|
||||
throw redirect(300, "/config")
|
||||
}
|
||||
|
||||
@@ -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