2018-03-07 14:28:48 +01:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Router from 'vue-router'
|
|
|
|
|
2019-05-09 16:54:53 +02:00
|
|
|
import Login from '@/components/Login.vue'
|
|
|
|
import Authorize from '@/components/Authorize.vue'
|
|
|
|
import Preferences from '@/components/Preferences.vue'
|
|
|
|
import PreferencesGeneral from '@/components/Preferences/General.vue'
|
|
|
|
import PreferencesAppearance from '@/components/Preferences/Appearance.vue'
|
|
|
|
import PreferencesNotification from '@/components/Preferences/Notification.vue'
|
|
|
|
import PreferencesAccount from '@/components/Preferences/Account.vue'
|
|
|
|
import PreferencesLanguage from '@/components/Preferences/Language.vue'
|
2019-11-26 14:27:48 +01:00
|
|
|
import PreferencesNetwork from '@/components/Preferences/Network.vue'
|
2019-05-09 16:54:53 +02:00
|
|
|
import GlobalHeader from '@/components/GlobalHeader.vue'
|
|
|
|
import Settings from '@/components/Settings.vue'
|
|
|
|
import SettingsGeneral from '@/components/Settings/General.vue'
|
|
|
|
import SettingsTimeline from '@/components/Settings/Timeline.vue'
|
2021-05-08 13:59:59 +02:00
|
|
|
import SettingsFilters from '@/components/Settings/Filters.vue'
|
2021-05-09 17:49:24 +02:00
|
|
|
import SettingsFiltersEdit from '@/components/Settings/Filters/Edit.vue'
|
2021-05-11 17:56:27 +02:00
|
|
|
import SettingsFiltersNew from '@/components/Settings/Filters/New.vue'
|
2019-05-09 16:54:53 +02:00
|
|
|
import TimelineSpace from '@/components/TimelineSpace.vue'
|
|
|
|
import TimelineSpaceContentsHome from '@/components/TimelineSpace/Contents/Home.vue'
|
|
|
|
import TimelineSpaceContentsNotifications from '@/components/TimelineSpace/Contents/Notifications.vue'
|
|
|
|
import TimelineSpaceContentsMentions from '@/components/TimelineSpace/Contents/Mentions.vue'
|
|
|
|
import TimelineSpaceContentsFavourites from '@/components/TimelineSpace/Contents/Favourites.vue'
|
|
|
|
import TimelineSpaceContentsLocal from '@/components/TimelineSpace/Contents/Local.vue'
|
|
|
|
import TimelineSpaceContentsPublic from '@/components/TimelineSpace/Contents/Public.vue'
|
|
|
|
import TimelineSpaceContentsHashtag from '@/components/TimelineSpace/Contents/Hashtag.vue'
|
|
|
|
import TimelineSpaceContentsHashtagList from '@/components/TimelineSpace/Contents/Hashtag/List.vue'
|
|
|
|
import TimelineSpaceContentsHashtagTag from '@/components/TimelineSpace/Contents/Hashtag/Tag.vue'
|
|
|
|
import TimelineSpaceContentsSearch from '@/components/TimelineSpace/Contents/Search.vue'
|
|
|
|
import TimelineSpaceContentsDirectMessages from '@/components/TimelineSpace/Contents/DirectMessages.vue'
|
|
|
|
import TimelineSpaceContentsListsIndex from '@/components/TimelineSpace/Contents/Lists/Index.vue'
|
|
|
|
import TimelineSpaceContentsListsEdit from '@/components/TimelineSpace/Contents/Lists/Edit.vue'
|
|
|
|
import TimelineSpaceContentsListsShow from '@/components/TimelineSpace/Contents/Lists/Show.vue'
|
2019-11-26 14:27:48 +01:00
|
|
|
import TimelineSpaceContentsFollowRequests from '@/components/TimelineSpace/Contents/FollowRequests.vue'
|
2020-08-24 12:33:55 +02:00
|
|
|
import TimelineSpaceContentsBookmarks from '@/components/TimelineSpace/Contents/Bookmarks.vue'
|
2019-05-09 16:54:53 +02:00
|
|
|
|
2018-03-07 14:28:48 +01:00
|
|
|
Vue.use(Router)
|
|
|
|
|
2019-04-17 14:05:47 +02:00
|
|
|
const router = new Router({
|
2018-03-07 14:28:48 +01:00
|
|
|
routes: [
|
2018-03-08 15:08:33 +01:00
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: 'login',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: Login
|
2018-03-08 15:08:33 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/authorize',
|
|
|
|
name: 'authorize',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: Authorize,
|
2020-03-17 16:21:57 +01:00
|
|
|
props: route => ({ url: route.query.url, sns: route.query.sns })
|
2018-03-08 15:08:33 +01:00
|
|
|
},
|
2018-04-01 05:00:58 +02:00
|
|
|
{
|
|
|
|
path: '/preferences/',
|
|
|
|
name: 'preferences',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: Preferences,
|
2018-04-01 05:00:58 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'general',
|
|
|
|
name: 'general',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: PreferencesGeneral
|
2018-04-01 05:00:58 +02:00
|
|
|
},
|
2018-09-20 17:16:10 +02:00
|
|
|
{
|
|
|
|
path: 'appearance',
|
|
|
|
name: 'appearance',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: PreferencesAppearance
|
2018-09-20 17:16:10 +02:00
|
|
|
},
|
2018-08-29 17:28:43 +02:00
|
|
|
{
|
|
|
|
path: 'notification',
|
|
|
|
name: 'notification',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: PreferencesNotification
|
2018-08-29 17:28:43 +02:00
|
|
|
},
|
2018-04-01 05:00:58 +02:00
|
|
|
{
|
|
|
|
path: 'account',
|
|
|
|
name: 'account',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: PreferencesAccount
|
2018-08-13 16:48:13 +02:00
|
|
|
},
|
2019-10-22 14:39:10 +02:00
|
|
|
{
|
|
|
|
path: 'network',
|
|
|
|
name: 'network',
|
2019-11-26 14:27:48 +01:00
|
|
|
component: PreferencesNetwork
|
2019-10-22 14:39:10 +02:00
|
|
|
},
|
2018-08-13 16:48:13 +02:00
|
|
|
{
|
|
|
|
path: 'language',
|
|
|
|
name: 'language',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: PreferencesLanguage
|
2018-04-01 05:00:58 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-03-07 14:28:48 +01:00
|
|
|
{
|
|
|
|
path: '/',
|
2018-03-08 11:53:14 +01:00
|
|
|
name: 'global-header',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: GlobalHeader,
|
2018-03-08 11:53:14 +01:00
|
|
|
children: [
|
2018-10-26 15:36:00 +02:00
|
|
|
{
|
2018-10-26 17:23:12 +02:00
|
|
|
path: ':id/settings/',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: Settings,
|
2018-10-26 17:23:12 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'general',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: SettingsGeneral
|
2018-11-06 15:08:17 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'timeline',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: SettingsTimeline
|
2021-05-08 13:59:59 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'filters',
|
|
|
|
component: SettingsFilters
|
2021-05-09 17:49:24 +02:00
|
|
|
},
|
2021-05-11 17:56:27 +02:00
|
|
|
{
|
|
|
|
path: 'filters/new',
|
|
|
|
component: SettingsFiltersNew
|
|
|
|
},
|
2021-05-09 17:49:24 +02:00
|
|
|
{
|
|
|
|
path: 'filters/:filter_id/edit',
|
|
|
|
component: SettingsFiltersEdit,
|
|
|
|
props: true
|
2018-10-26 17:23:12 +02:00
|
|
|
}
|
|
|
|
]
|
2018-10-26 15:36:00 +02:00
|
|
|
},
|
2018-03-08 11:53:14 +01:00
|
|
|
{
|
2018-03-09 07:21:25 +01:00
|
|
|
path: ':id/',
|
2018-05-31 09:39:13 +02:00
|
|
|
name: 'timeline-space',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpace,
|
2018-03-09 07:21:25 +01:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'home',
|
|
|
|
name: 'home',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsHome
|
2018-03-09 07:21:25 +01:00
|
|
|
},
|
|
|
|
{
|
2018-03-12 14:35:31 +01:00
|
|
|
path: 'notifications',
|
|
|
|
name: 'notifications',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsNotifications
|
2018-03-09 07:21:25 +01:00
|
|
|
},
|
2019-03-14 17:02:10 +01:00
|
|
|
{
|
|
|
|
path: 'mentions',
|
|
|
|
name: 'mentions',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsMentions
|
2019-03-14 17:02:10 +01:00
|
|
|
},
|
2019-05-12 07:34:34 +02:00
|
|
|
{
|
|
|
|
path: 'follow-requests',
|
|
|
|
name: 'follow-requests',
|
2019-11-26 14:27:48 +01:00
|
|
|
component: TimelineSpaceContentsFollowRequests
|
2019-05-12 07:34:34 +02:00
|
|
|
},
|
2018-03-09 07:21:25 +01:00
|
|
|
{
|
2018-03-13 15:56:23 +01:00
|
|
|
path: 'favourites',
|
|
|
|
name: 'favourites',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsFavourites
|
2018-03-09 07:21:25 +01:00
|
|
|
},
|
2020-08-24 12:33:55 +02:00
|
|
|
{
|
|
|
|
path: 'bookmarks',
|
|
|
|
name: 'bookmarks',
|
|
|
|
component: TimelineSpaceContentsBookmarks
|
|
|
|
},
|
2018-03-09 07:21:25 +01:00
|
|
|
{
|
|
|
|
path: 'local',
|
|
|
|
name: 'local',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsLocal
|
2018-03-09 07:21:25 +01:00
|
|
|
},
|
|
|
|
{
|
2018-03-14 06:54:20 +01:00
|
|
|
path: 'public',
|
|
|
|
name: 'public',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsPublic
|
2018-04-09 01:43:11 +02:00
|
|
|
},
|
2018-05-31 09:39:13 +02:00
|
|
|
{
|
|
|
|
path: 'hashtag/',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsHashtag,
|
2018-05-31 09:39:13 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'hashtag-list',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsHashtagList
|
2018-05-31 09:39:13 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':tag',
|
|
|
|
name: 'tag',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsHashtagTag,
|
2018-05-31 09:39:13 +02:00
|
|
|
props: true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-04-15 13:22:27 +02:00
|
|
|
{
|
|
|
|
path: 'search',
|
|
|
|
name: 'search',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsSearch
|
2018-04-15 13:22:27 +02:00
|
|
|
},
|
2018-11-01 18:01:04 +01:00
|
|
|
{
|
|
|
|
path: 'direct-messages',
|
|
|
|
name: 'direct-messages',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsDirectMessages
|
2018-11-01 18:01:04 +01:00
|
|
|
},
|
2018-04-09 01:43:11 +02:00
|
|
|
{
|
2018-06-16 08:33:52 +02:00
|
|
|
path: 'lists',
|
2018-04-09 01:43:11 +02:00
|
|
|
name: 'lists',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsListsIndex
|
2018-06-16 08:33:52 +02:00
|
|
|
},
|
2018-06-17 17:11:36 +02:00
|
|
|
{
|
|
|
|
path: 'lists/:list_id/edit',
|
|
|
|
name: 'edit-list',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsListsEdit,
|
2018-06-17 17:11:36 +02:00
|
|
|
props: true
|
|
|
|
},
|
2018-06-16 08:33:52 +02:00
|
|
|
{
|
|
|
|
path: 'lists/:list_id',
|
|
|
|
name: 'list',
|
2019-05-09 16:54:53 +02:00
|
|
|
component: TimelineSpaceContentsListsShow,
|
2018-04-09 14:10:25 +02:00
|
|
|
props: true
|
2018-03-09 07:21:25 +01:00
|
|
|
}
|
|
|
|
]
|
2018-03-08 11:53:14 +01:00
|
|
|
}
|
|
|
|
]
|
2018-03-08 10:36:09 +01:00
|
|
|
},
|
2018-03-07 14:28:48 +01:00
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
redirect: '/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
2019-04-17 14:05:47 +02:00
|
|
|
|
|
|
|
export default router
|