mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 08:32:14 +00:00
make new emoji module in vuex, add funcionality for grouping emojis
This commit is contained in:
19
resources/js/helpers.js
vendored
19
resources/js/helpers.js
vendored
@@ -353,25 +353,10 @@ const Helpers = {
|
||||
body.classList.add('windows')
|
||||
}
|
||||
},
|
||||
Vue.prototype.$transferListTwemoji = function (elementId) {
|
||||
|
||||
// Transfer whole DOOM or set element to twemoji
|
||||
this.$nextTick(() => {
|
||||
let list = elementId ? document.getElementById(elementId) : document.body
|
||||
|
||||
twemoji.parse(list, {
|
||||
folder: 'svg',
|
||||
ext: '.svg',
|
||||
attributes: () => ({
|
||||
loading: 'lazy',
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
Vue.prototype.$transferSingleTwemoji = function (emoji, jsonParse) {
|
||||
|
||||
|
||||
// Transfer single emoji to twemoji
|
||||
return twemoji.parse( !jsonParse ? emoji : JSON.parse(emoji).char , {
|
||||
return twemoji.parse( !jsonParse ? emoji.char : JSON.parse(emoji).char , {
|
||||
folder: 'svg',
|
||||
ext: '.svg',
|
||||
attributes: () => ({
|
||||
|
||||
Reference in New Issue
Block a user