-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fff07f5
commit 7254e51
Showing
11 changed files
with
178 additions
and
54 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
<div id="emoji-picker" style="position: relative"> | ||
<twemoji-picker | ||
id="twemoji-picker" | ||
twemojiPath="https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/" | ||
:twemojiPath="TWEMOJI_PATH" | ||
:emojiData="emojiAllData" | ||
:emojiGroups="emojiGroups" | ||
:skinsSelection="true" | ||
|
@@ -77,12 +77,13 @@ | |
</template> | ||
|
||
<script> | ||
import Twemoji from "twemoji" | ||
import { TwemojiPicker } from "@kevinfaguiar/vue-twemoji-picker" | ||
import EmojiAllData from "@kevinfaguiar/vue-twemoji-picker/emoji-data/en/emoji-all-groups.json" | ||
import EmojiGroups from "@kevinfaguiar/vue-twemoji-picker/emoji-data/emoji-groups.json" | ||
import client from "@/services/TapestryAPI" | ||
import { MAX_COMMUNITY_NAME_LENGTH } from "../cos.config" | ||
import { TWEMOJI_PATH } from "@/utils/constants" | ||
import Helpers from "@/utils/Helpers" | ||
export default { | ||
components: { | ||
|
@@ -100,6 +101,8 @@ export default { | |
}, | ||
data() { | ||
return { | ||
TWEMOJI_PATH: TWEMOJI_PATH, | ||
showPicker: false, | ||
isLoading: false, | ||
isInputTouched: false, | ||
|
@@ -189,9 +192,7 @@ export default { | |
}, | ||
methods: { | ||
getEmojiImgFromUnicode(unicode) { | ||
let div = document.createElement("div") | ||
div.textContent = unicode | ||
return Twemoji.parse(div).innerHTML | ||
return Helpers.getEmojiImgFromUnicode(unicode) | ||
}, | ||
handleEmojiSelect(emoji) { | ||
this.handleChange("icon", emoji) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.