From e770cd6f55a5e424e731ebb89b5a091afa129904 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 1 Nov 2017 02:16:05 +0900 Subject: [PATCH] wip --- src/web/app/desktop/router.js | 5 + src/web/app/desktop/tags/index.js | 1 + src/web/app/desktop/tags/pages/channel.tag | 33 +++- .../app/desktop/tags/pages/drive-chooser.tag | 44 ----- .../app/desktop/tags/pages/selectdrive.tag | 159 ++++++++++++++++++ 5 files changed, 196 insertions(+), 46 deletions(-) delete mode 100644 src/web/app/desktop/tags/pages/drive-chooser.tag create mode 100644 src/web/app/desktop/tags/pages/selectdrive.tag diff --git a/src/web/app/desktop/router.js b/src/web/app/desktop/router.js index d9300cc69a..df67bb7b7c 100644 --- a/src/web/app/desktop/router.js +++ b/src/web/app/desktop/router.js @@ -8,6 +8,7 @@ let page = null; export default me => { route('/', index); + route('/selectdrive', selectDrive); route('/i>mentions', mentions); route('/channel', channels); route('/channel/:channel', channel); @@ -66,6 +67,10 @@ export default me => { mount(document.createElement('mk-channels-page')); } + function selectDrive() { + mount(document.createElement('mk-selectdrive-page')); + } + function notFound() { mount(document.createElement('mk-not-found')); } diff --git a/src/web/app/desktop/tags/index.js b/src/web/app/desktop/tags/index.js index 7fdeb6884d..0b92d8c236 100644 --- a/src/web/app/desktop/tags/index.js +++ b/src/web/app/desktop/tags/index.js @@ -63,6 +63,7 @@ require('./pages/search.tag'); require('./pages/not-found.tag'); require('./pages/channel.tag'); require('./pages/channels.tag'); +require('./pages/selectdrive.tag'); require('./autocomplete-suggestion.tag'); require('./progress-dialog.tag'); require('./user-preview.tag'); diff --git a/src/web/app/desktop/tags/pages/channel.tag b/src/web/app/desktop/tags/pages/channel.tag index ebd26f07b8..a14c0648c4 100644 --- a/src/web/app/desktop/tags/pages/channel.tag +++ b/src/web/app/desktop/tags/pages/channel.tag @@ -2,7 +2,9 @@

{ parent.channel.title }

- + + +
@@ -68,6 +70,11 @@
>>{ post.reply_to.index } { post.text } +
+ + { + +
diff --git a/src/web/app/desktop/tags/pages/drive-chooser.tag b/src/web/app/desktop/tags/pages/drive-chooser.tag deleted file mode 100644 index 49741ad40c..0000000000 --- a/src/web/app/desktop/tags/pages/drive-chooser.tag +++ /dev/null @@ -1,44 +0,0 @@ - - -
- - - -
- - - -
diff --git a/src/web/app/desktop/tags/pages/selectdrive.tag b/src/web/app/desktop/tags/pages/selectdrive.tag new file mode 100644 index 0000000000..b196357d85 --- /dev/null +++ b/src/web/app/desktop/tags/pages/selectdrive.tag @@ -0,0 +1,159 @@ + + +
+ + + +
+ + + +