From dd32bd64c953f9e39588ee6887bb708e6e70434b Mon Sep 17 00:00:00 2001 From: David Toews Date: Tue, 7 Sep 2021 16:43:25 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(templates,=20gitignore)=20clean?= =?UTF-8?q?up,=20path=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + resources/.htaccess | 10 ---------- resources/.method | 1 - resources/jonom/focuspoint/client | 1 - resources/silverstripe/admin/client/dist | 1 - resources/silverstripe/admin/client/lang | 1 - resources/silverstripe/admin/thirdparty | 1 - resources/silverstripe/asset-admin/client/dist | 1 - resources/silverstripe/asset-admin/client/lang | 1 - resources/silverstripe/campaign-admin/client/dist | 1 - resources/silverstripe/campaign-admin/client/lang | 1 - resources/silverstripe/cms/client/dist | 1 - resources/silverstripe/cms/client/lang | 1 - resources/silverstripe/framework/client/images | 1 - resources/silverstripe/framework/client/styles | 1 - resources/silverstripe/reports/javascript | 1 - src/LazyFocusFitImageExtension.php | 4 ++-- .../BackgroundAttributes.ss | 0 .../{LasyFocusFit => LazyFocusFit}/Picture.ss | 0 19 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 resources/.htaccess delete mode 100644 resources/.method delete mode 120000 resources/jonom/focuspoint/client delete mode 120000 resources/silverstripe/admin/client/dist delete mode 120000 resources/silverstripe/admin/client/lang delete mode 120000 resources/silverstripe/admin/thirdparty delete mode 120000 resources/silverstripe/asset-admin/client/dist delete mode 120000 resources/silverstripe/asset-admin/client/lang delete mode 120000 resources/silverstripe/campaign-admin/client/dist delete mode 120000 resources/silverstripe/campaign-admin/client/lang delete mode 120000 resources/silverstripe/cms/client/dist delete mode 120000 resources/silverstripe/cms/client/lang delete mode 120000 resources/silverstripe/framework/client/images delete mode 120000 resources/silverstripe/framework/client/styles delete mode 120000 resources/silverstripe/reports/javascript rename templates/EvansHunt/{LasyFocusFit => LazyFocusFit}/BackgroundAttributes.ss (100%) rename templates/EvansHunt/{LasyFocusFit => LazyFocusFit}/Picture.ss (100%) diff --git a/.gitignore b/.gitignore index 57872d0..cea4c08 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /vendor/ +/resources/ diff --git a/resources/.htaccess b/resources/.htaccess deleted file mode 100644 index 8098d68..0000000 --- a/resources/.htaccess +++ /dev/null @@ -1,10 +0,0 @@ -# Block .method file - - Require all denied - - -# Block 404s - - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule .* - [R=404,L] - diff --git a/resources/.method b/resources/.method deleted file mode 100644 index 4d18c3e..0000000 --- a/resources/.method +++ /dev/null @@ -1 +0,0 @@ -auto \ No newline at end of file diff --git a/resources/jonom/focuspoint/client b/resources/jonom/focuspoint/client deleted file mode 120000 index 805f0ef..0000000 --- a/resources/jonom/focuspoint/client +++ /dev/null @@ -1 +0,0 @@ -../../../vendor/jonom/focuspoint/client \ No newline at end of file diff --git a/resources/silverstripe/admin/client/dist b/resources/silverstripe/admin/client/dist deleted file mode 120000 index 48f02a5..0000000 --- a/resources/silverstripe/admin/client/dist +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/admin/client/dist \ No newline at end of file diff --git a/resources/silverstripe/admin/client/lang b/resources/silverstripe/admin/client/lang deleted file mode 120000 index 945f13c..0000000 --- a/resources/silverstripe/admin/client/lang +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/admin/client/lang \ No newline at end of file diff --git a/resources/silverstripe/admin/thirdparty b/resources/silverstripe/admin/thirdparty deleted file mode 120000 index 71a3f89..0000000 --- a/resources/silverstripe/admin/thirdparty +++ /dev/null @@ -1 +0,0 @@ -../../../vendor/silverstripe/admin/thirdparty \ No newline at end of file diff --git a/resources/silverstripe/asset-admin/client/dist b/resources/silverstripe/asset-admin/client/dist deleted file mode 120000 index fcedd6b..0000000 --- a/resources/silverstripe/asset-admin/client/dist +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/asset-admin/client/dist \ No newline at end of file diff --git a/resources/silverstripe/asset-admin/client/lang b/resources/silverstripe/asset-admin/client/lang deleted file mode 120000 index 9450d8d..0000000 --- a/resources/silverstripe/asset-admin/client/lang +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/asset-admin/client/lang \ No newline at end of file diff --git a/resources/silverstripe/campaign-admin/client/dist b/resources/silverstripe/campaign-admin/client/dist deleted file mode 120000 index 54b1271..0000000 --- a/resources/silverstripe/campaign-admin/client/dist +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/campaign-admin/client/dist \ No newline at end of file diff --git a/resources/silverstripe/campaign-admin/client/lang b/resources/silverstripe/campaign-admin/client/lang deleted file mode 120000 index 99a44ff..0000000 --- a/resources/silverstripe/campaign-admin/client/lang +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/campaign-admin/client/lang \ No newline at end of file diff --git a/resources/silverstripe/cms/client/dist b/resources/silverstripe/cms/client/dist deleted file mode 120000 index 31c2b16..0000000 --- a/resources/silverstripe/cms/client/dist +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/cms/client/dist \ No newline at end of file diff --git a/resources/silverstripe/cms/client/lang b/resources/silverstripe/cms/client/lang deleted file mode 120000 index 2ef78bc..0000000 --- a/resources/silverstripe/cms/client/lang +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/cms/client/lang \ No newline at end of file diff --git a/resources/silverstripe/framework/client/images b/resources/silverstripe/framework/client/images deleted file mode 120000 index e06f810..0000000 --- a/resources/silverstripe/framework/client/images +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/framework/client/images \ No newline at end of file diff --git a/resources/silverstripe/framework/client/styles b/resources/silverstripe/framework/client/styles deleted file mode 120000 index 8ecbb77..0000000 --- a/resources/silverstripe/framework/client/styles +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/silverstripe/framework/client/styles \ No newline at end of file diff --git a/resources/silverstripe/reports/javascript b/resources/silverstripe/reports/javascript deleted file mode 120000 index 8f6db7a..0000000 --- a/resources/silverstripe/reports/javascript +++ /dev/null @@ -1 +0,0 @@ -../../../vendor/silverstripe/reports/javascript \ No newline at end of file diff --git a/src/LazyFocusFitImageExtension.php b/src/LazyFocusFitImageExtension.php index 205cd5b..5254449 100644 --- a/src/LazyFocusFitImageExtension.php +++ b/src/LazyFocusFitImageExtension.php @@ -46,7 +46,7 @@ public function ResponsivePicture(...$arguments) $this->populateResponsiveImageAttributes($arguments); - return $this->owner->renderWith('EvansHunt/LazyFocusFit/Picture'); + return $this->owner->renderWith('EvansHunt\\LazyFocusFit\\Picture'); } /** @@ -71,7 +71,7 @@ public function ResponsiveBgAttributes(...$arguments) { $this->populateResponsiveImageAttributes($arguments); - return $this->owner->renderWith('EvansHunt/LazyFocusFit/BackgroundAttributes'); + return $this->owner->renderWith('EvansHunt\\LazyFocusFit\\BackgroundAttributes'); } private function populateResponsiveImageAttributes($arguments) diff --git a/templates/EvansHunt/LasyFocusFit/BackgroundAttributes.ss b/templates/EvansHunt/LazyFocusFit/BackgroundAttributes.ss similarity index 100% rename from templates/EvansHunt/LasyFocusFit/BackgroundAttributes.ss rename to templates/EvansHunt/LazyFocusFit/BackgroundAttributes.ss diff --git a/templates/EvansHunt/LasyFocusFit/Picture.ss b/templates/EvansHunt/LazyFocusFit/Picture.ss similarity index 100% rename from templates/EvansHunt/LasyFocusFit/Picture.ss rename to templates/EvansHunt/LazyFocusFit/Picture.ss