discourse/app/assets/javascripts/admin/addon
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
..
adapters FEATURE: Add Filter for Webhook Events by Status (#27332) 2024-06-07 10:26:00 -05:00
components FIX: Do not allow , or . in site setting integer input (#27618) 2024-07-05 10:36:41 +10:00
controllers FEATURE: add Untranslated filter to admin text customization (#27555) 2024-06-24 06:24:06 -03:00
helpers DEV: replace registerUnbound usage with default exports (#23802) 2023-10-19 14:28:25 +01:00
lib DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
mixins FEATURE: Introduce site settings which require confirmation (#27315) 2024-06-19 16:01:24 +10:00
models DEV: Add case-converter common lib and use with AdminPlugin (#27725) 2024-07-05 13:22:48 +10:00
routes FEATURE: created edit and delete flags (#27484) 2024-07-03 08:45:37 +10:00
services FIX: More header dropdown admin sidebar fixes (#27241) 2024-05-30 12:55:25 +10:00
templates FEATURE: created edit and delete flags (#27484) 2024-07-03 08:45:37 +10:00