mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 17:24:56 +03:00
@@ -1,7 +1,7 @@
|
||||
import '@testing-library/jest-dom';
|
||||
import { render, type RenderResult, waitFor } from '@testing-library/svelte';
|
||||
import { render, waitFor, type RenderResult } from '@testing-library/svelte';
|
||||
import { get } from 'svelte/store';
|
||||
import { notificationController, NotificationType } from '../notification';
|
||||
import { NotificationType, notificationController } from '../notification';
|
||||
import NotificationList from '../notification-list.svelte';
|
||||
|
||||
function _getNotificationListElement(sut: RenderResult<NotificationList>): HTMLAnchorElement | null {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { QueryParameter } from '$lib/constants';
|
||||
import { authenticate } from '$lib/utils/auth';
|
||||
import { search, type AssetResponseDto, type SearchResponseDto } from '@immich/sdk';
|
||||
import type { PageLoad } from './$types';
|
||||
import { QueryParameter } from '$lib/constants';
|
||||
|
||||
export const load = (async (data) => {
|
||||
await authenticate();
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { AppRoute } from '$lib/constants';
|
||||
import { user } from '$lib/stores/user.store';
|
||||
import { authenticate } from '$lib/utils/auth';
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
import type { PageLoad } from './$types';
|
||||
import { get } from 'svelte/store';
|
||||
import { user } from '$lib/stores/user.store';
|
||||
import type { PageLoad } from './$types';
|
||||
|
||||
export const load = (async () => {
|
||||
await authenticate();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { PageLoad } from './$types';
|
||||
import { authenticate } from '$lib/utils/auth';
|
||||
import { loadConfig } from '$lib/stores/server-config.store';
|
||||
import { authenticate } from '$lib/utils/auth';
|
||||
import type { PageLoad } from './$types';
|
||||
|
||||
export const load = (async () => {
|
||||
await authenticate({ admin: true });
|
||||
|
||||
Reference in New Issue
Block a user