From c7f80182c251237d34fa17d67baf055ae3632b04 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 25 Apr 2018 12:36:54 +0900 Subject: [PATCH] wip --- .eslintrc | 1 + .../views/components/list-timeline.vue | 75 ++++++++++++++++ .../desktop/views/components/lists-window.vue | 17 +++- .../app/desktop/views/components/notes.vue | 88 +++++++++++++++++-- .../views/components/timeline.core.vue | 70 ++++----------- .../views/components/ui.header.account.vue | 5 ++ src/client/app/desktop/views/pages/list.vue | 72 +++++++++++++++ 7 files changed, 264 insertions(+), 64 deletions(-) create mode 100644 src/client/app/desktop/views/components/list-timeline.vue create mode 100644 src/client/app/desktop/views/pages/list.vue diff --git a/.eslintrc b/.eslintrc index 7a74d6ef9b..0943cb4b64 100644 --- a/.eslintrc +++ b/.eslintrc @@ -14,6 +14,7 @@ "vue/no-unused-vars": false, "vue/attributes-order": false, "vue/require-prop-types": false, + "vue/require-default-prop": false, "no-console": 0, "no-unused-vars": 0, "no-empty": 0 diff --git a/src/client/app/desktop/views/components/list-timeline.vue b/src/client/app/desktop/views/components/list-timeline.vue new file mode 100644 index 0000000000..61300f6f8f --- /dev/null +++ b/src/client/app/desktop/views/components/list-timeline.vue @@ -0,0 +1,75 @@ + + + diff --git a/src/client/app/desktop/views/components/lists-window.vue b/src/client/app/desktop/views/components/lists-window.vue index 7d6a5def2c..7097e5ed4b 100644 --- a/src/client/app/desktop/views/components/lists-window.vue +++ b/src/client/app/desktop/views/components/lists-window.vue @@ -2,10 +2,8 @@ %fa:list% リスト - - - - + + {{ list.title }} @@ -25,6 +23,17 @@ export default Vue.extend({ }); }, methods: { + add() { + (this as any).apis.input({ + title: 'リスト名', + }).then(async title => { + const list = await (this as any).api('users/lists/create', { + title + }); + + this.$router.push(`i/lists/${ list.id }`); + }); + }, close() { (this as any).$refs.window.close(); } diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue index 1a33a4240b..2822cb8c0f 100644 --- a/src/client/app/desktop/views/components/notes.vue +++ b/src/client/app/desktop/views/components/notes.vue @@ -9,8 +9,11 @@

-