From 3d5bdc40809c5290342d7f269cfe845a6f2b3b4b Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sun, 13 Apr 2025 08:32:50 +0100 Subject: discontinue furthsettins --- src/pages/[locale]/furthsettins.astro | 21 ++++++++++++ src/pages/[locale]/furthsettins/index.astro | 40 ---------------------- .../furthsettins/lallans/[issueNumber]/index.astro | 27 --------------- .../payment-success-confirmation.astro | 30 ---------------- .../[locale]/furthsettins/lallans/index.astro | 23 ------------- .../furthsettins/scotsoun/[scotsounId]/index.astro | 28 --------------- .../payment-success-confirmation.astro | 30 ---------------- .../[locale]/furthsettins/scotsoun/index.astro | 23 ------------- src/pages/[locale]/index.astro | 4 --- 9 files changed, 21 insertions(+), 205 deletions(-) create mode 100644 src/pages/[locale]/furthsettins.astro delete mode 100644 src/pages/[locale]/furthsettins/index.astro delete mode 100644 src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro delete mode 100644 src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro delete mode 100644 src/pages/[locale]/furthsettins/lallans/index.astro delete mode 100644 src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro delete mode 100644 src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro delete mode 100644 src/pages/[locale]/furthsettins/scotsoun/index.astro (limited to 'src/pages') diff --git a/src/pages/[locale]/furthsettins.astro b/src/pages/[locale]/furthsettins.astro new file mode 100644 index 0000000..7d31430 --- /dev/null +++ b/src/pages/[locale]/furthsettins.astro @@ -0,0 +1,21 @@ +--- +import translate from '$i18n/translate'; +import tPage from '$i18n/translations/pages/furthsettins'; +import Page from '$layouts/Page.astro'; +import localeStaticPaths from '$lib/localeStaticPaths'; +import type Locale from '$types/Locale'; + +export async function getStaticPaths() { + return localeStaticPaths; +} + +const locale = Astro.params.locale as Locale; +const t = translate(locale); +--- + + +
+

{t(tPage, { key: 'title' })}

+

+

+
diff --git a/src/pages/[locale]/furthsettins/index.astro b/src/pages/[locale]/furthsettins/index.astro deleted file mode 100644 index a053621..0000000 --- a/src/pages/[locale]/furthsettins/index.astro +++ /dev/null @@ -1,40 +0,0 @@ ---- -import { Image } from 'astro:assets'; -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tFurthsettins from '$i18n/translations/pages/furthsettins'; -import tSite from '$i18n/translations/site'; -import type Locale from '$types/Locale'; -import relativePath from '$lib/relativePath'; -import lallansImg from '$images/furthsettins/lallans-192w.jpg'; -import scotsounImg from '$images/furthsettins/scotsoun-192w.jpg'; - -export async function getStaticPaths() { - return localeStaticPaths; -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); ---- - - -
-

{t(tFurthsettins, { key: 'title' })}

- - -
-
diff --git a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro b/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro deleted file mode 100644 index 82fabf0..0000000 --- a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro +++ /dev/null @@ -1,27 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tFurthsettins from '$i18n/translations/pages/furthsettins'; -import type Locale from '$types/Locale'; -import { getLallansIssue } from '$data/lallans'; -import type LallansIssueNumber from '$types/LallansIssueNumber'; -import LallansIssue from '$components/LallansIssue.astro'; - -export async function getStaticPaths() { - const lallansIssueNumbers = Object.keys(getLallansIssue) as `${LallansIssueNumber}`[]; - return lallansIssueNumbers.flatMap((n) => - localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, issueNumber: n } })) - ); -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); -const issueNumber = new Number(Astro.params.issueNumber).valueOf() as LallansIssueNumber; -const issue = await getLallansIssue[issueNumber](); ---- - - - - - diff --git a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro deleted file mode 100644 index f0b9512..0000000 --- a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro +++ /dev/null @@ -1,30 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tPage from '$i18n/translations/pages/lallansIssuePaymentSuccessConfirmation'; -import type Locale from '$types/Locale'; -import { getLallansIssue } from '$data/lallans'; -import type LallansIssueNumber from '$types/LallansIssueNumber'; - -export async function getStaticPaths() { - const lallansIssueNumbers = Object.keys(getLallansIssue) as `${LallansIssueNumber}`[]; - return lallansIssueNumbers.flatMap((n) => - localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, issueNumber: n } })) - ); -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); -const issueNumber = new Number(Astro.params.issueNumber).valueOf() as LallansIssueNumber; ---- - - -
-

