Skip to content

Commit deb3011

Browse files
committed
Replace emojify with unicode emoji
- remove emojify and replace it with custom name-to-unicode replacement - move tribute code to own file as it depends on emoji data This depends on simplemap.json that emojilib publishes which is a 40kB JSON file containing name-to-unicode mappings. It supports 1571 emoji compared to the previous 881 of emojify. Fixes: go-gitea#9182 Fixes: go-gitea#8974 Fixes: go-gitea#8953
1 parent 8bef490 commit deb3011

File tree

902 files changed

+229
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

902 files changed

+229
-114
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ globals:
2323
emojify: false
2424
SimpleMDE: false
2525
u2fApi: false
26+
Tribute: false
2627

2728
rules:
2829
arrow-body-style: [0]

docs/content/page/index.en-us.md

-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ Windows, on architectures like amd64, i386, ARM, PowerPC, and others.
274274
* [DropzoneJS](http://www.dropzonejs.com/)
275275
* [Highlight](https://highlightjs.org/)
276276
* [Clipboard](https://zenorocha.github.io/clipboard.js/)
277-
* [Emojify](https://github.com/Ranks/emojify.js)
278277
* [CodeMirror](https://codemirror.net/)
279278
* [jQuery Date Time Picker](https://github.com/xdan/datetimepicker)
280279
* [jQuery MiniColors](https://github.com/claviska/jquery-minicolors)

docs/content/page/index.fr-fr.md

-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ Le but de ce projet est de fournir de la manière la plus simple, la plus rapide
263263
* [DropzoneJS](http://www.dropzonejs.com/)
264264
* [Highlight](https://highlightjs.org/)
265265
* [Clipboard](https://zenorocha.github.io/clipboard.js/)
266-
* [Emojify](https://github.com/Ranks/emojify.js)
267266
* [CodeMirror](https://codemirror.net/)
268267
* [jQuery Date Time Picker](https://github.com/xdan/datetimepicker)
269268
* [jQuery MiniColors](https://github.com/claviska/jquery-minicolors)

docs/content/page/index.zh-cn.md

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Gitea的首要目标是创建一个极易安装,运行非常快速,安装和
5656
* [DropzoneJS](http://www.dropzonejs.com/)
5757
* [Highlight](https://highlightjs.org/)
5858
* [Clipboard](https://zenorocha.github.io/clipboard.js/)
59-
* [Emojify](https://github.com/Ranks/emojify.js)
6059
* [CodeMirror](https://codemirror.net/)
6160
* [jQuery Date Time Picker](https://github.com/xdan/datetimepicker)
6261
* [jQuery MiniColors](https://github.com/claviska/jquery-minicolors)

docs/content/page/index.zh-tw.md

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Gitea 的首要目標是建立一個容易安裝,運行快速,安装和使
5656
* [DropzoneJS](http://www.dropzonejs.com/)
5757
* [Highlight](https://highlightjs.org/)
5858
* [Clipboard](https://zenorocha.github.io/clipboard.js/)
59-
* [Emojify](https://github.com/Ranks/emojify.js)
6059
* [CodeMirror](https://codemirror.net/)
6160
* [jQuery Date Time Picker](https://github.com/xdan/datetimepicker)
6261
* [jQuery MiniColors](https://github.com/claviska/jquery-minicolors)

package-lock.json

+80-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"css-loader": "3.4.2",
1919
"cssnano": "4.1.10",
2020
"dropzone": "5.7.0",
21+
"emojilib": "2.4.0",
22+
"escape-string-regexp": "3.0.0",
2123
"fast-glob": "3.2.2",
24+
"findandreplacedomtext": "0.4.6",
2225
"fomantic-ui": "2.8.4",
2326
"highlight.js": "9.18.1",
2427
"imports-loader": "0.8.0",
File renamed without changes.

public/vendor/librejs.html

-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@
5555
<td><a href="https://github.com/vuejs/vue/blob/dev/LICENSE">Expat</a></td>
5656
<td><a href="https://github.com/vuejs/vue/archive/v2.6.11.tar.gz">vue.js-v2.6.11.tar.gz</a></td>
5757
</tr>
58-
<tr>
59-
<td><a href="./plugins/emojify/emojify.custom.js">emojify.custom.js</a></td>
60-
<td><a href="http://www.freebsd.org/copyright/freebsd-license.html">Expat</a></td>
61-
<td><a href="https://github.com/Ranks/emojify.js/archive/1.1.0.tar.gz">emojify-1.1.0.tar.gz</a></td>
62-
</tr>
6358
<tr>
6459
<td><a href="../js/dropzone.js">dropzone.js</a></td>
6560
<td><a href="https://github.com/enyo/dropzone/blob/master/LICENSE">MIT</a></td>

public/vendor/plugins/emojify/LICENSE

-8
This file was deleted.

0 commit comments

Comments
 (0)