Commit Graph

4591 Commits

Author SHA1 Message Date
Kevin Ansfield
27c4459334 Updated for breaking changes in ember-cli-mirage@1.0.0 2019-05-27 09:58:33 +01:00
Renovate Bot
e8d3980678 Update ember addons 2019-05-27 09:58:33 +01:00
Renovate Bot
e7822af59d Update dependency ember-cli-dependency-checker to v3.2.0 2019-05-27 09:14:23 +01:00
Renovate Bot
cd39815182 Update dependency codemirror to v5.47.0 2019-05-27 09:11:07 +01:00
Renovate Bot
1965e29304 Update dependency ember-infinity to v1.4.7 2019-05-27 03:22:23 +00:00
Renovate Bot
368732576e Update dependency @tryghost/timezone-data to v0.2.3 2019-05-27 02:23:26 +00:00
Renovate Bot
e820ec2099 Update dependency @tryghost/helpers to v1.1.4 2019-05-27 01:23:19 +00:00
John O'Nolan
7db837e0e5 Fix egregious typo. 2019-05-24 18:47:53 +02:00
Kevin Ansfield
78458f320e Version bump to 2.22.3 2019-05-23 13:49:23 +01:00
Kevin Ansfield
c722c83a6e 🐛 Fixed editor crashing when leaving a markdown card's edit mode
no issue
- a change in Ember 3.10's rendering has resulting in the component's element being removed before the `{{gh-markdown-editor}}`'s cleanup action is run which meant that we were trying to run `.querySelector` on `undefined`
- removes the code which moved toolbar elements around because it hasn't been used since we moved to Koenig, this meant that the cleanup action could also be removed
2019-05-23 13:43:01 +01:00
Aileen Nowak
af5aeaf444 Updated link to Marketplace (#1203)
no issue

- Marketplace moved to https://ghost.org/marketplace
2019-05-22 16:55:03 +08:00
Fabien O'Carroll
6537cf6c11 Version bump to 2.22.2 2019-05-21 12:09:14 +02:00
Kevin Ansfield
3653cfbfbf Refactored document-title handler
no issue
- moved `document-title` Route extension's functionality into the `ui` service
  - updates the title each time the router service emits a route changed event
  - `ui.updateDocumentTitle()` can now be called directly from components rather than the confusing `this.send('updateDocumentTitle')` bubbling behaviour
- refactored the `titleToken` implementation to use the now-formalised `RouteInfo`'s `metadata` field (https://github.com/emberjs/rfcs/blob/master/text/0398-RouteInfo-Metadata.md#appendix-a)
2019-05-20 16:16:19 +01:00
Kevin Ansfield
da92eadecd Added ability to set <main> class using route metadata
no issue
- modified `ui` service's `routeDidChange` handler to update it's `mainClass` property based on the new route's metadata
- used in the future for switching screen background colours

To use the feature, modify or add a `buildRouteInfoMetadata` hook in the route which you'd like to change, eg:

```js
export default AuthenticatedRoute.extend({
    ...

    buildRouteInfoMetadata() {
        return {
            bodyClasses: ['my-body-class'],
            mainClasses: ['grey-bg'] // <--------
        };
    }
});

```

The route hierarchy is taken into consideration with classes being added for all currently shown routes. For example if you wanted to add an `editor` class to all editor routes you could use the hook in `routes/editor.js` then if you added an `editor-new` class in `routes/editor/new.js` the resulting HTML output on the "New story" screen would be:

```html
<main class="gh-main editor editor-new">
```
2019-05-20 15:33:12 +01:00
Kevin Ansfield
bb7df76af0 Refactored styleBody mixin
no issue
- removed `styleBody` mixin in favour of using Ember's `buildRouteInfoMetadata` hook and router events in the `ui` service
- refactored separate CSS classes for each unauthenticated route into a single `.unauthenticated-route` class because hiding mobile nav whilst unauthenticated was the only use for body classes
2019-05-20 14:57:21 +01:00
Kevin Ansfield
9186c84e64 Removed unused body classes added by using the StyleBody mixin
no issue
- many routes were attaching classes to the `<body>` tag via the `StyleBody` mixin but those classes were never used and applied inconsistently throughout the app
2019-05-20 14:15:46 +01:00
Renovate Bot
a0081a438c Lock file maintenance 2019-05-20 11:42:58 +01:00
Kevin Ansfield
8aba726bc8 Fixed gh-search-input tests failing on Ember 3.10 2019-05-20 11:32:08 +01:00
Renovate Bot
cfb54feb15 Update ember core 2019-05-20 11:32:08 +01:00
Renovate Bot
d16f3e40cc Update dependency fs-extra to v8 2019-05-20 09:29:30 +01:00
Fabien O'Carroll
1b318eb249 Version bump to 2.22.1 2019-05-14 11:16:04 +02:00
Renovate Bot
1a9430af08 Lock file maintenance 2019-05-13 16:10:02 +01:00
Renovate Bot
e58ac4ab32 Update dependency glob to v7.1.4 2019-05-13 16:02:49 +01:00
Renovate Bot
af3a20515a Update dependency ember-exam to v3 2019-05-13 15:55:11 +01:00
Kevin Ansfield
d193317bbd Refactored deprecated usage of this.$() in rendering tests
no issue

- https://emberjs.com/deprecations/v3.x#toc_jquery-apis
2019-05-13 15:31:32 +01:00
Kevin Ansfield
a96e942c4b Refactored deprecated usage of [files] option param for triggerEvent 2019-05-13 15:31:32 +01:00
Kevin Ansfield
1520122483 Refactored deprecated usage of setupTest* methods
no issue

- https://github.com/emberjs/ember-mocha/blob/master/docs/migration.md#upgrading-to-the-new-testing-apis
- deleted tests files which had no specific tests
- migrated unskipped component unit tests to integration tests
2019-05-13 15:31:32 +01:00
Kevin Ansfield
67360b5f71 Updated test-helper.js to use explicit start() call
no issue

- this was a breaking change introduced in ember-mocha@0.15.0 https://github.com/emberjs/ember-mocha/blob/master/CHANGELOG.md#v0150-2019-05-11
2019-05-13 15:31:32 +01:00
Renovate Bot
0eaf9e0247 Update ember testing 2019-05-13 15:31:32 +01:00
Kevin Ansfield
cf4246dd5e Bumped waitFor timeouts in gh-uploader tests
no issue

- Travis was randomly failing here
2019-05-13 09:59:05 +01:00
Renovate Bot
320d228efd Update dependency ember-infinity to v1.4.5 2019-05-13 02:30:27 +00:00
Renovate Bot
82f5eec067 Update dependency ember-data to v3.9.3 2019-05-13 01:29:00 +00:00
Kevin Ansfield
e6d03e9904 Fixed deprecated computed().volatile() usage
no issue

- https://deprecations.emberjs.com/v3.x/#toc_computed-property-volatile
2019-05-07 14:54:41 +01:00
Peter Zimon
ccbc26d6bc Sidebar refinements and view site in new tab button (#1192)
no refs.

- added view site in new tab button to sidebar
- show secondary actions on sidebar only on mouseover
- replaced labs icon
- refined spacing for view site
- unified colors of secondary icons
2019-05-07 15:29:59 +02:00
Kevin Ansfield
d0c2caec9e Fixed transition-state deprecation on Integration screen
no issue

- https://deprecations.emberjs.com/v3.x/#toc_transition-state
2019-05-07 14:04:16 +01:00
Kevin Ansfield
b7b51bbb0f Fixed deprecated usage of new EmberObject in <GhUploader>
no issue

- https://deprecations.emberjs.com/v3.x/#toc_object-new-constructor
- `UploadTracker` is extended from `EmberObject` so we should use the `.create` method
2019-05-07 13:26:32 +01:00
Kevin Ansfield
320908d64d Removed unused code in posts route 2019-05-07 12:55:19 +01:00
Kevin Ansfield
a7f4610381 Removed usage of ember-light-table in subscribers screen (#1191)
no issue

`ember-light-table` is falling behind Ember.js and other addon development and is increasingly causing issues with Ember deprecations and addon incompatibility.

- swaps `ember-light-table` usage for a straightforward table using `vertical-collection` for occlusion
- uses the same loading mechanism as the members screen with a slight optimisation where the initial load will fetch subscribers in batches of 200 until they are all loaded
- removes now-unused pagination mixin
- fixes duplicate subscriber validation handling
2019-05-07 12:39:56 +01:00
Nazar Gargol
3afcbf0c39 Version bump to 2.22.0 2019-05-07 12:37:29 +02:00
Kevin Ansfield
344999a69b Fixed "remove all listeners" deprecation
no issue

- https://deprecations.emberjs.com/v3.x/#toc_events-remove-all-listeners
2019-05-06 15:00:06 +01:00
Kevin Ansfield
f8ccb81dfc Fixed deprecated access of controller.{currentPath,currentRouteName}
no issue

- replaced access of `controller.{currentPath,currentRouteName}` with `router.currentRouteName`
- https://deprecations.emberjs.com/v3.x/#toc_application-controller-router-properties
2019-05-06 14:51:23 +01:00
renovate[bot]
0fb1bb5353 Update dependency @tryghost/kg-parser-plugins to v0.5.0 (#1188) 2019-05-06 12:31:39 +01:00
renovate[bot]
eecf78d9fd Lock file maintenance (#1189) 2019-05-06 12:31:26 +01:00
renovate[bot]
d938800d2e Update dependency ember-power-select to v2.3.2 (#1187) 2019-05-06 12:04:39 +01:00
Kevin Ansfield
5d03aa2f06 Removed coveralls code-coverage reporting (#1190)
no issue
- coverage reports were not really being used and were frequently ignored when merging PRs because we knew there were reductions in test coverage
- coveralls also causes some problems with Renovate because there can be random micro changes in reported coverage that meant a PR "failed" when really it was fine
2019-05-06 12:02:23 +01:00
Renovate Bot
dc045cc710 Update dependency @tryghost/kg-clean-basic-html to v0.1.1 2019-05-06 10:29:32 +00:00
Renovate Bot
787b07b5b5 Update dependency @tryghost/mobiledoc-kit to v0.11.2 2019-05-06 05:23:36 +00:00
Renovate Bot
125c817061 Update dependency @tryghost/timezone-data to v0.2.2 2019-05-06 03:24:47 +00:00
Renovate Bot
6d1a2c7bf9 Update dependency @tryghost/kg-parser-plugins to v0.4.2 2019-05-06 02:25:09 +00:00
Renovate Bot
76cdb9e677 Update dependency @tryghost/helpers to v1.1.3 2019-05-06 01:24:29 +00:00