mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-29 20:03:08 +02:00
c2370a1be6
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
47 lines
927 B
Vue
47 lines
927 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<MkWindow
|
|
ref="window"
|
|
:initialWidth="300"
|
|
:initialHeight="290"
|
|
:canResize="true"
|
|
:mini="true"
|
|
:front="true"
|
|
@closed="emit('closed')"
|
|
>
|
|
<MkEmojiPicker :showPinned="showPinned" :asReactionPicker="asReactionPicker" asWindow :class="$style.picker" @chosen="chosen"/>
|
|
</MkWindow>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { } from 'vue';
|
|
import MkWindow from '@/components/MkWindow.vue';
|
|
import MkEmojiPicker from '@/components/MkEmojiPicker.vue';
|
|
|
|
withDefaults(defineProps<{
|
|
src?: HTMLElement;
|
|
showPinned?: boolean;
|
|
asReactionPicker?: boolean;
|
|
}>(), {
|
|
showPinned: true,
|
|
});
|
|
|
|
const emit = defineEmits<{
|
|
(ev: 'chosen', v: any): void;
|
|
(ev: 'closed'): void;
|
|
}>();
|
|
|
|
function chosen(emoji: any) {
|
|
emit('chosen', emoji);
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.picker {
|
|
height: 100%;
|
|
}
|
|
</style>
|