1393 Commits

Author SHA1 Message Date
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
Ben Thomson
e3fecdb9c2
Move scaffold commands (#471)
Fixes #270. See c4cd4402c0

Moves the Scaffolding commands out of Storm, and into the modules that the scaffold generates code for.

As discussed in the issue above, this makes more sense to keep Storm agnostic, and allows for the commands to be hidden if a particular module is not used in a Winter instance.
2022-02-23 14:54:17 -06:00
Luke Towers
8e766dce58 Don't attempt to setup the ThemeLog if the settings table can't be found. 2022-02-22 19:34:18 -06:00
Marc Jauvin
9a6f71e0d4
Fix route order with new system.beforeRoute and system.route events (#465)
With the recent change to module routes being registered in their boot methods the Backend & CMS modules were registering their routes before the System module could. 

Due to the greedy nature of the CMS module's route it must always be registered last.
2022-02-21 12:28:09 -06:00
Luke Towers
661110276c Fix support for | page filter.
Credit to @mjauvin
2022-02-19 14:44:05 -06:00
Luke Towers
b568f36f1f Add tests for polyfilled {% filter %} Twig tag 2022-02-18 12:01:24 -06:00
Luke Towers
a8160d017e Fix Twig type hints 2022-02-18 09:14:32 -06:00
Luke Towers
895c032196 loadTemplate($name) -> load($name)
Required as of Twig v3
2022-02-18 09:13:53 -06:00
Luke Towers
77ef563f43 Refactor CMS Twig environment.
Credit to @SeriousKen for the original work in https://github.com/octobercms/october/pull/3575
2022-02-18 01:44:36 -06:00
Luke Towers
3fec059a74 Initial work on refactoring the Twig usage to use separate environments as required 2022-02-17 21:28:37 -06:00
Luke Towers
421d7ae43e Remove debugging code 2022-02-16 02:16:36 -06:00
Luke Towers
7f6fcb59be Don't defer registering module routes
Related to 290303c740
2022-02-16 02:03:59 -06:00
Luke Towers
12a9182537 Merge branch 'develop' into wip/1.2
# Conflicts:
#	modules/system/ServiceProvider.php
2022-02-15 13:21:29 -06: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
d61ac9d9fe Move CMS console commands into the CMS module
Moved the following:
- \System\Console\ThemeInstall -> \Cms\Console\ThemeInstall
- \System\Console\ThemeRemove -> \Cms\Console\ThemeRemove
- \System\Console\ThemeList -> \Cms\Console\ThemeList
- \System\Console\ThemeUse -> \Cms\Console\ThemeUse
- \System\Console\ThemeSync -> \Cms\Console\ThemeSync
2022-02-15 02:16:34 -06:00
Luke Towers
15afb45df0 Improve support PHP 8.1 & align return types with Laravel base classes
See laravel/framework#40471
2022-02-13 11:32:03 -06:00
Luke Towers
4b1f22b8ba Update dependencies to match Laravel recommendations 2022-02-13 11:23:17 -06:00
Luke Towers
defe284303 Merge branch 'develop' into wip/1.2 2022-02-13 10:54:44 -06:00
Yoshio Tsukuda
cf5ae34f5a
Improved Japanese translation (#446)
Credit to @tukuyo
2022-02-11 14:46:11 -06:00
Luke Towers
95c1d9f695 Merge branch 'develop' into wip/snowboard
* develop: (25 commits)
  Use the asset helper for static assets
  Added asset filter & function versions of all System Twig filters (#428)
  Improve Japanese Translation (#435)
  Improved Latvian translation (#434)
  Improved Ukrainian translation (#433)
  Redirect to the myaccount page as a final fallback
  Improve Persian translations (#423)
  typo fix (#424)
  Improved Russian translation (#422)
  Tidy up
  Style fix
  Go to User's details page when clicking on related user from the roles update page
  Update recommend format for implementing controller behaviors
  Add support for default configuration file names for controller behaviors
  Attach default permissions to the publisher role
  Only show role user management in the update context
  Improve UserRole editing experience
  Fix support for readOnly on the datepicker formwidget.
  Sort assets alphabetically in the CMS Theme Editor (#420)
  VSCode recommended extensions (#417)
  ...
2022-02-07 20:30:15 -06:00
Luke Towers
8454066e2e Use the asset helper for static assets
Also removed the duplicated asset() Twig function.

This helps improve support for Laravel Vapor.
2022-02-06 20:45:31 -06:00
rezalaal
36ad13f200
Improve Persian translations (#423)
Co-authored-by: Luke Towers <github@luketowers.ca>
2022-01-31 09:58:26 +08:00
WebVPF
acbcd44187
Improved Russian translation (#422)
It has been recommended that the menu items be kept in English for now, as per @WebVPF's [comment](https://github.com/wintercms/winter/pull/422#issuecomment-1024048728). We'll need to revisit this later if we change the UI.
2022-01-28 20:29:59 +08:00