From 2686fb904c7434d4715d8cbfda3d04b3091f0f91 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Sat, 27 Apr 2024 18:17:37 +0100 Subject: [PATCH] Add phosphor pre-preprocessor, to improve readability of code --- front/src/App.svelte | 6 ++---- front/src/components/DropDown.svelte | 2 +- front/src/components/MenuItem.svelte | 8 ++------ front/src/lib/testData.js | 2 +- front/src/pages/Page404.svelte | 2 +- front/src/pages/PageContact.svelte | 3 ++- front/src/pages/PageIndex.svelte | 3 ++- front/src/pages/PageItem.svelte | 6 ------ front/src/pages/PageMenu.svelte | 3 ++- front/svelte.config.js | 10 +++++++--- front/vite.config.js | 5 ++++- 11 files changed, 24 insertions(+), 26 deletions(-) diff --git a/front/src/App.svelte b/front/src/App.svelte index ef978b5..dd7a050 100644 --- a/front/src/App.svelte +++ b/front/src/App.svelte @@ -2,11 +2,9 @@ import Router from 'svelte-spa-router'; import { replace, link } from 'svelte-spa-router'; import active from 'svelte-spa-router/active' + import { TwitterLogo, FacebookLogo, InstagramLogo, TiktokLogo } from 'phosphor-svelte'; + import routes from '%/routes.js'; - import TwitterLogo from 'phosphor-svelte/lib/TwitterLogo'; - import FacebookLogo from 'phosphor-svelte/lib/FacebookLogo'; - import InstagramLogo from 'phosphor-svelte/lib/InstagramLogo'; - import TiktokLogo from 'phosphor-svelte/lib/TiktokLogo'; import Logo from '/LogoAlt.svg'; const links = { diff --git a/front/src/components/DropDown.svelte b/front/src/components/DropDown.svelte index a4d8a9e..bd390c1 100644 --- a/front/src/components/DropDown.svelte +++ b/front/src/components/DropDown.svelte @@ -1,5 +1,5 @@
diff --git a/front/src/pages/PageContact.svelte b/front/src/pages/PageContact.svelte index 0389d84..f7cc9d9 100644 --- a/front/src/pages/PageContact.svelte +++ b/front/src/pages/PageContact.svelte @@ -1,5 +1,6 @@