41 lines
624 B
JavaScript
41 lines
624 B
JavaScript
|
import Vue from 'vue'
|
||
|
import Router from 'vue-router'
|
||
|
import { generateUrl } from '@nextcloud/router'
|
||
|
|
||
|
import Main from './components/Main'
|
||
|
|
||
|
Vue.use(Router)
|
||
|
|
||
|
export default new Router({
|
||
|
mode: 'history',
|
||
|
base: generateUrl('/apps/radio'),
|
||
|
linkActiveClass: 'active',
|
||
|
routes: [
|
||
|
{
|
||
|
path: '/',
|
||
|
component: Main,
|
||
|
name: 'TOP',
|
||
|
},
|
||
|
{
|
||
|
path: '/top',
|
||
|
component: Main,
|
||
|
name: 'TOP',
|
||
|
},
|
||
|
{
|
||
|
path: '/recent',
|
||
|
component: Main,
|
||
|
name: 'RECENT',
|
||
|
},
|
||
|
{
|
||
|
path: '/favorites',
|
||
|
component: Main,
|
||
|
name: 'FAVORITES',
|
||
|
},
|
||
|
{
|
||
|
path: '/categories',
|
||
|
component: Main,
|
||
|
name: 'CATEGORIES',
|
||
|
},
|
||
|
],
|
||
|
})
|