From 8b5e08502e19a6fe083ea85e1f03b34663e83532 Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 1 May 2025 07:44:49 +0200 Subject: [PATCH 1/5] Fix TS warnings. --- src/components/SocialMediaCard.astro | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/SocialMediaCard.astro b/src/components/SocialMediaCard.astro index e4a7ff5f7..52f1ca39b 100644 --- a/src/components/SocialMediaCard.astro +++ b/src/components/SocialMediaCard.astro @@ -1,10 +1,9 @@ --- -import { getCollection, getEntries, type CollectionEntry } from "astro:content"; -import { Image } from "astro:assets"; +import { getEntries, type CollectionEntry } from "astro:content"; const { entry } = Astro.props; -const sessions = await getEntries(entry.data.submissions); +const sessions: CollectionEntry<"sessions">[]= await getEntries(entry.data.submissions); --- From b0dd9efa0b49d866dbb57d57f047bd8af23120a9 Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 1 May 2025 07:49:15 +0200 Subject: [PATCH 2/5] Epic - broken localhost image refferer. --- src/components/SocialMediaCard.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SocialMediaCard.astro b/src/components/SocialMediaCard.astro index 52f1ca39b..1d149932a 100644 --- a/src/components/SocialMediaCard.astro +++ b/src/components/SocialMediaCard.astro @@ -6,7 +6,7 @@ const { entry } = Astro.props; const sessions: CollectionEntry<"sessions">[]= await getEntries(entry.data.submissions); --- - + { entry.data.avatar ? ( From be7de8b8cd60e490aec88a29932af237418e6407 Mon Sep 17 00:00:00 2001 From: Niko Date: Mon, 5 May 2025 12:40:45 +0200 Subject: [PATCH 3/5] Fix YouTube types. --- src/components/ui/YouTube.astro | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/ui/YouTube.astro b/src/components/ui/YouTube.astro index 158216d53..7b03b199d 100644 --- a/src/components/ui/YouTube.astro +++ b/src/components/ui/YouTube.astro @@ -1,5 +1,11 @@ --- -import { YouTube } from "@astro-community/astro-embed-youtube"; +import { YouTube as Player } from "@astro-community/astro-embed-youtube"; + +type Props = { + id?: string; + class?: string; + [key: string]: any; +} const { class: userClass = '', @@ -10,4 +16,4 @@ const defaultClass = 'border-4 border-white rounded-lg shadow-lg'; const className = `${defaultClass} ${userClass}`.trim(); --- - + From 3d767e0fae27b0b1bf8e66730400640b44fb7be9 Mon Sep 17 00:00:00 2001 From: Niko Date: Mon, 5 May 2025 12:53:13 +0200 Subject: [PATCH 4/5] Fix YouTube types. --- src/components/ui/YouTube.astro | 4 +++- src/layouts/ScheduleLayout.astro | 1 - src/pages/media/card/[slug].astro | 2 +- src/pages/schedule.astro | 2 +- src/pages/schedule/talks.astro | 2 +- src/pages/schedule/tutorials.astro | 1 - src/pages/speakers.astro | 2 +- src/utils/content.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/ui/YouTube.astro b/src/components/ui/YouTube.astro index 7b03b199d..ed5b26625 100644 --- a/src/components/ui/YouTube.astro +++ b/src/components/ui/YouTube.astro @@ -12,8 +12,10 @@ const { ...attrs } = Astro.props; +const attrId = attrs.id || ''; + const defaultClass = 'border-4 border-white rounded-lg shadow-lg'; const className = `${defaultClass} ${userClass}`.trim(); --- - + diff --git a/src/layouts/ScheduleLayout.astro b/src/layouts/ScheduleLayout.astro index dcce9d70d..59de87c24 100644 --- a/src/layouts/ScheduleLayout.astro +++ b/src/layouts/ScheduleLayout.astro @@ -1,6 +1,5 @@ --- import Layout from "@layouts/Layout.astro"; -import Headline from "@ui/Headline.astro"; import Section from "@ui/Section.astro"; export interface Props { diff --git a/src/pages/media/card/[slug].astro b/src/pages/media/card/[slug].astro index 27ede9727..f17b83f38 100644 --- a/src/pages/media/card/[slug].astro +++ b/src/pages/media/card/[slug].astro @@ -1,5 +1,5 @@ --- -import { getCollection, getEntries, type CollectionEntry } from "astro:content"; +import { getCollection} from "astro:content"; import SocialMediaCard from "@components/SocialMediaCard.astro"; export async function getStaticPaths() { diff --git a/src/pages/schedule.astro b/src/pages/schedule.astro index 819508eb6..4f98b673e 100644 --- a/src/pages/schedule.astro +++ b/src/pages/schedule.astro @@ -1,5 +1,5 @@ --- -import { getEntry, getCollection } from "astro:content"; +import { getCollection } from "astro:content"; import Layout from "@layouts/ScheduleLayout.astro"; import ScheduleDay from "@components/schedule/day.astro"; diff --git a/src/pages/schedule/talks.astro b/src/pages/schedule/talks.astro index 4956cf6ae..802ea9bc9 100644 --- a/src/pages/schedule/talks.astro +++ b/src/pages/schedule/talks.astro @@ -1,5 +1,5 @@ --- -import { type CollectionEntry, getCollection } from "astro:content"; +import { getCollection } from "astro:content"; import Layout from "@layouts/ScheduleLayout.astro"; import ScheduleDay from "@components/schedule/day.astro"; import { slugify } from '@utils/content'; diff --git a/src/pages/schedule/tutorials.astro b/src/pages/schedule/tutorials.astro index 34a6b9cd8..db9acab6a 100644 --- a/src/pages/schedule/tutorials.astro +++ b/src/pages/schedule/tutorials.astro @@ -3,7 +3,6 @@ import { getCollection } from "astro:content"; import Layout from "@layouts/ScheduleLayout.astro"; import ScheduleDay from "@components/schedule/day.astro"; import { slugify } from '@utils/content'; -import Headline from "@ui/Headline.astro" export const getStaticPaths = async () => { const sessions = await getCollection("sessions"); diff --git a/src/pages/speakers.astro b/src/pages/speakers.astro index 3d0ca91f2..3b448f512 100644 --- a/src/pages/speakers.astro +++ b/src/pages/speakers.astro @@ -70,7 +70,7 @@ const description = "Our conference speakers organized alphabetically"; { - groupKeys.map((key, index) => ( + groupKeys.map((key, _index) => ( <>
diff --git a/src/utils/content.ts b/src/utils/content.ts index 9a7c964a7..8aa1ba48d 100644 --- a/src/utils/content.ts +++ b/src/utils/content.ts @@ -1,4 +1,4 @@ -export function slugify(text) { +export function slugify(text: string): string { return text .toString() .toLowerCase() From 56673662bb2c4f4c2ad79bd2a9ee28366603945e Mon Sep 17 00:00:00 2001 From: Niko Date: Mon, 5 May 2025 12:59:56 +0200 Subject: [PATCH 5/5] Fix all warnings. --- src/components/Footer.astro | 2 -- src/components/Header.astro | 1 - src/components/Search.astro | 1 - src/components/button-link/button-link.astro | 3 --- src/components/header/header-actions.astro | 3 --- src/components/header/header-logo.astro | 2 -- src/components/hero2/hero.astro | 1 - src/components/schedule/day.astro | 5 +---- src/components/schedule/session.astro | 2 -- src/components/sponsors/sponsors.astro | 1 - src/pages/media/card/[slug].astro | 2 +- src/pages/media/social_media_cards.astro | 2 +- 12 files changed, 3 insertions(+), 22 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index db0e79211..f6819732a 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,6 +1,4 @@ --- -import { Fullbleed } from "./layout/fullbleed"; - import links from "../data/links.json"; import { EPSLogo } from "./logo/eps-logo"; diff --git a/src/components/Header.astro b/src/components/Header.astro index d01e07e24..e8cf5d5f8 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,5 +1,4 @@ --- -import { promises as fs } from "fs"; import { NavItems } from "@components/nav-items"; import HeaderActions from "@components/header/header-actions.astro"; import HeaderLogo from "@components/header/header-logo.astro"; diff --git a/src/components/Search.astro b/src/components/Search.astro index f93fa29c5..f740c6a2c 100644 --- a/src/components/Search.astro +++ b/src/components/Search.astro @@ -1,6 +1,5 @@ --- import SearchComponent from "astro-pagefind/components/Search"; -import Button from "@ui/Button.astro"; import Modal from "@components/Modal.astro"; --- diff --git a/src/components/button-link/button-link.astro b/src/components/button-link/button-link.astro index 7009bb5f8..94891a4ca 100644 --- a/src/components/button-link/button-link.astro +++ b/src/components/button-link/button-link.astro @@ -15,10 +15,7 @@ const { className = "", secondary = false, disabled = false, - isExternal, } = Astro.props; -const resolvedIsExternal = - isExternal !== undefined ? isExternal : url?.startsWith("http"); --- ---
diff --git a/src/components/header/header-logo.astro b/src/components/header/header-logo.astro index e084d8143..dd3b8f106 100644 --- a/src/components/header/header-logo.astro +++ b/src/components/header/header-logo.astro @@ -1,6 +1,4 @@ --- -import { Logo } from "../logo"; - interface Props { inverted?: boolean; } diff --git a/src/components/hero2/hero.astro b/src/components/hero2/hero.astro index 07e9e9072..2c4e5c76b 100644 --- a/src/components/hero2/hero.astro +++ b/src/components/hero2/hero.astro @@ -4,7 +4,6 @@ import heroImage from "./conference_photo.jpg"; import IconWithLabel from "./icon-label.astro"; import Button from "@ui/Button.astro"; -import Section from "@ui/Section.astro"; const action1 = "/tickets"; const action2 = "/sponsorship/sponsor/"; diff --git a/src/components/schedule/day.astro b/src/components/schedule/day.astro index b9bf47092..35731623d 100644 --- a/src/components/schedule/day.astro +++ b/src/components/schedule/day.astro @@ -1,13 +1,10 @@ --- -import { type CollectionEntry, getEntry, getCollection } from "astro:content"; +import { type CollectionEntry, getCollection } from "astro:content"; import Break from "@components/schedule/break.astro"; import Session from "@components/schedule/session.astro"; import { addMinutes, differenceInMinutes, parseISO } from "date-fns"; -//import { Title } from "@components/typography/title"; import Headline from "@components/ui/Headline.astro"; -import Button from "@ui/Button.astro"; -import { Select } from "@components/form/select"; import { formatInTimeZone } from "date-fns-tz"; diff --git a/src/components/schedule/session.astro b/src/components/schedule/session.astro index 5d0287bd2..7747f3e1a 100644 --- a/src/components/schedule/session.astro +++ b/src/components/schedule/session.astro @@ -1,8 +1,6 @@ --- -import { formatInTimeZone } from "date-fns-tz"; import Speakers from "./speakers.astro"; import { slugify } from "@utils/content"; -import Icon from "@ui/Icon.astro"; export interface props { style: any; diff --git a/src/components/sponsors/sponsors.astro b/src/components/sponsors/sponsors.astro index 47e412c12..22e1e9f7e 100644 --- a/src/components/sponsors/sponsors.astro +++ b/src/components/sponsors/sponsors.astro @@ -2,7 +2,6 @@ import { getCollection } from "astro:content"; import { Separator } from "../separator/separator"; import { Fragment } from "react"; -import { Fullbleed } from "../layout/fullbleed"; import Headline from "@ui/Headline.astro" import Section from "@ui/Section.astro" diff --git a/src/pages/media/card/[slug].astro b/src/pages/media/card/[slug].astro index f17b83f38..431d61208 100644 --- a/src/pages/media/card/[slug].astro +++ b/src/pages/media/card/[slug].astro @@ -84,7 +84,7 @@ fitAllText(); window.addEventListener('resize', fitAllText); -