make component for emojis

This commit is contained in:
Milos Holba
2021-02-05 18:13:22 +01:00
parent 4158d4f31e
commit 03ef16d90d
7 changed files with 63 additions and 255 deletions

View File

@@ -1,6 +1,5 @@
import i18n from '@/i18n/index'
import store from './store/index'
import twemoji from 'twemoji'
import {debounce, includes} from "lodash";
import {events} from './bus'
import axios from 'axios'
@@ -352,17 +351,6 @@ const Helpers = {
let body = document.body
body.classList.add('windows')
}
},
Vue.prototype.$transferSingleTwemoji = function (emoji, jsonParse) {
// Transfer single emoji to twemoji
return twemoji.parse( !jsonParse ? emoji.char : JSON.parse(emoji).char , {
folder: 'svg',
ext: '.svg',
attributes: () => ({
loading: 'lazy',
})
})
}
}
}