1373 Commits

Author SHA1 Message Date
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
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
Luke Towers
515628a131 Tidy up 2022-01-26 03:12:43 -06:00
Luke Towers
e9ed9e4228 Attach default permissions to the publisher role 2022-01-25 21:22:49 -06:00
sheck87
94bb7783a6
Sort assets alphabetically in the CMS Theme Editor (#420)
Credit to @sheck87
2022-01-25 18:35:48 -06:00
Ben Thomson
f1fd8af7cb
Merge branch 'develop' into wip/snowboard 2022-01-20 10:29:34 +08:00
Luke Towers
a984774144 Tweaks 2022-01-13 01:38:30 -06:00
Ben Thomson
7087020264 Re-add missing file, compile extra styles 2022-01-12 15:48:25 +08:00
Ben Thomson
ae67e2fa9b Compile changes from wip/framework-rewrite branch
Represents the entire current state of the Snowboard framework.
2022-01-12 15:35:45 +08:00
Ben Thomson
f4d1b838f4 Merge branch 'develop' into wip/1.2 2022-01-12 11:44:21 +08:00
Ben Thomson
9e833fe920
Check controller exists before checking method
PHP 8 compatibility fix.

Fixes https://github.com/wintercms/winter/issues/207
2021-12-18 20:24:08 +08:00
Luke Towers
2119161d8e Support for Symfony 6 2021-12-10 15:04:11 -06:00
Luke Towers
6292bd32d9 Align the CmsException with the Winter ExceptionBase class 2021-12-09 16:30:34 -06:00
Luke Towers
8c75a83139 Merge branch 'develop' into wip/1.2
* develop: (90 commits)
  Define signature for "defineProperties" method
  Add definition of "componentDetails" method
  Update `system` french lang files (#366)
  Update `backend` french lang file (#364)
  Update `cms` french lang file (#365)
  Fix clear color picker function, allow empty value
  Trigger "change" event on color picker when value changes
  Use better cursors for readonly color picker
  Adjust "force" option for plugin:remove
  Require explicit confirmations for CLI deletions
  Add PHP 8.1 option, drop other details field
  Add md_line Twig filter to expose Markdown::parseLine() (#370)
  Don't use the Cache facade in the service provider registration process.
  Fix return type hints for CMS Page and Controller (#362)
  Fixes typo in list of available encodings for importing
  Improved Ukrainian translation (#360)
  Constrain PHP version >= 7.2.9 and 8.0.x (#361)
  Improve Latvian translation (#358)
  Docs UI Fix paths to screenshots of diagrams (#359)
  Coerce Inspector set values to string
  ...

# Conflicts:
#	composer.json
#	modules/backend/composer.json
#	modules/cms/composer.json
#	modules/system/composer.json
2021-12-09 15:39:05 -06:00
Ben Thomson
c3992188bc Add definition of "componentDetails" method 2021-12-09 11:35:23 +08:00
Damien MATHIEU
4ea687a3fe
Update cms french lang file (#365)
Credit to @damsfx
2021-12-08 20:44:43 -06:00
Luke Towers
ae647903a6 Updated dependencies 2021-12-06 15:45:46 -06:00
Eric Pfeiffer
eb28d0584a
Fix return type hints for CMS Page and Controller (#362) 2021-11-30 14:56:59 -06:00
WebVPF
5c8f25eb78
Improved Ukrainian translation (#360)
Also fixed a typo in the list of available encodings for ISO 8859-9
2021-11-30 14:53:31 -06:00
Arvis Lācis
affdcce339
Fixing commas in English translation files (#305) 2021-09-09 09:54:41 -06:00
Arvis Lācis
b1fdf0745a
Added Latvian translations for Allowed IP messages (#304) 2021-09-09 21:22:13 +08:00
WebVPF
6496eb3ced
Update Russian language (#302)
Translating new lines from a commit 26c8995. Credit to @WebVPF
2021-09-07 13:51:42 -06:00