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

4547 commits

Author SHA1 Message Date
Kevin Ansfield 0a76e3e4b6
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 9c3ca4f066 Update dependency @tryghost/kg-clean-basic-html to v0.1.1 2019-05-06 10:29:32 +00:00
Renovate Bot 9906eef315 Update dependency @tryghost/mobiledoc-kit to v0.11.2 2019-05-06 05:23:36 +00:00
Renovate Bot 98b6fb9e95 Update dependency @tryghost/timezone-data to v0.2.2 2019-05-06 03:24:47 +00:00
Renovate Bot 1fd4a3a769 Update dependency @tryghost/kg-parser-plugins to v0.4.2 2019-05-06 02:25:09 +00:00
Renovate Bot be9df2b2e9 Update dependency @tryghost/helpers to v1.1.3 2019-05-06 01:24:29 +00:00
Kevin Ansfield 556bb46f98 Use extracted @tryghost/kg-parser-plugins package
no issue

- `@tryghost/kg-parser-plugins` contains the parser plugins used by the editor and was extracted so that they can be used in server-side html-to-mobiledoc conversion
2019-05-03 10:45:08 +01:00
Kevin Ansfield 3bcb56225d Use extracted @tryghost/kg-clean-basic-html package
no issue
- `cleanBasicHtml` has been extracted to an external package so that it can be used inside the extracted `@tryghost/kg-parser-plugins` package server-side
2019-05-02 17:14:00 +01:00
Kevin Ansfield 2c69970ff2 Fixed random failure of gh-uploader test 2019-05-01 16:09:28 +01:00
Kevin Ansfield 7430f04610
Added caption support to code cards (#1181)
*  Added caption support to code cards

no issue

* fix caption placeholder text

* add figure-to-code-card parser plugin, add language detection to code card parsers

* extract {{kg-action-bar}} component

* do not show card toolbar if caption has focus
2019-05-01 16:36:02 +02:00
Kevin Ansfield 36058958e5 Fixed Travis not running for non-renovate PRs 2019-05-01 15:34:37 +01:00
Kevin Ansfield de94b4cd40 do not show card toolbar if caption has focus 2019-05-01 15:13:49 +01:00
Kevin Ansfield 538b6b3504 extract {{kg-action-bar}} component 2019-05-01 13:57:00 +01:00
Kevin Ansfield 16b3011317 add figure-to-code-card parser plugin, add language detection to code card parsers 2019-05-01 10:41:42 +01:00
Kevin Ansfield d54aa3fe6b fix caption placeholder text 2019-05-01 09:54:04 +01:00
Kevin Ansfield 1c2ed065c8 Added caption support to code cards
no issue
2019-04-30 18:14:49 +02:00
Kevin Ansfield 40f7babc46 Fixed invisible caret in captions for cards with no style specified 2019-04-30 17:53:19 +02:00
Kevin Ansfield 5cb4bcb0cd Increased timeout for gh-task-button disabled assertion 2019-04-30 17:29:28 +02:00
Zimo de4f70ec4b Refined code card language input font size
no issue.
2019-04-30 17:03:06 +02:00
Kevin Ansfield 232cd9382b
Added language selection to code cards (#1180)
no issue

- Added a language indicator when in rendered mode and a language input when in edit mode
- Allow code card language to be set with <code>```lang</code>+<kbd>Space/Enter</kbd> expansion 
    - previously <code>\`\`\`</code> would immediately create a code card, the <kbd>Space/Enter</kbd> is now necessary for the insertion to occur
    - lang is optional <code>\`\`\`</code>+<kbd>Space/Enter</kbd> will insert a code card with no language selected
    - requires <kbd>Enter</kbd> to be pressed to finalise the expansion and insert the card
    - added hook for text expansions to skip newline creation for when they are triggered with <kbd>Enter</kbd>
- Set the code card editor's language mode based on selected language
    - set the CodeMirror mode based on the code card payload language
        - add a basic map of language short codes to their respective CodeMirror modes
    - observe `mode` property in `{{gh-cm-editor}}` so that the mode is properly set when it's changed after initial render
2019-04-30 16:46:29 +02:00
Kevin Ansfield 9ff217a0e8 Version bump to 2.21.1 2019-04-30 11:10:02 +02:00
Kevin Ansfield 824e668354 🐛 Fixed syntax highlighting inside Code Injection inputs
no issue
- the CodeMirror and theme styles were not being correctly loaded
2019-04-29 17:57:41 +02:00
Kevin Ansfield 99375f73f4 Fixed slash-menu appearing empty immediately after setting title on new post
closes https://github.com/TryGhost/Ghost/issues/9847
- the text expansion is triggered twice in this situation, the first time with `""` and the second with `"/"`. The second trigger was trying to match cards to `"/"` which returned an empty card set
- added a quick workaround that ensures we never include a leading `/` in the card selection query
2019-04-29 17:08:40 +02:00
Kevin Ansfield e50f4819ca Increase timeout for gh-uploader progress bar assertion
no issue
- hopeful fix for randomly failing Travis
2019-04-29 16:56:19 +02:00
Kevin Ansfield 90d038c64b Update dependency @tryghost/mobiledoc-kit to v0.11.2-ghost.1
closes https://github.com/TryGhost/Ghost/issues/10717
- includes fix for `range#expandByMarker`
2019-04-29 16:47:08 +02:00
Kevin Ansfield 25eae72e7a Fixed backspace not combining sections if first section is a special markup
refs https://github.com/TryGhost/Ghost/issues/10717#issuecomment-487557026
- avoid triggering special markup delete behaviour when cursor is at the beginning of a section
2019-04-29 14:25:59 +02:00
Kevin Ansfield 458e0e9bdf Fixed linting 2019-04-29 13:56:00 +02:00
Kevin Ansfield 91d393e87e 🐛 Fixed current styling being lost when applying markdown expansions
closes https://github.com/TryGhost/Ghost/issues/10677
- adjusted the basic markdown text expansion behaviour to delete the MD chars and add a markup to the resulting range rather than deleting the whole range and re-adding it
- extracted basic markdown format behaviour into a helper function
- fixed the link markup expansion so that `[](https://example.com)` is recognised and creates a link with the URL as the text
2019-04-29 13:05:04 +02:00
renovate[bot] caa7b4dbf4 Lock file maintenance (#1178) 2019-04-29 09:00:37 +02:00
renovate[bot] 66d903848f Update dependency codemirror to v5.46.0 (#1176) 2019-04-29 08:45:12 +02:00
renovate[bot] 2f09df5f34 Update dependency ember-composable-helpers to v2.3.1 (#1177) 2019-04-29 08:24:47 +02:00
Renovate Bot 2d30220836 Update dependency ember-infinity to v1.4.4 2019-04-29 03:29:13 +00:00
Renovate Bot a5e043ae04 Update dependency ember-infinity to v1.4.3 2019-04-29 01:31:21 +00:00
Emilio Cobos Álvarez 4015e0a669 🐛 Fixed night shift toggle in Firefox Nightly. (#1174)
Over in:

 * https://github.com/whatwg/html/issues/3840
 * https://bugzilla.mozilla.org/show_bug.cgi?id=1281135

I'm trying to come up with a model for `<link rel="stylesheet" disabled>` in
which Blink / WebKit and Firefox can agree on.

See that HTML spec issue for all the inconsistencies of WebKit / Blink, and the
following post for more context:

 * https://groups.google.com/d/msg/mozilla.dev.platform/BdgNaChHnpY/mhXzCBwSCgAJ

---

Unfortunately, my change to Firefox breaks the Ghost Admin panel night-mode
switch (you can see it in Firefox Nightly).

This is because with my change, removing the `disabled` attribute from an
stylesheet behaves the same regardless of whether the `disabled` attribute is
added dynamically or not.

That means that adding the `disabled` attribute dynamically "unloads" the
stylesheet completely (just like when the attribute is there before inserting
the link in the document, or from the parser). Thus removing the attribute will
load the stylesheet again and fire a load event.

This is problematic for the code as-is, because it means that each time that the
load event fires when the disabled attribute is removed on an alternate, then
it's added again. :)

Prevent that from happening by removing the load event listener ASAP. What this
code wants is to only resolve the promise once after all.

Given this is so far the only regression from my change that has been reported
(over at https://bugzilla.mozilla.org/show_bug.cgi?id=1546707), I think fixing
the Ghost-Admin panel is worth it.

If this pattern is somehow common, then we'll probably revert that patch and go
back to the sad current state of affairs regarding interop :(
2019-04-25 09:40:26 +02:00
renovate[bot] a4b7554111 Lock file maintenance (#1172) 2019-04-24 06:31:50 +01:00
renovate[bot] 0a1d60843a Update ember addons (#1171) 2019-04-24 06:23:03 +01:00
Fabien O'Carroll b9d9c368ab Version bump to 2.21.0 2019-04-23 11:34:46 +02:00
Kevin Ansfield cb38531908
Re-configured Renovate to ignore ember-in-viewport (#1173)
no issue
- ember-in-viewport has introduced a change in 3.5.0 that is incompatible with ember-light-table so adding it to the ignore list temporarily
2019-04-22 12:45:44 +01:00
Hannah Wolfe cab5834c46 Updated .travis.yml swap renovate build to push (#1162)
- currently, we only build renovate PRs
- that means we can't use automerge branch, as we wouldn't run any checks
- this swaps to running only renovate pushes, which means the branch always gets checked
2019-04-22 10:19:21 +01:00
renovate[bot] eaca26a8e2 Update dependency csscomb to v4.3.0 (#1170) 2019-04-22 08:34:52 +01:00
Renovate Bot f0126ce177 Update ember addons 2019-04-22 04:28:51 +00:00
Renovate Bot 90a12fd2c5 Update dependency ember-data to v3.9.1 2019-04-22 03:43:58 +00:00
Renovate Bot 5bd1d8c57a Update dependency @tryghost/timezone-data to v0.2.1 2019-04-22 02:30:34 +00:00
Renovate Bot 7ecfac4122 Update dependency @tryghost/helpers to v1.1.2 2019-04-22 01:29:18 +00:00
Nazar Gargol d4e1cdfd60 Allowed editors to see notifications
refs https://github.com/TryGhost/Ghost/issues/9546

- Change introduced due to users with 'editor' role are now allowed to access notifications
2019-04-18 13:03:19 +02:00
Zimo 70fda76cdf Updated member labs settings API key URL 2019-04-17 16:37:13 +02:00
Peter Zimon eb521c7366
Members refinements (#1163)
* Updated loading state for member detail plan data

* Code refinement for loading member plan data
2019-04-17 16:18:21 +02:00
Rish 14060e267c Version bump to 2.20.1 2019-04-17 18:31:46 +05:30
Rish 05afcf0211 Updated member detail screen to handle free memberships 2019-04-16 22:59:52 +05:30
Rish 5d14f43776 Updated member detail placeholder
no issue
2019-04-16 22:07:27 +05:30