Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Jan 3, 2025
1 parent 4883991 commit 347069a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/Organizers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface Organizer {
const organizers = Astro.props.organizers
const imageGlob = import.meta.glob<{ default: ImageMetadata }>(
'@/images/organizers/*.{jpeg,jpg,png,gif,webp,svg}',
{ eager: true }
{ eager: true },
)
---

Expand Down
4 changes: 2 additions & 2 deletions src/components/Speaker.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ let {
let links = { twitter, url, linkedin }
const photo = await importImage(
import.meta.glob<{ default: ImageMetadata }>(
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}'
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}',
),
photoFile
photoFile,
)
---

Expand Down
4 changes: 2 additions & 2 deletions src/components/Sponsor.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const { tier, name, url, image } = sponsor
const imageMetadata = await importImage(
import.meta.glob<{ default: ImageMetadata }>(
'@/images/sponsors/*.{jpeg,jpg,png,gif,webp,svg}'
'@/images/sponsors/*.{jpeg,jpg,png,gif,webp,svg}',
),
image
image,
)
---

Expand Down
4 changes: 2 additions & 2 deletions src/components/TalkCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const location = 'location' in speaker ? speaker.location : ''
const { name, company, photo } = speaker
const speakerPhoto = await importImage(
import.meta.glob<{ default: ImageMetadata }>(
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}'
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}',
),
photo
photo,
)
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/conf.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ConfLogSrc from '@/images/conf/seattlejsconf-2023-logo.png'
const speakerImageGlob = import.meta.glob<{ default: ImageMetadata }>(
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}',
{ eager: true }
{ eager: true },
)
---

Expand Down
4 changes: 2 additions & 2 deletions src/pages/events/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const hasSponsors = sponsors && sponsors.length > 0
const speakerPhotoGlob = import.meta.glob<{ default: ImageMetadata }>(
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}',
{ eager: true }
{ eager: true },
)
const findSpeakerPhoto = (photo: string) => {
Expand All @@ -35,7 +35,7 @@ const findSpeakerPhoto = (photo: string) => {
const sponsorPhotoGlob = import.meta.glob<{ default: ImageMetadata }>(
'@/images/sponsors/*.{jpeg,jpg,png,gif,webp,svg}',
{ eager: true }
{ eager: true },
)
const findSponsorPhoto = (photo: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Header from '@/components/Header.astro'
const TWELVE_HOURS = 1000 * 60 * 60 * 12
const futureEvents = events.filter(
t => new Date(`${t.date}T21:00-08:00`).getTime() + TWELVE_HOURS > Date.now()
t => new Date(`${t.date}T21:00-08:00`).getTime() + TWELVE_HOURS > Date.now(),
)
// const futureEvents = [events.at(-1)]
Expand Down
2 changes: 1 addition & 1 deletion src/pages/talks/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const bodyTitle =
const { title, abstract, topics } = talk
const imageGlob = import.meta.glob<{ default: ImageMetadata }>(
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}'
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}',
)
const speakerPhoto = await importImage(imageGlob, speaker.photo)
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workshops/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const { type, workshop } = Astro.props as Props
const { topics, abstract, speaker } = workshop
const imageGlob = import.meta.glob<{ default: ImageMetadata }>(
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}'
'@/images/speakers/*.{jpeg,jpg,png,gif,webp,svg}',
)
const speakerPhoto = await importImage(imageGlob, speaker.photo)
Expand Down

0 comments on commit 347069a

Please sign in to comment.