0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 17:13:31 +01:00
Commit Graph

37 Commits

Author SHA1 Message Date
Tidiane Dia
503298556e Add logic to detect duplicates when uploading an image via a modal
Add client-side logic to confirm a duplicate upload

Add template shown when a duplicate image is found via modal upload

Style duplicate upload template shown in modal

Add test for duplicate image upload in modal chooser

Avoid loading all duplicates in memory and use f-string

Make template fragments translatable and use image templatetag to render images

Use class selector instead of direct element one

Set primary button to 'Use existing and delete new' on duplicate upload
2022-04-13 17:59:51 +01:00
Steve Stein
629ced01ca
Page editor underline tabs (#8266)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-12 16:11:08 +01:00
Thibaud Colas
4dc5f3c595 Remove legacy sidebar, refactoring slim sidebar implementation 2022-04-08 11:51:09 -04:00
LB Johnston
13091eab34 remove Hallo JS 2022-03-02 20:15:33 +10:00
LB Johnston
5c01ecfa94 remove Hallo styles 2022-03-02 20:15:33 +10:00
Steve Stein
3bf9b65c06
Tailwind package setup (#8003)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-02-27 16:08:38 +00:00
Thibaud Colas
d2d4651853 Remove polyfills only installed for IE11 2022-02-15 16:31:57 +00:00
Thibaud Colas
af942a27e4
Reformat codebase with Prettier (#7912)
- Automated reformatting
- Manually change code where Prettier reformatting causes issues
- Revert "Disable Prettier formatting in CI for now"
2022-02-04 11:57:55 +00:00
Thibaud Colas
ee15eec511 Switch all Node tooling from Gulp to Webpack, with needed code changes
- Remove gulp code and docs
- Add base CSS & SCSS processing in Webpack
- Make sure Sass files use paths that can be resolved by Webpack
- Use faster source map generation
- Clean up build scripts
- Make sure Storybook can process Sass
- Switch away from web fonts (more work needed)
2022-02-01 07:36:17 +10:00
LB (Ben Johnston)
1deed5f5af
Rename admin/expanding-formset.js (using kebab-case file) (#7833) 2022-01-15 01:00:02 +00:00
Shohan
64a1d7299f [feat] Add bulk actions in page listing
Added following
- Add bulk action checkboxes (non functional), actions, filters in page listing (non functional)
- Add search bar in page listing (non functional)
2021-10-15 16:51:18 +01:00
Matt Westcott
614c23c9a0 Typed table block - initial block class and client-side mechanism for adding columns/rows 2021-10-15 14:20:56 +01:00
fabienheureux
cb08c997ea
Make all edit panels collapsible (#7365)
* Make more panels type collapsible
* Remove duplicate js in homepage template
* Move collapsible code into its own js file
* Change $li to $target in collapsible.js, as in #6342

Closes #7364, #6342, #6187, #2123

Co-authored by: Fabien Le Frapper <contact@fabienlefrapper.me>
Co-authored-by: Robbie Mackay <rm@robbiemackay.com>
Co-authored-by: Scott Cranfill <scott.cranfill@jpl.nasa.gov>
2021-08-30 08:33:43 -07:00
Karl Hobley
e67fb23ea8 Add JS and CSS entrypoints for new sidebar 2021-05-17 11:48:29 +01:00
Karl Hobley
04deadedba Move legacy sidebar JS into a separate module 2021-05-17 11:48:29 +01:00
Jacob Topp-Mugglestone
2ab917bc92 Feature/field comment frontend (#6530)
* Initial working version of comment frontend in edit view

* Make comment js text translatable

* Add comment icon

* Basic hardcoded comment adding widget

* Create widget object and register it with the comment app to subscribe to updates about related annotations and whether comments are shown

* Add data-contentpath attributes to field (and data-contentpath-disabled to fields which prevent a stable contentpath existing at this point - ie ListBlock block positions are not uniquely identified), and to ensure newly generated streamfield blocks also have a stable contentpath identifiable from the frontend, make streamfield uuids generate clientside

* Make comments detect new contentpaths, and move hardcoded comment widget on chooser template into js initialisation, also making new comment buttons init properly in new streamfield blocks

* Fix tests to expect contentpaths

* Remove two step comment widget initialisation, and replace with stored callbacks for widgets that try to initialise themselves before the comment app itself. Refactor widgets to receive the makeComment function directly from the commenting system via an onRegister method to accommodate this

* Use object argument instead of positional for FieldLevelCommentWidget constructor

* Use json_script to pass author to the comments system
2021-04-20 18:25:30 +01:00
Matt Westcott
0e96693fde Clear out obsolete templates / js from pre-telepath streamfield 2021-03-17 23:32:52 +00:00
Karl Hobley
84010b92a7 Moved TableBlock block's table.js into client 2021-03-17 23:32:34 +00:00
Matt Westcott
ac0c5d7ef5 Add telepath adapter for snippet chooser 2021-03-17 23:32:23 +00:00
Matt Westcott
61dc5fb07f Add telepath adapter for document chooser 2021-03-17 23:32:23 +00:00
Matt Westcott
950ef65056 Add telepath adapter for image chooser 2021-03-17 23:32:22 +00:00
Matt Westcott
1bb4c62cd8 Add initial Telepath code and integrate with BlockWidget
This is sufficient to render a CharBlock with `StreamField(blocks.CharBlock())`
2021-03-17 23:32:15 +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
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
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
9873c23e3c Manually fix/ignore remaining legacy JS linting issues 2020-12-22 23:39:24 +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
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
d41df6ca46 Combine all Webpack modes into single file 2020-10-21 12:33:25 +01:00