Ghost/ghost/admin/app/controllers
Kevin Ansfield 7b443d4b63 Removed need for .get() with config service
no issue

The `config` 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 `config` service by grabbing the API response after fetching and using `Object.defineProperty()` to add native getters/setters that pass through to a tracked object holding the API response data. 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 `config.{attrName}` directly for getting/setting instead of `.get()` and `.set()`
- removed unnecessary async around `config.availableTimezones` which wasn't making any async calls
2022-10-07 16:14:57 +01:00
..
editor Fixed linter error for use of {{action}} in editor-loading controller 2022-07-18 10:50:03 +01:00
lexical-editor Lexical-powered editor experiment (#15278) 2022-08-23 11:45:50 +01:00
members Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
posts Moved analytics page to separate component 2022-09-29 12:41:16 +02:00
settings Removed need for .get() with config service 2022-10-07 16:14:57 +01:00
setup 🎨 Redesigned user authentication pages (#2286) 2022-03-08 17:30:46 +00:00
application.js Added Ghost Explore in Ghost as iframe app behind feature flag (#15495) 2022-10-07 14:32:54 +01:00
billing.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
dashboard.js Removed attribution sources from UI if site is invite-only 2022-09-28 17:26:38 +05:30
designsandbox.js Renamed design sandbox template 2021-02-05 14:00:51 +01:00
editor.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
error.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
explore.js Added Ghost Explore in Ghost as iframe app behind feature flag (#15495) 2022-10-07 14:32:54 +01:00
home.js Added display of get-started modal after completing setup flow 2022-02-01 18:20:26 +00:00
lexical-editor.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
member.js Switched delete member modal to new modal pattern (#15467) 2022-09-24 18:18:34 +02:00
members-activity.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
members.js Added opened, clicked and received email filtering to members (#15492) 2022-09-28 17:14:32 +02:00
offer.js Removed need for .get() with config service 2022-10-07 16:14:57 +01:00
offers.js Wired free trial offer UI in offers list 2022-08-11 12:03:38 +05:30
pages-loading.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
pages.js Fixed breadcrumbs responsive issues 2022-10-06 16:25:57 +07:00
posts-loading.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
posts.js Fixed breadcrumbs responsive issues 2022-10-06 16:25:57 +07:00
reset.js Renamed passwordreset body object to password_reset 2022-04-28 15:33:09 +01:00
settings.js Cleaned up unused code in settings controller 2022-09-09 17:44:11 +01:00
setup.js Fixed linter error 2022-05-27 13:07:36 +01:00
signin.js Renamed passwordreset body object to password_reset 2022-04-28 15:33:09 +01:00
signup.js Migrated signup screen to Octane patterns 2022-05-27 13:28:29 +01:00
site.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
tag.js Switched tag unsaved changes modal to new modal pattern 2022-09-09 17:44:11 +01:00
tags.js Refactored tags screens 2022-09-09 13:27:13 +01:00
whatsnew.js Fixed "About Ghost" missing system information 2022-09-13 12:28:21 +01:00