discourse/app/assets/javascripts/admin/addon/lib
Kelv b07e7cc70f
DEV: refactor setting object mixin to helper class (#30529)
This PR moves the logic from the setting-object mixin to a helper class. I've opted to maintain the interface of the previous classes (ThemeSettings / SiteSetting) that used the mixed-in methods through aliases so that we limit the amount of changes here (these are referenced in the string form and across classes/templates).

Another option we may consider in future if we want to optimize for performance is straight duplication which would trade off this overhead of aliasing/chaining calls through the helper for some duplicate code - only 2 models require these methods at the time of this PR.
2025-01-06 12:02:46 +08:00
..
hex-to-rgba.js DEV: Convert admin charts to glimmer/gjs (#28271) 2024-08-23 14:59:56 +02:00
setting-object-helper.js DEV: refactor setting object mixin to helper class (#30529) 2025-01-06 12:02:46 +08:00
template-form-fields.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00