From a226f0635f3acf19d06d9897593c9b63aa84b0b2 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 24 Jun 2024 20:23:55 +0600 Subject: [PATCH] web: use an alias for components folder --- web/src/components/misc/Placeholder.svelte | 2 +- web/src/components/save/Omnibox.svelte | 10 +++++----- web/src/components/sidebar/Sidebar.svelte | 20 +++++++++---------- web/src/routes/+layout.svelte | 2 +- web/src/routes/+page.svelte | 4 ++-- web/src/routes/about/+page.svelte | 2 +- web/src/routes/convert/+page.svelte | 2 +- web/src/routes/crop/+page.svelte | 2 +- web/src/routes/donate/+page.svelte | 2 +- web/src/routes/settings/+layout.svelte | 4 ++-- web/src/routes/trim/+page.svelte | 2 +- web/src/routes/updates/+page.svelte | 2 +- web/svelte.config.js | 23 ++++++++++++---------- 13 files changed, 40 insertions(+), 37 deletions(-) diff --git a/web/src/components/misc/Placeholder.svelte b/web/src/components/misc/Placeholder.svelte index 5236a94f..c38e9836 100644 --- a/web/src/components/misc/Placeholder.svelte +++ b/web/src/components/misc/Placeholder.svelte @@ -1,5 +1,5 @@ diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index a8ce013e..178af9dc 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -1,18 +1,18 @@
diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index 15fa7416..df78a944 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -1,6 +1,6 @@
diff --git a/web/src/routes/about/+page.svelte b/web/src/routes/about/+page.svelte index 3d6419ed..89a7710a 100644 --- a/web/src/routes/about/+page.svelte +++ b/web/src/routes/about/+page.svelte @@ -1,5 +1,5 @@ diff --git a/web/src/routes/convert/+page.svelte b/web/src/routes/convert/+page.svelte index ec28b52a..a26a5d64 100644 --- a/web/src/routes/convert/+page.svelte +++ b/web/src/routes/convert/+page.svelte @@ -1,5 +1,5 @@ diff --git a/web/src/routes/crop/+page.svelte b/web/src/routes/crop/+page.svelte index c4f6b972..1e39a5b6 100644 --- a/web/src/routes/crop/+page.svelte +++ b/web/src/routes/crop/+page.svelte @@ -1,5 +1,5 @@ diff --git a/web/src/routes/donate/+page.svelte b/web/src/routes/donate/+page.svelte index d9049ac4..1ce2815e 100644 --- a/web/src/routes/donate/+page.svelte +++ b/web/src/routes/donate/+page.svelte @@ -1,5 +1,5 @@ diff --git a/web/src/routes/settings/+layout.svelte b/web/src/routes/settings/+layout.svelte index 2bcc07a2..acfdfb86 100644 --- a/web/src/routes/settings/+layout.svelte +++ b/web/src/routes/settings/+layout.svelte @@ -1,6 +1,6 @@ diff --git a/web/src/routes/updates/+page.svelte b/web/src/routes/updates/+page.svelte index c15ed3c3..8140bcd2 100644 --- a/web/src/routes/updates/+page.svelte +++ b/web/src/routes/updates/+page.svelte @@ -1,5 +1,5 @@ diff --git a/web/svelte.config.js b/web/svelte.config.js index dd053dbc..df7b5fb4 100644 --- a/web/svelte.config.js +++ b/web/svelte.config.js @@ -8,16 +8,19 @@ const config = { preprocess: vitePreprocess(), kit: { - adapter: adapter({ - // default options are shown. On some platforms - // these options are set automatically — see below - pages: 'build', - assets: 'build', - fallback: undefined, - precompress: false, - strict: true - }) - } + adapter: adapter({ + // default options are shown. On some platforms + // these options are set automatically — see below + pages: 'build', + assets: 'build', + fallback: undefined, + precompress: false, + strict: true + }), + alias: { + $components: 'src/components' + } + } }; export default config;