mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-20 14:51:33 +00:00
remove futoji
This commit is contained in:
parent
84fc7b4f84
commit
920b7d9ffe
4 changed files with 424 additions and 433 deletions
839
package-lock.json
generated
839
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -10,7 +10,6 @@
|
|||
"dependencies": {
|
||||
"axios": "^0.19.0",
|
||||
"filesize": "^4.1.2",
|
||||
"futoji": "^0.5.0",
|
||||
"highlight.js": "^9.15.8",
|
||||
"jquery": "^3.4.0",
|
||||
"markdown-it": "^9.0.1",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import Formatter from 'futoji'
|
||||
import twemoji from 'twemoji'
|
||||
import emojiParser from '@/utils/emojiParser';
|
||||
import config from "@/config.js";
|
||||
|
|
@ -27,17 +26,6 @@ const markdown = new MarkdownIt({
|
|||
}).use(chatPlugin)
|
||||
.use(customEmoji);
|
||||
|
||||
const emojiFormatter = new Formatter();
|
||||
|
||||
emojiFormatter.addTransformer({
|
||||
name:'customEmoji2',
|
||||
symbol: ':',
|
||||
padding: false,
|
||||
recursive: false,
|
||||
validate: text => /.+?&(.+?)/.test(text),
|
||||
transformer: owo
|
||||
})
|
||||
|
||||
function owo (text) {
|
||||
const split = text.split('&');
|
||||
if (!split || split.length <= 1) return `:${text}:`;
|
||||
|
|
|
|||
|
|
@ -3851,11 +3851,6 @@ functional-red-black-tree@^1.0.1:
|
|||
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
|
||||
integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
|
||||
|
||||
futoji@^0.5.0:
|
||||
version "0.5.1"
|
||||
resolved "https://registry.yarnpkg.com/futoji/-/futoji-0.5.1.tgz#56caf73aeca52b86cfc9558ccc9b52a4eb072bb3"
|
||||
integrity sha512-AIm9uVmjFq0UG6FKy7J1Gq/KOY+Gzb9uig5Xu+vjPy9l6SM8Jgaaw7qscgKD4NdHFM9IXqeC5s35o0toV1fOTQ==
|
||||
|
||||
gauge@~2.7.3:
|
||||
version "2.7.4"
|
||||
resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
|
||||
|
|
|
|||
Loading…
Reference in a new issue