discourse/app/assets/javascripts/pretty-text/addon
Joffrey JAFFEUX 226be994da
REFACTOR: rewrite the emoji-picker (#10464)
The emoji-picker is a specific piece of code as it has very strong performance requirements which are almost not found anywhere else in the app, as a result it was using various hacks to make it work decently even on old browsers.

Following our drop of Internet Explorer, and various new features in Ember and recent browsers we can now take advantage of this to reduce the amount of code needed, this rewrite most importantly does the following:
- use loading="lazy" preventing the full list of emojis to be loaded on opening
- uses InterserctionObserver to find the active section
- limits the use of native event listentes only for hover/click emojis (for performance reason we track click on the whole emoji area and delegate events), everything else is using ember events
- uses popper to position the emoji picker
- no jquery code
2020-08-24 14:20:51 +02:00
..
emoji DEV: Replace `version.js.erb` with pre generated file 2020-05-11 15:43:09 -04:00
engines DEV: Fix a function name typo 2020-07-27 11:22:57 +02:00
censored-words.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
emoji.js REFACTOR: rewrite the emoji-picker (#10464) 2020-08-24 14:20:51 +02:00
guid.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
inline-oneboxer.js DEV: Remove INLINE_ONEBOX_* constants 2020-05-07 16:14:38 -04:00
oneboxer-cache.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
oneboxer.js FIX: use allowlist and blocklist terminology (#10209) 2020-07-27 10:23:54 +10:00
pretty-text.js FIX: allows to have custom emoji translation without static file (#9893) 2020-05-27 20:11:52 +02:00
sanitizer.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
upload-short-url.js FIX: Remove unnecessary audio/video parent element load (#10511) 2020-08-24 13:18:38 +10:00
white-lister.js FEATURE: Allow picture HTML element in posts 2020-07-28 20:26:32 -03:00
xss.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00