├── .gitignore
├── README.md
├── bower.json
├── demo
└── index.html
├── emoji-text.html
├── emoji-text.js
├── hero.svg
├── index.html
└── test
├── basic-test.html
└── index.html
/.gitignore:
--------------------------------------------------------------------------------
1 | bower_components
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # emoji-text
2 |
3 | An element that inline-translates text to emoji. Based on [emoji-translate](https://github.com/notwaldorf/emoji-translate) by @notwaldorf.
4 |
5 | ## Dependencies
6 |
7 | Element dependencies are managed via [Bower](http://bower.io/). You can
8 | install that via:
9 |
10 | npm install -g bower
11 |
12 | Then, go ahead and download the element's dependencies:
13 |
14 | bower install
15 |
16 |
17 | ## Playing With Your Element
18 |
19 | If you wish to work on your element in isolation, we recommend that you use
20 | [Polyserve](https://github.com/PolymerLabs/polyserve) to keep your element's
21 | bower dependencies in line. You can install it via:
22 |
23 | npm install -g polyserve
24 |
25 | And you can run it via:
26 |
27 | polyserve
28 |
29 | Once running, you can preview your element at
30 | `http://localhost:8080/components/emoji-text/`, where `emoji-text` is the name of the directory containing it.
31 |
32 |
33 | ## Testing Your Element
34 |
35 | Simply navigate to the `/test` directory of your element to run its tests. If
36 | you are using Polyserve: `http://localhost:8080/components/emoji-text/test/`
37 |
38 | ### web-component-tester
39 |
40 | The tests are compatible with [web-component-tester](https://github.com/Polymer/web-component-tester).
41 | Install it via:
42 |
43 | npm install -g web-component-tester
44 |
45 | Then, you can run your tests on _all_ of your local browsers via:
46 |
47 | wct
48 |
49 | #### WCT Tips
50 |
51 | `wct -l chrome` will only run tests in chrome.
52 |
53 | `wct -p` will keep the browsers alive after test runs (refresh to re-run).
54 |
55 | `wct test/some-file.html` will test only the files you specify.
56 |
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "emoji-text",
3 | "version": "1.0.1",
4 | "description": "An element that inline translates text to emoji",
5 | "keywords": [
6 | "web-component",
7 | "polymer",
8 | "emoji"
9 | ],
10 | "main": "emoji-text.html",
11 | "license": "http://polymer.github.io/LICENSE.txt",
12 | "homepage": "https://github.com/PolymerLabs/emoji-text/",
13 | "ignore": [
14 | "/.*",
15 | "/test/"
16 | ],
17 | "dependencies": {
18 | "polymer": "Polymer/polymer#^1.0.0",
19 | "emojilib": "muan/emojilib#master"
20 | },
21 | "devDependencies": {
22 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
23 | "web-component-tester": "*"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/demo/index.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
58 |
59 | Enter text to translate:
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 | I think my cat ate all of my cake and donuts.
68 |
69 | Sorry I can't pay my rent this month. I bought an apple at the airport.
70 |
71 | It's embarrassing that 95% of my Google history is just words I forgot how to spell.
72 |
73 |