chore(web): sort imports (#27922)

* feat: sort imports

* fix: something?
This commit is contained in:
Jason Rasmussen
2026-04-21 14:51:38 -04:00
committed by GitHub
parent bb0872afef
commit a16d233a0c
178 changed files with 2802 additions and 2821 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { getAllAlbums } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAllAlbums } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,5 +1,5 @@
import { authenticate } from '$lib/utils/auth';
import { getAlbumInfo } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import type { PageLoad } from './$types';
export const load = (async ({ params, url, depends }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { getAllPeople, getExploreData } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAllPeople, getExploreData } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,8 +1,8 @@
import { getAuthStatus } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import { Route } from '$lib/route';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAuthStatus } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,6 +1,6 @@
import { getUser } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getUser } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ params, url }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { getAllPeople } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAllPeople } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,8 +1,8 @@
import { getIntersectionObserverMock } from '$lib/__mocks__/intersection-observer.mock';
import { personFactory } from '@test-data/factories/person-factory';
import { render } from '@testing-library/svelte';
import userEvent from '@testing-library/user-event';
import { vi } from 'vitest';
import { getIntersectionObserverMock } from '$lib/__mocks__/intersection-observer.mock';
import { personFactory } from '@test-data/factories/person-factory';
import ManagePeopleVisibilityWrapper from './ManagePeopleVisibility.test-wrapper.svelte';
describe('ManagePeopleVisibility component', () => {
@@ -1,6 +1,6 @@
import { getPerson, getPersonStatistics } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getPerson, getPersonStatistics } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ params, url }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { getAssetsByCity } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAssetsByCity } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,8 +1,8 @@
import { render, screen } from '@testing-library/svelte';
import { getAssetMediaUrl } from '$lib/utils';
import { albumFactory } from '@test-data/factories/album-factory';
import { assetFactory } from '@test-data/factories/asset-factory';
import { sharedLinkFactory } from '@test-data/factories/shared-link-factory';
import { render, screen } from '@testing-library/svelte';
import ShareCover from './ShareCover.svelte';
vi.mock('$lib/utils');
@@ -1,9 +1,9 @@
import { getAllSharedLinks } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import { UUID_REGEX } from '$lib/constants';
import { Route } from '$lib/route';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAllSharedLinks } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import type { LayoutLoad } from './$types';
export const load = (async ({ params, url }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { PartnerDirection, getAllAlbums, getPartners } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { PartnerDirection, getAllAlbums, getPartners } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,5 +1,5 @@
import { Route } from '$lib/route';
import { redirect } from '@sveltejs/kit';
import { Route } from '$lib/route';
import type { PageLoad } from './$types';
export const load = (() => redirect(307, Route.sharedLinks())) satisfies PageLoad;
@@ -1,7 +1,7 @@
import { getAllTags } from '@immich/sdk';
import { QueryParameter } from '$lib/constants';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAllTags } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { getApiKeys, getSessions } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getApiKeys, getSessions } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,6 +1,6 @@
import { getAssetDuplicates } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAssetDuplicates } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,5 +1,5 @@
import { Route } from '$lib/route';
import { redirect } from '@sveltejs/kit';
import { Route } from '$lib/route';
import type { PageLoad } from './$types';
export const load = (({ params }) => redirect(307, Route.viewAsset({ id: params.photoId }))) satisfies PageLoad;
@@ -1,6 +1,6 @@
import { searchLargeAssets } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { searchLargeAssets } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,7 +1,7 @@
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getPlugins, getWorkflows } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,6 +1,6 @@
import { getPlugins, getPluginTriggers, getWorkflow } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getPlugins, getPluginTriggers, getWorkflow } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url, params }) => {
+1 -1
View File
@@ -1,8 +1,8 @@
import { commandPaletteManager } from '@immich/ui';
import { goto } from '$app/navigation';
import { serverConfigManager } from '$lib/managers/server-config-manager.svelte';
import { maintenanceCreateUrl, maintenanceReturnUrl, maintenanceShouldRedirect } from '$lib/utils/maintenance';
import { init } from '$lib/utils/server';
import { commandPaletteManager } from '@immich/ui';
import type { LayoutLoad } from './$types';
export const ssr = false;
+1 -1
View File
@@ -1,9 +1,9 @@
import { redirect } from '@sveltejs/kit';
import { authManager } from '$lib/managers/auth-manager.svelte';
import { serverConfigManager } from '$lib/managers/server-config-manager.svelte';
import { Route } from '$lib/route';
import { getFormatter } from '$lib/utils/i18n';
import { init } from '$lib/utils/server';
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const ssr = false;
+1 -1
View File
@@ -1,5 +1,5 @@
import { Route } from '$lib/route';
import { redirect } from '@sveltejs/kit';
import { Route } from '$lib/route';
import type { PageLoad } from './$types';
export const load = (() => redirect(307, Route.systemSettings())) satisfies PageLoad;
+1 -1
View File
@@ -1,5 +1,5 @@
import { Route } from '$lib/route';
import { redirect } from '@sveltejs/kit';
import { Route } from '$lib/route';
import type { PageLoad } from './$types';
export const load = (() => redirect(307, Route.queues())) satisfies PageLoad;
@@ -1,6 +1,6 @@
import { getAllLibraries, getLibraryStatistics, getUserAdmin, searchUsersAdmin } from '@immich/sdk';
import { authenticate, requestServerInfo } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAllLibraries, getLibraryStatistics, getUserAdmin, searchUsersAdmin } from '@immich/sdk';
import type { LayoutLoad } from './$types';
export const load = (async ({ url, depends }) => {
@@ -1,8 +1,8 @@
import { getLibrary, getLibraryStatistics, type LibraryResponseDto } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import { Route } from '$lib/route';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getLibrary, getLibraryStatistics, type LibraryResponseDto } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import type { LayoutLoad } from './$types';
export const load = (async ({ params: { id }, url, depends }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { getServerVersion, listDatabaseBackups } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getServerVersion, listDatabaseBackups } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { getQueues } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getQueues } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
+2 -2
View File
@@ -1,8 +1,8 @@
import { getQueue, getQueueJobs, QueueJobStatus } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import { fromQueueSlug, Route } from '$lib/route';
import { authenticate, requestServerInfo } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getQueue, getQueueJobs, QueueJobStatus } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load = (async ({ params, url }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { getServerStatistics, searchUsersAdmin } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getServerStatistics, searchUsersAdmin } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,6 +1,6 @@
import { getConfig, getConfigDefaults } from '@immich/sdk';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getConfig, getConfigDefaults } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
@@ -1,5 +1,5 @@
import { Route } from '$lib/route';
import { redirect } from '@sveltejs/kit';
import { Route } from '$lib/route';
import type { PageLoad } from './$types';
export const load = (() => redirect(307, Route.users())) satisfies PageLoad;
+1 -1
View File
@@ -1,6 +1,6 @@
import { searchUsersAdmin } from '@immich/sdk';
import { authenticate, requestServerInfo } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { searchUsersAdmin } from '@immich/sdk';
import type { LayoutLoad } from './$types';
export const load = (async ({ url }) => {
+2 -2
View File
@@ -1,9 +1,9 @@
import { getUserPreferencesAdmin, getUserSessionsAdmin, getUserStatisticsAdmin, searchUsersAdmin } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import { UUID_REGEX } from '$lib/constants';
import { Route } from '$lib/route';
import { authenticate, requestServerInfo } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getUserPreferencesAdmin, getUserSessionsAdmin, getUserStatisticsAdmin, searchUsersAdmin } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import type { LayoutLoad } from './$types';
export const load = (async ({ params, url }) => {
+1 -1
View File
@@ -1,8 +1,8 @@
import { redirect } from '@sveltejs/kit';
import { authManager } from '$lib/managers/auth-manager.svelte';
import { Route } from '$lib/route';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
+1 -1
View File
@@ -1,8 +1,8 @@
import { redirect } from '@sveltejs/kit';
import { authManager } from '$lib/managers/auth-manager.svelte';
import { serverConfigManager } from '$lib/managers/server-config-manager.svelte';
import { Route } from '$lib/route';
import { getFormatter } from '$lib/utils/i18n';
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load = (async ({ parent, url }) => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { getAuthStatus } from '@immich/sdk';
import { Route } from '$lib/route';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { getAuthStatus } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { redirect } from '@sveltejs/kit';
import { serverConfigManager } from '$lib/managers/server-config-manager.svelte';
import { Route } from '$lib/route';
import { getFormatter } from '$lib/utils/i18n';
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load = (async ({ parent }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import { redirect } from '@sveltejs/kit';
import { OpenQueryParam } from '$lib/constants';
import { Route } from '$lib/route';
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
enum LinkTarget {
+1 -1
View File
@@ -1,5 +1,5 @@
import { loadMaintenanceAuth, loadMaintenanceStatus } from '$lib/utils/maintenance';
import { getServerVersion } from '@immich/sdk';
import { loadMaintenanceAuth, loadMaintenanceStatus } from '$lib/utils/maintenance';
import type { PageLoad } from '../admin/$types';
export const load = (async () => {