mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 16:03:09 +02:00
[Client:Desktop] Add the 'Insert The Cat' button
This commit is contained in:
parent
8a35d7fd30
commit
fda8fea9b9
1 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue