Skip to content

Commit bbeda93

Browse files
authored
Fix errors and warnings from astro check. (#1203)
1 parent 9569b27 commit bbeda93

20 files changed

+21
-35
lines changed

src/components/Footer.astro

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
import { Fullbleed } from "./layout/fullbleed";
3-
42
import links from "../data/links.json";
53
import { EPSLogo } from "./logo/eps-logo";
64

src/components/Header.astro

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import { promises as fs } from "fs";
32
import { NavItems } from "@components/nav-items";
43
import HeaderActions from "@components/header/header-actions.astro";
54
import HeaderLogo from "@components/header/header-logo.astro";

src/components/Search.astro

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import SearchComponent from "astro-pagefind/components/Search";
3-
import Button from "@ui/Button.astro";
43
import Modal from "@components/Modal.astro";
54
65
---

src/components/SocialMediaCard.astro

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
import { getCollection, getEntries, type CollectionEntry } from "astro:content";
3-
import { Image } from "astro:assets";
2+
import { getEntries, type CollectionEntry } from "astro:content";
43
54
const { entry } = Astro.props;
65
7-
const sessions = await getEntries(entry.data.submissions);
6+
const sessions: CollectionEntry<"sessions">[]= await getEntries(entry.data.submissions);
87
---
98
<svg width="900" height="900" class="h-full w-full -z-10">
10-
<image href="http://localhost:4321/social/bg.png" width="900" height="900" />
9+
<image href="/social/bg.png" width="900" height="900" />
1110
</svg>
1211
{
1312
entry.data.avatar ? (

src/components/button-link/button-link.astro

-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ const {
1515
className = "",
1616
secondary = false,
1717
disabled = false,
18-
isExternal,
1918
} = Astro.props;
20-
const resolvedIsExternal =
21-
isExternal !== undefined ? isExternal : url?.startsWith("http");
2219
---
2320

2421
<a

src/components/header/header-actions.astro

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import Button from "@ui/Button.astro";
3-
import HeaderButton from "./header-button.astro";
43
import Icon from "@ui/Icon.astro";
54
65
export interface Props {
@@ -11,8 +10,6 @@ const { mobile = false }: Props = Astro.props;
1110
1211
const IS_LIVE = false;
1312
14-
15-
//<Button id="searchButton" icon="search" iconSize="fa-xl" clear title="Search (Crtl+K)"></Button>
1613
---
1714

1815
<div class="flex items-center justify-end gap-2 h-[85px] w-1/3">

src/components/header/header-logo.astro

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
import { Logo } from "../logo";
3-
42
interface Props {
53
inverted?: boolean;
64
}

src/components/hero2/hero.astro

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import heroImage from "./conference_photo.jpg";
44
55
import IconWithLabel from "./icon-label.astro";
66
import Button from "@ui/Button.astro";
7-
import Section from "@ui/Section.astro";
87
98
const action1 = "/tickets";
109
const action2 = "/sponsorship/sponsor/";

src/components/schedule/day.astro

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11

22
---
3-
import { type CollectionEntry, getEntry, getCollection } from "astro:content";
3+
import { type CollectionEntry, getCollection } from "astro:content";
44
import Break from "@components/schedule/break.astro";
55
import Session from "@components/schedule/session.astro";
66
import { addMinutes, differenceInMinutes, parseISO } from "date-fns";
7-
//import { Title } from "@components/typography/title";
87
import Headline from "@components/ui/Headline.astro";
9-
import Button from "@ui/Button.astro";
10-
import { Select } from "@components/form/select";
118
import { formatInTimeZone } from "date-fns-tz";
129

1310

src/components/schedule/session.astro

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
2-
import { formatInTimeZone } from "date-fns-tz";
32
import Speakers from "./speakers.astro";
43
import { slugify } from "@utils/content";
5-
import Icon from "@ui/Icon.astro";
64
75
export interface props {
86
style: any;

src/components/sponsors/sponsors.astro

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { getCollection } from "astro:content";
33
import { Separator } from "../separator/separator";
44
import { Fragment } from "react";
5-
import { Fullbleed } from "../layout/fullbleed";
65
import Headline from "@ui/Headline.astro"
76
import Section from "@ui/Section.astro"
87

src/components/ui/YouTube.astro

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
---
2-
import { YouTube } from "@astro-community/astro-embed-youtube";
2+
import { YouTube as Player } from "@astro-community/astro-embed-youtube";
3+
4+
type Props = {
5+
id?: string;
6+
class?: string;
7+
[key: string]: any;
8+
}
39
410
const {
511
class: userClass = '',
612
...attrs
713
} = Astro.props;
814
15+
const attrId = attrs.id || '';
16+
917
const defaultClass = 'border-4 border-white rounded-lg shadow-lg';
1018
const className = `${defaultClass} ${userClass}`.trim();
1119
---
1220

13-
<YouTube class={className} {...attrs} />
21+
<Player id={attrId} class={className} {...attrs} />

src/layouts/ScheduleLayout.astro

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import Layout from "@layouts/Layout.astro";
3-
import Headline from "@ui/Headline.astro";
43
import Section from "@ui/Section.astro";
54
65
export interface Props {

src/pages/media/card/[slug].astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { getCollection, getEntries, type CollectionEntry } from "astro:content";
2+
import { getCollection} from "astro:content";
33
import SocialMediaCard from "@components/SocialMediaCard.astro";
44
55
export async function getStaticPaths() {
@@ -84,7 +84,7 @@ fitAllText();
8484
window.addEventListener('resize', fitAllText);
8585
</script>
8686

87-
<script define:vars={{slug: entry.data.slug}}>
87+
<script is:inline define:vars={{slug: entry.data.slug}}>
8888
document.addEventListener('DOMContentLoaded', () => {
8989
document.querySelectorAll('.social').forEach((socialDiv, index) => {
9090

src/pages/media/social_media_cards.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { getCollection, getEntries, type CollectionEntry } from "astro:content";
2+
import { getCollection, type CollectionEntry } from "astro:content";
33
import SocialMediaCard from "@components/SocialMediaCard.astro";
44
55

src/pages/schedule.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { getEntry, getCollection } from "astro:content";
2+
import { getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
55

src/pages/schedule/talks.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { type CollectionEntry, getCollection } from "astro:content";
2+
import { getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
55
import { slugify } from '@utils/content';

src/pages/schedule/tutorials.astro

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
55
import { slugify } from '@utils/content';
6-
import Headline from "@ui/Headline.astro"
76
87
export const getStaticPaths = async () => {
98
const sessions = await getCollection("sessions");

src/pages/speakers.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const description = "Our conference speakers organized alphabetically";
7070
</Prose>
7171

7272
{
73-
groupKeys.map((key, index) => (
73+
groupKeys.map((key, _index) => (
7474
<>
7575
<div id={`group-${key}`} class="pt-6">
7676
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6 mb-10">

src/utils/content.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function slugify(text) {
1+
export function slugify(text: string): string {
22
return text
33
.toString()
44
.toLowerCase()

0 commit comments

Comments
 (0)