5580 Commits

Author SHA1 Message Date
Marc Jauvin
fc748326ef
Improve docs for checking for the correct Form widget instance (#899)
Co-authored-by: Luke Towers <luke@luketowers.ca>
2023-05-02 17:36:31 -06:00
Ben Thomson
d27dbbc5f8
Use temporary themesPath config for CMS tests
The override for the paths in the testing environment was causing plugin tests to fail as the base plugin test class was pointing to the wrong plugin root.

I've changed it so the override is now only applied for the test(s) that need it.

Refs: https://github.com/wintercms/wn-redirect-plugin/pull/15#issuecomment-1510038828
2023-04-30 20:38:01 +08:00
Jack Wilkinson
6fa840074a
Switch from using DIRECTORY_SEPARATOR to '/' (#898)
Fixes #895
2023-04-27 21:49:16 -06:00
Luke Towers
2148ab537a Fix ImageResizer test 2023-04-27 11:00:16 -06:00
Luke Towers
11ec68f60f Improve type hinting 2023-04-25 20:35:55 -06:00
Zach Schneider
fb80727501
Add sizeBytes & lastModified to mediamanager.js getItems() (#890)
This adds the sizeBytes & lastModified item attributes to the getItems() function in mediamanager.js exposing them for use in the onInsert() handler of the MediaManager popup.

Credit to @zaxbux
2023-04-23 08:53:49 -06:00
Ben Thomson
f92f3a3d17
Make "winter:util" artisan test clean up after itself 2023-04-22 22:16:05 +08:00
Jack Wilkinson
177d30b8a2
Add Mediafinder Modes (#780)
This PR introduces support for all mediamanager filters as modes for the mediafinder formwidget.

This means that the following mode values would be available:

image
file
document
audio
video
all (default)
2023-04-21 10:11:06 -06:00
AIC BV
7f79742732
Make date field bigger, time field smaller in "datetime" field (#887) 2023-04-20 07:29:38 +08:00
AIC BV
77ca808b11
Removed unnecessary traceLog call (#880) 2023-04-14 11:56:05 -06:00
Luke Towers
6d5388229f Add support for single symbolized assets to theme asset URL generation
Also added tests for symbolized assets passed to the asset combiner from the themeUrl() method.
2023-04-11 12:28:44 -06:00
Luke Towers
b22dbdedf2
Ignore assets using path symbols
This excludes assets using path symbols from the child -> parent theme path resolution logic.

Fixes #884.
2023-04-11 10:59:07 -06:00
Ben Thomson
dfd2ec26e2
Convert Snowboard extras to classes
Follows on from 56b7a8f47f, for the same reason.
2023-04-06 15:37:52 +08:00
Ben Thomson
56b7a8f47f
Convert Snowboard requests to classes
For some reason, these were not true importable classes as they were using the global Snowboard variable, so they couldn't be used in custom Snowboard builds.

I've created two new build files that use the same names as the previous builds, so this should be BC, but the source files are now true classes so they can be imported at will.
2023-04-05 09:47:56 +08:00
Ben Thomson
16cdf50fc0
Properly handle arrayed fields when files are enabled in old framework
Fixes https://github.com/wintercms/winter/issues/872
2023-04-03 14:41:10 +08:00
Marc Jauvin
34609321b9
Add support for pathSymbols in asset filenames (#874) 2023-03-30 08:46:04 -06:00
Jack Wilkinson
9294d39cc4
Multiple assets in combiner url (#875) 2023-03-29 08:06:30 +08:00
Marc Jauvin
0e506ebdcb
Fix inspector depends functionality. (#710) 2023-03-28 21:16:27 +08:00
Luca Benati
0534b87662
Missing IT translation for send password reset email (#869) 2023-03-28 11:58:39 +08:00
xitara
5087713f18
Fixed JS error in IconPicker FormWidget (#867) 2023-03-14 16:08:53 -06:00
Jack Wilkinson
dde07a08ea
Manually register system class aliases in test bootstrap (#863) 2023-03-08 09:53:58 -06:00
xitara
6954797be2
Add 'themes.' prefix to let work backend theme localization again (#861) 2023-03-06 07:24:30 -06:00
xitara
5d07e6523c
Fix Class "Cms\Classes\Log" not found error (#858) 2023-03-05 20:26:23 +08:00
Luke Towers
a2988a8025
Fixed incorrect variable
🤦
2023-03-03 13:12:28 -06:00
Luke Towers
482d7b5e1d
Fix issue where plugin replacing a version that isn't present in its version.yaml would fail
Fixes https://github.com/wintercms/wn-blog-plugin/issues/33.

Note for @bennothommo @jaxwilko @mjauvin, we may have issues at some point if the replaced plugin goes past the version that the replacing plugin starts its replacement at (for example, if RainLab.Blog starts going past 2.0 then we're going to have to rethink how we handle that migration process so that we can support taking over existing migrations that go past 2.0 on the original plugin while starting the replacement plugin's migrations at 2.0, although there's potentially some issues with that too. Perhaps we could require confirmation to rollback a plugin to the last version that it could be taken over from before allowing the takeover to proceed?
2023-03-03 13:03:36 -06:00
Jack Wilkinson
5b4e977b07
Fix typehint (#856) 2023-03-02 09:20:10 -06:00
Luke Towers
1adb3abbff
Merge pull request #726 from wintercms/wip/child-theme 2023-03-01 07:42:14 -06:00
Jack Wilkinson
af37464ea3 Added child theme tests 2023-03-01 11:53:36 +00:00
Damien MATHIEU
e5f951a43a
Include theme Blocks in the Tailwind theme scaffold (#850) 2023-02-28 17:38:38 -06:00
Damien MATHIEU
caf1c77a14
Improve French translations (#849)
Improve French translations
2023-02-28 10:51:31 -05:00
WebVPF
b1d28d9d3e
Improved Russian translations (#847) 2023-02-28 20:32:57 +08:00
Jack Wilkinson
263a1a3c00 Removed undefined var and replaced with halycon registered event 2023-02-27 18:43:02 +00:00
Luke Towers
c91fe4ff5c
Apply suggestions from code review 2023-02-27 12:25:38 -06:00
Jack Wilkinson
3febe416fe Merge branch 'develop' into wip/child-theme 2023-02-27 17:53:17 +00:00
Luke Towers
a9e2e01fb6
Update modules/cms/classes/Theme.php 2023-02-27 11:52:48 -06:00
Luke Towers
85fe239da0
Update modules/cms/widgets/AssetList.php 2023-02-27 11:35:33 -06:00
Luke Towers
3c393b74c1
Update modules/cms/classes/Controller.php 2023-02-27 11:32:50 -06:00
Luke Towers
02319de0ed
Update modules/cms/classes/Controller.php 2023-02-27 11:28:15 -06:00
Luke Towers
ad3e19eeeb
Update modules/cms/classes/Controller.php 2023-02-27 11:26:40 -06:00
Jack Wilkinson
49d7ea0801 Removed whitespace 2023-02-27 17:19:53 +00:00
Jack Wilkinson
1a8fb449a9 Added Carbon cache timer 2023-02-27 14:34:43 +00:00
Luke Towers
ffa6f99210
Fix plugin:install call inside of winter:install
Also remove Winter.Drivers recommendation
2023-02-26 09:01:14 -06:00
Jack Wilkinson
5414c6256a Added support to the theme filter to validate parent theme for assets 2023-02-24 17:33:47 +00:00
Luke Towers
f37569b5de
Revert 4ed9b10
This reverts 4ed9b10b4e because it breaks the use of local file disks. We will need to just bite the bullet and refactor the CMS storage config to use proper filesystem disks in general instead of the current hacky approach that's causing these problems.

See https://laravel.com/docs/10.x/filesystem#scoped-and-read-only-filesystems
2023-02-21 15:14:04 -06:00
wpjscc
4ed9b10b4e
Return correct URLs from File->getPublicPath for non-local disks (#841) 2023-02-20 16:12:22 -06:00
Luke Towers
c95c950d19 Pass the active theme code to the cms.theme.getActiveTheme event
Required for Winter.Blocks datasource registration and generally a good idea.
2023-02-17 13:13:12 -06:00
Luke Towers
b2ac754622 Add "metadata" column to backend users 2023-02-15 21:32:41 -06:00
Jack Wilkinson
24f875db7e
Add support for extending head block on dashboard (#836) 2023-02-11 09:10:03 +08:00
WebVPF
034668497f
Formatting Tabs UI Document (#834)
Documentation page: https://wintercms.com/docs/ui/tab
2023-02-05 18:54:02 +08:00
WebVPF
a73b942223
Pluralize the number of items in a folder (#830)
Also fixed the icon for Return to the parent folder
2023-02-04 14:32:36 -06:00