{t(tPage, { key: 'title' })}

-

{t(tPage, { key: 'payment-confirmation-message', issueNumber: `${issueNumber}` })}

- - {t(tPage, { key: 'back-button-text', issueNumber: `${issueNumber}` })} - -
-
diff --git a/src/pages/[locale]/furthsettins/lallans/index.astro b/src/pages/[locale]/furthsettins/lallans/index.astro deleted file mode 100644 index a4b6d70..0000000 --- a/src/pages/[locale]/furthsettins/lallans/index.astro +++ /dev/null @@ -1,23 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tPage from '$i18n/translations/pages/lallansGallery'; -import type Locale from '$types/Locale'; -import LallansIssuesGallery from '$components/LallansIssuesGallery.astro'; - -export async function getStaticPaths() { - return localeStaticPaths; -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); ---- - - -
-

{t(tPage, { key: 'title' })}

-

- -

-
diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro deleted file mode 100644 index 4244f70..0000000 --- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro +++ /dev/null @@ -1,28 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import tPage from '$i18n/translations/pages/scotsounRelease'; -import translate from '$i18n/translate'; -import type Locale from '$types/Locale'; -import { getScotsoun } from '$data/scotsoun'; -import type ScotsounId from '$types/ScotsounId'; -import Scotsoun from '$components/Scotsoun.astro'; - -export async function getStaticPaths() { - const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[]; - return scotsounIds.flatMap((n) => - localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, scotsounId: n } })) - ); -} - -const locale = Astro.params.locale as Locale; -const scotsounId = Astro.params.scotsounId as ScotsounId; -const t = translate(locale); - -const scotsoun = await getScotsoun[scotsounId](); ---- - - - - - diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro deleted file mode 100644 index 9e152ee..0000000 --- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro +++ /dev/null @@ -1,30 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tPage from '$i18n/translations/pages/scotsounPaymentSuccessConfirmation'; -import type Locale from '$types/Locale'; -import { getScotsoun } from '$data/scotsoun'; -import type ScotsounId from '$types/ScotsounId'; - -export async function getStaticPaths() { - const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[]; - return scotsounIds.flatMap((n) => - localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, scotsounId: n } })) - ); -} - -const locale = Astro.params.locale as Locale; -const scotsounId = Astro.params.scotsounId as ScotsounId; -const t = translate(locale); ---- - - -
-

{t(tPage, { key: 'title' })}

-

{t(tPage, { key: 'payment-confirmation-message', scotsounId })}

- - {t(tPage, { key: 'back-button-text', scotsounId })} - -
-
diff --git a/src/pages/[locale]/furthsettins/scotsoun/index.astro b/src/pages/[locale]/furthsettins/scotsoun/index.astro deleted file mode 100644 index 26f1f13..0000000 --- a/src/pages/[locale]/furthsettins/scotsoun/index.astro +++ /dev/null @@ -1,23 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tPage from '$i18n/translations/pages/scotsounGallery'; -import type Locale from '$types/Locale'; -import ScotsounCdGallery from '$components/ScotsounCdGallery.astro'; - -export async function getStaticPaths() { - return localeStaticPaths; -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); ---- - - -
-

Scotsoun

-

{t(tPage, { key: 'about-scotsoun' })}

- -
-
diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro index 796bf59..7846fd8 100644 --- a/src/pages/[locale]/index.astro +++ b/src/pages/[locale]/index.astro @@ -4,7 +4,6 @@ import localeStaticPaths from '$lib/localeStaticPaths'; import translate from '$i18n/translate'; import tPage from '$i18n/translations/pages/home'; import type Locale from '$types/Locale'; -import Button from '$components/Button.astro'; import CommitteeList from '$components/CommitteeList/CommitteeList.astro'; export async function getStaticPaths() { @@ -28,8 +27,5 @@ const t = translate(locale);

-

-- cgit v1.2.3