From 7e6a09563a18b6d0c96e551e8b3a74afb0fc4422 Mon Sep 17 00:00:00 2001 From: bytedream Date: Tue, 20 May 2025 20:34:50 +0200 Subject: [PATCH] move components --- src/{components/website => app}/layout/Menu.svelte | 0 .../website/index/Countdown.svelte | 0 src/{components => app}/website/index/Scroll.svelte | 0 src/app/{webite => website}/index/Teams.svelte | 6 ++++-- .../website/signup/RegisteredPopup.svelte | 2 +- .../website/signup/RegisteredPopup.ts | 0 .../website/signup/RulesPopup.svelte | 0 .../website/signup/RulesPopup.ts | 0 .../website/signup/TeamPopup.svelte | 2 +- src/{components => app}/website/signup/TeamPopup.ts | 0 src/components/website/Team.svelte | 13 ------------- src/layouts/website/WebsiteLayout.astro | 2 +- src/pages/index.astro | 6 +++--- src/pages/signup.astro | 12 ++++++------ 14 files changed, 16 insertions(+), 27 deletions(-) rename src/{components/website => app}/layout/Menu.svelte (100%) rename src/{components => app}/website/index/Countdown.svelte (100%) rename src/{components => app}/website/index/Scroll.svelte (100%) rename src/app/{webite => website}/index/Teams.svelte (89%) rename src/{components => app}/website/signup/RegisteredPopup.svelte (97%) rename src/{components => app}/website/signup/RegisteredPopup.ts (100%) rename src/{components => app}/website/signup/RulesPopup.svelte (100%) rename src/{components => app}/website/signup/RulesPopup.ts (100%) rename src/{components => app}/website/signup/TeamPopup.svelte (92%) rename src/{components => app}/website/signup/TeamPopup.ts (100%) delete mode 100644 src/components/website/Team.svelte diff --git a/src/components/website/layout/Menu.svelte b/src/app/layout/Menu.svelte similarity index 100% rename from src/components/website/layout/Menu.svelte rename to src/app/layout/Menu.svelte diff --git a/src/components/website/index/Countdown.svelte b/src/app/website/index/Countdown.svelte similarity index 100% rename from src/components/website/index/Countdown.svelte rename to src/app/website/index/Countdown.svelte diff --git a/src/components/website/index/Scroll.svelte b/src/app/website/index/Scroll.svelte similarity index 100% rename from src/components/website/index/Scroll.svelte rename to src/app/website/index/Scroll.svelte diff --git a/src/app/webite/index/Teams.svelte b/src/app/website/index/Teams.svelte similarity index 89% rename from src/app/webite/index/Teams.svelte rename to src/app/website/index/Teams.svelte index 01a6ca5..5256610 100644 --- a/src/app/webite/index/Teams.svelte +++ b/src/app/website/index/Teams.svelte @@ -1,6 +1,5 @@ - -
-
-

{name}

-
diff --git a/src/layouts/website/WebsiteLayout.astro b/src/layouts/website/WebsiteLayout.astro index 872c123..b487945 100644 --- a/src/layouts/website/WebsiteLayout.astro +++ b/src/layouts/website/WebsiteLayout.astro @@ -2,7 +2,7 @@ import '@assets/website_layout.css'; import BaseLayout from '../BaseLayout.astro'; import { Icon } from 'astro-icon/components'; -import Menu from '@components/website/layout/Menu.svelte'; +import Menu from '@app/layout/Menu.svelte'; interface Props { title: string; diff --git a/src/pages/index.astro b/src/pages/index.astro index 6addb7e..e88cd2f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,8 +1,8 @@ --- import WebsiteLayout from '@layouts/website/WebsiteLayout.astro'; -import Scroll from '@components/website/index/Scroll.svelte'; -import Teams from '@app/webite/index/Teams.svelte'; -import Countdown from '@components/website/index/Countdown.svelte'; +import Scroll from '@app/website/index/Scroll.svelte'; +import Teams from '@app/website/index/Teams.svelte'; +import Countdown from '@app/website/index/Countdown.svelte'; import Varo from '@assets/img/varo.webp'; import Background from '@assets/img/background.webp'; import { START_DATE } from 'astro:env/server'; diff --git a/src/pages/signup.astro b/src/pages/signup.astro index 6e7c87c..2bf4691 100644 --- a/src/pages/signup.astro +++ b/src/pages/signup.astro @@ -2,10 +2,10 @@ import WebsiteLayout from '@layouts/website/WebsiteLayout.astro'; import Checkbox from '@components/input/Checkbox.svelte'; import Input from '@components/input/Input.svelte'; -import RulesPopup from '@components/website/signup/RulesPopup.svelte'; +import RulesPopup from '@app/website/signup/RulesPopup.svelte'; import Popup from '@components/popup/Popup.svelte'; -import TeamPopup from '@components/website/signup/TeamPopup.svelte'; -import RegisteredPopup from '@components/website/signup/RegisteredPopup.svelte'; +import TeamPopup from '@app/website/signup/TeamPopup.svelte'; +import RegisteredPopup from '@app/website/signup/RegisteredPopup.svelte'; import { getSettings, SettingKey } from '@util/settings'; import { db } from '@db/database.ts'; import { DISCORD_LINK, PAYPAL_LINK, START_DATE, TEAMSPEAK_LINK } from 'astro:env/server'; @@ -151,9 +151,9 @@ const signupDisabledSubMessage = signupSetting[SettingKey.SignupDisabledSubMessa