This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts
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
..
admin FIX: Add cache-busting parameter to ace-editor javascript 2020-08-24 12:29:46 +01:00
confirm-new-email Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
discourse/app REFACTOR: rewrite the emoji-picker (#10464) 2020-08-24 14:20:51 +02:00
discourse-common FIX: Refactor broke wizard 2020-08-17 16:34:12 -04:00
docs Ember Upgrade: 1.0 2013-10-01 11:16:27 -04:00
ember-addons DEV: Remove ember-addons (#9559) 2020-04-28 10:14:49 -04:00
locales REFACTOR: removes various assignments and superfluous params (#9699) 2020-05-08 09:19:48 +02:00
pretty-text REFACTOR: rewrite the emoji-picker (#10464) 2020-08-24 14:20:51 +02:00
select-kit UX: Tweaks to admin color palette dropdown (#10502) 2020-08-21 09:30:11 -04:00
wizard Remove discourse constants (#9958) 2020-06-01 16:33:43 -04:00
activate-account.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
admin.js.erb Add support for plugins to declare ES6 in the admin bundle 2015-08-17 15:03:55 -04:00
app-boot.js DEV: Have app/app export a class not an instance. 2020-05-05 14:54:13 -04:00
application.js REFACTOR: Remove Discourse.__widget_helpers 2020-08-06 14:35:46 -04:00
auto-redirect.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
browser-detect.js Improve support for old browsers (#9515) 2020-04-29 21:40:21 +03:00
discourse-loader.js Start Discourse in an initializer (#9930) 2020-05-29 14:37:02 -04:00
discourse-shims.js REFACTOR: rewrite the emoji-picker (#10464) 2020-08-24 14:20:51 +02:00
embed-application.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
ember_include.js.erb move template compiler into vendor for now 2015-11-25 15:54:54 +11:00
ember_jquery.js Revert "Revert "DEV: Import MessageBus from message-bus-client instead of globals"" 2020-05-28 08:42:36 -04:00
env.js FIX: attempts to fix an error with EXTEND_PROTOTYPES (#7067) 2019-02-26 11:04:05 +01:00
google-tag-manager.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
google-universal-analytics.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
handlebars-shim.js DEV: Remove global Handlebars 2020-05-01 14:12:09 -04:00
main_include_admin.js DEV: Remove ember-addons (#9559) 2020-04-28 10:14:49 -04:00
markdown-it-bundle.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
onpopstate-handler.js More JS files 2020-03-24 16:18:56 -04:00
polyfills.js DEV: Drop unsupported-browser plugin (#10261) 2020-07-17 15:04:06 +01:00
pretty-text-bundle.js DEV: Remove INLINE_ONEBOX_* constants 2020-05-07 16:14:38 -04:00
print-page.js CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
service-worker.js.erb FIX: Bypass serviceworker cache for auth routes 2020-03-31 14:24:02 -03:00
set-prototype-polyfill.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
start-discourse.js Start Discourse in an initializer (#9930) 2020-05-29 14:37:02 -04:00
template_include.js DEV: Support for import Handlebars from 'handlebars'; (#9600) 2020-04-30 16:41:02 -04:00
vendor.js REFACTOR: These Discourse constants do not seem required in vendor 2020-08-14 13:42:15 -04:00
widget-runtime.js REFACTOR: Remove Discourse.__widget_helpers 2020-08-06 14:35:46 -04:00
wizard-application.js Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
wizard-start.js Rename more es6 files to js 2020-03-24 16:32:56 -04:00
wizard-vendor.js FIX: ensure s2 is working with wizard (#8886) 2020-02-07 10:00:39 +01:00