diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index 2c2c28745..138cf6e63 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -18,7 +18,6 @@ import MkUserFollowingOrFollowers from './views/pages/user-following-or-follower import MkSelectDrive from './views/pages/selectdrive.vue'; import MkDrive from './views/pages/drive.vue'; import MkMessagingRoom from './views/pages/messaging-room.vue'; -import MkSearch from './views/pages/search.vue'; import MkReversi from './views/pages/games/reversi.vue'; import MkShare from './views/pages/share.vue'; import MkFollow from '../common/views/pages/follow.vue'; @@ -133,6 +132,7 @@ init(async (launch, os) => { ? { path: '/', name: 'index', component: MkDeck, children: [ { path: '/@:user', name: 'user', component: () => import('./views/deck/deck.user-column.vue').then(m => m.default) }, { path: '/notes/:note', name: 'note', component: () => import('./views/deck/deck.note-column.vue').then(m => m.default) }, + { path: '/search', component: () => import('./views/deck/deck.search-column.vue').then(m => m.default) }, { path: '/tags/:tag', name: 'tag', component: () => import('./views/deck/deck.hashtag-column.vue').then(m => m.default) }, { path: '/featured', component: () => import('./views/deck/deck.featured-column.vue').then(m => m.default) }, { path: '/i/favorites', component: () => import('./views/deck/deck.favorites-column.vue').then(m => m.default) } @@ -141,6 +141,7 @@ init(async (launch, os) => { { path: '', name: 'index', component: MkHomeTimeline }, { path: '/@:user', name: 'user', component: () => import('./views/home/user/user.vue').then(m => m.default) }, { path: '/notes/:note', name: 'note', component: () => import('./views/home/note.vue').then(m => m.default) }, + { path: '/search', component: () => import('./views/home/search.vue').then(m => m.default) }, { path: '/tags/:tag', name: 'tag', component: () => import('./views/home/tag.vue').then(m => m.default) }, { path: '/featured', component: () => import('./views/home/featured.vue').then(m => m.default) }, { path: '/i/favorites', component: () => import('./views/home/favorites.vue').then(m => m.default) } @@ -150,7 +151,6 @@ init(async (launch, os) => { { path: '/i/drive/folder/:folder', component: MkDrive }, { path: '/i/settings', component: MkSettings }, { path: '/selectdrive', component: MkSelectDrive }, - { path: '/search', component: MkSearch }, { path: '/share', component: MkShare }, { path: '/games/reversi/:game?', component: MkReversi }, { path: '/@:user/following', name: 'userFollowing', component: MkUserFollowingOrFollowers }, diff --git a/src/client/app/desktop/views/deck/deck.search-column.vue b/src/client/app/desktop/views/deck/deck.search-column.vue new file mode 100644 index 000000000..d732f524d --- /dev/null +++ b/src/client/app/desktop/views/deck/deck.search-column.vue @@ -0,0 +1,99 @@ + + + + {{ q }} + + + + + + + + + diff --git a/src/client/app/desktop/views/pages/search.vue b/src/client/app/desktop/views/home/search.vue similarity index 69% rename from src/client/app/desktop/views/pages/search.vue rename to src/client/app/desktop/views/home/search.vue index fc31673ba..993467b4b 100644 --- a/src/client/app/desktop/views/pages/search.vue +++ b/src/client/app/desktop/views/home/search.vue @@ -1,12 +1,14 @@ - - - {{ q }} - - {{ $t('not-available') }} - {{ $t('not-found', { q }) }} - - + + + + {{ q }} + + {{ $t('not-available') }} + {{ $t('not-found', { q }) }} + + + - diff --git a/src/client/app/desktop/views/home/tag.vue b/src/client/app/desktop/views/home/tag.vue index 9e0978fb0..182c8f351 100644 --- a/src/client/app/desktop/views/home/tag.vue +++ b/src/client/app/desktop/views/home/tag.vue @@ -98,7 +98,6 @@ export default Vue.extend({ box-shadow var(--shadow) border-radius var(--round) overflow hidden - overflow hidden .empty display block
{{ $t('not-available') }}
{{ $t('not-found', { q }) }}