mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03:00
chore: svelte-kit-2 (#6103)
* chore: upgrade svelte * chore: type imports * chore: types
This commit is contained in:
@@ -2,12 +2,12 @@ import { notificationController, NotificationType } from '$lib/components/shared
|
||||
import { downloadManager } from '$lib/stores/download';
|
||||
import {
|
||||
api,
|
||||
BulkIdResponseDto,
|
||||
AssetResponseDto,
|
||||
DownloadResponseDto,
|
||||
DownloadInfoDto,
|
||||
type BulkIdResponseDto,
|
||||
type AssetResponseDto,
|
||||
type DownloadResponseDto,
|
||||
type DownloadInfoDto,
|
||||
AssetTypeEnum,
|
||||
UserResponseDto,
|
||||
type UserResponseDto,
|
||||
} from '@api';
|
||||
import { handleError } from './handle-error';
|
||||
|
||||
|
||||
@@ -24,11 +24,11 @@ export const authenticate = async (options?: AuthOptions) => {
|
||||
const user = savedUser || (await getAuthUser());
|
||||
|
||||
if (!user) {
|
||||
throw redirect(302, AppRoute.AUTH_LOGIN);
|
||||
redirect(302, AppRoute.AUTH_LOGIN);
|
||||
}
|
||||
|
||||
if (options.admin && !user.isAdmin) {
|
||||
throw redirect(302, AppRoute.PHOTOS);
|
||||
redirect(302, AppRoute.PHOTOS);
|
||||
}
|
||||
|
||||
if (!savedUser) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { uploadAssetsStore } from '$lib/stores/upload';
|
||||
import { addAssetsToAlbum } from '$lib/utils/asset-utils';
|
||||
import { api, AssetFileUploadResponseDto } from '@api';
|
||||
import { api, type AssetFileUploadResponseDto } from '@api';
|
||||
import { UploadState } from '$lib/models/upload-asset';
|
||||
import { ExecutorQueue } from '$lib/utils/executor-queue';
|
||||
import { getServerErrorMessage, handleError } from './handle-error';
|
||||
|
||||
Reference in New Issue
Block a user