diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-01 04:11:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-01 04:11:56 +0900 |
| commit | 42be937fcb6f02037ff4024a2fb1cf463c50ce0c (patch) | |
| tree | e7624c5b525702ee84784a2116fdb586f71a01c5 /src/web | |
| parent | wip (diff) | |
| download | misskey-42be937fcb6f02037ff4024a2fb1cf463c50ce0c.tar.gz misskey-42be937fcb6f02037ff4024a2fb1cf463c50ce0c.tar.bz2 misskey-42be937fcb6f02037ff4024a2fb1cf463c50ce0c.zip | |
wip
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/ch/tags/channel.tag | 7 | ||||
| -rw-r--r-- | src/web/app/ch/tags/index.tag | 13 |
2 files changed, 15 insertions, 5 deletions
diff --git a/src/web/app/ch/tags/channel.tag b/src/web/app/ch/tags/channel.tag index 43a1f851f8..12a6b5a3b9 100644 --- a/src/web/app/ch/tags/channel.tag +++ b/src/web/app/ch/tags/channel.tag @@ -1,4 +1,6 @@ <mk-channel> + <header><a href={ CONFIG.chUrl }>Misskey Channels</a></header> + <hr> <main if={ !fetching }> <h1>{ channel.title }</h1> <p if={ postsFetching }>読み込み中<mk-ellipsis/></p> @@ -21,10 +23,9 @@ <style> :scope display block + padding 8px - main - padding 8px - + > main > h1 color #f00 </style> diff --git a/src/web/app/ch/tags/index.tag b/src/web/app/ch/tags/index.tag index 1c0a037c2d..a64ddb6ccd 100644 --- a/src/web/app/ch/tags/index.tag +++ b/src/web/app/ch/tags/index.tag @@ -1,5 +1,9 @@ <mk-index> - <button onclick={ new }>%i18n:ch.tags.mk-index.new%</button> + <button onclick={ n }>%i18n:ch.tags.mk-index.new%</button> + <hr> + <ul if={ channels }> + <li each={ channels }><a href={ '/' + this.id }>{ this.title }</a></li> + </ul> <style> :scope display block @@ -9,9 +13,14 @@ this.mixin('api'); this.on('mount', () => { + this.api('channels').then(channels => { + this.update({ + channels: channels + }); + }); }); - this.new = () => { + this.n = () => { const title = window.prompt('%i18n:ch.tags.mk-index.channel-title%'); this.api('channels/create', { |