This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/components/Twemoji.vue

46 lines
959 B
Vue
Raw Normal View History

2021-11-15 12:11:25 -08:00
<template>
2022-05-07 09:35:32 -07:00
<!-- twemoji disabled, testing Noto Emoji instead -->
<span>
<slot ref="source"></slot>
</span>
<!--
2021-11-15 12:11:25 -08:00
<span>
<span ref="source" v-show="false">
<slot ref="source"></slot>
</span>
<span ref="target"></span>
</span>
2022-05-07 09:35:32 -07:00
-->
2021-11-15 12:11:25 -08:00
</template>
<script>
2022-05-07 09:35:32 -07:00
// import twemoji from 'twemoji';
2021-11-15 12:11:25 -08:00
export default {
2022-05-07 09:35:32 -07:00
// mounted() {
// this.update();
//
// const observer = new MutationObserver(this.update);
// observer.observe(this.$refs.source, {
// childList: true,
// subtree: true
// });
// this.observer = observer;
// },
// beforeUnmount() {
// this.observer.disconnect();
// },
// methods: {
// update() {
// this.$refs.target.innerHTML = twemoji.parse(this.$refs.source.innerHTML);
// },
// },
2021-11-15 12:11:25 -08:00
};
</script>
<style lang="scss">
.emoji {
height: 1em;
}
</style>