Skip to content

Commit

Permalink
chore(web): auto sort imports (#7118)
Browse files Browse the repository at this point in the history
chore(web): auto sort impomrts
  • Loading branch information
jrasm91 authored Feb 14, 2024
1 parent 2906950 commit 747df0a
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 9 deletions.
3 changes: 2 additions & 1 deletion web/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"trailingComma": "all",
"printWidth": 120,
"semi": true,
"plugins": ["prettier-plugin-svelte"],
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-svelte"],
"organizeImportsSkipDestructiveCodeActions": true,
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
21 changes: 21 additions & 0 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"identity-obj-proxy": "^3.0.0",
"postcss": "^8.4.21",
"prettier": "^3.1.0",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-svelte": "^3.1.2",
"rollup-plugin-visualizer": "^5.12.0",
"svelte": "^4.0.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/(user)/search/+page.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
4 changes: 2 additions & 2 deletions web/src/routes/auth/change-password/+page.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
4 changes: 2 additions & 2 deletions web/src/routes/auth/onboarding/+page.ts
Original file line number Diff line number Diff line change
@@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion web/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { sveltekit } from '@sveltejs/kit/vite';
import path from 'node:path';
import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'vite';
import path from 'node:path';

const upstream = {
target: process.env.IMMICH_SERVER_URL || 'http://immich-server:3001/',
Expand Down

0 comments on commit 747df0a

Please sign in to comment.