discourse/app/assets/javascripts/discourse-common/addon/lib
Martin Brennan 964945a11f
DEV: Add case-converter common lib and use with AdminPlugin (#27725)
The AdminPlugin JS model uses a similar pattern to chat models,
where it is a plain JS class manually converting provided
snake_case attributes from the serializer to JS camelCase.

However this doesn't work when it comes to using `add_to_serializer`
in plugins since core does not know about these new attributes.

Instead, we can use a JS function to convert snake_case to camelCase
and use that when initializing AdminPlugin. This commit also moves
similar functions to a new case-converter.js file in
discourse-common/lib.
2024-07-05 13:22:48 +10:00
..
attribute-hook.js DEV: Replace deprecated String.prototype.substr() (#16233) 2022-04-01 17:35:17 +02:00
avatar-utils.js Consistently import escape from discourse-common (#23790) 2023-10-11 22:21:01 +01:00
case-converter.js DEV: Add case-converter common lib and use with AdminPlugin (#27725) 2024-07-05 13:22:48 +10:00
debounce.js FIX: reimplements chat audio into a service (#18983) 2022-11-11 13:11:41 +01:00
deprecated.js FIX: Handle deprecations correctly in server-side pretty-text (#25059) 2023-12-28 16:35:06 +00:00
discourse-template-map.js Enable Embroider/Webpack code spliting for Wizard (#24919) 2023-12-20 13:15:06 +00:00
dom-from-string.js DEV: Allow utility class domFromString to take in strings with multiple top level elements (#15548) 2022-01-12 19:49:24 +08:00
escape.js FIX: Escape Font Awesome icons (#12421) 2021-03-17 16:11:40 +03:00
get-owner.js DEV: Add more details to getOwner deprecation (#25309) 2024-01-19 14:36:05 +01:00
get-url.js FIX: Validate asset url before replacing base url (#16438) 2023-01-30 07:32:48 +08:00
helpers.js DEV: replace registerUnbound usage with default exports (#23802) 2023-10-19 14:28:25 +01:00
icon-library.js FEATURE: Consolidate link notifications (#26567) 2024-04-09 11:53:37 -06:00
later.js DEV: Introduce discourseLater (#17532) 2022-07-17 00:50:49 +02:00
loader-shim.js Enable Embroider/Webpack code spliting for Wizard (#24919) 2023-12-20 13:15:06 +00:00
object.js DEV: Resolve and prevent user fixture changes leaking between tests (#23898) 2023-10-11 13:46:06 +01:00
popular-themes.js UX: Add new preview links to Popular Themes (#27518) 2024-06-19 08:12:36 +10:00
raw-handlebars-helpers.js PERF: Stop eagerly-loading core helper modules (#24015) 2023-10-19 15:52:51 +01:00
raw-handlebars.js DEV: Use DiscourseJsProcessor for theme template compilation (#18135) 2022-09-01 11:50:46 +01:00
raw-templates.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
suffix-trie.js PERF: Improve JS app boot speed by optimizing customResolve() (#14990) 2021-11-18 16:38:00 +00:00