From 0de7af1ad199c2db7500e8f3575f5fb4cb624364 Mon Sep 17 00:00:00 2001 From: Anyul Rivas Date: Wed, 4 Jun 2025 16:22:45 +0200 Subject: [PATCH 1/2] refactor: update imports to use absolute paths and enable schedule route --- index.html | 271 ++++++++++++++++++++ src/components/Navigation/NavigationData.ts | 3 +- src/views/Schedule/Schedule.tsx | 20 +- 3 files changed, 283 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index f4fa32cec..423f62341 100644 --- a/index.html +++ b/index.html @@ -186,5 +186,276 @@
+ \ No newline at end of file diff --git a/src/components/Navigation/NavigationData.ts b/src/components/Navigation/NavigationData.ts index 8d501cc83..670b8fa33 100644 --- a/src/components/Navigation/NavigationData.ts +++ b/src/components/Navigation/NavigationData.ts @@ -4,6 +4,7 @@ import { ROUTE_CODE_OF_CONDUCT, ROUTE_HOME, ROUTE_JOB_OFFERS, + ROUTE_SCHEDULE, ROUTE_SPEAKERS, ROUTE_SPONSORSHIP, ROUTE_TALKS, @@ -20,7 +21,7 @@ export const navigationItems2025: NavigationItem[] = [ { id: "Home", link: ROUTE_HOME }, { id: "Code of Conduct", link: ROUTE_CODE_OF_CONDUCT }, { id: "Sponsors", link: "/#sponsors" }, - //{ id: "SCHEDULE", link: ROUTE_SCHEDULE }, + { id: "SCHEDULE", link: ROUTE_SCHEDULE }, { id: "Talks", link: ROUTE_TALKS }, { id: "Workshops", link: ROUTE_WORKSHOPS }, { id: "JOB OFFERS", link: ROUTE_JOB_OFFERS }, diff --git a/src/views/Schedule/Schedule.tsx b/src/views/Schedule/Schedule.tsx index 96d8aaea5..3ed9c3fb8 100644 --- a/src/views/Schedule/Schedule.tsx +++ b/src/views/Schedule/Schedule.tsx @@ -1,12 +1,12 @@ -import { MOBILE_BREAKPOINT } from "../../constants/BreakPoints"; -import { Color } from "../../styles/colors"; +import { MOBILE_BREAKPOINT } from "@constants/BreakPoints"; +import { Color } from "@styles/colors"; import React, { FC } from "react"; -import LessThanBlueWhiteIcon from "../../assets/images/MoreThanBlueWhiteIcon.svg"; -import MoreThanBlueWhiteIcon from "../../assets/images/LessThanBlueWhiteIcon.svg"; -import SectionWrapper from "../../components/SectionWrapper/SectionWrapper"; -import TitleSection from "../../components/SectionTitle/TitleSection"; +import LessThanBlueWhiteIcon from "@assets/images/MoreThanBlueWhiteIcon.svg"; +import MoreThanBlueWhiteIcon from "@assets/images/LessThanBlueWhiteIcon.svg"; +import SectionWrapper from "@components/SectionWrapper/SectionWrapper"; +import TitleSection from "@components/SectionTitle/TitleSection"; import { useWindowSize } from "react-use"; -import data from "../../data/2024.json"; +import data from "@data/2024.json"; import * as Sentry from "@sentry/react"; import { Link } from "react-router"; @@ -14,14 +14,14 @@ import { StyledLessIcon, StyledMoreIcon, StyledScheduleSection, -} from "../../styles/Schedule/Schedule.style"; -import { useDocumentTitleUpdater } from "../../hooks/useDocumentTitleUpdate"; +} from "@styles/Schedule/Schedule.style"; +import { useDocumentTitleUpdater } from "@hooks/useDocumentTitleUpdate"; const Schedule: FC> = () => { const { width } = useWindowSize(); React.useEffect(() => { - fetch("https://sessionize.com/api/v2/w8mdb9k5/view/GridSmart") + fetch("https://sessionize.com/api/v2/kdiixcgx/view/GridSmart") .then((value) => value.text()) .then((value) => { const sched = document.getElementById("#schedule"); From bf63b4a30dec49db25415c2671fdc36974040134 Mon Sep 17 00:00:00 2001 From: Anyul Rivas Date: Wed, 4 Jun 2025 16:56:43 +0200 Subject: [PATCH 2/2] fix(Schedule): correct schedule element ID and enable 2025 schedule data --- src/data/2025.json | 2 +- src/views/Schedule/Schedule.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/2025.json b/src/data/2025.json index f85f17004..ee304fcb9 100644 --- a/src/data/2025.json +++ b/src/data/2025.json @@ -22,7 +22,7 @@ }, "linkedin": "https://www.linkedin.com/company/devbcn", "schedule": { - "enabled": false + "enabled": true }, "sessionizeUrl": "https://sessionize.com/api/v2/xhudniix", "showCountdown": true, diff --git a/src/views/Schedule/Schedule.tsx b/src/views/Schedule/Schedule.tsx index 3ed9c3fb8..45d0c62b2 100644 --- a/src/views/Schedule/Schedule.tsx +++ b/src/views/Schedule/Schedule.tsx @@ -6,7 +6,7 @@ import MoreThanBlueWhiteIcon from "@assets/images/LessThanBlueWhiteIcon.svg"; import SectionWrapper from "@components/SectionWrapper/SectionWrapper"; import TitleSection from "@components/SectionTitle/TitleSection"; import { useWindowSize } from "react-use"; -import data from "@data/2024.json"; +import data from "@data/2025.json"; import * as Sentry from "@sentry/react"; import { Link } from "react-router"; @@ -24,7 +24,7 @@ const Schedule: FC> = () => { fetch("https://sessionize.com/api/v2/kdiixcgx/view/GridSmart") .then((value) => value.text()) .then((value) => { - const sched = document.getElementById("#schedule"); + const sched = document.getElementById("schedule"); if (sched !== null) { sched.innerHTML = value; } @@ -63,7 +63,7 @@ const Schedule: FC> = () => { > 📅 See Live schedule -
+