[Client:Desktop] Add the 'Insert The Cat' button

This commit is contained in:
syuilo 2017-02-01 04:43:49 +09:00
parent 8a35d7fd30
commit fda8fea9b9

View file

@ -12,6 +12,7 @@
<mk-uploader ref="uploader"></mk-uploader> <mk-uploader ref="uploader"></mk-uploader>
<button ref="upload" title="PCからファイルを添付" onclick={ selectFile }><i class="fa fa-upload"></i></button> <button ref="upload" title="PCからファイルを添付" onclick={ selectFile }><i class="fa fa-upload"></i></button>
<button ref="drive" title="ドライブからファイルを添付" onclick={ selectFileFromDrive }><i class="fa fa-cloud"></i></button> <button ref="drive" title="ドライブからファイルを添付" onclick={ selectFileFromDrive }><i class="fa fa-cloud"></i></button>
<button class="cat" title="Insert The Cat" onclick={ cat }><i class="fa fa-smile-o"></i></button>
<p class="text-count { over: refs.text.value.length > 500 }">のこり{ 500 - refs.text.value.length }文字</p> <p class="text-count { over: refs.text.value.length > 500 }">のこり{ 500 - refs.text.value.length }文字</p>
<button class={ wait: wait } ref="submit" disabled={ wait || (refs.text.value.length == 0 && files.length == 0) } onclick={ post }>{ wait ? '投稿中' : opts.reply ? '返信' : '投稿' } <button class={ wait: wait } ref="submit" disabled={ wait || (refs.text.value.length == 0 && files.length == 0) } onclick={ post }>{ wait ? '投稿中' : opts.reply ? '返信' : '投稿' }
<mk-ellipsis if={ wait }></mk-ellipsis> <mk-ellipsis if={ wait }></mk-ellipsis>
@ -237,6 +238,7 @@
[ref='upload'] [ref='upload']
[ref='drive'] [ref='drive']
.cat
display inline-block display inline-block
cursor pointer cursor pointer
padding 0 padding 0
@ -425,5 +427,8 @@
.then ~> .then ~>
@wait = false @wait = false
@update! @update!
@cat = ~>
@refs.text.value = @refs.text.value + '(=^・・^=)'
</script> </script>
</mk-post-form> </mk-post-form>