chore: moved isEmoji function in utils
This commit is contained in:
parent
f0b6988076
commit
f3e02974b9
@ -200,11 +200,11 @@ import ColumnSettings from '@/components/ColumnSettings.vue'
|
||||
import { globalStore } from '@/stores/global'
|
||||
import { viewsStore } from '@/stores/views'
|
||||
import { usersStore } from '@/stores/users'
|
||||
import { isEmoji } from '@/utils'
|
||||
import { createResource, Dropdown, call, FeatherIcon } from 'frappe-ui'
|
||||
import { computed, ref, onMounted, watch, h } from 'vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { useDebounceFn } from '@vueuse/core'
|
||||
import { gemoji } from 'gemoji'
|
||||
|
||||
const props = defineProps({
|
||||
doctype: {
|
||||
@ -249,11 +249,6 @@ const currentView = computed(() => {
|
||||
}
|
||||
})
|
||||
|
||||
function isEmoji(str) {
|
||||
const emojiList = gemoji.map((emoji) => emoji.emoji)
|
||||
return emojiList.includes(str)
|
||||
}
|
||||
|
||||
const view = ref({
|
||||
name: '',
|
||||
label: '',
|
||||
|
||||
@ -2,6 +2,7 @@ import TaskStatusIcon from '@/components/Icons/TaskStatusIcon.vue'
|
||||
import TaskPriorityIcon from '@/components/Icons/TaskPriorityIcon.vue'
|
||||
import { useDateFormat, useTimeAgo } from '@vueuse/core'
|
||||
import { usersStore } from '@/stores/users'
|
||||
import { gemoji } from 'gemoji'
|
||||
import { toast } from 'frappe-ui'
|
||||
import { h } from 'vue'
|
||||
|
||||
@ -169,3 +170,8 @@ export function copyToClipboard(text) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function isEmoji(str) {
|
||||
const emojiList = gemoji.map((emoji) => emoji.emoji)
|
||||
return emojiList.includes(str)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user