Skip to content

Commit 4ef328c

Browse files
committed
Merge branch 'ep2025-cleanup3' into ep2025-fix-image-fatch
2 parents 75d35fa + d279393 commit 4ef328c

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

astro.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import deleteUnusedImages from "astro-delete-unused-images";
1212
import preload from "astro-preload";
1313
import { execSync } from "node:child_process";
1414

15-
import compress from "astro-compress";
16-
1715
let gitVersion = String(process.env.GIT_VERSION ?? "").slice(0, 7);
1816

1917
if (!gitVersion) {

src/components/Modal.astro

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { id = 'modal', open = false, closeOnOutsideClick = false } = Astro.props;
2929
<script >
3030
document.addEventListener('DOMContentLoaded', () => {
3131
// Function to toggle body scroll
32-
const toggleBodyScroll = (disable) => {
32+
const toggleBodyScroll = (disable: any) => {
3333
if (disable) {
3434
// Save the current scroll position
3535
const scrollY = window.scrollY;
@@ -49,7 +49,7 @@ const { id = 'modal', open = false, closeOnOutsideClick = false } = Astro.props;
4949
};
5050

5151
// Function to open modal
52-
const openModal = (modal) => {
52+
const openModal = (modal: any) => {
5353
if (modal) {
5454
// Disable body scroll
5555
toggleBodyScroll(true);
@@ -60,7 +60,7 @@ const { id = 'modal', open = false, closeOnOutsideClick = false } = Astro.props;
6060
};
6161

6262
// Function to close modal
63-
const closeModal = (modal) => {
63+
const closeModal = (modal: any) => {
6464
if (modal) {
6565
// Enable body scroll
6666
toggleBodyScroll(false);
@@ -72,22 +72,25 @@ const { id = 'modal', open = false, closeOnOutsideClick = false } = Astro.props;
7272

7373
// Open modal buttons
7474
document.querySelectorAll('[data-open-modal]').forEach(button => {
75-
button.addEventListener('click', () => {
76-
const modal = document.getElementById(button.dataset.openModal);
75+
const btn = button as HTMLElement;
76+
btn.addEventListener('click', () => {
77+
const modal = document.getElementById(btn.dataset.openModal!);
7778
openModal(modal);
7879
});
7980
});
8081

8182
// Close modal buttons
8283
document.querySelectorAll('[data-close-modal]').forEach(button => {
83-
button.addEventListener('click', () => {
84+
const btn = button as HTMLElement;
85+
btn.addEventListener('click', () => {
8486
const modal = button.closest('[data-modal-wrapper]');
8587
closeModal(modal);
8688
});
8789
});
8890

8991
// Close when clicking outside the modal content - only if enabled
90-
document.querySelectorAll('[data-modal-wrapper]').forEach(modal => {
92+
document.querySelectorAll('[data-modal-wrapper]').forEach(m => {
93+
const modal = m as HTMLElement;
9194
const closeOnOutsideClick = modal.dataset.closeOnOutsideClick === 'true';
9295

9396
if (closeOnOutsideClick) {

src/components/SocialMediaSponsorCard.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
2-
import { getEntry } from "astro:content";
32
import { sponsorLogos } from "@data/sponsorLogos";
43
54
const { sponsor } = Astro.props;
65
76
const {
87
name: title,
9-
url: website,
108
logo_padding = false,
119
} = sponsor.data;
1210

src/components/schedule/session.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import Speakers from "./speakers.astro";
33
import { slugify } from "@utils/content";
4-
import Headline from "@ui/Headline.astro";
54
65
export interface props {
76
style: any;

src/components/sponsors/sponsors.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import { getCollection } from "astro:content";
3-
import Separator from "@ui/Separator.astro";
43
import Headline from "@ui/Headline.astro"
54
import Section from "@ui/Section.astro"
65

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

Lines changed: 1 addition & 1 deletion
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 SocialMediaSponsorCard from "@components/SocialMediaSponsorCard.astro";
44
55
export async function getStaticPaths() {

0 commit comments

Comments
 (0)