mirror of
https://github.com/kokonect-link/cherrypick
synced 2025-01-19 08:13:14 +09:00
Fix: lint error
This commit is contained in:
parent
e1b45bd400
commit
808602cac8
@ -42,11 +42,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<MkEmoji v-else class="emoji" :emoji="emoji" :normal="true"/>
|
||||
</button>
|
||||
</div>
|
||||
<div v-if="shown" style="padding-left: 18px;">
|
||||
<div v-if="shown" v-for="child in customEmojiTree" style="padding-left: 18px;">
|
||||
<!-- TODO: 再帰へのイベントの渡し方が微妙なのか反応はするがエフェクトが出ない -->
|
||||
<MkEmojiPickerSection
|
||||
v-if="shown"
|
||||
v-for="child in customEmojiTree"
|
||||
:key="`custom:${child.value}`"
|
||||
:initialShown="initialShown"
|
||||
:emojis="computed(() => customEmojis.filter(e => e.category === child.category).map(e => `:${e.name}:`))"
|
||||
@ -62,9 +60,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, computed, Ref } from 'vue';
|
||||
import {CustomEmojiFolderTree, getEmojiName} from '@/scripts/emojilist.js';
|
||||
import {i18n} from "../i18n.js";
|
||||
import {customEmojis} from "@/custom-emojis.js";
|
||||
import { CustomEmojiFolderTree, getEmojiName } from '@/scripts/emojilist.js';
|
||||
import { i18n } from "../i18n.js";
|
||||
import { customEmojis } from "@/custom-emojis.js";
|
||||
import MkEmojiPickerSection from "@/components/MkEmojiPicker.section.vue";
|
||||
|
||||
const props = defineProps<{
|
||||
|
@ -153,12 +153,11 @@ const searchResultCustom = ref<Misskey.entities.CustomEmoji[]>([]);
|
||||
const searchResultUnicode = ref<UnicodeEmojiDef[]>([]);
|
||||
const tab = ref<'index' | 'custom' | 'unicode' | 'tags'>('index');
|
||||
|
||||
|
||||
const customEmojiFolderRoot: CustomEmojiFolderTree = { value: "", category: "", children: [] };
|
||||
|
||||
function parseAndMergeCategories(input: string, root: CustomEmojiFolderTree): CustomEmojiFolderTree {
|
||||
const parts = input.split('/');
|
||||
var category = ""
|
||||
let category = ""
|
||||
let currentNode: CustomEmojiFolderTree = root;
|
||||
|
||||
for (const part of parts) {
|
||||
|
Loading…
Reference in New Issue
Block a user