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

1491 Commits

Author SHA1 Message Date
Matt Westcott
90d7a1cf61 Remove sass icon() mixin 2023-11-09 08:57:56 +00:00
Matt Westcott
d7ed0b2999 Remove icon font 2023-11-09 08:57:56 +00:00
meli-imelda
81baf940f4 Accounts settings panels - refine spacing and classes 2023-11-09 08:05:28 +11:00
meli-imelda
7b9fe92856 Block chooser - refine padding and hover on block-chooser buttons 2023-11-09 08:05:28 +11:00
meli-imelda
6d28dff48e Listings - Remove hover BG (dark mode) and refine padding/borders 2023-11-09 08:05:28 +11:00
elhussein almasri
8f75331825 Preserve whitespace in rendered comments
Fixes #11171
2023-11-06 22:28:28 +11:00
Ian Price
67a2ff28b2 Add a background on the preview iframe
Ensures that when the iframe content is loaded there is a background on the iframe. So that transparent websites show correctly in the preview panel.
Fixes #11174
2023-11-06 22:02:41 +11:00
Matt Westcott
c363f6dd27 Remove ModelAdmin 2023-11-01 16:52:20 +00:00
Matt Westcott
e97af885ec Bump deprecations started in 5.2 to RemovedInWagtail70Warning
These will not be removed in 6.0, to ensure that the two-release deprecation period is still in place.

