From c2e053a208609d59188dce9e328c1ab9706aa35c Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 25 Apr 2018 19:53:16 +0900 Subject: [PATCH] wip --- src/client/app/desktop/script.ts | 2 + .../app/desktop/views/components/index.ts | 2 + .../desktop/views/components/lists-window.vue | 2 +- .../app/desktop/views/components/notes.vue | 53 +++++- .../views/components/timeline.core.vue | 81 ++++---- ...st-timeline.vue => user-list-timeline.vue} | 53 ++++-- .../views/pages/{list.vue => user-list.vue} | 12 +- src/server/api/endpoints.ts | 29 +++ .../api/endpoints/notes/user-list-timeline.ts | 179 ++++++++++++++++++ src/server/api/endpoints/users/lists/show.ts | 23 +++ .../api/endpoints/users/search_by_username.ts | 6 +- 11 files changed, 363 insertions(+), 79 deletions(-) rename src/client/app/desktop/views/components/{list-timeline.vue => user-list-timeline.vue} (60%) rename src/client/app/desktop/views/pages/{list.vue => user-list.vue} (81%) create mode 100644 src/server/api/endpoints/notes/user-list-timeline.ts create mode 100644 src/server/api/endpoints/users/lists/show.ts diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index 3b0ed48cd..2658a86b9 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -28,6 +28,7 @@ import MkUser from './views/pages/user/user.vue'; import MkFavorites from './views/pages/favorites.vue'; import MkSelectDrive from './views/pages/selectdrive.vue'; import MkDrive from './views/pages/drive.vue'; +import MkUserList from './views/pages/user-list.vue'; import MkHomeCustomize from './views/pages/home-customize.vue'; import MkMessagingRoom from './views/pages/messaging-room.vue'; import MkNote from './views/pages/note.vue'; @@ -55,6 +56,7 @@ init(async (launch) => { { path: '/i/messaging/:user', component: MkMessagingRoom }, { path: '/i/drive', component: MkDrive }, { path: '/i/drive/folder/:folder', component: MkDrive }, + { path: '/i/lists/:list', component: MkUserList }, { path: '/selectdrive', component: MkSelectDrive }, { path: '/search', component: MkSearch }, { path: '/othello', component: MkOthello }, diff --git a/src/client/app/desktop/views/components/index.ts b/src/client/app/desktop/views/components/index.ts index 4f61f4369..f58d0706d 100644 --- a/src/client/app/desktop/views/components/index.ts +++ b/src/client/app/desktop/views/components/index.ts @@ -28,6 +28,7 @@ import friendsMaker from './friends-maker.vue'; import followers from './followers.vue'; import following from './following.vue'; import usersList from './users-list.vue'; +import userListTimeline from './user-list-timeline.vue'; import widgetContainer from './widget-container.vue'; Vue.component('mk-ui', ui); @@ -58,4 +59,5 @@ Vue.component('mk-friends-maker', friendsMaker); Vue.component('mk-followers', followers); Vue.component('mk-following', following); Vue.component('mk-users-list', usersList); +Vue.component('mk-user-list-timeline', userListTimeline); Vue.component('mk-widget-container', widgetContainer); diff --git a/src/client/app/desktop/views/components/lists-window.vue b/src/client/app/desktop/views/components/lists-window.vue index 7097e5ed4..30b1794a2 100644 --- a/src/client/app/desktop/views/components/lists-window.vue +++ b/src/client/app/desktop/views/components/lists-window.vue @@ -1,6 +1,6 @@