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