chore: svelte-kit-2 (#6103)

* chore: upgrade svelte

* chore: type imports

* chore: types
This commit is contained in:
Jason Rasmussen
2024-01-20 13:47:41 -05:00
committed by GitHub
parent 4ebb9974ff
commit 6e066aa220
108 changed files with 376 additions and 1323 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import { getSavedUser } from '$lib/stores/user.store';
export const load = (async () => {
await authenticate();
if (!getSavedUser().shouldChangePassword) {
throw redirect(302, AppRoute.PHOTOS);
redirect(302, AppRoute.PHOTOS);
}
return {
+1 -1
View File
@@ -7,7 +7,7 @@ export const load = (async () => {
const { data } = await api.serverInfoApi.getServerConfig();
if (!data.isInitialized) {
// Admin not registered
throw redirect(302, AppRoute.AUTH_REGISTER);
redirect(302, AppRoute.AUTH_REGISTER);
}
return {
+1 -1
View File
@@ -7,7 +7,7 @@ export const load = (async () => {
const { data } = await api.serverInfoApi.getServerConfig();
if (data.isInitialized) {
// Admin has been registered, redirect to login
throw redirect(302, AppRoute.AUTH_LOGIN);
redirect(302, AppRoute.AUTH_LOGIN);
}
return {