From fa924a26be5bc77855270bec3555c31c9c91a709 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 16 Jul 2025 11:57:36 -0500 Subject: [PATCH] feat: separate SearchBar in App.vue, start work on Episode view --- src/App.vue | 31 +--- src/components/layout/SearchBar.vue | 20 +++ src/router.ts | 4 +- src/views/Episode.vue | 214 +++++++++++++++------------- 4 files changed, 142 insertions(+), 127 deletions(-) create mode 100644 src/components/layout/SearchBar.vue diff --git a/src/App.vue b/src/App.vue index 3ed7229..ad3a432 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,6 +2,7 @@ import SeasonList from '@/components/layout/SeasonList.vue'; import { ref } from 'vue'; import logoSrc from '@/assets/logo.svg'; +import SearchBar from '@/components/layout/SearchBar.vue'; const sidebarOpen = ref(false); @@ -62,28 +63,7 @@ const headings = [ @@ -103,12 +83,7 @@ const headings = [
-
-

Welcome to The Office

-

- This is your main content area. You can add your router-view or other components here. -

-
+
diff --git a/src/components/layout/SearchBar.vue b/src/components/layout/SearchBar.vue new file mode 100644 index 0000000..48de0ff --- /dev/null +++ b/src/components/layout/SearchBar.vue @@ -0,0 +1,20 @@ + + + diff --git a/src/router.ts b/src/router.ts index e580026..3b567c8 100644 --- a/src/router.ts +++ b/src/router.ts @@ -37,12 +37,12 @@ const router = createRouter({ component: Character, }, { - path: '/:season/', + path: '/season/:season', name: 'Season', component: Season, }, { - path: '/:season/:episode', + path: '/episode/:episode', name: 'Episode', component: Episode, }, diff --git a/src/views/Episode.vue b/src/views/Episode.vue index b9ad6c2..5f08a2a 100644 --- a/src/views/Episode.vue +++ b/src/views/Episode.vue @@ -1,9 +1,122 @@ + +