カスタム絵文字一覧情報をmetaから分離
This commit is contained in:
parent
e4144a17a4
commit
462acc9eee
17 changed files with 212 additions and 151 deletions
|
@ -47,6 +47,9 @@ import { emojilist } from '@/scripts/emojilist';
|
|||
import { instance } from '@/instance';
|
||||
import { i18n } from '@/i18n';
|
||||
import { miLocalStorage } from '@/local-storage';
|
||||
import { getCustomEmojis } from '@/custom-emojis';
|
||||
|
||||
const customEmojis = await getCustomEmojis();
|
||||
|
||||
type EmojiDef = {
|
||||
emoji: string;
|
||||
|
@ -86,7 +89,6 @@ for (const x of lib) {
|
|||
emjdb.sort((a, b) => a.name.length - b.name.length);
|
||||
|
||||
//#region Construct Emoji DB
|
||||
const customEmojis = instance.emojis;
|
||||
const emojiDefinitions: EmojiDef[] = [];
|
||||
|
||||
for (const x of customEmojis) {
|
||||
|
@ -117,7 +119,6 @@ export default {
|
|||
emojiDb,
|
||||
emojiDefinitions,
|
||||
emojilist,
|
||||
customEmojis,
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue