0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

49 Commits

Author SHA1 Message Date
Matt Westcott
0077183682 Add a base class for Telepath adapters for chooser widgets 2022-08-10 14:53:41 +10:00
Thibaud Colas
3d96e7fbe7 Implement collapsible and linkable panels
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
sag᠎e
5ee5acb7ce
Introduce a new auto-updating preview panel inside the page editor (#8671)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-14 13:59:05 +01:00
Shohan
7286c530e9
Snippets bulk actions (#8574) 2022-07-10 11:42:38 +01:00
Matt Westcott
172b133568 Eliminate the custom response name 'snippetChosen'
This makes the snippet chooser modal code a completely vanilla implementation of ChooserModalOnloadHandlerFactory, so we don't need snippet-chooser-modal.js at all.
2022-06-29 13:42:04 +10:00
Matt Westcott
79884dd257 Add generic chooser widget JS 2022-06-12 15:47:24 +10:00
Matt Westcott
c90bbcb9c8 Add a default chooser-modal.js endpoint for chooser modals that need no custom JS configuration 2022-06-12 15:47:24 +10:00
Thibaud Colas
4eb35dbc0a Refactor styles to be loaded via single core.css file (#8419) 2022-06-07 13:26:58 +01:00
Tidiane Dia
a5e5f46b2d Group filter select fields in images listing view 2022-06-01 16:50:25 +01:00
Matt Westcott
1fc66294a4 Move snippet-chooser-modal.js to client js 2022-05-25 19:00:50 +10:00
LB (Ben Johnston)
7c9b6fd415
Cleanup - eslint config fixes (#8543)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 16:08:13 +01:00
jacobtoppm
7e98db7197 Disable webpack css url rewriting
This was causing relative urls to be rewritten to use the publicPath.
This meant that the icon font would be referenced at the wrong location
if sites had changed STATIC_URL
fixes #8517
2022-05-11 19:27:49 +10:00
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