zulip/static
Steve Howell be45809253 markdown: Extract emoji helpers.
We add this API to emoji.js, so that markdown
doesn't need to look at internal data structures
(or even need to understand any kind of record
format for results).

Here are the functions:

    get_realm_emoji_url()
    get_emoji_name()
    get_emoji_codepoint()

We use the API now in markdown, which eliminates
the need for the markdown parser to require
the emoji JSON file.

Each function has a simple docstring:

    get_emoji_name('1f384') === 'holiday_tree'
    get_emoji_codepoint('avocado') === '1f951'
    get_realm_emoji_url('shrug') === '/user_avatars/2/emoji/images/31.png'

Also we have simple test coverage for the API
(including tests that verify the docstrings).
2020-02-18 16:04:04 -08:00
..
assets styles: Finish removing manual antialiasing configuration. 2019-08-30 14:51:52 -07:00
audio notifications: Add a setting for changing the notification sound. 2018-12-09 21:25:30 -08:00
generated
html 5xx.html: Build with webpack. 2019-10-28 15:53:15 -07:00
images integrations: Add AlertManager webhook. 2020-02-14 17:43:15 -08:00
js markdown: Extract emoji helpers. 2020-02-18 16:04:04 -08:00
shared js: Use modern spread arguments syntax. 2020-02-11 17:43:35 -08:00
styles stream settings: Add links to /help/ for stream type settings. 2020-02-18 10:53:46 -08:00
templates stream settings: Add links to /help/ for stream type settings. 2020-02-18 10:53:46 -08:00
third markdown: Fix HTML escaping of &. 2020-02-13 17:50:59 -08:00
.eslintrc.json lint: Delegate console.log check to ESLint. 2020-02-07 14:09:47 -08:00
.gitignore pygments_data: Replace JS module with JSON module. 2020-02-12 10:09:12 -08:00
favicon.ico