1415 Commits

Author SHA1 Message Date
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
Luke Towers
80880d1912 Refresh datasource path cache before syncing paths
Fixes an issue where if the underlying data behind a datasource changes through manual intervention (either in the database or the filesystem) before running theme:sync it wasn't being detected by the theme:sync command.
2022-03-18 11:35:08 -06:00
Damien MATHIEU
4a2bffafca
Multiple file attachments in theme customization (#495)
This PR add a `multiple` property to fields in [theme customization](https://wintercms.com/docs/themes/development#customization).  
If `multiple: true`, the field is added to `attachMany` and allow multiple files selection, in all other cases the current behaviour is applied.
2022-03-18 08:12:16 -06:00
Marc Jauvin
3cf4b5a5cb
Fix isActive for CMS page with "/" as URL (#479)
Co-authored-by: Luke Towers <github@luketowers.ca>
Co-authored-by: Ben Thomson <git@alfreido.com>
2022-03-18 09:39:23 +08:00
Luke Towers
574c7d4ef3 Initial work on re-aligning the scaffolding commands with Laravel 2022-03-08 19:42:36 -06:00
Luke Towers
8dc6fd5e54 Merge branch 'develop' into wip/1.2 2022-03-02 15:10:20 -06:00
Luke Towers
3f19cb4cc8 Replaces october/*: 1.1.* 2022-03-02 15:09:27 -06:00
Luke Towers
896105e652 Merge branch 'develop' into wip/1.2
# Conflicts:
#	modules/cms/classes/Controller.php
2022-03-02 15:02:49 -06:00
Luke Towers
3de45535a9
Allow partials to override their vars through PHP
Follow up to ec03b7b2f8, this allows any changes to $this->vars made within the Partial's PHP code section to persist to when the partial content is actually rendered.
2022-03-02 15:00:22 -06:00
Luke Towers
77f79f6c2b Add missing import 2022-02-28 00:08:51 -06:00
Luke Towers
3152265c81 Cleanup scaffolding stubs 2022-02-24 21:58:25 -06:00