1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Commit graph

6152 commits

Author SHA1 Message Date
Kevin Ansfield 76a60aee1f Adjusted browser support to include Safari 12
no issue

- Safari 12 support was automatically dropped when Safari 14 was released this September. This created quite a step-change in level of JS that is left as native in the build output causing problems for users who haven't upgraded or are stuck on browser versions ~1yr old
- adjusted the browser support to include last 3 versions of Safari, giving another year (most likely based on Apple's historic release schedule) of older browser support
2020-09-30 09:48:47 +01:00
Fabien 'egg' O'Carroll 232cafaa8f
🐛 Fixed tag metadata fields not being populated when editing in admin (#1714)
closes #12190

The "scratch" concept was being used incorrectly for codeinjection fields and was not initialised with all the required fields.
2020-09-28 16:20:53 +01:00
Peter Zimon e76439d072 Fixed publication logo display proportions
no refs.
- fixed the styles for publication logo in general settings so that the logo is displayed with correct ratio regardless of its proportions
2020-09-28 14:14:16 +02:00
Renovate Bot 0b96959531
Update dependency eslint to v7.10.0 2020-09-28 00:05:51 +00:00
Daniel Lockyer 924087b7b9 Merged 3.34.1 into master
v3.34.1

* tag '3.34.1':
  v3.34.1
2020-09-24 19:29:19 +01:00
Daniel Lockyer a80e2681f1 v3.34.1 2020-09-24 19:26:52 +01:00
Peter Zimon 5f776dddcc Fixed loading spinner size for Portal icons
no refs.
- fixed oversized loading spinner for Portal icons
2020-09-24 10:00:22 +02:00
Peter Zimon 5bb273af02 Updated order of default Portal icons
no refs.
- swapped icon no. 3 and 4 to represent major use cases better
2020-09-24 09:50:33 +02:00
Rish d0e696e6dc Renamed members-modal naming to portal
no issue

- Updated naming for members modal to portal in sync with rest of the codebase
2020-09-24 12:19:35 +05:30
Fabien 'egg' O'Carroll 56df9d4b5e
Added support for filtering the exported Members CSV (#1716)
no-issue

Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-09-23 14:29:47 +01:00
Rishabh Garg cba35bf625
🐛 Fixed social settings not saved on keyboard shortcut (#1633)
no issue

- Social account(twitter/facebook) values in general settings were only updated to settings upstream on focus out
- Uses `notifyPropertyChange` to avoid multiple `.set()` workarounds

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-09-23 16:58:48 +05:30
Daniel Lockyer 6189c91e56 v3.34.0 2020-09-22 11:25:12 +01:00
renovate[bot] 9abbacf995
Update dependency grunt to v1.3.0 (#1682)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-22 08:52:04 +01:00
Umur Dinçer b76dd44336
🐛 Fixed missing start date in members chart (#1644)
closes https://github.com/TryGhost/Ghost/issues/12014

- `startDateLabel` was never populated after refactoring the members chart to use the members stats service
- use the first date that's returned as part of the members stats days array so that we can account for any potential time period being selected

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-09-22 08:51:29 +01:00
Paul Davis eba9f0eac0
Added margin to bottom of Admin when installed as PWA on newer iOS devices (#1667)
no issue

On newer iOS devices with no home button, we have this bar at the bottom of the screen instead. When installed as a PWA, the mobile nav sits under that bar. I'm unsure how much Ghost is used this way, but this is a small QOL improvement for those who do.

This PR uses the native `env` CSS custom properties Safari has to add a propriety amount of `padding-bottom` to the mobile nav bar, and also the global container to prevent anything in the iframe from being hidden by the taller nav bar. If the device does not support these `env` vars, is has no adverse affect. In order for this to work, the `<meta name="viewport" />` tag needs `viewport-fit=cover` added to it.

MDN docs for reference: https://developer.mozilla.org/en-US/docs/Web/CSS/env
2020-09-22 07:43:17 +01:00
Kukhyeon Heo d6bca3d1e8
🐛 Fixed Ctrl/Cmd+S triggering browser save when tags or authors input has focus (#1707)
closes https://github.com/TryGhost/Ghost/issues/11786

`GhTokenInput` uses `PowerSelect` component of `ember-power-select` internally in `app/components/gh-token-input/select-multiple`. 

When you open that component, [you can find](d36f38f39e/addon/components/power-select.ts (L262-L278)) that it calls `stopImmediatePropagation` when ctrl/cmd or meta key is down.

```js
  handleTriggerKeydown(e: KeyboardEvent) {
    if (this.args.onKeydown && this.args.onKeydown(this.storedAPI, e) === false) {
      e.stopImmediatePropagation();
      return;
    }
    if (e.ctrlKey || e.metaKey) {
      e.stopImmediatePropagation();
      return;
    }
    if ((e.keyCode >= 48 && e.keyCode <= 90) || isNumpadKeyEvent(e)) { // Keys 0-9, a-z or numpad keys
      (this.triggerTypingTask as unknown as Performable).perform(e);
    } else if (e.keyCode === 32) {  // Space
      this._handleKeySpace(this.storedAPI, e);
    } else {
      return this._routeKeydown(this.storedAPI, e);
    }
  }
```

Because of that, I had to dispatch event directly to the root of the Ghost admin app.
2020-09-21 18:14:57 +01:00
Kevin Ansfield e17963818d Switched from uglify to terser
refs https://github.com/TryGhost/Ghost-Admin/pull/1701

- swap `ember-cli-uglify` for `ember-cli-terser` to match ember-cli 3.21.1's generated package.json
- swap `broccoli-uglify-sourcemap` for `broccoli-terser-sourcemap` used manually in our production builds to keep dependencies the same across custom and built-in build artefacts
2020-09-21 17:13:00 +01:00
Kevin Ansfield 21a348c21b Lock file maintenance 2020-09-21 16:25:16 +01:00
Fabien 'egg' O'Carroll 7222b506ad
Updated magic link expiry information to 4 hours (#1715)
no-issue

Since https://github.com/TryGhost/Ghost/pull/12218 magic links now have
an expiry of 4 hours.
2020-09-21 16:08:10 +01:00
renovate[bot] aef959cd3e
Update dependency postcss-custom-properties to v9.2.0 (#1712)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:57:24 +01:00
renovate[bot] 207995ec95
Update dependency markdown-it to v11.0.1 (#1706)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:56:41 +01:00
renovate[bot] a4db711d9c
Update dependency ember-modifier to v2.1.1 (#1711)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:56:07 +01:00
renovate[bot] 1e164b8ffd
Update dependency @glimmer/component to v1.0.2 (#1713)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:55:42 +01:00
renovate[bot] 8cc41f0768
Update dependency ember-classic-decorator to v2 (#1709)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:54:36 +01:00
Rish 2784a2efd3 Moved Portal settings behind dedicated flag
no issue
depends on https://github.com/TryGhost/Ghost/pull/12211

- Other than dev flag, the Portal is now also enabled behind a dedicated `portal` flag
- Shows/hides Portal settings based on dev or Portal flag
2020-09-17 19:50:41 +05:30
Peter Zimon 002858bb5a Updated Portal icons
no refs.

- updated Portal icons so that it matches the one on members.js
2020-09-16 16:04:38 +02:00
Sanne de Vries 802722a607 Added message box on Staff user page that indicates user is locked, and improved boxes naming and styling 2020-09-16 15:37:33 +02:00
Peter Zimon 9f61cbab5f Fixed date format in member Stripe details
no refs.
2020-09-15 07:33:58 +02:00
Daniel Lockyer 0650518bcd v3.33.0 2020-09-14 12:39:47 +01:00
Sanne de Vries e1c05db64a Changed locked state badge into lock icon and clarified its meaning with tooltip on hover. This commit builds on top of PR #1668 2020-09-14 12:34:18 +02:00
Renovate Bot 149ec91a9c
Update dependency eslint to v7.9.0 2020-09-14 00:04:31 +00:00
Daniel Lockyer f2806ee7e3 v3.32.2 2020-09-10 16:55:17 +01:00
Daniel Lockyer 99525c518b Added updated lockfile 2020-09-10 16:46:30 +01:00
Kevin Ansfield cfc489c19e 🐛 Fix author/tag management in post settings menu (dependency revert)
closes https://github.com/TryGhost/Ghost/issues/12198

- Revert "Switched from uglify to terser" (commit 2ead394d6b)
- Revert "Update dependency ember-cli to v3.21.1 (commit 6764673b60)"
- Revert "Update ember core (commit 6e329f9fe0)"
2020-09-10 16:01:51 +01:00
Kevin Ansfield 2ead394d6b Switched from uglify to terser
refs https://github.com/TryGhost/Ghost-Admin/pull/1701

- swap `ember-cli-uglify` for `ember-cli-terser` to match ember-cli 3.21.1's generated package.json
- swap `broccoli-uglify-sourcemap` for `broccoli-terser-sourcemap` used manually in our production builds to keep dependencies the same across custom and built-in build artefacts
2020-09-09 17:22:23 +01:00
renovate[bot] 652617be79
Update dependency ember-concurrency to v1.3.0 (#1700)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 17:09:12 +01:00
renovate[bot] 6764673b60
Update dependency ember-cli to v3.21.1 (#1701)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 17:08:53 +01:00
Sanne de Vries 0c08cdcfc5 Adjusted dark mode styling of top menu dropdowns on the members page for consistency 2020-09-08 17:56:50 +02:00
renovate[bot] c9c489c234
Update dependency ember-power-select to v4.0.4 (#1699)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 23:09:52 +01:00
Kevin Ansfield e404a25f6c Update dependency broccoli-uglify-sourcemap to v4
refs 8a5823a0a3, 581f8f21db

- re-applying dependency update with required changes to application code
2020-09-07 14:42:53 +01:00
Daniel Lockyer 33249606ca Added production build test to CI
- we recently had an issue where a dependency update broke the
  release process because it was building in production mode, but our CI
  never ran in this mode and we missed it
- this commit adds a test to run in prod mode so hopefully we catch it
  next time
2020-09-07 12:47:10 +01:00
Daniel Lockyer 8f4a8cdf2d v3.32.1 2020-09-07 12:06:05 +01:00
Daniel Lockyer 581f8f21db Revert "Update dependency broccoli-uglify-sourcemap to v4 (#1697)"
- this reverts commit 8a5823a0a3.
- fixes the build when running in production mode
2020-09-07 12:03:43 +01:00
Daniel Lockyer 4a09f461ab v3.32.0 2020-09-07 11:54:59 +01:00
renovate[bot] b498952ed8
Update dependency blueimp-md5 to v2.18.0 (#1698)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 09:32:59 +01:00
renovate[bot] 8a5823a0a3
Update dependency broccoli-uglify-sourcemap to v4 (#1697)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 09:32:30 +01:00
Sanne de Vries bc5d673f0b Removed white background and border in code editor in dark mode 2020-09-04 22:17:43 +02:00
Sanne de Vries ce22b163f5 Adjusted code injection fields in settings to dark mode 2020-09-04 21:41:19 +02:00
Peter Zimon 0a551f08fb Added logic to custom portal icon delete
no refs.
- fixed issue that users can't reselect custom icon in portal by making the delete button only visible when the custom icon is selected
2020-09-04 16:10:46 +02:00
Peter Zimon cd1dd7befe Portal custom icon style refinement
no refs.
- refined delete icon style for portal
- refined icon sizes
2020-09-04 15:59:13 +02:00