Kevin Ansfield
034812ac02
Dropped use of @classic decorator in adapters
...
refs https://github.com/TryGhost/Ghost/issues/14101
- `@classic` decorator is not required on adapter classes
- small cleanup of Octane migration code
2022-09-02 19:14:40 +01:00
Gabriel Csapo
fdc24103cc
[chore] runs native classes codemod for app/adapters ( #2239 )
...
no issue
* ran native classes codemod for app/adapters
* migrated slug-url mixin to a utility
2022-02-02 16:57:22 +00:00
Nazar Gargol
4fcac6d701
Removed redundant 'status=all' in user queries
...
closes https://github.com/TryGhost/Ghost/issues/5947
- Removed status=all parameter assignment as they are handled on the server side using enforcedFilters/defaultFilters (4acc375fb6/core/server/models/user.js (L293)
)
2019-01-28 16:28:14 +00:00
Austin Burdine
dfd6d444c3
fix test warnings ( #492 )
...
- fix ember-data complex default value returning in post model
- fix mirage returning a user of id 'me' from /user/me
2017-01-13 21:14:54 +00:00
Kevin Ansfield
d53ef125e0
Update package.json details, rename module to ghost-admin
...
no issue
- updates `package.json` details to better reflect the separation from the `Ghost` package
- update ember config and all import statements to reflect the new `ghost-admin` module name in `package.json`
2016-06-03 16:12:54 +01:00
Kevin Ansfield
2f4f6db133
Use es6 across client and add ember-suave to enforce rules
...
no issue
- add ember-suave dependency
- upgrade grunt-jscs dependency
- add a new .jscsrc for the client's tests directory that extends from client's base .jscsrc
- separate client tests in Gruntfile jscs task so they pick up the test's .jscsrc
- standardize es6 usage across client
2015-11-30 10:41:01 +00:00
Austin Burdine
31e4c9f753
implement custom user adapter to pull users by slug
...
closes #6095
- implements custom user adapter for the `/team/:slug/` route
- abstracts slug-url behavior into a mixin (used in /settings/tags/ as well)
- adds unit tests for both tag and user adapters
2015-11-23 07:48:08 -06:00
Kevin Ansfield
7ab03298cd
Fix "revoke invite" feature on /team page
...
refs #5947
- override the `findRecord` method of the user adapter to always include "status=all" when querying by ID
2015-10-15 12:45:48 +01:00
Kevin Ansfield
5c0b63f300
Ember-cli, Ember, & Ember Data 1.13.x upgrades
...
closes #5630
- upgrade ember-cli to latest version
- upgrade ember to latest 1.13.x release
- upgrade ember data to latest 1.13.x release
- update custom adapters and serialisers for new internal JSON-API compatible formats [(docs)][1]
- update all store queries to use new standardised query methods [(docs)][2]
- add ember-data-filter addon ready for store.filter removal in ember-data 2.0 [(docs)][3]
- remove use of prototype extensions for computed properties and observers
- consolidate pagination into a single route mixin and simplify configuration
[1]: http://emberjs.com/blog/2015/06/18/ember-data-1-13-released.html#toc_transition-to-the-new-jsonserializer-and-restserializer-apis
[2]: http://emberjs.com/blog/2015/06/18/ember-data-1-13-released.html#toc_simplified-find-methods
[3]: http://emberjs.com/blog/2015/06/18/ember-data-1-13-released.html#toc_ds-store-filter-moved-to-an-addon
2015-10-06 16:09:05 +01:00
Kevin Ansfield
5c9a824d53
Standardize on var-less export default
across ember app
...
no issue
- drops the `var Foo = Ember.Thing.extend({}); export default Foo;` syntax in favour of exporting directly, eg: `export default Ember.Thing.extend({})`
- discussion on this change [here](https://github.com/TryGhost/Ghost/pull/5340#issuecomment-105828423 ) and [here](https://github.com/TryGhost/Ghost/pull/5694#discussion-diff-37511606 )
2015-10-06 10:59:50 +01:00
Matt Enlow
589a563b30
The great migration (EAK -> ember-cli)
2015-03-11 12:37:41 -06:00