mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 10:36:18 +08:00
2fde58def4
These avatar-related helper functions are used in pretty-text, which currently means we load the entire `discourse/lib/utilities` module into the mini-racer when running pretty-text on the server side. This stops us adding any logic or imports to discourse/lib/utilities which may depend on other `discourse/` namespace features. This commit moves the avatar-related utils into a dedicated module in the `discourse-common` namespace, adds backwards-compatibility shims, and updates the pretty-text config accordingly. |
||
---|---|---|
.. | ||
attribute-hook.js | ||
avatar-utils.js | ||
debounce.js | ||
deprecated.js | ||
discourse-template-map.js | ||
dom-from-string.js | ||
escape.js | ||
get-owner.js | ||
get-url.js | ||
helpers.js | ||
icon-library.js | ||
later.js | ||
object.js | ||
raw-handlebars-helpers.js | ||
raw-handlebars.js | ||
raw-templates.js | ||
suffix-trie.js |