From a4a4842825b39b9ace69630839338ef809d8c121 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 27 Feb 2024 15:54:10 +1300 Subject: [PATCH] DEP Remove cwp themes --- README.md | 9 --------- app/_config/agencyextensions.yml | 5 ----- app/_config/environmentcheck.yml | 25 ------------------------- app/_config/security.yml | 20 -------------------- app/_config/theme.yml | 9 --------- app/_config/versionfeed.yml | 6 ------ app/src/HomePage.php | 8 -------- app/src/HomePageController.php | 8 -------- app/src/Page.php | 8 -------- app/src/PageController.php | 8 -------- composer.json | 5 ----- 11 files changed, 111 deletions(-) delete mode 100644 app/_config/agencyextensions.yml delete mode 100644 app/_config/environmentcheck.yml delete mode 100644 app/_config/security.yml delete mode 100644 app/_config/theme.yml delete mode 100644 app/_config/versionfeed.yml delete mode 100644 app/src/HomePage.php delete mode 100644 app/src/HomePageController.php delete mode 100644 app/src/Page.php delete mode 100644 app/src/PageController.php diff --git a/README.md b/README.md index 38b5eb9..adf2366 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,3 @@ composer create-project silverstripe/recipe-kitchen-sink ./cms-sink ^4 See the [recipe plugin](https://github.com/silverstripe/recipe-plugin) page for instructions on how Silverstripe CMS recipes work. - -## Troubleshooting - -### Page and PageController parent classes - -When installing the kitchen sink, your project Page and PageController subclasses may be set to extend -SiteTree and ContentController. This is [only an issue](https://github.com/silverstripe/cwp-recipe-kitchen-sink/issues/30) -with the kitchen sink recipe, and requires you to manually change the parent classes to CWP's BasePage and -BasePageController. diff --git a/app/_config/agencyextensions.yml b/app/_config/agencyextensions.yml deleted file mode 100644 index 73bb443..0000000 --- a/app/_config/agencyextensions.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -Name: mysiteagencyextensions ---- -SilverStripe\SiteConfig\SiteConfig: - enable_theme_color_picker: true \ No newline at end of file diff --git a/app/_config/environmentcheck.yml b/app/_config/environmentcheck.yml deleted file mode 100644 index b34c393..0000000 --- a/app/_config/environmentcheck.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -Name: cwpcoreenvironmentchecks ---- -SilverStripe\EnvironmentCheck\EnvironmentCheckSuite: - registered_checks: - db: - definition: 'SilverStripe\EnvironmentCheck\Checks\DatabaseCheck()' - title: 'Is the database accessible?' - registered_suites: - health: - - db - ---- -Name: cwpcoresolrenvironmentcheck -Only: - moduleexists: 'cwp/cwp-search' ---- -SilverStripe\EnvironmentCheck\EnvironmentCheckSuite: - registered_checks: - solr: - definition: 'SilverStripe\EnvironmentCheck\Checks\SolrIndexCheck()' - title: 'Are all Solr indexes available?' - registered_suites: - health: - - solr diff --git a/app/_config/security.yml b/app/_config/security.yml deleted file mode 100644 index e455751..0000000 --- a/app/_config/security.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -Name: appsecurity -After: '#cwpsecurity' -Except: - environment: dev ---- -# Enable HTTP Strict Transport Security (HSTS), with a short max-age default. -# Once you're confident with the setting in production, -# it is encouraged to increase the max-age. -# See https://www.cwp.govt.nz/developer-docs/en/2/working_with_projects/security/ -# See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security -CWP\Core\Control\InitialisationMiddleware: - strict_transport_security: 'max-age=300' -# Configure SSL redirection for every route (override default ForceSSLPatterns). -# Required for the HSTS configuration above to take effect. -SilverStripe\Core\Injector\Injector: - SilverStripe\Control\Middleware\CanonicalURLMiddleware: - properties: - ForceSSL: true - ForceSSLPatterns: null diff --git a/app/_config/theme.yml b/app/_config/theme.yml deleted file mode 100644 index 3fb7f82..0000000 --- a/app/_config/theme.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -Name: cwptheme ---- -SilverStripe\View\SSViewer: - themes: - - '$public' - - 'watea' - - 'starter' - - '$default' diff --git a/app/_config/versionfeed.yml b/app/_config/versionfeed.yml deleted file mode 100644 index adc2c26..0000000 --- a/app/_config/versionfeed.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -Name: cwpversionfeed ---- -SilverStripe\VersionFeed\VersionFeed: - allchanges_enabled: false - changes_enabled: false diff --git a/app/src/HomePage.php b/app/src/HomePage.php deleted file mode 100644 index d003730..0000000 --- a/app/src/HomePage.php +++ /dev/null @@ -1,8 +0,0 @@ -