1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Add local support for twemoji.

Adds twemoji support, with the twemoji library and graphics hosted on the local NextCloud install.
This commit is contained in:
Greg Ross 2018-07-02 14:31:08 -04:00 committed by Loïc Blot
parent e6a2214bc9
commit 967a60b4c3
5687 changed files with 2862 additions and 7 deletions

View File

@ -59,3 +59,7 @@ If you've enabled 2FA (Two Factor Authentication) logins you may be hit with an
## :notebook: License
Phone Sync web application is currently licensed under [AGPL license](https://github.com/nextcloud/ocsms/blob/master/LICENSE.md).
## :notebook: External Libraries
[Twemoji](https://github.com/twitter/twemoji) Code licensed under the [MIT License](http://opensource.org/licenses/MIT), Graphics licensed under [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/).
[libphonenumber-for-php](https://github.com/giggsey/libphonenumber-for-php) Code licensed under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0).

View File

@ -281,6 +281,13 @@ label {
flex-direction: column;
}
img.emoji {
height: 1em;
width: 1em;
margin: 0 .05em 0 .1em;
vertical-align: -0.1em;
}
.contact-list-no-contact {
padding: 1em;
font-size: 1.5em;

View File

@ -102,6 +102,7 @@ var Conversation = new Vue({
let msgClass = '';
let msgCount = 0;
let self = this;
let twemojiOptions = { base: OC.generateUrl('/apps/ocsms/js/twemoji/')};
$.each(jsondata["conversation"], function (id, vals) {
if (vals["type"] == 1) {
@ -124,7 +125,7 @@ var Conversation = new Vue({
'id': id,
'type': msgClass,
'date': new Date(id * 1),
'content': vals['msg']
'content': twemoji.parse(escapeHTML(vals['msg']), twemojiOptions)
});
buf = true;
msgCount++;

BIN
js/twemoji/72x72/1f004.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

BIN
js/twemoji/72x72/1f0cf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 923 B

BIN
js/twemoji/72x72/1f170.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

BIN
js/twemoji/72x72/1f171.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

BIN
js/twemoji/72x72/1f17e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

BIN
js/twemoji/72x72/1f17f.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

BIN
js/twemoji/72x72/1f18e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 682 B

BIN
js/twemoji/72x72/1f191.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

BIN
js/twemoji/72x72/1f192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

BIN
js/twemoji/72x72/1f193.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

BIN
js/twemoji/72x72/1f194.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

BIN
js/twemoji/72x72/1f195.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

BIN
js/twemoji/72x72/1f196.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

BIN
js/twemoji/72x72/1f197.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

BIN
js/twemoji/72x72/1f198.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 B

BIN
js/twemoji/72x72/1f199.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

BIN
js/twemoji/72x72/1f19a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 989 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

BIN
js/twemoji/72x72/1f1e6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 871 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
js/twemoji/72x72/1f1e7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 913 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

BIN
js/twemoji/72x72/1f1e8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

BIN
js/twemoji/72x72/1f1e9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

BIN
js/twemoji/72x72/1f1ea.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Some files were not shown because too many files have changed in this diff Show More