6068 Commits

Author SHA1 Message Date
Ben Thomson
757c6a8823 Only call asset loader callback if assets load successfully
Matches previous framework functionality
2022-05-17 21:50:35 +08:00
Ben Thomson
368f57d39a Allow debug calls to contain more parameters for context 2022-05-17 21:49:05 +08:00
Ben Thomson
f79e672a13
Establish base Snowboard framework in Backend (#548)
This PR establishes a base Snowboard framework in the Backend. While we won't likely have any specific Snowboard widgets or functionality in the 1.1 branch, it will allow people to use Snowboard in the Backend should they wish.

Fixes #541.

Co-authored-by: Luke Towers <github@luketowers.ca>
2022-05-16 13:31:49 +08:00
Marco
ac130c462c
Fix undefined variable $packagePath in mix:watch error (#485)
When the package is not present in package.json, the correct error is not thrown because $packagePath not exists.

Co-authored-by: Luke Towers <github@luketowers.ca>
2022-05-09 10:48:19 +08:00
Luke Towers
3fbc50f06a Improve support for custom configuration of ReportContainers
Previously any configuration that was made via makeConfig() before being passed to the ReportContainer would cause it to break. This fixes that issue.
2022-05-08 14:43:35 -06:00
Ben Thomson
b897eebc1d Remove backend module from base package.json for now 2022-05-05 09:01:41 +08:00
Ben Thomson
f5a20dec64 Add base package.json 2022-05-05 09:00:33 +08:00
Ben Thomson
a6c6c747cc Hide root package.json on Gitpod 2022-05-05 08:45:37 +08:00
Ben Thomson
43d3869581 Create custom Snowboard build for Backend
This build does not include the Flash listener, to prevent double flash messages from occurring, as the old flash message system is still used throughout the Backend.
2022-05-03 14:48:41 +08:00
AIC BV
593a5ba8b2
Fix spacing in MailPartial.php (#540) 2022-04-30 12:10:02 +08:00
AIC BV
35d230b43b
Fix spacing in MailLayout.php (#539) 2022-04-30 12:05:41 +08:00
Ben Thomson
1d93841594 Fix relation count in lists for non snake-case relations
Laravel will automatically snake-case the given relation name (unless it is aliased) into the field "model_name_count" when retrieving a relation count. Since we don't allow an alias as part of the Lists config, we will simply snake-case the relation name too to retrieve the correct value.

Refs:
- https://github.com/laravel/framework/issues/18381
- https://github.com/laravel/framework/blob/6.x/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php#L402
2022-04-29 14:25:13 +08:00
Marc Jauvin
8dbc2de227
Add spanish localization for 'auth.invalid_login' (#543)
Credit to Federico Schafer
2022-04-28 19:12:27 -06:00
Luke Towers
ba5378c5ef
Add missing import 2022-04-27 10:58:29 -06: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
d0dda02073 Use more lenient base URL validation
The previous regex failed for "localhost" URLs.
2022-04-19 10:52:45 +08:00
Ben Thomson
9573d11d4b Add "mix:update" command to update Node dependencies
Operates almost entirely the same as "mix:install", but ensures dependencies are using the most up-to-date version. This will help resolve cases where an NPM audit reports vulnerable dependencies.
2022-04-14 20:31:38 +08:00
Jack Wilkinson
bb3b6271ca
Fix error using undefined var (#532) 2022-04-10 19:11:39 -06:00
Ben Thomson
c15d216cc7 Add Snowboard assets in Backend 2022-04-06 22:39:54 +08:00
Ben Thomson
4c19aac6c7 Fix base URL joining when using window.location 2022-04-06 22:39:41 +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
Ben Thomson
107db21d65 Fix code smell 2022-04-01 11:49:56 +08:00
Ben Thomson
1b7fc17aa4 Allow removed plugin to be re-added 2022-04-01 11:46:36 +08:00
Ben Thomson
ffc9961ab9 Add better handling of Snowboard dependencies
This will allow for singletons to not fire off their "ready" handler until after the dependencies are fulfilled. Normal plugins which are used and have not had their dependencies fulfilled will still throw an error.
2022-04-01 11:31:15 +08:00
Ben Thomson
c39090bcec Check that Snowboard is loaded before the core plugins load 2022-04-01 10:21:13 +08: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
Ben Thomson
9b22dab824 Allow flash to display indefinitely with 0 duration 2022-03-31 15:03:57 +08:00
Ben Thomson
8d14838f81 Fix flash timer bar on hide, adjust colours for legibility 2022-03-31 14:47:13 +08:00
Ben Thomson
e7eb6e3deb Fix code style 2022-03-23 20:38:30 +08:00
Ben Thomson
83861eaae7 Slight adjustments to code style 2022-03-23 20:34:49 +08:00
Flynsarmy
2224a6a57d
Allow disabling/enabling of sorting with Repeater widget (#506) 2022-03-23 10:57:35 +08: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
86cfbfa98b
Fix module controller filetype association 2022-03-08 16:13:52 -06:00
Luke Towers
3f19cb4cc8 Replaces october/*: 1.1.* 2022-03-02 15:09:27 -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
Jack Wilkinson
cdd2f3833a
Added check to ensure filesystem is writable before executing mkdir (#475)
Fixes the System Status widget on readonly filesystems
2022-02-24 22:25:41 -06:00
Jack Wilkinson
efbc5e2e92
Switched file to storage for plugin disabled (#474)
Simple fix to allow for disabled.json to use the storage facade rather than file, this creates support for read only filesystems
2022-02-24 22:06:40 -06:00
Ben Thomson
f58633cd45 Re-compile Snowboard 2022-02-23 21:14:40 +08:00
Ben Thomson
05b3a35e79
Remove plugins and themes from last commit 2022-02-23 20:49:31 +08:00
Ben Thomson
59b055c9e1
Don't apply data attribute functionality if there's no element 2022-02-23 20:48:04 +08:00
Ben Thomson
98ca545718
Correctly handle if element is "null" or "false" for requests 2022-02-23 20:47:19 +08:00
Luke Towers
d0c7b5982a
Replaces october/ssstem 2022-02-22 13:58:39 -06:00
der_On
62c30c30d7
Improve German translation (#457)
Thanks to @der-On!
2022-02-18 09:42:30 -06:00
Ben Thomson
21e6783165
Use Winter CMS Twig flavour for component partials 2022-02-16 17:12:02 +08:00
Luke Towers
869a718fee
Merge pull request #401 from wintercms/wip/snowboard
[1.1.8] Implement an opt-in improved JS framework (Snowboard). Documented by https://github.com/wintercms/docs/pull/45
2022-02-15 10:43:29 -06:00
Luke Towers
5ead84c7a1
Merge pull request #444 from wintercms/wip/mix-changes
Add automatic package registration and improved installation to Laravel Mix support
2022-02-15 02:46:36 -06:00
Luke Towers
a2276012aa
Update modules/system/classes/MixAssets.php
Co-authored-by: Ben Thomson <git@alfreido.com>
2022-02-14 07:47:04 -06:00
Jack Wilkinson
9cb42fc6ca
Add support for the Laravel asset() helpers (#426)
Related: https://github.com/wintercms/storm/pull/67
2022-02-13 10:52:47 -06:00
Luke Towers
2ff9ad250b
Update modules/system/console/MixCompile.php
Co-authored-by: Ben Thomson <git@alfreido.com>
2022-02-13 09:42:12 -06:00
Luke Towers
6808a7a698 Fix mix:compile & mix:watch commands
Also added additional checks to improve developer experience when running the commands.
2022-02-12 09:54:36 -06:00