From da9f12885aa7986343ca422310028b062e3e41cd Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 21:48:21 +0000 Subject: [PATCH 1/5] feat: Enable Vue Router for history and permalinks This change introduces `vue-router` to the application, enabling client-side routing. - Configures routes for the main project list and individual project detail pages. - Replaces the static component in `App.vue` with `` to render routed components. - Updates navigation in `Challenges.vue` to use `router.push` for in-app navigation. - Implements a `watch` effect in `Challenges.vue` to handle direct navigation to project permalinks, automatically opening the project preview modal. - Sets the default data source URL to an absolute path (`/datapackage.json`) to ensure correct data fetching on nested routes. --- src/App.vue | 11 ++++------- src/components/Challenges.vue | 18 ++++++++++++++++-- src/router/index.js | 17 +++++++++++++++-- 3 files changed, 35 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 712ecf4..e479c85 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@