mirror of
https://github.com/discourse/discourse.git
synced 2025-01-17 02:52:47 +08:00
b07e7cc70f
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. |
||
---|---|---|
.. | ||
admin-dashboard.js | ||
admin-plugin.js | ||
admin-user.js | ||
api-key.js | ||
backup-status.js | ||
backup.js | ||
color-scheme-color.js | ||
color-scheme.js | ||
email-log.js | ||
email-preview.js | ||
email-settings.js | ||
email-style.js | ||
email-template.js | ||
flag-type.js | ||
form-template.js | ||
incoming-email.js | ||
permalink.js | ||
report.js | ||
screened-email.js | ||
screened-ip-address.js | ||
screened-url.js | ||
site-setting.js | ||
site-text.js | ||
staff-action-log.js | ||
theme-settings.js | ||
theme.js | ||
tl3-requirements.js | ||
user-field.js | ||
version-check.js | ||
watched-word.js | ||
web-hook.js |