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 ++-- apps/website/src/components/base/FormattedDate.astro | 2 +- apps/website/src/components/base/Header.astro | 6 +++--- apps/website/src/components/base/Paragraph.astro | 4 ++-- apps/website/src/components/base/ScreenOverlay.astro | 2 +- apps/website/src/components/base/Section.astro | 12 +++++++----- apps/website/src/components/base/Slider.astro | 10 +++++----- apps/website/src/components/base/navbar/NavbarElement.astro | 7 ++++--- 9 files changed, 31 insertions(+), 28 deletions(-) (limited to 'apps/website/src/components/base') 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 */} -- cgit