1425 Commits

Author SHA1 Message Date
Luke Towers
554dd0e726 Fix AuthManager tests 2022-11-23 11:12:00 -06:00
Luke Towers
1d8af5964c Fix overlooked reference to App facade instead of local instance 2022-11-21 15:44:45 -06:00
Luke Towers
f2447bb136 Use local app instance rather than facade 2022-11-21 15:40:39 -06:00
Luke Towers
5be4454c44 Don't register backend permissions in the testing suite 2022-11-21 15:34:18 -06:00
Luke Towers
46bf2dcc56 Ensure backend permissions are always registered
Backend user permissions are occasionally checked in the frontend, see the Post component of the Winter.Blog plugin.
2022-11-17 15:18:15 -06:00
Marc Jauvin
baea29b142
CMS Twig extension contentFunction() should return bool like partialFunction() (#746)
This allows people to use the `content` function as a conditional to add fallback content if a given content file does not exist.
2022-11-14 13:47:56 +08:00
Ben Thomson
8f2d2c7f53 Allow Snowboard debugging to be controlled independently
Adds the "develop.debugSnowboard" config option to enable to disable Snowboard debugging, overriding the default behaviour in following the app debug mode.
2022-11-09 09:59:07 +08:00
Jack Wilkinson
5617dbd338
Added fix to prevent path duplication (#745) 2022-10-28 09:02:34 -06:00
Luke Towers
41cfc8df8f
Fix base path for FrameworkNode 2022-10-26 10:57:57 -06:00
Luke Towers
435179061f
Add missing import 2022-10-26 10:45:37 -06:00
Jack Wilkinson
6b07509e7c
Switch from using Request::getBasePath() to Url::asset() (#742) 2022-10-26 10:28:48 -06:00
Ben Thomson
a283413bc5 Add licenses 2022-09-05 11:53:22 +08:00
Ben Thomson
886d38dc26 Add simple notes about subsplit repos 2022-09-05 11:48:56 +08:00
Simon Mannsfeld
929e8f2dd3
Improved German translation (#623)
Credit to @simonmannsfeld
2022-08-02 17:35:43 -06:00
Luke Towers
b1e8b84b77
Fix base URL 2022-07-31 20:28:40 -06:00
Luke Towers
df282fd0e7
Load Snowboard.js via the asset URL helper
Fixes an issue where assets are deployed to a CDN and not available on the local webserver.
2022-07-31 20:10:29 -06:00
Luke Towers
7dd0eb1b7f
Don't provide twig.environment.cms as a singleton
If you need to use the CMS Controller's Twig instance then you should call getTwig() directly on the controller instance instead of relying upon twig.environment.cms being a singleton.

It being a singleton causes issues if for some reason you want to render another route in the same request as the second call to Controller->run() will pollute the variables of the first.
2022-07-19 14:51:13 -06:00
Luke Towers
5561d6aa31
Fix fixture paths for case-sensitive filesystems
Fixes #619
2022-07-18 13:06:26 -06:00
Ben Thomson
43468b3b9f Automatically inject bootstrap into winter:test command
This commit also enforces some testing environment variables at the process level.
2022-07-18 08:32:12 +08:00
Luke Towers
cbe43569a7
Update AutoDatasource->lastModified return type
Updates to match the DBDatasource & FileDatasource
2022-07-15 13:51:47 -06:00
Luke Towers
5b8d189df4 Fix issues with accessing the expected context variables inside of Twig macros.
This fixes #578 by adding the ability to pass the CMS Controller instance to the CMS Twig Extension removing the reliance on context variables as well as making the expected "global" twig variables inside of the CMS Twig environment actually global within that environment.

Replaces #598 & #593.

Credit to @RomainMazB for the initial implementation.
2022-07-10 01:09:09 -06:00
Ben Thomson
e2683d8041 Actually finish the test 2022-07-09 19:54:39 +08:00
Ben Thomson
77f4606265 Add unit test for #578 2022-07-09 19:51:25 +08:00
Romain 'Maz' BILLOIR
c0119a09ce
Fix return type in placeholderFunction (#594) 2022-07-05 02:26:29 -06:00
Ben Thomson
e13c4534db Fix constructor signature in Meta class 2022-07-04 09:28:34 +08:00
Ben Thomson
0add2263b8
Code analysis tweaks (#589)
Implements fixes to some breaking changes introduced in https://github.com/wintercms/storm/pull/64.
2022-07-04 09:22:59 +08:00
Ben Thomson
5ccde6fb46 Merge remote-tracking branch 'origin/develop' into wip/1.2 2022-06-28 13:12:15 +08:00
Arvis Lācis
e211bede7f
Outputs time respecting backend preferences (#572) 2022-06-26 14:19:41 -06:00
Luke Towers
e58c768945 Bump minimum Laravel version to 9.1
See 63ca843643
2022-06-24 22:19:00 -06:00
Jack Wilkinson
7fe167c41f
Split tests into relevant module folders
This splits the testing suite into the separate modules as appropriate in order to improve the reliability of the testing suite as a whole and make it easier for developers to have an up to date testing suite from the core to build off of. Additionally the tests are now namespaced and some minor improvements to the PluginManager were made.

Now the PluginManager will internally treat plugin identifiers as lower case strings, only transforming them to their normalized versions when requested by methods like getPlugins() & getAllPlugins(). The idea behind this is that it provides a much simpler way to internally handle checking, especially for plugin replacement where casing could cause issues.

Replaces #576. Fixes #575.
2022-06-21 18:30:30 -06:00
Luke Towers
3862bf284e Added TailwindCSS-based scaffold to the create:theme command 2022-05-16 00:18:57 -06:00
Luke Towers
01d926a50a Fix icon usage for ReportContainers, AssetList, & Table widgets 2022-05-11 15:42:51 -06:00
Ben Thomson
afb9ae8c0c Fix shimmed icons, remove some CSS variables, recompile 2022-05-06 13:43:23 +08:00
Ben Thomson
bd3401f6de Upgrade Font Awesome 4 to 6 2022-05-06 13:28:57 +08:00
Ben Thomson
6298026d20 Compile all assets 2022-05-06 10:09:51 +08:00
Luke Towers
c9c4b6113c Fix windows tests & update references to backend view files 2022-05-02 13:02:34 -06:00
Ben Thomson
175580aa2f Implement code style for partials.
Adjust all partials to meet new code style.
2022-05-02 16:34:47 +08:00
Luke Towers
85b133090d Use .php for the backend view extension instead of .htm 2022-05-02 00:04:25 -06:00
Ben Thomson
7eda7b44a5 Merge branch 'develop' into wip/1.2 2022-04-29 14:26:29 +08:00
Arvis Lācis
1f4a33d48c
Support nestedform fields in ThemeData forms (#534)
Credit to @arvislacis.

Refs: https://octobercms.com/forum/post/using-nestedform-on-theme-configuration
2022-04-20 14:33:34 -06:00
Ben Thomson
0a1b289986 Merge branch 'develop' into wip/1.2 2022-04-07 20:41:28 +08:00
Ben Thomson
8e57999eff Set up System module asset compilation with Mix
- Copied restructure from the "wip/inspector-rewrite" branch.
- Added manifest and vendor files in "{% snowboard %}" tag.
- Used standard Mix config path to auto-register the module.
2022-04-06 22:21:06 +08:00
Luke Towers
574437b9be Moved GeneratorCommand back to Scaffold 2022-04-03 13:40:18 -06:00
Luke Towers
2c74cdb681 Merge branch 'wip/1.2' into wip/1.2-improve-scaffolding 2022-04-03 13:33:15 -06:00
Ben Thomson
192b91af12 Snowboard updates
- Added events "flash.create" and "flash.remove" triggered when flash messages are created and removed
- Added URL utility into Snowboard core to handle URL generation and base URL detection
- Added base URL in Twig tag
- Updated Stylesheet Loader to use base URL when injecting extras CSS
2022-04-01 10:14:10 +08:00
Luke Towers
7b7add2338 Merge develop into 1.2 2022-03-23 22:35:58 -06:00
Luke Towers
ecc258dbc4 Simplify prepareVars usage, fix create:theme usage 2022-03-23 15:32:08 -06:00
Luke Towers
0641ab7243 Adjusted interfaces and made create:plugin include translations 2022-03-23 15:07:00 -06:00
Luke Towers
9301a98d8c Merge branch 'wip/1.2' into wip/1.2-improve-scaffolding 2022-03-23 13:44:09 -06:00
Ben Thomson
0766194c7d Partially revert 3de45535
The above commit prevented components within a partial from populating their own parameters into the template. This partially reverts the change but still allows the main partial being rendered to override the variables if needed.
2022-03-21 11:43:40 +08:00