mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-15 03:35:16 +00:00
twitter/twemoji -> jdecked/twemoji
This commit is contained in:
parent
720b6a175f
commit
628b3f2377
@ -37,7 +37,7 @@ have good reasons for rejecting.
|
|||||||
|
|
||||||
If you'd like to test and/or contribute please follow these instructions.
|
If you'd like to test and/or contribute please follow these instructions.
|
||||||
|
|
||||||
[Fork this repo on GitHub](https://github.com/twitter/twemoji.git/fork)
|
[Fork this repo on GitHub](https://github.com/jdecked/twemoji.git/fork)
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
|
|
||||||
|
14
README.md
14
README.md
@ -37,9 +37,9 @@ Following are all the methods exposed in the `twemoji` namespace.
|
|||||||
|
|
||||||
This is the main parsing utility and has 3 overloads per parsing type.
|
This is the main parsing utility and has 3 overloads per parsing type.
|
||||||
|
|
||||||
Although there are two kinds of parsing supported by this utility, we recommend you use [DOM parsing](https://github.com/twitter/twemoji#dom-parsing), explained below. Each type of parsing accepts a callback to generate an image source or an options object with parsing info.
|
Although there are two kinds of parsing supported by this utility, we recommend you use [DOM parsing](https://github.com/jdecked/twemoji#dom-parsing), explained below. Each type of parsing accepts a callback to generate an image source or an options object with parsing info.
|
||||||
|
|
||||||
The second kind of parsing is string parsing, explained in the legacy documentation [here](https://github.com/twitter/twemoji/blob/master/LEGACY.md#string-parsing). This is unrecommended because this method does not sanitize the string or otherwise prevent malicious code from being executed; such sanitization is out of scope.
|
The second kind of parsing is string parsing, explained in the legacy documentation [here](https://github.com/jdecked/twemoji/blob/master/LEGACY.md#string-parsing). This is unrecommended because this method does not sanitize the string or otherwise prevent malicious code from being executed; such sanitization is out of scope.
|
||||||
|
|
||||||
#### DOM parsing
|
#### DOM parsing
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ var img = div.querySelector('img');
|
|||||||
// note the div is preserved
|
// note the div is preserved
|
||||||
img.parentNode === div; // true
|
img.parentNode === div; // true
|
||||||
|
|
||||||
img.src; // https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/72x72/2764.png
|
img.src; // https://cdn.jsdelivr.net/gh/jdecked/twemoji@latest/assets/72x72/2764.png
|
||||||
img.alt; // \u2764\uFE0F
|
img.alt; // \u2764\uFE0F
|
||||||
img.className; // emoji
|
img.className; // emoji
|
||||||
img.draggable; // false
|
img.draggable; // false
|
||||||
@ -134,7 +134,7 @@ twemoji.parse(genericNode, {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
This will generate urls such `https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/2764.svg` instead of using a specific size based image.
|
This will generate urls such `https://cdn.jsdelivr.net/gh/jdecked/twemoji@latest/assets/svg/2764.svg` instead of using a specific size based image.
|
||||||
|
|
||||||
## Utilities
|
## Utilities
|
||||||
|
|
||||||
@ -206,11 +206,11 @@ twemoji.parse(document.body, {
|
|||||||
|
|
||||||
## Legacy API (V1)
|
## Legacy API (V1)
|
||||||
|
|
||||||
If you're still using our V1 API, you can read our legacy documentation [here](https://github.com/twitter/twemoji/tree/master/LEGACY.md).
|
If you're still using our V1 API, you can read our legacy documentation [here](https://github.com/jdecked/twemoji/tree/master/LEGACY.md).
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
The contributing documentation can be found [here](https://github.com/twitter/twemoji/tree/master/CONTRIBUTING.md).
|
The contributing documentation can be found [here](https://github.com/jdecked/twemoji/tree/master/CONTRIBUTING.md).
|
||||||
|
|
||||||
## Attribution Requirements
|
## Attribution Requirements
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ The goal of this project is to simply provide emoji for everyone. We definitely
|
|||||||
|
|
||||||
The rules for contributing are available in the `CONTRIBUTING.md` file.
|
The rules for contributing are available in the `CONTRIBUTING.md` file.
|
||||||
|
|
||||||
Thank you to all of our [contributors](https://github.com/twitter/twemoji/graphs/contributors).
|
Thank you to all of our [contributors](https://github.com/jdecked/twemoji/graphs/contributors).
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
"!LICENSE",
|
"!LICENSE",
|
||||||
"!README.md"
|
"!README.md"
|
||||||
],
|
],
|
||||||
"twemoji": "git://github.com/twitter/twemoji.git#gh-pages",
|
"twemoji": "git://github.com/jdecked/twemoji.git#gh-pages",
|
||||||
"homepage": "https://github.com/twitter/twemoji",
|
"homepage": "https://github.com/jdecked/twemoji",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Twitter, Inc."
|
"Twitter, Inc."
|
||||||
],
|
],
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "twemoji",
|
"name": "twemoji",
|
||||||
"license": ["MIT", "CC-BY-4.0"],
|
"license": ["MIT", "CC-BY-4.0"],
|
||||||
"description": "A Unicode standard based way to implement emoji across all platforms.",
|
"description": "A Unicode standard based way to implement emoji across all platforms.",
|
||||||
"homepage": "https://github.com/twitter/twemoji",
|
"homepage": "https://github.com/jdecked/twemoji",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"emoji",
|
"emoji",
|
||||||
"DOM",
|
"DOM",
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<h1>Twem❤ji</h1>
|
<h1>Twem❤ji</h1>
|
||||||
<p>Sharing Twitter emoji <a href="v/latest/preview-svg.html">everywhere</a></p>
|
<p>Sharing Twitter emoji <a href="v/latest/preview-svg.html">everywhere</a></p>
|
||||||
<p><strong>Version 14.0 Is Out!</strong></p>
|
<p><strong>Version 14.0 Is Out!</strong></p>
|
||||||
<p><a href="https://github.com/twitter/twemoji">Grab me on GitHub ↗</a></p>
|
<p><a href="https://github.com/jdecked/twemoji">Grab me on GitHub ↗</a></p>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://twitter.com/intent/tweet?button_hashtag=TwemojiParty&text=thank%20you%20Twitter%20for%20the%20emoji" class="twitter-hashtag-button" data-size="large" data-related="twitteross" data-url="http://twitter.github.io/twemoji/">Tweet #TwemojiParty</a>
|
<a href="https://twitter.com/intent/tweet?button_hashtag=TwemojiParty&text=thank%20you%20Twitter%20for%20the%20emoji" class="twitter-hashtag-button" data-size="large" data-related="twitteross" data-url="http://twitter.github.io/twemoji/">Tweet #TwemojiParty</a>
|
||||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// dependencies
|
// dependencies
|
||||||
@ -24,7 +24,7 @@ function createTwemoji() {
|
|||||||
'var twemoji = (' +
|
'var twemoji = (' +
|
||||||
function (
|
function (
|
||||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// WARNING: this file is generated automatically via
|
// WARNING: this file is generated automatically via
|
||||||
@ -47,7 +47,7 @@ function createTwemoji() {
|
|||||||
/////////////////////////
|
/////////////////////////
|
||||||
|
|
||||||
// default assets url, by default will be jsDelivr CDN
|
// default assets url, by default will be jsDelivr CDN
|
||||||
base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@$VERSION/assets/',
|
base: 'https://cdn.jsdelivr.net/gh/jdecked/twemoji@$VERSION/assets/',
|
||||||
|
|
||||||
// default assets file extensions, by default '.png'
|
// default assets file extensions, by default '.png'
|
||||||
ext: '.png',
|
ext: '.png',
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// dependencies
|
// dependencies
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||||
*/
|
*/
|
||||||
var base = twemoji.base;
|
var base = twemoji.base;
|
||||||
wru.test([{
|
wru.test([{
|
||||||
|
Loading…
Reference in New Issue
Block a user