Wykres commitów

65 Commity (98545cd1766f4df1a664d39efdd9075e61332adc)

Autor SHA1 Wiadomość Data
Matt Westcott 93f8600c31
ImageBlock for StreamField (rebase of #11791) (#12416)
Co-authored-by: Chiemezuo <chiemezuoakujobi@gmail.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-21 16:11:34 +01:00
Sage Abdullah 5aa0dde2a4 Move preview-panel.js to PreviewController.ts 2024-09-19 08:22:54 +10:00
Neeraj P Yetheendran 568611fe35 Remove non-Stimulus usage of Mousetrap
- No longer need page-editor.js (move the window. global to core.js instead)
2024-04-07 21:05:28 +10:00
Matt Westcott 59262fb47f Remove webpack rule for .woff 2023-11-09 08:57:56 +00:00
Matt Westcott c363f6dd27 Remove ModelAdmin 2023-11-01 16:52:20 +00:00
Chiemezuo 3df622f2ef Migrate publishing schedule dialog field resets to Stimulus
- Remove ...admin/schedule-publishing.js
- Builds on #11043 & #11066
- Closes #11029
2023-10-19 08:00:15 +11:00
LB Johnston a008554b9c Move chooser views from search into searchpromotions 2023-10-09 20:56:09 +11:00
Storm B. Heg 3be4e685c0
Remove unused WorkflowStatus view, urlpattern, and workflow-status.js 2023-08-03 15:16:08 +01:00
Thibaud Colas 78eb3d5844
Always set Sass output to expanded so CSS process is identical in dev and prod builds (#10347) 2023-04-18 15:32:05 +01:00
Aadi jindal ed58c692ca Allow Action controller to trigger a redirect
- Migrate site switcher to use Stimulus approach via w-action
- Closes #10035
2023-04-18 08:30:22 +10:00
Thibaud Colas c89da173e0 Switch styleguide navigation to use panel components and minimap 2023-03-28 16:13:35 +01:00
Matt Westcott f238d659ee Move PageChooserFactory to its own JS endpoint
This will allow us to refactor it, including adding class-level references to window.PageChooser and window.PageChooserModal as necessary, without dealing with the possibility of telepath/widgets.js being imported before the includes that define those.
2023-01-18 14:31:07 +00:00
Lovelyfin00 b929694203 Migrate lock/unlock actions to w-action controller
- Revise 'redirect' from a string to a 'continue' boolean that defaults to false
- Use 'continue=true' for cases where we do not want to create a next param on submit that takes the user back to the current page
- Fixes #9815
2023-01-18 19:00:47 +10:00
Lovelyfin00 9e9a84c953 Pull out loadiconSprite function from inline script
- wrote test for initIconSpirite
- changed from xmlhttprequest to fetch
- prepared a domReady util
- Fixes #9811
2023-01-18 08:04:55 +10:00
Thibaud Colas 0513a78fb5 Refactor Wagtail userbar to use core.css stylesheet like other components 2023-01-11 20:20:15 +10:00
Sage Abdullah 41c8512789 Reset scheduled publishing fields when dialog is closed 2022-09-22 14:55:44 +01:00
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