Helen C
5682aea460
Add the option to set images as decorative
...
If an image is decorative, the alt text will be set to be empty. If an image is not decorative, then alt text must be supplied for screen readers.
2021-01-29 10:24:14 +00:00
Michael Brown
cadb5456c0
Apply scss styling to collection_choice_field ( #6683 )
2021-01-18 17:06:29 +00:00
Joshua Marantz
8e79c61564
Implement CSS variables for admin color theming ( #6409 )
...
Co-authored-by: JNaftali <jmarantz@thelabnyc.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-01-17 02:17:41 +00:00
Karl Hobley
5e54382aae
Remove userbars dependency on the vendor bundle
...
Fixes #6657
2021-01-15 17:18:48 +00:00
Karl Hobley
773de3eded
Update webpack to version 5
2021-01-15 17:13:39 +00:00
LB
7fb4d69d92
clean up - remove console log (commented out)
2021-01-15 13:17:13 +00:00
Matt Westcott
14f63519c2
Rename 'config' to 'options'
2021-01-07 15:03:56 +00:00
Matt Westcott
68ee88796e
Move snippet-chooser to client, and refactor to expose JS API
2021-01-07 15:03:56 +00:00
Matt Westcott
1606d4d09e
Move document-chooser to client, and refactor to expose a js API
2021-01-07 15:03:56 +00:00
Matt Westcott
7b8d5f504c
Fix page chooser getValue so that it doesn't fail on an empty state
2021-01-07 15:03:56 +00:00
Matt Westcott
4714a8424f
Implement public JS API for ImageChooser
2021-01-07 15:03:56 +00:00
Matt Westcott
bbc61fb2bc
lint image-chooser.js
2021-01-07 15:03:56 +00:00
Matt Westcott
fcddbfd58a
Move image-chooser.js to client/src/entrypoints
2021-01-07 15:03:56 +00:00
Matt Westcott
a2ff3e1252
Move entrypoints into an admin subfolder
...
This allows us to have entrypoints compiling to other apps besides wagtailadmin.
2021-01-07 15:03:56 +00:00
Karl Hobley
fe79fbb48f
Remove pre-es6 module patterns
2020-12-22 23:39:24 +00:00
Karl Hobley
9873c23e3c
Manually fix/ignore remaining legacy JS linting issues
2020-12-22 23:39:24 +00:00
Karl Hobley
d32ed81124
Run 'eslint --fix' on legacy JS
2020-12-22 23:39:24 +00:00
Karl Hobley
f42ac4b410
Switch to 2-space indentation
2020-12-22 23:39:24 +00:00
Matt Westcott
d401d6dbf6
Move configuration parameters for createPageChooser into a dict
...
This will make them easier to manage when they need to be passed through additional levels of indirection between the Python widget code and the eventual call to createPageChooser, e.g. in PageChooserBlock.
2020-12-20 12:56:22 +00:00
Matt Westcott
73623cc66a
Implement a public Javascript API for PageChooser
2020-12-20 12:56:22 +00:00
Karl Hobley
27133f9570
Moved wagtailadmin/draftail entrypoints into client folder
2020-12-09 14:37:22 +00:00
Karl Hobley
160d66ca93
Move all legacy JS into client folder
2020-12-09 14:37:22 +00:00
Karl Hobley
62ccde9c09
Fetch all pages of translations
2020-11-16 17:07:22 +00:00
Karl Hobley
41b0abc28c
Fix performance issue in React explorer when there are many languages
...
Requesting translations to be nested with each page causes major
performance problems when there are many languages. Mozilla have 61
languages, each with a separate homepage that's a translation of the
others, so the response for this query contains details of 61 * 61 pages
for them.
This isn't actually required since we only need to know the translations
if the user navigates into a page, and the translations are requested
again anyway by the getPageTranslations function.
2020-11-16 17:07:22 +00:00
Karl Hobley
d58f74f7bd
Implement locale selector in React page explorer ( #6481 )
2020-10-23 14:40:25 +01:00
Karl Hobley
123d9cef92
Add locale indication to the React page explorer
2020-10-23 09:09:52 +01:00
Karl Hobley
e8e91fa1ac
Add locale selector to snippet edit
2020-10-22 16:57:32 +01:00
Karl Hobley
6a84461dbc
Add locale selector to snippet listing
2020-10-22 16:57:32 +01:00
Karl Hobley
f0ce1f4775
Replace pushPage/popPage with more flexible gotoPage method
...
- page explorer
2020-10-22 19:45:34 +10:00
Coen van der Kamp
fd5e6b657f
Switch breadcrumb icons to SVG
2020-10-21 23:57:09 +10:00
Karl Hobley
1edea5edb2
Add root State/Action types
2020-10-21 23:33:51 +10:00
Karl Hobley
ae80df24b7
Add typings for API
2020-10-21 23:33:51 +10:00
Karl Hobley
61692b3ffa
Add typings for Redux actions
2020-10-21 23:33:51 +10:00
Karl Hobley
89d296c562
Merge all page state types into a single type
2020-10-21 23:33:51 +10:00
Karl Hobley
650045b573
Convert Explorer into TypeScript
...
And replace PropTypes with TypeScript annotations
2020-10-21 23:33:51 +10:00
Thibaud Colas
d316677b89
Switch from Babel to TypeScript
2020-10-21 12:48:40 +01:00
Thibaud Colas
d7490de076
Disable Webpack performance hints
2020-10-21 12:33:25 +01:00
Thibaud Colas
c24c326ec3
Change how IE11 polyfills are added to Webpack build
2020-10-21 12:33:25 +01:00
Thibaud Colas
de2d66e08e
Update Webpack config for Webpack 4 API
2020-10-21 12:33:25 +01:00
Thibaud Colas
ef2c177a7b
Remove only usage of Webpack aliases and resolver, incompatible with new setup
2020-10-21 12:33:25 +01:00
Thibaud Colas
992ea2a0ef
Remove extra package.json which causes problems for Jest config resolution
2020-10-21 12:33:25 +01:00
Thibaud Colas
d41df6ca46
Combine all Webpack modes into single file
2020-10-21 12:33:25 +01:00
Thibaud Colas
6e404740c7
Implement admin-only IE11 support warning message, linking to support plans
2020-10-21 12:05:27 +01:00
Karl Hobley
3e158ca2aa
Enable TypeScript ( #6472 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-10-21 00:51:09 +01:00
Karl Hobley
0c2bae7941
Update to Babel 7 ( #6471 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-10-20 17:06:52 +01:00
Cole Maclean
80c65390a4
Reset padding for checkbox & radio inputs
...
Previously, the normalize stylesheet covered this, however that's
no longer applicable due to selector specificity.
2020-10-10 14:57:14 +01:00
Matt Westcott
499193d05c
Pass snippet chooser URL via data attribute instead of chooserUrls
2020-09-30 22:05:45 +01:00
Karl Hobley
7c86c4e14f
Implemented Locales UI
2020-09-21 12:55:41 +01:00
Karl Hobley
87b40bf166
Allow nested sections in tabs
...
This CSS rule was hiding all nested sections, not just the one the tabs
are using.
2020-09-17 14:32:16 +01:00
Karran Besen
0c8ad63adb
Fix admin submit inputs focus ( #6369 )
...
* Fix admin submit inputs focus
Co-authored-by: Coen van der Kamp <coen@fourdigits.nl>
2020-09-17 11:04:18 +02:00