discourse/app/assets/javascripts/admin/addon/models
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
..
admin-dashboard.js FEATURE: Always show full page "New Features" to admins (#28383) 2024-08-16 09:12:24 +10:00
admin-plugin.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-user.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
api-key.js DEV: Fix "no-setter-return" lint (#24585) 2023-11-28 10:49:49 +01:00
backup-status.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
backup.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
color-scheme-color.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
color-scheme.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
email-log.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
email-preview.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-settings.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-style.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-template.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
flag-type.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
form-template.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
incoming-email.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
permalink.js UX: redesign admin permalinks page (#29634) 2024-11-14 10:03:58 +11:00
report.js FIX: Dashboard report change tooltip was not translated (#30541) 2025-01-03 11:20:29 +10:00
screened-email.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
screened-ip-address.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
screened-url.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
site-setting.js DEV: refactor setting object mixin to helper class (#30529) 2025-01-06 12:02:46 +08:00
site-text.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
staff-action-log.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
theme-settings.js DEV: refactor setting object mixin to helper class (#30529) 2025-01-06 12:02:46 +08:00
theme.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
tl3-requirements.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
user-field.js DEV: Modernize admin user fields (#29843) 2024-11-25 11:54:43 +08:00
version-check.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
watched-word.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
web-hook.js FIX: Selecting categories for new admin webhooks (#26746) 2024-04-25 09:43:16 -05:00