Wykres commitów

1814 Commity (825dda616c6c631dd2b53831354d044fd4e2d806)

Autor SHA1 Wiadomość Data
Bertrand Bordage 2b3f8fe4e1
Adds the duplicate icon from wagtail-react-streamfield. (#6227) 2020-07-15 16:01:41 +02:00
Dan Braghis b77f1b75ce Fix MediaBlock SVG icon size in the rich text editor
Fixes #6142
2020-06-30 07:13:29 +10:00
Coen van der Kamp b1d82cf2db
Switch messages icons to SVG (#6124) 2020-06-29 16:17:04 +01:00
Dan Braghis bce1e440bd
Add spacing to daterange filter inputs (#6182) 2020-06-27 10:20:20 +01:00
Coen van der Kamp 8a4234f83a Switch header h1 to SVG icon 2020-06-26 10:55:27 +01:00
Coen van der Kamp ec88e4d390 Add userbar action icons 2020-06-15 14:34:37 +01:00
Coen van der Kamp 8052c93795 Add svg icon mixin 2020-06-15 14:34:29 +01:00
Scott Cranfill 8c6c7b8c77 Fix JS linting issue that slipped into SVG icon PR 2020-05-27 18:57:03 +01:00
jacobtoppm 38f18ae98b Allow the timepicker widget width to vary to account for longer time formats 2020-05-27 13:55:50 +01:00
Coen van der Kamp eed16e0034 Add SVG Icons and include in admin menu
* This commit only covers the migration of the icons in the menu and draftail editor. All
other admin menu icons remain implemented as before.
* Existing font based icon support still exists.
* Convert menu icons to SVG
* This could be considered a breaking change for any Wagtail sites or
packages that are leveraging Wagtail's Button and Icon React components.
* Remove references to unused `submenu-trigger` class
* Prefix icon `id`s with `icon-` to prevent `id` collisions
* Add hooks support (not yet documented) for adding custom icons
2020-05-21 07:36:33 +10:00
Thibaud Colas 7eeb44ad04 Replace gulp-sass with gulp-dart-sass
* Rewrite Sass code that relies on deprecated or removed features in Dart Sass
* Remove unneeded rebuild of node-sass
* Update lockfile
2020-05-17 21:00:20 +10:00
Thibaud Colas 471823f238 Upgrade to Jest 23
* Jest 24 is out but upgrading to it would require us to also update our Webpack tooling to Babel 7, which is quite significant work.
* Rewrite Draftail initialisation tests to stop relying on jsdom script parsing
2020-05-17 20:35:00 +10:00
saeed 44c1f1cab2 Remove sticky footer on small devices 2020-05-07 22:55:25 +10:00
Karran Besen 7565248438 Add the ability to view users in a group
* adds users view to group view (users filtered by that group)
* adds the ability to go to the users list for the group currently being edited (via header link)
* fix issue where the link to add a new user (when no users found) was broken
* resolves #5801
2020-04-26 17:55:09 +10:00
Karl Hobley 92c2cedb67 Implement filtering on reports 2020-04-22 14:54:31 +01:00
nmorduch 7cca89f67c Make only the list part of the nav submenu scroll
- Fixes #5358
- Make classes on the nav submenu adhere to BEM a little better
- Make nav submenu footer match the styles of the things around it a little better (other submenu items on mobile, and the other menu footer on larger screens)
2020-04-20 11:16:31 +01:00
nmorduch 2b4103728b Move and rename nav variables
- Move to variables file
- Rename to be more specific
2020-04-20 11:16:30 +01:00
jacobtoppm b3e5278a1b Remove spreadsheet export setting, and allow a user to select format via a dropdown instead 2020-03-13 17:33:22 +00:00
Matt Westcott c76447246d Fix Javascript alerts reported by LGTM 2020-03-05 09:59:18 +00:00
Jack Paine 70da204eb1 Reduce contrast of rich text toolbar. Fix #4997 (#5740) 2020-01-25 00:05:27 +00:00
Thibaud Colas 14a6561223 Use data- attribute instead of class 2020-01-24 20:56:18 +00:00
Simon Evans 9aaed8db4c Refactor logo SVG partials and update bg colour 2020-01-24 20:56:18 +00:00
Brian Edelman e0672d60b3 adds new image for accessible logo background, updates html and css for desktop and mobile to account for new image 2020-01-24 20:56:18 +00:00
Sævar Öfjörð Magnússon 9b64b39f4b Show 'Close Explorer' button on mobile viewports. Fix #5396 (#5773)
* Rework 'Close Explorer' button css so that it does not rely on u-hidden. Fixes issue #5396
* Update tests due to changed css classes on 'close explorer' button
2020-01-23 16:18:14 +00:00
Matt Westcott 590bea3b7b Revert "Fix submenu footer blocking items in admin" (#5606)
This change causes the footer to no longer be bottom-aligned when the menu is shorter than window height.

This reverts commit a459e91692.
2020-01-17 12:58:20 +00:00
Matt Westcott ee8eda8353 Merge branch 'author-specific-locking' of https://github.com/kaedroho/wagtail into kaedroho-author-specific-locking 2020-01-08 15:02:19 +00:00
Benedikt Willi 233e7f5189 Add ability to filter image index by a tag
- Fixed error when searching and filtering by tag at the same time
2019-12-02 09:54:35 +10:00
Karl Hobley 33b6d82033 Rename Admin API endpoint to "main" 2019-11-28 09:00:35 +00:00
Karl Hobley 5f68627950 Merge branch 'master' into author-specific-locking 2019-11-26 15:55:49 +00:00
dependabot[bot] 01caaa0dc2 Bump eslint from 2.13.1 to 4.18.2 (#5665)
* Bump eslint from 2.13.1 to 4.18.2

Bumps [eslint](https://github.com/eslint/eslint) from 2.13.1 to 4.18.2.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v2.13.1...v4.18.2)

Signed-off-by: dependabot[bot] <support@github.com>

* fix up linting issues
2019-11-06 18:16:10 +00:00
Nick Smith 1c1341e477 Improve contrast of disabled inputs
Fixes #5649
2019-11-03 07:41:08 +10:00
jacobtm 430b50424e Include scss formatting and add bold formatting to locking messages 2019-10-30 11:58:50 +00:00
Igoranze a459e91692 Fix submenu footer blocking items in admin
- items longer then the page height are no longer broken by the submenu footer
- long lists of submenu items are no longer blocked by the footer (version number)
2019-10-24 08:17:55 +10:00
kevinhowbrook 7db44c71b3 Break listing titles by word so action buttons are visible on smaller screens (#5429) 2019-08-29 14:06:16 +01:00
kevinhowbrook 48c82516db Allow content to define the tab width on xs screens to stop cutting off text (#5392) 2019-08-29 12:27:32 +01:00
Bertrand Bordage 1a4c157ec8 Updates to react-streamfield 0.9.5. 2019-08-23 14:55:27 +01:00
Bertrand Bordage ec60b02ea0 Updates broken JS tests. 2019-08-23 14:55:27 +01:00
Matt Westcott 725b01c809 Replace streamfield CSS with react-streamfield CSS 2019-08-23 14:55:26 +01:00
Mikael Engström 7e7ca39821
Merge branch 'master' into support-phone-number-links 2019-08-21 21:36:12 +02:00
Mikalai Radchuk d2d8b2c9e3 Fixes layout for the FileField 2019-08-18 16:55:36 +10:00
Iman Syed 794d40b86b Add ability to create anchor link tab within rich text link
- add tests

- Update changelog & release notes
2019-08-18 15:56:20 +10:00
Jonny Scholes c0af26b076 Move and refactor upgrade notification JS 2019-08-04 17:39:55 +10:00
mien 4a343a5523
Add support for phone links in rich text
This is mainly copy paste of Liam Brenner work (#3776) but with
a few fixes to make it work with Draftail. Since mailto:-links
is supported i think it is reasonable to support tel:-links as
well
2019-08-01 16:12:22 +02:00
Iman Syed d3f720995a Make image fallback work for images with big/small aspect ratios. Fix #5472 (#5474) 2019-08-01 11:46:34 +01:00
Catherine Farman f53dd95696 Change StreamField group labels color so labels are visible. Fix #5455 (#5462)
* use lighter grey for streamfield group label for accessible contrast
2019-07-26 16:39:11 -04:00
Helen Chapman 3bd058f9d8 Rename _utilities.hidden.legacy.scss to _utilities.visuallyhidden.scss (#5404)
We will always need visuallyhidden styles for screen readers.
2019-06-24 12:45:02 +01:00
Helen Chapman 1e85ff454c Move focus to the pages explorer menu when open (#5336, #5394)
* Ensure that when you open the explorer the focus moves to the first link of the menu, and add a label for the explorer navigation
* Add dialog role to pages explorer popup, and ensure that there is an option to close the dialog window when tabbing by making the close button visually hidden rather than display none
2019-06-20 18:02:28 +01:00
Helen Chapman e33732cc63 Add more contextual information for screen readers in the explorer menu’s links (#5335, #5386) 2019-06-19 15:19:41 +01:00
Jonny Scholes 4ef9919240 Refactor submenu JS to remove jquery dep and move to wagtail-client (#5254) 2019-06-19 12:30:39 +01:00
Coen van der Kamp 3eb71d702e
Merge pull request #5378 from thibaudcolas/bug/icon-help-inverse-5359
Fix help-inverse icon regression introduced by icon refactorings in #5359
2019-06-18 14:06:01 +02:00
jordan-bauer 998440cfa9 Remove buggy tab order customisations in CMS admin (#5383, #5351) 2019-06-18 12:49:16 +01:00
Helen Chapman 98d3ef4743 Ensure the 'add child page' button displays when focused (#5274, #5382) 2019-06-17 18:11:04 +01:00
Helen Chapman 4b4db7d771 Adds screen-reader-only text to the close button for modals (#5274, #5377)
* Adds clearer text to the close button for modals
* Use existing wagtailConfig.STRINGS to store the new translatable string for JS, rather than introducing a new library.
* Update list of string constants for translation in the tests file
* Remove aria-hidden on modal dialog close button
2019-06-17 15:56:48 +01:00
Thibaud Colas c5e60ca1d4 Fix help-inverse icon regression introduced by icon refactorings in #5359 2019-06-12 18:41:51 +01:00
Thibaud Colas 5adda1af43 Fix regression for unpublished pages styles & revision index item 2019-06-12 18:31:32 +01:00
Beth Menzies 1e5612ff90 adjust heading structure to be more accessible 2019-06-12 18:31:32 +01:00
Thibaud Colas 8cd384ec1f Switch legacy icon implementations to use variables instead of hard-coded characters 2019-06-06 18:00:57 +01:00
Thibaud Colas 5e19ce89f1 Remove unneeded icon overrides from icon styles 2019-06-06 18:00:22 +01:00
Thibaud Colas 431782c7ae Switch all icons to be defined with private use codepoints instead of ASCII letters 2019-06-06 17:58:01 +01:00
Thibaud Colas 6da86daeae Fix focus outline styles for image blocks 2019-05-28 11:53:26 +01:00
Thibaud Colas 0d22763e0a In main nav & explorer menu, show focus outline within elements 2019-05-28 11:53:26 +01:00
Thibaud Colas f4e2891857 Remove all existing outline overrides in admin UI 2019-05-28 11:53:26 +01:00
Thibaud Colas 278cda67ab Add global tab-through focus outline styles 2019-05-28 11:53:26 +01:00
Beth Menzies 0c774e7dd1 increase font size across admin, improve color contrast 2019-05-23 17:12:58 +01:00
Deniz Dogan 74ce4adb6b Fix playful tail wag animation
Fixes #3780
2019-04-30 07:49:10 +10:00
Kevin 31885d6f4e Add color-white to wagtail-version so it's visible (#5236). Fix #5189 2019-04-24 15:40:09 +01:00
Deniz Dogan 647f2c1d1d Fix Redux DevTools deprecation warning (#5231). Fix #5214 2019-04-23 15:02:53 +01:00
nmorduch 2668c05146 Rearrange SCSS structure according to ITCSS 2019-04-11 11:08:47 +02:00
Thibaud Colas f987fa91c9
Upgrade Draftail to v1.2.1. Fix #4985, adds more Markdown shortcuts (#5117)
This includes:

- [v1.0.0](https://github.com/springload/draftail/releases/tag/v1.0.0) (identical to v0.17.2)
- [v1.1.0](https://github.com/springload/draftail/releases/tag/v1.1.0) (contains fix for #4985)
- [v1.2.0](https://github.com/springload/draftail/releases/tag/v1.2.0)
- [v1.2.1](https://github.com/springload/draftail/releases/tag/v1.2.1) (fixes regression in v1.2.0)

Here is the combined CHANGELOG for what's relevant to Wagtail:

Bug fixes
~~~~~~~~~

- #4985 – Prevent crash when filtering pasted content whose last block is to be removed (e.g. unsupported image) ([#179](https://github.com/springload/draftail/issues/179)).
- Stop unnecessarily calling `onSave` in the editor’s `onBlur` ([#173](https://github.com/springload/draftail/issues/173)).
- Prevent crash in `DraftUtils.getEntitySelection`, when the provided entity key isn't valid (undefined, missing) ([#168](https://github.com/springload/draftail/pull/168)).
- Fix entity removal and editing not doing anything when the selection is backwards (right to left) ([#168](https://github.com/springload/draftail/pull/168)).
- Prevent the editor from crashing when copy-paste filtering removes all of its content (https://github.com/thibaudcolas/draftjs-filters/commit/652750f)

New features
~~~~~~~~~~~~

- Add support for Markdown shortcuts for inline styles, e.g. `**` for bold, `_` for italic, etc ([#134](https://github.com/springload/draftail/issues/134), [#187](https://github.com/springload/draftail/pull/187)). View the full list of [keyboard shortcuts](https://www.draftail.org/docs/keyboard-shortcuts).

New APIs
~~~~~~~~

- Add [`onFocus`](https://www.draftail.org/docs/api#managing-focus) and [`onBlur`](https://www.draftail.org/docs/api#managing-focus) props to use callbacks on those events. This can be useful for [form validation](https://www.draftail.org/docs/next/form-validation). [#170](https://github.com/springload/draftail/issues/170), [#174](https://github.com/springload/draftail/pull/174), thanks to [@TheSpicyMeatball](https://github.com/TheSpicyMeatball).
- Add [`plugins`](https://www.draftail.org/docs/plugins) API to support extensions of the editor using the [draft-js-plugins](https://github.com/draft-js-plugins/draft-js-plugins) architecture ([#83](https://github.com/springload/draftail/issues/83), [#171](https://github.com/springload/draftail/pull/171)).
- Add ability to disable or customise the editor toolbar with [`topToolbar`](https://www.draftail.org/docs/customising-toolbars).
- Add ability to add a toolbar below the editor with [`bottomToolbar`](https://www.draftail.org/docs/customising-toolbars).
- Add data reset parameter to `DraftUtils.resetBlockWithType()`.
- Enable list continuation on Enter for custom `*-list-item` blocks. All that’s required is for the block type to end with `-list-item`.

None of those API additions will be usable within Wagtail (at least without hacks) until corresponding rich text features APIs are built to allow their configuration. The last 2 additions would already be usable but they would only be useful when leveraging the other APIs.
2019-03-21 20:29:26 +00:00
Md. Arifin Ibne Matin edfd9afc1d Add more built-in rich text formats (#5141) 2019-03-15 01:39:18 +01:00
Thibaud Colas 96ec1e0e4e
Preserve links when copy-pasting rich text content from Wagtail to other tools (#5054) 2019-02-07 00:01:03 +02:00
Brady e77338f1a3 Highlight broken links to pages and documents in rich text. Fix #4802 (#4813) 2019-02-02 17:04:01 +00:00
Janneke Janssen 487f1f47b8 Define proper breakpoint definitions rather then typing @media (#4860) 2018-11-04 23:46:42 +02:00
Anselm Bradford 303ee0f95b Add `rel="noopener noreferrer"` to target blank links 2018-10-27 12:46:49 +03:00
Coen van der Kamp 0e1c6b953d Detach nav colors from color-grey vars gives fine grained color control 2018-10-11 12:07:51 +01:00
Thibaud Colas ad5a3bbdc2 Remove unused React component generator 2018-10-10 14:02:29 +01:00
Thibaud Colas 3186950de4 Only render tooltip link if there is a label for it 2018-10-07 22:27:51 +03:00
Matt Westcott aecc8f1a3b Prevent linking to root page in Draftail. Fixes #4605 2018-10-07 22:27:51 +03:00
Matt Westcott 6c7065ef99 Prevent Draftail from crashing on links to the root page 2018-10-07 22:27:51 +03:00
Thibaud Colas bb14ba2ced Revert "Upgrade gulp-sass to 4.0.1 and rebuild package-lock.json with npm 6"
This reverts commit 497207735a.
2018-07-31 23:53:05 +03:00
Matt Westcott 497207735a Upgrade gulp-sass to 4.0.1 and rebuild package-lock.json with npm 6
The only difference to the generated code appears to be in sourcemap data.
2018-07-31 23:48:57 +03:00
Matt Westcott d9d1529cc0 Convert the document chooser modal to use static onload handlers 2018-06-20 15:35:41 +01:00
Matt Westcott 630a887d58 Convert the embed chooser modal to use static onload handlers 2018-06-20 15:35:41 +01:00
Matt Westcott 0ebf393b31 Convert the page/link chooser to use static onload handlers 2018-06-20 15:35:40 +01:00
Matt Westcott aa9de4758f Use static onload handlers in the image chooser modal
Instead of passing an 'onload' JS function as part of the AJAX response for each step of the workflow,
we specify all onload handlers up-front when initialising ModalWorkflow, and return a 'step' field
in the response to indicate which one to trigger.
2018-06-20 15:35:39 +01:00
Matt Westcott 8b3d3a7af8 Reorganise getChooserConfig for clarity 2018-06-20 15:35:39 +01:00
Thibaud Colas c309753378
Expose reusable client-side code to build Draftail extensions (#4467)
* Expose Draftail package as global variable for reuse
* Expose Wagtail React components for reuse
* Expose Draftail-related React components for reuse
2018-04-18 00:27:07 +03:00
Thibaud Colas 7238f22ebd Improve error display cross-browsers, and add translatable string 2018-04-02 19:05:02 +03:00
Thibaud Colas 411895e450 Update labels to make editor reload feature more understandable 2018-04-02 19:04:38 +03:00
Thibaud Colas 9918ee2b02 Fix Draftail editor fallback layout in .full fields 2018-04-02 19:04:37 +03:00
Thibaud Colas 2e74f0fdcf Change EditorFallback button order 2018-04-02 17:24:57 +03:00
Thibaud Colas 101b446749 Add tests for EditorFallback 2018-04-02 17:24:57 +03:00
Thibaud Colas 04ebf0702c Implement "Show error" feature for editor crash UI 2018-04-02 17:24:57 +03:00
Thibaud Colas 19725330af Implement basic editor reloading 2018-04-02 17:24:57 +03:00
Thibaud Colas 7740d2d615 Add Draftail error handling component 2018-04-02 17:24:57 +03:00
Tony Yates cab90e5d1b Adding external link with selected text now includes text in link chooser. Fix #4328 (#4366) 2018-03-21 00:35:41 +02:00
Thibaud Colas 6246832408 Add JS source maps in production build for packaged Wagtail 2018-03-14 23:03:00 +01:00
Thibaud Colas 87b0a89e1e Upgrade Draftail to latest release, addressing #4296 2018-02-27 15:48:34 +00:00
Thibaud Colas 96d39e4560 Display rich text image alt as plain text instead of read-only field 2018-02-23 16:19:04 +00:00
Thibaud Colas c62c58c492 Add Draftail init fallback for StreamField/InlinePanel templated fields. Fix #4295 2018-02-23 16:02:57 +00:00
Thibaud Colas 18f9736c38 Fix Draftail initialising on the wrong elt. Fix #4295 (#4301) 2018-02-21 11:07:28 +00:00
Carlo Ascani 8c0170bb62 Animate the chevron icon when opening sub-menus in the admin (#3069) 2018-02-14 14:06:19 +02:00
Thibaud Colas 4cab7d67c3 Fix line break icon rendering in MS Edge 2018-02-12 21:54:08 +00:00
Thibaud Colas 1b9116ed2d Fix link/doc/image/embed choosers crashing Draftail in IE11 2018-02-12 21:54:08 +00:00
Thibaud Colas 5c2ff7d461 Make Draftail toolbar display block to have sticky positioning in Safari 2018-02-12 21:54:08 +00:00
Thibaud Colas 9861c2a0d4 Move Draftail tooltips portal closer to the editor to prevent background flickering 2018-02-12 21:54:08 +00:00
Thibaud Colas aecfce73ec Refactor Draftail exports to match exposed module 2018-02-09 15:24:24 +00:00
Thibaud Colas cedfd2b1bc Update to latest Draftail and Draft.js 2018-02-09 15:24:24 +00:00
Thibaud Colas e59863f903 Refactor Draftail JS plugin API to be more similar to the rich text features registry API 2018-02-09 15:24:24 +00:00
Thibaud Colas ad2ec0b601 Add missing unit tests for Draftail JS code 2018-02-09 15:24:24 +00:00
Thibaud Colas 37316656f7 Remove unused strategy API from Draftail registry 2018-02-09 15:24:24 +00:00
Thibaud Colas e272aba222 Make it possible to use SVG icons in Draftail 2018-02-09 15:24:24 +00:00
Thibaud Colas e4a06083af Add missed ellipsis in test stubs 2018-01-26 14:59:48 +00:00
Thibaud Colas 8fb0c9a39b Use ellipsis for "Loading" message 2018-01-26 14:59:48 +00:00
Thibaud Colas e087e8270b Fix Draftail media block bottom border in Safari, Android Chrome 2018-01-26 12:34:05 +02:00
Thibaud Colas 0edc5be68c Remove unneeded Draftail init & save value conversions 2018-01-26 12:33:13 +02:00
Thibaud Colas 95bb2aecf9 Fix Draftail placeholder alignment in full-width field 2018-01-26 12:31:39 +02:00
Thibaud Colas 2e9b5e5569 Remove outdated TODOs in Draftail code 2018-01-26 11:34:17 +02:00
Thibaud Colas f115ff7f4d JS linting fixes 2018-01-18 19:06:04 +02:00
Thibaud Colas 532a530836 Update Draftail tooltip button styles to be closer to other buttons 2018-01-18 18:48:00 +02:00
Thibaud Colas e72cb44d03 Add default values for document decorator rendering 2018-01-18 18:35:05 +02:00
Thibaud Colas 239365705c Finish making Draftail toolbar translatable 2018-01-18 18:32:16 +02:00
Thibaud Colas dc4e65b3b9 Add missing undo/redo controls in Draftail toolbar 2018-01-18 18:32:16 +02:00
Thibaud Colas fe21055b8e Add missing line breaks feature to Draftail toolbar 2018-01-18 18:32:16 +02:00
Thibaud Colas 9f17026fab Make Draftail ImageBlock alt field readonly for now 2018-01-18 18:32:15 +02:00
Thibaud Colas 5f08013ad2 Reproduce Hallo field styles for Draftail, and adapt padding 2018-01-18 18:32:15 +02:00
Thibaud Colas 8742b249f3 Update to latest Draftail 2018-01-18 18:32:15 +02:00
Thibaud Colas c3a4bf4758 Make Draftail toolbar collapse to its buttons width 2018-01-18 18:32:15 +02:00
Thibaud Colas 3fbc55dbf8 Add tests to all decorators and blocks, making sure they support "no data" scenarios 2018-01-18 18:32:15 +02:00
Thibaud Colas 6e78b7fe3c Improve contrast of Draftail tooltip buttons 2018-01-18 18:31:24 +02:00
Matt Westcott e690e95503 Pass document filename as part of the metadata returned from the document chooser and dbHTML->contentState converter
This means we don't have to rely on pulling it from the document URL.
2018-01-18 15:35:25 +00:00
Thibaud Colas db33741d25 Change Draftail import paths so code is properly split by Webpack 2018-01-18 00:07:39 +02:00
Thibaud Colas d375ac8a07 Only load core-js shims 2018-01-17 23:47:18 +02:00
Thibaud Colas 792538b942 Expose React-related dependencies as global variables for extension 2018-01-17 23:23:17 +02:00
Thibaud Colas 7c5c1054e4 Remove unused styles for Hallo rich text images 2018-01-17 22:19:38 +02:00
Thibaud Colas 168f2ddd40 Remove unneeded button spacing override 2018-01-17 22:19:38 +02:00
Thibaud Colas f8b99045a7 Refactor Draftail sources to single component 2018-01-17 22:19:38 +02:00
Thibaud Colas 19a6189d57 Disable edit of images and embeds in Draftail - not cooked enough 2018-01-17 22:19:37 +02:00
Thibaud Colas 4054fb2f18 Make all Draftail interface translatable 2018-01-17 22:19:37 +02:00
Thibaud Colas 6f9ac80f5f Fix ImageSource onError callback 2018-01-17 22:19:37 +02:00
Thibaud Colas 143edbf7e7 Add basic error handling to all Draftail sources when AJAX fails 2018-01-17 22:19:37 +02:00
Thibaud Colas 1eb38a8b7c Replace object-assign and promise polyfills with core-js 2018-01-17 22:19:37 +02:00
Thibaud Colas d841616d0a Use new onClose prop to close sources when no result was selected 2018-01-17 22:17:15 +02:00
Thibaud Colas 127cea6d9c Update Streamfield sequence focus code to support Draftail 2018-01-17 22:17:15 +02:00
Thibaud Colas b31260a501 Remove over-engineering index.js for Draftail sources folder 2018-01-17 22:17:15 +02:00
Thibaud Colas 03c7f662d2 Make Draftail document rendering logic sturdier 2018-01-17 22:17:15 +02:00
Thibaud Colas 6aeb50bcd3 Stop inlining constant React components 2018-01-17 22:17:15 +02:00
Thibaud Colas f6cdd27972 Add Sass variable to avoid repeating icon size 2018-01-17 22:17:14 +02:00
Thibaud Colas 1614cc9a07 Add font-smoothing mixin for Wagtail, using it on tooltips 2018-01-17 22:17:14 +02:00
Thibaud Colas b34eb8dcf3 Adjust Draftail toolbar border-radius 2018-01-17 22:17:14 +02:00
Thibaud Colas 5adcd87617 Improve support for link text insertion in link/document sources 2018-01-17 22:16:35 +02:00
Thibaud Colas 0fd3b1872f Fix Draftail placeholder text rendering 2018-01-17 22:16:35 +02:00
Thibaud Colas bc2a4c3560 Add length constraints to tooltip label 2018-01-17 22:16:35 +02:00
Thibaud Colas 33b12fc879 Fix tests relying on outdated API 2018-01-17 22:16:35 +02:00
Thibaud Colas 68f508acd9 Update Draftail link data to support copy-pasted links 2018-01-17 22:16:35 +02:00
Thibaud Colas 24b7c437da Fix DocumentSource keeping too much data 2018-01-17 22:16:35 +02:00
Thibaud Colas e5856c6f34 Clean up Draftail image enitity definition, use the same attrs as Hallo 2018-01-17 22:16:35 +02:00
Thibaud Colas bafc042364 Fix ModalSource for latest Draftail API 2018-01-17 22:16:35 +02:00
Thibaud Colas 4803ad1c43 Add IE11 opt-out of rich text pasting, and documentation notes 2018-01-17 22:16:35 +02:00
Thibaud Colas 9c5c116b04 Update to Draftail 0.11.0 2018-01-17 22:16:35 +02:00
Thibaud Colas 4200b2e257 Tweak Draftail controls to align better with Wagtail 2018-01-17 22:15:35 +02:00
Thibaud Colas cf79badee7 Fix style leak of Wagtail panel icons in h2 tag 2018-01-17 22:15:35 +02:00
Thibaud Colas 9598e691f7 Align Draftail rich text typography with that of Hallo 2018-01-17 22:15:35 +02:00
Thibaud Colas 947b9dab6e Adjust Draftail editor styles to match that of Hallo (spacing, background) 2018-01-17 22:15:35 +02:00
Thibaud Colas 4f906d09c9 Refactor Hallo styles to separate files 2018-01-17 22:15:35 +02:00
Thibaud Colas 72d06072d3 Update font family to serif stack for Draftail 2018-01-17 22:01:40 +02:00
Thibaud Colas 73ed313a9f Update Link and Document decorators to Draftail 0.10 API 2018-01-17 22:01:40 +02:00
Thibaud Colas 306bd8dd03 Add safe maxListNesting default of 4 2018-01-17 22:01:40 +02:00
Thibaud Colas 26419e3731 Enable spellCheck in Draftail by default 2018-01-17 22:01:40 +02:00
Thibaud Colas d8489574d3 Fix Draftail icon wrapping happening even if there is no icon 2018-01-17 22:01:40 +02:00
Thibaud Colas 8ab8592b40 Add custom Draftail blocks for images and embeds 2018-01-17 22:01:40 +02:00
Thibaud Colas fa4af4b8cc Update Draftail styles to the dark theme 2018-01-17 22:01:40 +02:00
Thibaud Colas 382d59d1f3 Update Draftail integration to latest API 2018-01-17 22:01:40 +02:00
Matt Westcott e5de74d24b Populate embed data fields in contentstate 2018-01-17 21:59:32 +02:00
Matt Westcott ce0aa1f716 Fix conversion between db-format attributes and contentState data for images
Draftail expects 'alt' and 'format' to become 'altText' and 'alignment'.

Also ensure that the image chooser continues to the alt-text/format selection stage.
2018-01-17 21:59:32 +02:00
Thibaud Colas f647c9f270 Fix JS error in Draftail sources because of script execution order 2018-01-17 21:59:32 +02:00
Thibaud Colas 1378b766ee Finish hooking up Draftail CSS & JS to Django widget 2018-01-17 21:59:31 +02:00
Thibaud Colas 9dc0ee47dd Fix linting issues in Draftail 2018-01-17 21:59:31 +02:00
Thibaud Colas e18d490859 Integrate Draftail with wagtail-client package, Webpack, Sass 2018-01-17 21:59:31 +02:00
Thibaud Colas c163d93b72 Add Draftail component from https://github.com/springload/wagtaildraftail/ 2018-01-17 21:59:31 +02:00
Janneke Janssen 28dd28187a Update React and related dependencies to latest versions
Updated snapshots due to the upgrade and failing ExplorerPanel test. This was due to the shallow call being made earlier than defining the document.body
Update to React 16
Update other dependencies
Stylelint updates
Remove unused imports
Update babel and gulp packages
Update package-lock
2018-01-17 21:48:17 +02:00
Karl Hobley ae8f11d38c Fix paths to JS files in webpack config 2017-11-26 22:43:47 +00:00
Tim Heap 1f2b8ccaf1 Filter pop-out explorer pages using 'construct_explorer_page_queryset'
The pages listed when browsing the /admin/pages/ explorer differed from
the pages listed in the new React/admin API powered pop-out explorer.
The latter did not pass the queryset through the
'construct_explorer_page_queryset' hook, so pages that should have been
hidden were visible. Visiting these pages in the explorer could then
lead to unexpected behaviours, as hidden sections of the site became
browsable.

A new `for_explorer=1` query parameter has been added to the admin API,
which will pass the page queryset through the
'construct_explorer_page_queryset' hooks.
2017-10-31 15:55:01 +00:00
Thibaud Colas eea0664116 Change Sass linting configuration to take advantage of stylelint capabilities 2017-08-26 16:39:45 +03:00
Anselm Bradford a900965fba Fixes #3516 - replaces scss-lint with stylelint 2017-08-26 16:39:45 +03:00
Emily Horsman ac632b3b8f Fix explorer item link behaviour (#3763)
Adds a href prop to the right arrow Button in ExplorerItem. Opening this
link manually (such as Open Link in New Tab) will now take the user to
the deeper page list. Before this commit this button erroneously had no
href and thus would only take them to the current page.
2017-08-16 00:35:32 +03:00
Thibaud Colas a707b8fead Fix linting in client subfolder 2017-08-11 16:26:11 +01:00
Thibaud Colas d9995596bd Add package-lock.json and remove npm-shrinkwrap.json 2017-08-11 15:40:43 +01:00
kapito aed6791088 Optimise caudal oscillation parameters on logo (#3740) 2017-08-10 15:31:29 +01:00
Janneke Janssen 64e9baf0c0 Eslint fix within the ExplorerHeader tests 2017-08-03 12:05:52 +01:00
Janneke Janssen 36d3f5dfec Update the React Explorer to use the admin_display_title instead of the regular page title 2017-08-03 12:05:52 +01:00
Janneke Janssen a77ad34df3 Remove irrelevant tests from the PageCount since it does not have a title dependency when displaying 2017-08-03 12:05:52 +01:00
Thibaud Colas 12048d923b Fix mobile explorer scrolling issue (#3645)
* Fix last bug in explorer scrolling behavior on mobile

* Refactor explorer CSS one last time

* Fix JS linting warnings
2017-06-11 23:31:52 +03:00
Thibaud Colas 6cfd139cc2 Inline util from redux-actions to reduce bundle size 2017-06-09 16:43:50 +03:00
Thibaud Colas b4f8e09e43 Replace babel-polyfill with more lightweight polyfills 2017-06-09 16:42:48 +03:00
Thibaud Colas 248cc95bc4 Hide all modules in Webpack output by default 2017-06-09 16:42:48 +03:00
Thibaud Colas 3bf4e10902 Add best practice node modules aliasing 2017-06-09 16:42:48 +03:00
Thibaud Colas 8a0238768d Move polyfills definition outside of Webpack config 2017-06-09 16:42:48 +03:00
Thibaud Colas 61b6de2e4e Tidy up new React + API explorer for mobile (fixes #3607) (#3635)
* Remove useless CSS declaration

* Remove commented out styles

* Merge duplicate declarations

* Remove even more commented out code

* Move footer mq to footer declaration

* Remove more useless code

* Stop vendor prefixing for IE below 11

* Remove useless vendor prefixing

* Merge identical declarations

* Fix 1px overflow in content wrapper

* Fix explorer scrolling when open on mobile

* Remove unused import

* Add Redux performance measurements to explorer menu

* Rewrite explorer reducer to avoid unnecessary operations

* Stop changing reducer state on every action regardless of type

* Remove redundant children.isFetching property in nodes reducer

* Remove redundant children.isLoaded property in nodes reducer

* Remove redundant children.isError property in nodes reducer

* Refactor nodes explorer reducer with sub-reducer

* Fix linting issue

* Remove unused class name

* Change default icon className from empty string to null

* Remove old TODO comment

* Hoist icons in ExplorerItem component for better performance

* Add comment

* Add tooling for performance measurement of React components

* Clean up explorer panel component definition

* Make performance measurements opt-in

* Improve alignment of page explorer menu on mobile

* Close explorer on touchend rather than touchstart

* Comment out performance measurement code

* Remove fade transition completely
2017-06-09 00:08:04 +03:00
Janneke Janssen 911567af4e Update Webpack to v2 (#3628)
* Update webpack and its dependencies
* Update base config to Webpack 2
2017-06-07 12:39:24 +03:00
Janneke Janssen f4f0e78f6a Update React & Jest (#3611)
* Update to the latest jest version

* Update react dependencies

* Migrate React.PropTypes to PropTypes package

* Add prop-types to the package.json

* Update transition-group import to its new package

* Update jest snapshots

* Exclude node_modules from webpack babel-loader
2017-05-28 21:49:05 +03:00
Thibaud Colas bfbc23e33a Move all explorer-related styles to the same file 2017-05-17 13:14:52 +01:00
Janneke Janssen 2ff4a5aad1 Update explorer for latest scope, UI, with tests 2017-05-13 23:53:10 +03:00
Thibaud Colas f250a233b5 Clean up React code and tooling 2017-05-13 23:53:10 +03:00
Harris L 3f85c5fed5 Make explorer tab-navigable
* use focus-trap-react
* switch clickable span to button
* let focus trap handle outside click
2017-05-13 23:53:10 +03:00
Sævar Öfjörð Magnússon 81c6f3e3b1 Change explorer behavior for pages w/ children, with tests 2017-05-13 23:53:10 +03:00
Janneke Janssen 26695a09c8 Renamed 'explorer' to 'pages' 2017-05-13 23:53:10 +03:00
Eirikur Ingi Magnusson 301d128ea6 Fix explorer scrolling and closing behavior 2017-05-13 23:53:10 +03:00
Thibaud Colas 8bf2c9bf2e Refactor explorer code with tests using Jest 2017-05-13 23:53:10 +03:00
Maurice Bartnig 743a8304a6 Add support for i18n of the explorer 2017-05-13 23:53:10 +03:00
Josh Barr d675807cf8 First version of the explorer on top of admin API 2017-05-13 23:53:10 +03:00
Janneke Janssen 64bb8b2989 Move webpack configuration in subfolder of client/
Move webpack configuration to a subfolder in the client directory

Remove trailing whitespace

Rename prd.config.js to prod.config.js

Simplify lint:js target path
2017-01-26 01:16:04 +02:00
Tim Heap 75e58efab8 Move version from wagtail.wagtailcore to wagtail
This is where developers expect it to be, similar to Django and other
projects. The version info still exists at the old `wagtail.wagtailcore`
location, for backwards compatibility.

Fixes #2557
2016-08-18 12:05:33 +01:00
Josh Barr 14f02a0b50 Tooling for modern front-end components: React JS, ES6, and BEM CSS
Thanks to @justinvdm for the help

Merges: #2275
2016-02-25 13:32:48 +00:00