Commit e35fceff authored by JC Brand's avatar JC Brand

Remove the need for emojione

parent 1d38d8af
......@@ -29,6 +29,7 @@
"lodash/prefer-constant": "off",
"lodash/prefer-noop": "off",
"lodash/prefer-lodash-typecheck": "off",
"lodash/prefer-includes": "off",
"lodash/preferred-alias": "off",
"lodash/prefer-get": "off",
"accessor-pairs": "error",
......
......@@ -97,6 +97,10 @@ Open [tests.html](https://github.com/conversejs/converse.js/blob/master/tests.ht
`Converse.js` is released under the [Mozilla Public License (MPL)](https://www.mozilla.org/MPL/2.0/index.txt).
## Attribution
Emoji images are courtesy of [Twemoji](https://emojitwo.github.io/).
## Support
For support queries and discussions, please join the mailing list: <conversejs@librelist.com>
......
This diff is collapsed.
......@@ -3530,12 +3530,6 @@
"minimalistic-crypto-utils": "1.0.1"
}
},
"emojione": {
"version": "3.1.7",
"resolved": "https://registry.npmjs.org/emojione/-/emojione-3.1.7.tgz",
"integrity": "sha1-LTxyXGlvF5yd3jrLZVxiHulCmx4=",
"dev": true
},
"emojis-list": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz",
......
......@@ -7,13 +7,13 @@
(function (root, factory) {
define([
"converse-core",
"emojione",
"filesize",
"templates/chatboxes.html",
"backbone.overview",
"utils/form"
"utils/form",
"utils/emoji"
], factory);
}(this, function (converse, emojione, filesize, tpl_chatboxes) {
}(this, function (converse, filesize, tpl_chatboxes) {
"use strict";
const { $msg, Backbone, Promise, Strophe, b64_sha1, moment, sizzle, utils, _ } = converse.env;
......@@ -389,7 +389,7 @@
'from': _converse.bare_jid,
'sender': 'me',
'time': moment().format(),
'message': text ? u.httpToGeoUri(emojione.shortnameToUnicode(text), _converse) : undefined,
'message': text ? u.httpToGeoUri(u.shortnameToUnicode(text), _converse) : undefined,
'is_spoiler': is_spoiler,
'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
'type': this.get('message_type')
......
......@@ -8,14 +8,14 @@
define([
"utils/form",
"converse-core",
"emojione",
"converse-disco",
"backbone.overview",
"backbone.orderedlistview",
"backbone.vdomview",
"utils/muc"
"utils/muc",
"utils/emoji"
], factory);
}(this, function (u, converse, emojione) {
}(this, function (u, converse) {
"use strict";
const MUC_ROLE_WEIGHTS = {
......@@ -380,7 +380,7 @@
'from': `${this.get('jid')}/${this.get('nick')}`,
'fullname': this.get('nick'),
'is_spoiler': is_spoiler,
'message': text ? u.httpToGeoUri(emojione.shortnameToUnicode(text), _converse) : undefined,
'message': text ? u.httpToGeoUri(u.shortnameToUnicode(text), _converse) : undefined,
'nick': this.get('nick'),
'references': references,
'sender': 'me',
......
......@@ -205,15 +205,15 @@
return matches;
}
u.unescapeHTML = function (htmlEscapedText) {
u.unescapeHTML = function (string) {
/* Helper method that replace HTML-escaped symbols with equivalent characters
* (e.g. transform occurrences of '&amp;' to '&')
*
* Parameters:
* (String) htmlEscapedText: a String containing the HTML-escaped symbols.
* (String) string: a String containing the HTML-escaped symbols.
*/
var div = document.createElement('div');
div.innerHTML = htmlEscapedText;
div.innerHTML = string;
return div.innerText;
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -88,7 +88,6 @@ const config = {
"backbone.vdomview": path.resolve(__dirname, "node_modules/backbone.vdomview/backbone.vdomview"),
"bootstrap": path.resolve(__dirname, "node_modules/bootstrap.native/dist/bootstrap-native-v4"),
"crypto": path.resolve(__dirname, "node_modules/otr/build/dep/crypto"),
"emojione": path.resolve(__dirname, "node_modules/emojione/lib/js/emojione"),
"es6-promise": path.resolve(__dirname, "node_modules/es6-promise/dist/es6-promise.auto"),
"filesize": path.resolve(__dirname, "node_modules/filesize/lib/filesize"),
"jed": path.resolve(__dirname, "node_modules/jed/jed"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment