mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-10-14 19:38:18 +00:00
Add a search page.
This commit is contained in:
@@ -1,30 +1,35 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import Watch from '../components/WatchVideo.vue'
|
||||
import Trending from '../components/TrendingPage.vue'
|
||||
import Channel from '../components/Channel.vue'
|
||||
import Preferences from '../components/Preferences.vue'
|
||||
|
||||
const routes = [{
|
||||
path: '/watch',
|
||||
name: 'Watch',
|
||||
component: Watch
|
||||
}, {
|
||||
path: '/',
|
||||
name: 'Trending',
|
||||
component: Trending
|
||||
}, {
|
||||
path: '/channel/:channelId',
|
||||
name: 'Channel',
|
||||
component: Channel
|
||||
}, {
|
||||
path: '/preferences',
|
||||
name: 'Preferences',
|
||||
component: Preferences
|
||||
}]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import Watch from '../components/WatchVideo.vue'
|
||||
import Trending from '../components/TrendingPage.vue'
|
||||
import Channel from '../components/Channel.vue'
|
||||
import Preferences from '../components/Preferences.vue'
|
||||
import SearchResults from '../components/SearchResults.vue'
|
||||
|
||||
const routes = [{
|
||||
path: '/watch',
|
||||
name: 'Watch',
|
||||
component: Watch
|
||||
}, {
|
||||
path: '/',
|
||||
name: 'Trending',
|
||||
component: Trending
|
||||
}, {
|
||||
path: '/channel/:channelId',
|
||||
name: 'Channel',
|
||||
component: Channel
|
||||
}, {
|
||||
path: '/preferences',
|
||||
name: 'Preferences',
|
||||
component: Preferences
|
||||
}, {
|
||||
path: '/results',
|
||||
name: 'SearchResults',
|
||||
component: SearchResults
|
||||
}]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
||||
|
Reference in New Issue
Block a user