mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-07-26 22:44:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user