The removal of the legacy moderation is an exception, as this was slated for removal from 2.x, long before the deprecation warnings were put in place.
2023-11-01 16:52:19 +00:00
LB Johnston
12997b6e15 Move slugify/urlify to discrete utils & remove usage of window.unicodeSlugsEnabled 2023-10-31 13:56:19 +00:00
LB Johnston
538c654c14 Remove test for DomContentLoaded event listener
- No longer required as this event listener is not needed manually after deprecation removals
2023-10-31 13:56:19 +00:00
LB Johnston
0d6ca6e15c Remove deprecated creation of window.cancelSpinner in ProgressController 2023-10-31 13:56:19 +00:00
LB Johnston
191d4bf62d Remove deprecated creation of window.initTagField in TagController 2023-10-31 13:56:19 +00:00
LB Johnston
fe6ca9be30 Remove deprecated support for window.headerSearch in SwapController 2023-10-31 13:56:19 +00:00
LB Johnston
23288bbb4b Move Stimulus stories to the one location 2023-10-30 22:12:26 +11:00
CheesyPhoenix
871c09fd2e Ensure the sidebar's explorer does not trigger action-button of current view
Fixes #11037
Co-authored-by: Christer Jensen <chr.code@gmail.com>
2023-10-26 08:59:32 +11:00
Chiemezuo
415b569b29 Remove RevealController initial class
- This is not used and was added as part of #10793
- Avoid this controller managing this behaviour and instead if needed we can use w-init
2023-10-25 08:55:09 +11: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
Chiemezuo
fcc09e8829 Add w-init / InitController to replace body .ready class
- Controller will automatically add or remove some initial classes when connected
- An optional delay can be set to have this run after a settimeout
- Replace the core.js ready class addition (which would run after a settimeout)
2023-10-25 08:55:09 +11:00
Sage Abdullah
3adb569849 Fix bulk actions more button items
Use data attributes to select the items, because the classname isn't rendered for items inside the dropdown due to the use of base_attrs_string
2023-10-19 22:53:15 +01:00
Sage Abdullah
a2b0d04563
Hide dropdown menu on click in awaiting review dashboard panel 2023-10-19 11:14:26 -04:00
Sage Abdullah
b3846a63fc
Fix workflow action buttons in awaiting review dashboard panel 2023-10-19 11:14:26 -04:00
LB (Ben Johnston)
74aada038b
Add BulkController support for shift+click behaviour (#10861) 2023-10-19 13:25:41 +01: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
ad488a5a49
Use a smaller font size for page listing headers 2023-10-19 02:13:10 -04:00
sag​e
56b14e8f97
Use dropdown buttons on listings in dashboard panels (#11083)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-10-19 07:12:39 +01:00
Sage Abdullah
85d74e42a4 Do not render minimap if there are no panel anchors 2023-10-19 06:39:35 +01: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
Chiemezuo
29d73a3b68 DialogController add support for notifyTargets
- Allowing the dispatching of events to internal targets for key modal events
- See ##11029
2023-10-18 18:52:04 +11:00
dependabot[bot]
75fb953754 Bump @babel/traverse from 7.17.3 to 7.23.2 in /client/tests/integration
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 08:50:47 +11:00
Matt Westcott
4426196046 Add switch between searching current section and whole site 2023-10-17 19:06:24 +01:00
Chiemezuo
aa47776b8a Allow long words in comments to wrap if needed
Fixes #11048
2023-10-17 21:16:39 +11:00
Chiemezuo
959913ee18 Create reset method in w-action controller
Enabling prep for #11029
2023-10-17 21:08:22 +11:00
faishalmanzar
e9d88528e7 Added JS Events for Inline panel added/removed
- Added docs for InlinePanel JS events
- Added w-formset:ready w-formset:added & w-formset:removed events and expanded test suite
- Fixes #9105
2023-10-17 11:53:16 +11:00
Chiemezuo
4269d824f9 Migrate jQuery 'select all on focus' in Image URL generator to Stimulus
Adds support of this useful shared functionality in the ActionController
Fixes #11031
2023-10-13 11:29:18 +11:00
LB Johnston
7b0807d17e Update ActionController unit tests to use a setup function 2023-10-13 11:29:18 +11:00
LB Johnston
a008554b9c Move chooser views from search into searchpromotions 2023-10-09 20:56:09 +11:00
LB Johnston
bd730ecba6 Eslint - allow new SomeClass() in unit tests
- This constraint is not required in unit tests where the output of a class is not the main thing being tested
- Avoid noise in tests by just removing disabling this linting rule in these files
2023-10-06 20:36:42 +11:00
rohitsrma
e2ce772017 Fix help block link contrast
Fixes #10990
2023-10-05 21:30:03 +11:00
Sage Abdullah
1a1fc5c1a7
Refactor default snippets listing buttons to reuse the generic IndexView buttons 2023-10-04 11:30:24 +01:00
LB Johnston
76a0c4968a Adopt classname instead of classnames in all MenuItem/Sidebar usage
- Adds a deprecation path, including documentation to further remove unpredictable naming of adding `classname` in Python APIs
- Intentionally keeps `classNames` in Telepath adaptor inner usage as this convention is not set, however, the server side value passed in will use `classname`
- See https://docs.wagtail.org/en/stable/contributing/general_guidelines.html#use-classname-in-python-html-template-tag-variables
- See #9769 & #9770
2023-10-04 08:05:52 +11:00
Matt Westcott
235f1f4104 Set title line-height in em rather than rem 2023-09-21 09:51:51 +01:00
Matt Westcott
2ed0910e26 Remove margin on ul elements within tables
Fixes the Usage view - https://github.com/wagtail/wagtail/pull/10896#discussion_r1328281681
2023-09-21 09:51:51 +01:00
Matt Westcott
4c7a1aae94 Make action buttons in listings always visible 2023-09-21 09:51:51 +01:00
Matt Westcott
210a9c5df3 Set title-wrapper to inline so we don't have to change it to a span everywhere 2023-09-21 09:51:51 +01:00
Matt Westcott
04eca55b13 Add folder icon for pages with children 2023-09-21 09:51:51 +01:00
Matt Westcott
1746cdec58 Remove align-top classname and use top alignment in listings as standard
This is the most sensible rendering when one cell's content is overly tall - see for example the thumb image column on the bakerydemo People listing.
2023-09-21 09:51:51 +01:00
Matt Westcott
7ee53a9714 Update listing table styling 2023-09-21 09:51:51 +01:00
mansi0829
0fde1ca404 Update InlinePanel JS to support empty form as Template
- Keep backwards compatibility with script element
2023-09-17 21:20:51 +10:00
Subhajit Ghosh
f86a832a4b Add support for offset value in Dropdown & Tooltip controllers 2023-09-14 09:09:59 +10:00