顔文字選択画面を改新
This commit is contained in:
parent
9abbabd64f
commit
be45be0be9
@ -7,7 +7,7 @@
|
|||||||
@drop.stop="onDrop"
|
@drop.stop="onDrop"
|
||||||
>
|
>
|
||||||
<header>
|
<header>
|
||||||
<button v-if="!fixed" class="cancel _button" @click="cancel"><i class="fas fa-times"></i></button>
|
<button v-if="!fixed" class="cancel _button" @click="cancel"><i class="fas fa-times"></i></button>
|
||||||
<div>
|
<div>
|
||||||
<span class="text-count" :class="{ over: textLength > maxTextLength }">{{ maxTextLength - textLength }}</span>
|
<span class="text-count" :class="{ over: textLength > maxTextLength }">{{ maxTextLength - textLength }}</span>
|
||||||
<span v-if="localOnly" class="local-only"><i class="fas fa-biohazard"></i></span>
|
<span v-if="localOnly" class="local-only"><i class="fas fa-biohazard"></i></span>
|
||||||
@ -85,6 +85,8 @@ import MkInfo from '@/components/ui/info.vue';
|
|||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
import { instance } from '@/instance';
|
import { instance } from '@/instance';
|
||||||
import { $i, getAccounts, openAccountMenu as openAccountMenu_ } from '@/account';
|
import { $i, getAccounts, openAccountMenu as openAccountMenu_ } from '@/account';
|
||||||
|
import {api} from "@/os";
|
||||||
|
import {deckStore} from "@/ui/deck/deck-store";
|
||||||
|
|
||||||
const modal = inject('modal');
|
const modal = inject('modal');
|
||||||
|
|
||||||
@ -354,43 +356,19 @@ function chooseFileFrom(ev) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function kao() {
|
async function kao() {
|
||||||
const faces = [
|
const response = await fetch("https://nullc.at/kaomoji.txt").then(value => value.text())
|
||||||
"(=^・・^=)",
|
|
||||||
"v('ω')v",
|
const faces = response.trim().split('\n').map(kao => {
|
||||||
"( ᐢ˙꒳˙ᐢ )",
|
return {
|
||||||
"(。>﹏<。)",
|
type: 'button' as const,
|
||||||
"(Δ・x・Δ)",
|
text: kao,
|
||||||
"(´-ω-`)",
|
action() {
|
||||||
"(๑•﹏•)",
|
text += kao
|
||||||
"(。ì _ í。)",
|
},
|
||||||
"(´×ω×`)",
|
}
|
||||||
"(´+ω+`)",
|
|
||||||
"(。-ω-)zzz",
|
|
||||||
"(><)",
|
|
||||||
"(。>ㅿ<。)",
|
|
||||||
"(´;ω;`)",
|
|
||||||
"ฅ^•ω•^ฅ",
|
|
||||||
"⊂(・﹏・⊂)",
|
|
||||||
"ᕦ(ò_óˇ)ᕤ",
|
|
||||||
"ᕙ(⇀‸↼‶)ᕗ",
|
|
||||||
"(・o・;)",
|
|
||||||
"(。ŏ﹏ŏ)",
|
|
||||||
"Σ(^._.^=ノ)ノ",
|
|
||||||
" (๑•̀ - •́)و✧",
|
|
||||||
"(,,> <,,)♡",
|
|
||||||
"o(>_<)o",
|
|
||||||
"(っ´・ω・)っ",
|
|
||||||
"(´。-ω(-ω-。`)ギュ",
|
|
||||||
].map(kao => {
|
|
||||||
return { value: kao, text: kao }
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const dialog = await os.select({
|
await os.popupMenu(faces)
|
||||||
title: "ฅ(=✧ω✧=)ฅ",
|
|
||||||
items: faces,
|
|
||||||
})
|
|
||||||
|
|
||||||
text += dialog.result || ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function detachFile(id) {
|
function detachFile(id) {
|
||||||
@ -783,7 +761,7 @@ onMounted(() => {
|
|||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .local-only {
|
> .local-only {
|
||||||
margin: 0 0 0 12px;
|
margin: 0 0 0 12px;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user