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