Ghost/ghost/admin/app/utils
Kevin Ansfield 9bdb25d184
Fixed hosting management screen not loading after sign-in process (#15763)
refs https://github.com/TryGhost/Team/issues/2110

- dynamically defined properties on the config service did not have
autotracking set up properly if they were accessed in any way before the
property was defined, this caused problems in a number of areas because
we have both "unauthed" and "authed" sets of config and when not logged
in we had parts of the app checking for authed config properties that
don't exist until after sign-in and subsequent config re-fetch
- renamed `config` service to `configManager` and updated to only
contain methods for fetching config data
- added a `config` instance initializer that sets up a `TrackedObject`
instance with some custom properties/methods and registers it on
`config:main`
- uses application instance initializer rather than a standard
initializer because standard initializers are only called once when
setting up the test suite so we'd end up with config leaking across
tests
- added an `@inject` decorator that when used takes the property name
and injects whatever is registered at `${propertyName}:main`, this
allows us to use dependency injection for any object rather than just
services or controllers
- using `application.inject()` in the initializer was initially used but
that only works for objects that extend from `EmberObject`, the
injections weren't available in native-class glimmer components so this
decorator keeps the injection syntax consistent
  - swapped all `@service config` uses to `@inject config`
2022-11-03 11:14:36 +00:00
..
bound-one-way.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
caja-sanitizers.js Fixed multiple no-shadow linting errors 2020-06-17 09:35:46 +01:00
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 Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
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 Update code to match eslint rules 2016-11-14 13:26:00 +00:00
link-component.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
password-generator.js Fix linting errors 2019-07-22 11:21:24 +01:00
publish-options.js Removed need for .get() with config service 2022-10-07 16:14:57 +01:00
route.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00: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 use windowProxy to avoid mangling URL during team acceptance tests 2017-11-10 14:27:47 +00:00