Skip to content

Commit a66f073

Browse files
committed
Merge branch 'ep2025-cleanup3' into ep2025-ilikeit
2 parents d510d69 + d279393 commit a66f073

File tree

8 files changed

+25
-18
lines changed

8 files changed

+25
-18
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ RUN corepack enable
88
RUN pnpm config set store-dir /home/node/.local/share/pnpm/store
99

1010
WORKDIR /app
11+
12+
COPY package.json pnpm-lock.yaml ./
13+
RUN pnpm install
14+
15+
RUN mkdir -p /app/src

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
import svelte from "@astrojs/svelte";
1816

1917
let gitVersion = String(process.env.GIT_VERSION ?? "").slice(0, 7);

docker-compose.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ services:
33
build:
44
context: .
55
dockerfile: Dockerfile
6-
entrypoint: ["bash", "-c"]
7-
command: ["pnpm install && pnpm run dev --host 0.0.0.0"]
8-
volumes:
9-
- .:/app
6+
command: ["pnpm", "run", "dev", "--host", "0.0.0.0"]
107
ports:
118
- "4321:4321"
129
environment:
1310
- ASTRO_TELEMETRY_DISABLED=1
11+
- NODE_ENV=development
12+
volumes:
13+
- .:/app
14+
- node_modules:/app/node_modules
15+
- .pnpm-store:/app/.pnpm-store
16+
17+
volumes:
18+
node_modules:

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
@@ -2,7 +2,6 @@
22
import CodeHeart from "@components/island/CodeHeart.svelte";
33
import Speakers from "./speakers.astro";
44
import { slugify } from "@utils/content";
5-
import Headline from "@ui/Headline.astro";
65
76
export interface props {
87
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)