From 61ba9fd1f62cb959f197cf95c2686809318c6482 Mon Sep 17 00:00:00 2001 From: Pauline Date: Mon, 22 Jan 2024 03:30:30 +0100 Subject: chore(deps): bump and format --- apps/website/src/components/base/Button.astro | 12 ++++++------ apps/website/src/components/base/Card.astro | 4 ++-- .../src/components/base/FormattedDate.astro | 2 +- apps/website/src/components/base/Header.astro | 6 +++--- apps/website/src/components/base/Paragraph.astro | 4 ++-- .../src/components/base/ScreenOverlay.astro | 2 +- apps/website/src/components/base/Section.astro | 12 +++++++----- apps/website/src/components/base/Slider.astro | 10 +++++----- .../src/components/base/navbar/NavbarElement.astro | 7 ++++--- apps/website/src/components/icons/Icon.astro | 6 +++--- apps/website/src/components/logos/Logo.astro | 6 +++--- .../components/page/branding/BrandingImage.astro | 14 +++++++------- apps/website/src/components/shared/BaseHead.astro | 15 ++++++--------- apps/website/src/components/shared/SEO.astro | 22 +++++++++++----------- apps/website/src/layouts/Layout.astro | 6 +++--- 15 files changed, 64 insertions(+), 64 deletions(-) (limited to 'apps/website/src') diff --git a/apps/website/src/components/base/Button.astro b/apps/website/src/components/base/Button.astro index e529dc5..0a6039f 100644 --- a/apps/website/src/components/base/Button.astro +++ b/apps/website/src/components/base/Button.astro @@ -23,12 +23,12 @@ const iconSize = { }; interface Props extends HTMLAttributes<'button'> { - style?: keyof typeof styles - size?: keyof typeof sizes - text?: string - iconLeft?: Icons - iconRight?: Icons - href?: string + style?: keyof typeof styles; + size?: keyof typeof sizes; + text?: string; + iconLeft?: Icons; + iconRight?: Icons; + href?: string; } const { diff --git a/apps/website/src/components/base/Card.astro b/apps/website/src/components/base/Card.astro index 6438273..ff8cc91 100644 --- a/apps/website/src/components/base/Card.astro +++ b/apps/website/src/components/base/Card.astro @@ -4,8 +4,8 @@ import Icon from '@components/icons/Icon.astro'; import type { HTMLAttributes } from 'astro/types'; interface Props extends HTMLAttributes<'div'> { - icon: Icons - text?: string + icon: Icons; + text?: string; } const { diff --git a/apps/website/src/components/base/FormattedDate.astro b/apps/website/src/components/base/FormattedDate.astro index af538b9..da68837 100644 --- a/apps/website/src/components/base/FormattedDate.astro +++ b/apps/website/src/components/base/FormattedDate.astro @@ -1,6 +1,6 @@ --- interface Props { - date: Date + date: Date; } const { date } = Astro.props; diff --git a/apps/website/src/components/base/Header.astro b/apps/website/src/components/base/Header.astro index 962b2d4..63199e3 100644 --- a/apps/website/src/components/base/Header.astro +++ b/apps/website/src/components/base/Header.astro @@ -14,9 +14,9 @@ const sizes = { type Headers = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; interface Props extends HTMLAttributes { - size?: keyof typeof sizes - align?: 'left' | 'center' | 'right' | 'inherit' - inheritSize?: boolean + size?: keyof typeof sizes; + align?: 'left' | 'center' | 'right' | 'inherit'; + inheritSize?: boolean; } const { diff --git a/apps/website/src/components/base/Paragraph.astro b/apps/website/src/components/base/Paragraph.astro index db0bff6..f700496 100644 --- a/apps/website/src/components/base/Paragraph.astro +++ b/apps/website/src/components/base/Paragraph.astro @@ -10,8 +10,8 @@ const sizes = { }; interface Props extends HTMLAttributes<'p'> { - text?: string - size?: keyof typeof sizes + text?: string; + size?: keyof typeof sizes; } const { diff --git a/apps/website/src/components/base/ScreenOverlay.astro b/apps/website/src/components/base/ScreenOverlay.astro index 1b97152..4413b61 100644 --- a/apps/website/src/components/base/ScreenOverlay.astro +++ b/apps/website/src/components/base/ScreenOverlay.astro @@ -2,7 +2,7 @@ import type { HTMLAttributes } from 'astro/types'; interface Props extends HTMLAttributes<'div'> { - zIndex?: number + zIndex?: number; } const { diff --git a/apps/website/src/components/base/Section.astro b/apps/website/src/components/base/Section.astro index 6ea3075..e0e994b 100644 --- a/apps/website/src/components/base/Section.astro +++ b/apps/website/src/components/base/Section.astro @@ -2,11 +2,11 @@ import type { HTMLAttributes } from 'astro/types'; interface Props extends HTMLAttributes<'section'> { - maxWidth?: 'none' | String - colReverse?: boolean - wrapperClass?: string - wFull?: boolean - hFull?: boolean + maxWidth?: 'none' | String; + colReverse?: boolean; + wrapperClass?: string; + wFull?: boolean; + hFull?: boolean; } const { @@ -30,6 +30,7 @@ const className = `max-w-[${maxWidth}] ${hFull ? 'min-h-screen' : 'h-auto'} ${wF
{twoColumn ? ( + <>
@@ -37,6 +38,7 @@ const className = `max-w-[${maxWidth}] ${hFull ? 'min-h-screen' : 'h-auto'} ${wF
+ ) : ( diff --git a/apps/website/src/components/base/Slider.astro b/apps/website/src/components/base/Slider.astro index 1afd680..e637afe 100644 --- a/apps/website/src/components/base/Slider.astro +++ b/apps/website/src/components/base/Slider.astro @@ -2,11 +2,11 @@ import type { HTMLAttributes } from 'astro/types'; interface Props extends HTMLAttributes<'div'> { - dir?: string - wrapperClass?: string - childrenNum: number - childrenSize?: string - speed?: string + dir?: string; + wrapperClass?: string; + childrenNum: number; + childrenSize?: string; + speed?: string; } const { diff --git a/apps/website/src/components/base/navbar/NavbarElement.astro b/apps/website/src/components/base/navbar/NavbarElement.astro index 5e37253..b1e23d9 100644 --- a/apps/website/src/components/base/navbar/NavbarElement.astro +++ b/apps/website/src/components/base/navbar/NavbarElement.astro @@ -8,8 +8,8 @@ import ScrollbarOverlayContainer from '../ScrollbarOverlayContainer.astro'; import Tag from '../Tag.astro'; interface Props { - element: NavbarElement - index: number + element: NavbarElement; + index: number; } const { @@ -35,6 +35,7 @@ function isCurrentPage(url: string): boolean { : (
+ )} )} -{/* WHY IS ESLINT DOING THIS */} diff --git a/apps/website/src/components/icons/Icon.astro b/apps/website/src/components/icons/Icon.astro index cfb14ca..1fc273f 100644 --- a/apps/website/src/components/icons/Icon.astro +++ b/apps/website/src/components/icons/Icon.astro @@ -35,9 +35,9 @@ type _Icons = export type Icons = _Icons; // bypass for Astro compiler issue https://github.com/withastro/compiler/issues/554#issuecomment-1741702411 interface Props extends HTMLAttributes<'svg'> { - icon: Icons - path?: string - size?: number | [number, number] + icon: Icons; + path?: string; + size?: number | [number, number]; } async function getSVG(name: string) { diff --git a/apps/website/src/components/logos/Logo.astro b/apps/website/src/components/logos/Logo.astro index cd780ad..b9cd47d 100644 --- a/apps/website/src/components/logos/Logo.astro +++ b/apps/website/src/components/logos/Logo.astro @@ -5,9 +5,9 @@ import type { LogoType } from '@webtypes/Config'; import type { HTMLAttributes } from 'astro/types'; export interface Props extends HTMLAttributes<'svg'> { - logo: LogoType - size?: number | [number, number] - silent?: boolean + logo: LogoType; + size?: number | [number, number]; + silent?: boolean; } const { diff --git a/apps/website/src/components/page/branding/BrandingImage.astro b/apps/website/src/components/page/branding/BrandingImage.astro index e112691..b989a10 100644 --- a/apps/website/src/components/page/branding/BrandingImage.astro +++ b/apps/website/src/components/page/branding/BrandingImage.astro @@ -1,12 +1,12 @@ --- interface Props { - type: 'badges' | 'logos' | 'mods' - name: string - nameFormatted?: string - altText?: string - extensions?: ('png' | 'svg')[] - maxWidth?: number - background?: string + type: 'badges' | 'logos' | 'mods'; + name: string; + nameFormatted?: string; + altText?: string; + extensions?: ('png' | 'svg')[]; + maxWidth?: number; + background?: string; } const { diff --git a/apps/website/src/components/shared/BaseHead.astro b/apps/website/src/components/shared/BaseHead.astro index ddb94e3..bfe8f78 100644 --- a/apps/website/src/components/shared/BaseHead.astro +++ b/apps/website/src/components/shared/BaseHead.astro @@ -1,14 +1,11 @@ --- -import smartypants from 'smartypants'; -import SEO from './SEO.astro'; - export type Props = { - siteName: string - title?: string - description: string - image: { src: string, alt: string } - canonicalURL?: URL | null - pageType?: 'website' | 'article' + siteName: string; + title?: string; + description: string; + image: { src: string; alt: string }; + canonicalURL?: URL | null; + pageType?: 'website' | 'article'; }; const twitterHandle = 'polyfrost'; diff --git a/apps/website/src/components/shared/SEO.astro b/apps/website/src/components/shared/SEO.astro index 6169185..c3b8c52 100644 --- a/apps/website/src/components/shared/SEO.astro +++ b/apps/website/src/components/shared/SEO.astro @@ -2,26 +2,26 @@ import smartypants from 'smartypants'; type SEOMetadata = { - name?: string - title: string - description: string - image?: { src: string, alt: string } - canonicalURL?: URL | null - locale?: string + name?: string; + title: string; + description: string; + image?: { src: string; alt: string }; + canonicalURL?: URL | null; + locale?: string; }; type OpenGraph = Partial & { - type?: string + type?: string; }; type Twitter = Partial & { - handle?: string - card?: 'summary' | 'summary_large_image' + handle?: string; + card?: 'summary' | 'summary_large_image'; }; export type Props = SEOMetadata & { - og?: OpenGraph - twitter?: Twitter + og?: OpenGraph; + twitter?: Twitter; }; const { diff --git a/apps/website/src/layouts/Layout.astro b/apps/website/src/layouts/Layout.astro index f157e73..f916ee1 100644 --- a/apps/website/src/layouts/Layout.astro +++ b/apps/website/src/layouts/Layout.astro @@ -5,9 +5,9 @@ import Navbar from '../components/base/navbar/Navbar.astro'; import '../styles/global.css'; interface Props { - title?: string - description?: string - favicon?: string + title?: string; + description?: string; + favicon?: string; } const { -- cgit