diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-16 12:23:07 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-11-21 15:23:40 +0100 |
commit | ae9aa08c877b61958005ab3f5ea5804f5b88cf4a (patch) | |
tree | ce94c8373bc2a905937fc8fb0f5b9d5ac5b8694f /src/main.js | |
parent | c23f32c776f129299d58001baf4c4759d75be84d (diff) |
Add twemoji parsing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/main.js')
-rw-r--r-- | src/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js index 1186c72a..ab525375 100644 --- a/src/main.js +++ b/src/main.js @@ -27,6 +27,7 @@ import { sync } from 'vuex-router-sync' import App from './App' import store from './store' import router from './router' +import vuetwemoji from 'vue-twemoji' sync(store, router) @@ -44,6 +45,13 @@ Vue.prototype.n = n Vue.prototype.OC = OC Vue.prototype.OCA = OCA +Vue.use(vuetwemoji, { + baseUrl: OC.linkTo('social', 'img/'), //can set to local folder of emojis. default: https://twemoji.maxcdn.com/ + extension: '.svg', //.svg, .png + className: 'emoji', //custom className for image output + size: 'svg' //image size +}) + /* eslint-disable-next-line no-new */ new Vue({ router: router, |