refs #165 Add basic search content
This commit is contained in:
parent
41dbd3dc50
commit
880484adc6
|
@ -0,0 +1,14 @@
|
|||
<template>
|
||||
<div id="search">
|
||||
search
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'search'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lnag="scss" scoped>
|
||||
</style>
|
|
@ -40,10 +40,13 @@ export default {
|
|||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', 'Favourite')
|
||||
break
|
||||
case 'local':
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', 'LocalTimeline')
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', 'Local timeline')
|
||||
break
|
||||
case 'public':
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', 'PublicTimeline')
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', 'Public timeline')
|
||||
break
|
||||
case 'search':
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/updateTitle', 'Search')
|
||||
break
|
||||
case 'lists':
|
||||
this.$store.dispatch('TimelineSpace/HeaderMenu/fetchList', this.$route.params.list_id)
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
<icon name="globe"></icon>
|
||||
<span>Public timeline</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item :index="`/${id()}/search`">
|
||||
<icon name="search"></icon>
|
||||
<span>Search</span>
|
||||
</el-menu-item>
|
||||
<li class="el-menu-item menu-item-title">
|
||||
<icon name="list-ul"></icon>
|
||||
<span>Lists</span>
|
||||
|
|
|
@ -67,6 +67,11 @@ export default new Router({
|
|||
name: 'public',
|
||||
component: require('@/components/TimelineSpace/Contents/Public').default
|
||||
},
|
||||
{
|
||||
path: 'search',
|
||||
name: 'search',
|
||||
component: require('@/components/TimelineSpace/Contents/Search').default
|
||||
},
|
||||
{
|
||||
path: 'lists/:list_id',
|
||||
name: 'lists',
|
||||
|
|
|
@ -4,6 +4,7 @@ import Notifications from './Contents/Notifications'
|
|||
import Favourites from './Contents/Favourites'
|
||||
import Local from './Contents/Local'
|
||||
import Public from './Contents/Public'
|
||||
import Search from './Contents/Search'
|
||||
import Lists from './Contents/Lists'
|
||||
import Cards from './Contents/Cards'
|
||||
|
||||
|
@ -16,6 +17,7 @@ const Contents = {
|
|||
Favourites,
|
||||
Local,
|
||||
Public,
|
||||
Search,
|
||||
Lists,
|
||||
Cards
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
const Search = {
|
||||
namespaced: true,
|
||||
state: {},
|
||||
mutations: {},
|
||||
actions: {}
|
||||
}
|
||||
|
||||
export default Search
|
Loading…
Reference in New Issue