Commit Graph

5901 Commits

Author SHA1 Message Date
Fabien 'egg' O'Carroll
177d6f773d 🐛 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
da81765bd9 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
b6cb527a25 Update dependency eslint to v7.10.0 2020-09-28 00:05:51 +00:00
Daniel Lockyer
e0e1e4fde9 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
6c0191d361 v3.34.1 2020-09-24 19:26:52 +01:00
Peter Zimon
4142b98cdf 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
8173439298 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
c7696ca03b 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
6ecb38eaa5 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
f1fbbe4685 🐛 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
a4f8cb522d v3.34.0 2020-09-22 11:25:12 +01:00
renovate[bot]
7254e805a6 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
2051b65e51 🐛 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
8062fa8994 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
c38ca94683 🐛 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
c4ca317fb2 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
9a7093231b Lock file maintenance 2020-09-21 16:25:16 +01:00
Fabien 'egg' O'Carroll
213434c389 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]
bc9fbbd06a 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]
429b3eca8b 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]
a4a39d286d 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]
37a66dd405 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]
f885a88cd9 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
ede24fec24 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
6dc0489b7b 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
710d6178c1 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
fc3d83e869 Fixed date format in member Stripe details
no refs.
2020-09-15 07:33:58 +02:00
Daniel Lockyer
8ab33e2958 v3.33.0 2020-09-14 12:39:47 +01:00
Sanne de Vries
3c6923989e 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
1cbe47aadd Update dependency eslint to v7.9.0 2020-09-14 00:04:31 +00:00
Daniel Lockyer
39a0f447f9 v3.32.2 2020-09-10 16:55:17 +01:00
Daniel Lockyer
aa8351e05f Added updated lockfile 2020-09-10 16:46:30 +01:00
Kevin Ansfield
3e83675175 🐛 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 e5b4960170)
- Revert "Update dependency ember-cli to v3.21.1 (commit 7e64683836)"
- Revert "Update ember core (commit 9866a840c6)"
2020-09-10 16:01:51 +01:00
Kevin Ansfield
e5b4960170 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]
27c0ea0635 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]
7e64683836 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
6a7745c9a8 Adjusted dark mode styling of top menu dropdowns on the members page for consistency 2020-09-08 17:56:50 +02:00
renovate[bot]
af1462e66f 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
d8a93d00fc Update dependency broccoli-uglify-sourcemap to v4
refs 51d44c76d8, fe30958a19

- re-applying dependency update with required changes to application code
2020-09-07 14:42:53 +01:00
Daniel Lockyer
1f789f8742 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
1713375adb v3.32.1 2020-09-07 12:06:05 +01:00
Daniel Lockyer
fe30958a19 Revert "Update dependency broccoli-uglify-sourcemap to v4 (#1697)"
- this reverts commit 51d44c76d8.
- fixes the build when running in production mode
2020-09-07 12:03:43 +01:00
Daniel Lockyer
661578bf26 v3.32.0 2020-09-07 11:54:59 +01:00
renovate[bot]
c1a9021d74 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]
51d44c76d8 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
7898e22e82 Removed white background and border in code editor in dark mode 2020-09-04 22:17:43 +02:00
Sanne de Vries
5cbd9f0f78 Adjusted code injection fields in settings to dark mode 2020-09-04 21:41:19 +02:00
Peter Zimon
ed1433b809 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
d65195aba4 Portal custom icon style refinement
no refs.
- refined delete icon style for portal
- refined icon sizes
2020-09-04 15:59:13 +02:00
Sanne de Vries
11699d5172 Fixed transparent background pattern for blog logo and icon in dark mode 2020-09-04 15:25:32 +02:00