feat: layout url import

feat: backup import (except chords)
feat: legacy layout import
feat: separate layout, chord & setting backup downloads
This commit is contained in:
2023-11-15 01:14:34 +01:00
parent acd58646f6
commit c5d9defc9d
20 changed files with 299 additions and 143 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
import {redirect} from "@sveltejs/kit"
import type {PageLoad} from "./$types"
export const load = (() => {
throw redirect(302, "/config/chords/")
export const load = (({url}) => {
const newUrl = new URL(url)
newUrl.pathname = "/config/layout/"
throw redirect(302, newUrl)
}) satisfies PageLoad