0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 05:02:57 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
Thibaud Colas
b7d2618d93
Remove Safari 14 support in Wagtail admin – update browserslist and TypeScript (#11258)
Co-authored-by: Sage Abdullah <sage.abdullah@torchbox.com>
2023-12-12 10:54:41 +00:00
LB Johnston
f0b6509f29 Rework sidebar .ready class addition
- Remove the sidebar duplicate JS that would also add a ready class but NOT after a settimeout, only after the component renders
- This means we now have one location in the code that does this, driven by Stimulus
- Update the Storybook preview JS so that we can rely on similar behaviour in Storybook for transitions
2023-10-25 08:55:09 +11:00
LB Johnston
1da3e5fde7 Refactor Stimulus util & module export
- Accessing constructor was confusing and createController is not a core requirement
- Avoid modifying the base Stimulus application class
- Expose `window.StimulusModule` as the module output
- Expose `window.wagtail.app` as the Wagtail Stimulus application instance
- Rename root element variable to `root` in initStimulus (so we do not conflict with potential action option registration that uses `element` variable names)
- Pull in the wagtail.components to the same core.js file and add JSDoc for exposed global
- Relates to #10197
2023-10-19 07:28:27 +01:00
Thibaud Colas
f985262959 Allow all stories within subfolders of shared templates to appear in the same section 2023-06-26 13:55:07 +01:00
Thibaud Colas
42600f8bec Fix Storybook rendering of body element 2023-04-19 13:38:23 +01:00
Thibaud Colas
6866293d4e Styling tweaks for new icons 2023-04-14 08:38:01 +01:00
Lovelyfin00
ab05f7dd3c Rename AutoFieldController to SubmitController
- Closes #10092
2023-02-16 07:23:03 +10:00
Thibaud Colas
0246d3a6f4 Fix Storybook not supporting TypeScript declare class fields 2023-02-15 22:52:49 +10:00
Thibaud Colas
fa1cbfbe98 Fix Storybook pattern library proxying in Node 18 2023-02-15 22:52:49 +10:00
LB Johnston
ede189ada5 Set up initial stimulus application integration 2022-12-19 14:00:11 +00:00
Thibaud Colas
fbabd6ef5e Disable Webpack css-loader URL handling in Storybook. Fix #8646 2022-06-09 17:12:52 +10:00
LB (Ben Johnston)
9a04aefe9a
Disable ESLint prefer-default-export globally (#8577)
- default / named exports are used in varying places and it is not a critical blocker for future code
- disable this rule and in the future it can be re-assessed or moved to the core wagtail eslint config
2022-05-31 22:47:50 +01: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
Thibaud Colas
5fd3962d7f Update existing stories with latest storybook-django version 2022-04-23 01:05:27 +01:00
Thibaud Colas
4dc5f3c595 Remove legacy sidebar, refactoring slim sidebar implementation 2022-04-08 11:51:09 -04: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
d149a27392 Upgrade Storybook setup, with latest release, less boilerplate 2022-02-24 21:22:45 +10:00
Thibaud Colas
b3e5f751e4 Add icons loading and demo to Storybook 2022-02-24 21:22:45 +10:00
Thibaud Colas
3aae7d0583 Add base pattern library setup with Storybook 2022-02-24 21:22:45 +10:00
Thibaud Colas
939fa98ef0 Move storybook configuration to a dotless folder, for linting 2022-02-24 21:22:45 +10:00