From 8c1fff45fb5340a338416586162ac247b2b190c0 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sun, 13 Aug 2023 19:03:03 +0100 Subject: Uses TSConfig paths --- src/components/Breadcrumbs.astro | 10 +++++----- src/components/LallansIssue.astro | 14 ++++++++------ src/components/LallansIssueContributions.astro | 8 ++++---- src/components/LallansIssueContributors.astro | 8 +++----- src/components/LallansIssuesGallery.astro | 2 +- src/components/Navbar.astro | 6 +++--- src/components/PayPalButtons.astro | 2 +- src/components/SwitchLanguageLink.astro | 8 ++++---- 8 files changed, 29 insertions(+), 29 deletions(-) (limited to 'src/components') diff --git a/src/components/Breadcrumbs.astro b/src/components/Breadcrumbs.astro index 5ebe759..66f2a66 100644 --- a/src/components/Breadcrumbs.astro +++ b/src/components/Breadcrumbs.astro @@ -1,9 +1,9 @@ --- -import findAllIndicesOf from '../lib/findAllIndicesOf'; -import translate from '../i18n/translate'; -import tBreadcrumbs from '../i18n/translations/components/breadcrumbs'; -import type Locale from '../types/Locale'; -import locales from '../i18n/locales'; +import findAllIndicesOf from '$lib/findAllIndicesOf'; +import translate from '$i18n/translate'; +import tBreadcrumbs from '$i18n/translations/components/breadcrumbs'; +import type Locale from '$types/Locale'; +import locales from '$i18n/locales'; const path = Astro.url.pathname.replace(/(? -
+

{t(tSite, { key: 'lallans' })} {issue.issueNumber}

{issue.description[locale]}

-
+
+ +
{ 'contributions' in issue ? ( diff --git a/src/components/LallansIssueContributions.astro b/src/components/LallansIssueContributions.astro index cfd3392..425f66a 100644 --- a/src/components/LallansIssueContributions.astro +++ b/src/components/LallansIssueContributions.astro @@ -1,8 +1,8 @@ --- -import translate from '../i18n/translate'; -import tSite from '../i18n/translations/site'; -import type { Contribution } from '../types/LallansIssue'; -import type Locale from '../types/Locale'; +import translate from '$i18n/translate'; +import tSite from '$i18n/translations/site'; +import type { Contribution } from '$types/LallansIssue'; +import type Locale from '$types/Locale'; interface Props { contributions: Contribution[]; diff --git a/src/components/LallansIssueContributors.astro b/src/components/LallansIssueContributors.astro index 4149e11..5ac5d42 100644 --- a/src/components/LallansIssueContributors.astro +++ b/src/components/LallansIssueContributors.astro @@ -1,5 +1,5 @@ --- -import type { Contributor } from '../types/LallansIssue'; +import type { Contributor } from '$types/LallansIssue'; interface Props { contributors: Contributor[]; @@ -11,8 +11,6 @@ const { contributors } = Astro.props;

Contributors

    - { contributors.map(contributor => ( -
  • { contributor }
  • - ))} + {contributors.map((contributor) =>
  • {contributor}
  • )}
-
\ No newline at end of file +
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro index 420d83f..5e45a9e 100644 --- a/src/components/LallansIssuesGallery.astro +++ b/src/components/LallansIssuesGallery.astro @@ -1,5 +1,5 @@ --- -import { getAllLallansIssues } from '../data/lallans'; +import { getAllLallansIssues } from '$data/lallans'; const issues = await getAllLallansIssues(); --- diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index d34bfc2..45cf96b 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -1,9 +1,9 @@ --- -import type Locale from '../types/Locale'; +import type Locale from '$types/Locale'; import Breadcrumbs from './Breadcrumbs.astro'; import SwitchLanguageLink from './SwitchLanguageLink.astro'; -import tSite from '../i18n/translations/site'; -import translate from '../i18n/translate'; +import tSite from '$i18n/translations/site'; +import translate from '$i18n/translate'; interface Props { locale: Locale; diff --git a/src/components/PayPalButtons.astro b/src/components/PayPalButtons.astro index 91050dc..80d52ff 100644 --- a/src/components/PayPalButtons.astro +++ b/src/components/PayPalButtons.astro @@ -1,5 +1,5 @@ --- -import env from '../lib/env'; +import env from '$lib/env'; interface Props { successPageUrl: string; diff --git a/src/components/SwitchLanguageLink.astro b/src/components/SwitchLanguageLink.astro index e8dace3..96dd538 100644 --- a/src/components/SwitchLanguageLink.astro +++ b/src/components/SwitchLanguageLink.astro @@ -1,8 +1,8 @@ --- -import tPage from '../i18n/translations/components/languageLinks'; -import tSite from '../i18n/translations/site'; -import translate from '../i18n/translate'; -import type Locale from '../types/Locale'; +import tPage from '$i18n/translations/components/languageLinks'; +import tSite from '$i18n/translations/site'; +import translate from '$i18n/translate'; +import type Locale from '$types/Locale'; interface Props { currentLocale: Locale; -- cgit v1.2.3