101 Commits

Author SHA1 Message Date
Luke Towers
fe5f754566 Merge branch 'develop' into wip/child-theme-autodatasource-caching
* develop:
  Fix issue with autoloading modules (#792)
  Add support for icon picker (#725)
  Classloader improvements (#779)
  Update Markdown content test
  Improved Ukrainian translation (#766)
  Add AJAX form validation to Snowboard (#777)
  Improve theme scaffolding (#778)
2022-12-08 14:42:29 -06:00
Luke Towers
0aed0b4b02
Classloader improvements (#779)
See wintercms/storm#72
2022-11-29 21:06:46 -06:00
Luke Towers
9b035c20e9 Merge branch 'develop' into wip/child-theme
* develop:
  Fix AuthManager tests
2022-11-23 11:12:13 -06:00
Luke Towers
554dd0e726 Fix AuthManager tests 2022-11-23 11:12:00 -06:00
Luke Towers
7a215c7baa Merge branch 'develop' into wip/child-theme
* develop:
  Improved Russian translation (#767)
  Remove empty widget width option (#772)
  Fix overlooked reference to App facade instead of local instance
  Use local app instance rather than facade
  Don't register backend permissions in the testing suite
  Type hinting and style tweaks
  Use the model instance returned by getRelationModel directly rather than as a static class reference
  Clone the form model before passing it to the RelationController

# Conflicts:
#	modules/cms/ServiceProvider.php
2022-11-23 10:35:54 -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
6c90ba81ef Merge branch 'develop' into wip/child-theme
* develop:
  Ensure backend permissions are always registered
2022-11-17 15:20: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
Jack Wilkinson
8ecf401a48 Moved backend localzation into theme activation to allow support for loading on theme activation instead of during service provider registration 2022-11-03 15:51:05 +00:00
Luke Towers
8a64b1ed48
Include parent theme in twig caching path 2022-10-26 15:40:56 -06:00
Luke Towers
0a9f21d4bf
Avoid Twig cache conflicts when running multiple themes
Related: a18e3ed112
2022-10-18 22:20:47 -06:00
Luke Towers
4a71c759a2
Support child themes referencing their parent theme's localization strings 2022-10-10 16:12:28 -06:00
Jack Wilkinson
21c9b682fc Added initial support for allowing a theme to extend a parent theme 2022-10-06 14:59:48 +01: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
01d926a50a Fix icon usage for ReportContainers, AssetList, & Table widgets 2022-05-11 15:42:51 -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
a8160d017e Fix Twig type hints 2022-02-18 09:14:32 -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
7f6fcb59be Don't defer registering module routes
Related to 290303c740
2022-02-16 02:03:59 -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
e9ed9e4228 Attach default permissions to the publisher role 2022-01-25 21:22:49 -06:00
Luke Towers
c047f34156 Merge branch 'wip/rebrand-1.0' into wip/rebrand-develop
# Conflicts:
#	.github/workflows/code-quality-pr.yaml
#	.github/workflows/code-quality-push.yaml
#	.github/workflows/tests.yml
#	README.md
#	composer.json
#	modules/backend/behaviors/ImportExportController.php
#	modules/backend/behaviors/ReorderController.php
#	modules/backend/composer.json
#	modules/backend/models/ExportModel.php
#	modules/cms/ServiceProvider.php
#	modules/cms/classes/Asset.php
#	modules/cms/classes/CmsObject.php
#	modules/cms/classes/CmsObjectCollection.php
#	modules/cms/composer.json
#	modules/system/ServiceProvider.php
#	modules/system/aliases.php
#	modules/system/assets/js/lang/lang.es.js
#	modules/system/assets/js/lang/lang.it.js
#	modules/system/assets/js/lang/lang.zh-tw.js
#	modules/system/assets/ui/storm-min.js
#	modules/system/classes/CombineAssets.php
#	modules/system/classes/ErrorHandler.php
#	modules/system/classes/SystemController.php
#	modules/system/classes/UpdateManager.php
#	modules/system/composer.json
#	modules/system/console/WinterFresh.php
#	modules/system/console/WinterUtil.php
#	modules/system/controllers/updates/_list_toolbar.htm
#	modules/system/providers.php
#	tests/UiTestCase.php
#	tests/functional/backend/AuthTest.php
#	tests/functional/phpunit.xml
#	tests/unit/backend/classes/NavigationManagerTest.php
#	tests/unit/cms/classes/CmsObjectTest.php
#	tests/unit/cms/classes/ControllerTest.php
#	tests/unit/cms/classes/ThemeTest.php
#	tests/unit/plugins/database/PluginModelTest.php
#	tests/unit/plugins/database/ValidationModelTest.php
#	tests/unit/system/console/WinterEnvTest.php
2021-03-11 00:22:09 -06:00
Luke Towers
32d0702f11 Added missing registerAssetBundles() method 2021-03-10 23:32:08 -06:00
Luke Towers
1e8cfb47af Manual comb through and rebrand following up the bulk patch rebrand 2021-03-10 15:25:57 -06:00
Luke Towers
cfa763b714 Initial rebrand commit generated from the 1.0 rebrand branch patch file 2021-03-10 15:02:53 -06:00
Luke Towers
a6f14241da Add alias support to SettingsManager 2021-03-10 02:58:27 -06:00
Luke Towers
687a6bb626 Added missing CMS asset bundles 2021-03-09 14:21:32 -06:00
Luke Towers
a77e8b3b66 Add support for NavigationManager owner aliasing.
Written by @jaxwilko in #4
2021-03-09 14:12:25 -06:00
Luke Towers
7d80b771fe Initial work on Winter rebrand for 1.0 branch 2021-03-06 04:06:19 -06:00
Ben Thomson
40303e4aee
Disable booting backend localization if theme is missing.
Fixes https://github.com/octobercms/october/issues/5381
2020-12-04 16:30:23 +08:00
Ben Thomson
16e0bd4d09
Move theme localization to the boot process. (#5349)
It appears that doing this in the "register" process can result, at times, in an exception to be thrown as the connection to the DB is not yet established.
2020-11-11 09:53:31 +08:00
Ben Thomson
50816a9556
Add support for defining quick actions in the Backend's main nav (#5344)
Plugins now have the ability to define quick actions through a "registerQuickActions" method, which follows the same configuration as the "registerNavigation" method. It is still recommended and preferred that most plugin functionality be defined in their own main menu items, but this will allow a plugin to easily define a shortcut (or remove one).
2020-11-10 12:53:17 +08:00
Marc Jauvin
3590571642
fix themes localization namespace (#5348) 2020-11-09 13:10:22 -06:00
Siarhei Karavai
061d35e5fd
Register theme backend localization files (#4960)
Closes #4308.
2020-11-07 15:13:25 -06:00
Ben Thomson
7b2a772525 Finish theme:sync command (#4276)
Credit to @bennothommo
2019-04-19 09:07:48 -06:00
Nathan van der Werf
0f0d108da0
Remove unused imports 2018-08-24 19:51:59 +02:00
Nathan van der Werf
66fa03f17e
Revert "Remove unused imports"
This reverts commit 742a5f415bc45819b11c77402efc114fa2f4451e.
2018-08-24 19:40:40 +02:00
Nathan van der Werf
742a5f415b Remove unused imports 2018-08-15 18:27:36 +02:00
Luke Towers
df5b2afc06
Re-add Backend facade 2018-03-24 09:19:30 -06:00
Arthur Kushman
c78b3ef786 Code formatting changes (#3363)
Code formatting improvements submitted by @arthurkushman.
2018-03-22 10:55:13 -06:00
Luke Towers
6bcaeb2d65 Moving media manager references from the CMS service provider to the System service provider 2017-09-27 22:34:32 -06:00
Luke Towers
647a656f67 Add more granular permissions for editing themes (#2985)
* Add more granular permissions for editing themes
* Fix component token parser exception message
2017-07-21 14:29:30 +10:00
Samuel Georges
4fd1ca824f Introduce concept of system roles
These are roles defined by a special API code, once a system role code is detected, the role becomes locked and its permissions are sourced from the AuthManager. All permissions are granted to system roles by default, unless otherwise specified. This should make it easier to create client accounts as "Publishers", hiding developer tools like the CMS and Builder plugins by default.
2017-07-13 19:29:50 +10:00
Samuel Georges
f672a3cf19 String to ::class 2017-06-03 10:31:24 +10:00
Quezler
cc17b679f1 Code dusting (#2826)
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges
31ba5e29bd Introduce Resources component for testing
This should be considered experimental at this stage, however this component is used in every October website we've built thus far, it makes sense for it to be included in the core. Once tested we will look at documenting it with an accompanying screencast video.
2017-03-20 17:32:20 +11:00
Samuel Georges
6697e00649 Backend::URL -> Backend::url 2017-03-16 17:16:03 +11:00