Ghost/ghost/admin/app/utils
Kevin Ansfield 060d791a63 Removed need for .get() with settings service
no issue

The `settings` service has been a source of confusion when writing with modern Ember patterns because it's use of the deprecated `ProxyMixin` forced all property access/setting to go via `.get()` and `.set()` whereas the rest of the system has mostly (there are a few other uses of ProxyObjects remaining) eliminated the use of the non-native get/set methods.

- removed use of `ProxyMixin` in the `settings` service by grabbing the attributes off the setting model after fetching and using `Object.defineProperty()` to add native getters/setters that pass through to the model's getters/setters. Ember's autotracking automatically works across the native getters/setters so we can then use the service as if it was any other native object
- updated all code to use `settings.{attrName}` directly for getting/setting instead of `.get()` and `.set()`
- removed use of observer in the `customViews` service because it was being set up before the native properties had been added on the settings service meaning autotracking wasn't able to set up properly
2022-10-07 16:14:57 +01:00
..
bound-one-way.js
caja-sanitizers.js
copy-text-to-clipboard.js 🐛 Fixed copy-to-clipboard buttons in Chrome + Firefox 2021-10-05 15:32:23 +01:00
ctrl-or-cmd.js
currency.js Added new free tier card with custom description/benefits (#2203) 2022-01-18 00:23:43 +05:30
flatten-grouped-options.js Brought checkboxes back to publish menu recipient selection (#1972) 2021-05-21 18:22:01 +01:00
format-markdown.js 🐛 Fixed markdown card lacking superscripts & subscripts. (#1763) 2022-08-01 19:51:27 +01:00
get-scroll-parent.js Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00
ghost-paths.js Moved default Admin API address to versionless 2022-03-04 20:22:03 +07:00
isNumber.js
link-component.js
password-generator.js
publish-options.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
route.js Fixed transitions redirect to BMA loop 2021-10-28 12:10:24 +02:00
shortcuts.js 🐛 Fixed pasting into the post tags input not working (#1739) 2022-08-03 11:14:12 +01:00
slug-url.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
window-proxy.js