From d1513e97e1a40eeb3994aa58a53a59417bd2a767 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 16 Feb 2019 06:50:58 +0900 Subject: [PATCH] =?UTF-8?q?Explore=E3=83=9A=E3=83=BC=E3=82=B8=E3=82=92?= =?UTF-8?q?=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/ja-JP.yml | 3 +- .../app/common/views/components/index.ts | 2 + .../app/common/views/components/user-list.vue | 73 ++++++++++++ src/client/app/common/views/pages/explore.vue | 64 +++++++++++ src/client/app/desktop/script.ts | 2 + .../desktop/views/components/ui-container.vue | 106 +++++++++++------- .../views/components/ui.header.account.vue | 17 ++- .../views/components/ui.header.messaging.vue | 68 +++++++++++ .../views/components/ui.header.nav.vue | 50 ++------- .../desktop/views/components/ui.header.vue | 3 + .../desktop/views/components/user-card.vue | 4 +- .../app/desktop/views/deck/deck.column.vue | 3 +- .../views/deck/deck.explore-column.vue | 34 ++++++ .../desktop/views/deck/deck.user-column.vue | 94 +++++----------- src/client/app/mobile/script.ts | 1 + .../mobile/views/components/ui-container.vue | 15 ++- .../app/mobile/views/components/ui.nav.vue | 5 +- src/client/app/mobile/views/pages/explore.vue | 37 ++++++ src/models/user.ts | 3 + src/server/api/endpoints/users.ts | 38 ++++++- 20 files changed, 462 insertions(+), 160 deletions(-) create mode 100644 src/client/app/common/views/components/user-list.vue create mode 100644 src/client/app/common/views/pages/explore.vue create mode 100644 src/client/app/desktop/views/components/ui.header.messaging.vue create mode 100644 src/client/app/desktop/views/deck/deck.explore-column.vue create mode 100644 src/client/app/mobile/views/pages/explore.vue diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 659ece2d1..dccc8df12 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -60,6 +60,8 @@ common: trash: "ゴミ箱" drive: "ドライブ" messaging: "トーク" + deck: "デッキ" + explore: "みつける" weekday-short: sunday: "日" @@ -1084,7 +1086,6 @@ desktop/views/components/ui.header.account.vue: desktop/views/components/ui.header.nav.vue: home: "ホーム" - deck: "デッキ" game: "ゲーム" desktop/views/components/ui.header.notifications.vue: diff --git a/src/client/app/common/views/components/index.ts b/src/client/app/common/views/components/index.ts index f60f7391d..f4d40f9b1 100644 --- a/src/client/app/common/views/components/index.ts +++ b/src/client/app/common/views/components/index.ts @@ -33,6 +33,7 @@ import urlPreview from './url-preview.vue'; import fileTypeIcon from './file-type-icon.vue'; import emoji from './emoji.vue'; import welcomeTimeline from './welcome-timeline.vue'; +import userList from './user-list.vue'; import uiInput from './ui/input.vue'; import uiButton from './ui/button.vue'; import uiHorizonGroup from './ui/horizon-group.vue'; @@ -79,6 +80,7 @@ Vue.component('mk-url-preview', urlPreview); Vue.component('mk-file-type-icon', fileTypeIcon); Vue.component('mk-emoji', emoji); Vue.component('mk-welcome-timeline', welcomeTimeline); +Vue.component('mk-user-list', userList); Vue.component('ui-input', uiInput); Vue.component('ui-button', uiButton); Vue.component('ui-horizon-group', uiHorizonGroup); diff --git a/src/client/app/common/views/components/user-list.vue b/src/client/app/common/views/components/user-list.vue new file mode 100644 index 000000000..35569687b --- /dev/null +++ b/src/client/app/common/views/components/user-list.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/src/client/app/common/views/pages/explore.vue b/src/client/app/common/views/pages/explore.vue new file mode 100644 index 000000000..b1e28415d --- /dev/null +++ b/src/client/app/common/views/pages/explore.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index fe1315115..1ec7de0cc 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -135,6 +135,7 @@ init(async (launch, os) => { { 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: '/explore', component: () => import('./views/deck/deck.explore-column.vue').then(m => m.default) }, { path: '/i/favorites', component: () => import('./views/deck/deck.favorites-column.vue').then(m => m.default) } ]} : { path: '/', component: MkHome, children: [ @@ -144,6 +145,7 @@ init(async (launch, os) => { { 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: '/explore', component: () => import('../common/views/pages/explore.vue').then(m => m.default) }, { path: '/i/favorites', component: () => import('./views/home/favorites.vue').then(m => m.default) } ]}, { path: '/i/messaging/:user', component: MkMessagingRoom }, diff --git a/src/client/app/desktop/views/components/ui-container.vue b/src/client/app/desktop/views/components/ui-container.vue index b4f7744d4..04351b29c 100644 --- a/src/client/app/desktop/views/components/ui-container.vue +++ b/src/client/app/desktop/views/components/ui-container.vue @@ -1,5 +1,5 @@