From 5deb07f09dec6db8b853e3f8e76d142e19536d20 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Thu, 2 Oct 2025 12:42:15 +0200 Subject: [PATCH] #170 --- public/site/accounts/index.html | 0 public/site/models/project.php | 9 ++- public/site/plugins/kql/LICENSE.md | 21 ------ .../kql/src/Kql/Interceptors/Cms/Block.php | 34 --------- .../kql/src/Kql/Interceptors/Cms/Blocks.php | 24 ------- .../kql/src/Kql/Interceptors/Cms/File.php | 71 ------------------- .../src/Kql/Interceptors/Cms/FileVersion.php | 8 --- .../kql/src/Kql/Interceptors/Cms/Files.php | 18 ----- .../kql/src/Kql/Interceptors/Cms/Layout.php | 30 -------- .../src/Kql/Interceptors/Cms/LayoutColumn.php | 30 -------- .../Kql/Interceptors/Cms/LayoutColumns.php | 13 ---- .../kql/src/Kql/Interceptors/Cms/Layouts.php | 13 ---- .../kql/src/Kql/Interceptors/Cms/Page.php | 68 ------------------ .../kql/src/Kql/Interceptors/Cms/Pages.php | 34 --------- .../kql/src/Kql/Interceptors/Cms/Site.php | 36 ---------- .../src/Kql/Interceptors/Cms/Structure.php | 13 ---- .../Kql/Interceptors/Cms/StructureObject.php | 20 ------ .../kql/src/Kql/Interceptors/Cms/User.php | 35 --------- .../kql/src/Kql/Interceptors/Cms/Users.php | 18 ----- 19 files changed, 8 insertions(+), 487 deletions(-) delete mode 100644 public/site/accounts/index.html delete mode 100755 public/site/plugins/kql/LICENSE.md delete mode 100755 public/site/plugins/kql/src/Kql/Interceptors/Cms/Block.php delete mode 100755 public/site/plugins/kql/src/Kql/Interceptors/Cms/Blocks.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/File.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/FileVersion.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/Files.php delete mode 100755 public/site/plugins/kql/src/Kql/Interceptors/Cms/Layout.php delete mode 100755 public/site/plugins/kql/src/Kql/Interceptors/Cms/LayoutColumn.php delete mode 100755 public/site/plugins/kql/src/Kql/Interceptors/Cms/LayoutColumns.php delete mode 100755 public/site/plugins/kql/src/Kql/Interceptors/Cms/Layouts.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/Page.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/Pages.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/Site.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/Structure.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/StructureObject.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/User.php delete mode 100644 public/site/plugins/kql/src/Kql/Interceptors/Cms/Users.php diff --git a/public/site/accounts/index.html b/public/site/accounts/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/public/site/models/project.php b/public/site/models/project.php index f7059ff..1152945 100644 --- a/public/site/models/project.php +++ b/public/site/models/project.php @@ -114,9 +114,16 @@ class ProjectPage extends NotificationsPage { if ($track->group()->isNotEmpty()) { $files['dynamic'][$track->group()->value()][] = $trackData; } else { - $files['dynamic']['autres pistes'][] = $trackData; + $files['dynamic']['Autres pistes'][] = $trackData; } } + + if (isset($files['dynamic']['Autres pistes'])) { + $others = $files['dynamic']['Autres pistes']; + unset($files['dynamic']['Autres pistes']); + $files['dynamic']['Autres pistes'] = $others; + } + } if ($child->rawGlass()->isNotEmpty() || $child->finishedGlass()->isNotEmpty()) { diff --git a/public/site/plugins/kql/LICENSE.md b/public/site/plugins/kql/LICENSE.md deleted file mode 100755 index 4ebd321..0000000 --- a/public/site/plugins/kql/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 Bastian Allgeier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Block.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/Block.php deleted file mode 100755 index c13d0cd..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Block.php +++ /dev/null @@ -1,34 +0,0 @@ -allowedMethodsForSiblings(), - [ - 'content', - 'id', - 'isEmpty', - 'isHidden', - 'isNotEmpty', - 'toField', - 'toHtml', - 'parent', - 'type' - ] - ); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Blocks.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/Blocks.php deleted file mode 100755 index 9112d6c..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Blocks.php +++ /dev/null @@ -1,24 +0,0 @@ -object->toArray(); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/File.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/File.php deleted file mode 100644 index fadd56e..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/File.php +++ /dev/null @@ -1,71 +0,0 @@ -allowedMethodsForModels(), - $this->allowedMethodsForParents(), - $this->allowedMethodsForSiblings(), - [ - 'blur', - 'bw', - 'crop', - 'dataUri', - 'dimensions', - 'exif', - 'extension', - 'filename', - 'files', - 'grayscale', - 'greyscale', - 'height', - 'html', - 'isPortrait', - 'isLandscape', - 'isSquare', - 'mime', - 'name', - 'niceSize', - 'orientation', - 'ratio', - 'resize', - 'size', - 'srcset', - 'template', - 'templateSiblings', - 'thumb', - 'type', - 'width' - ] - ); - } - - public function dimensions(): array - { - return $this->object->dimensions()->toArray(); - } - - public function exif(): array - { - return $this->object->exif()->toArray(); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/FileVersion.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/FileVersion.php deleted file mode 100644 index f37eb79..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/FileVersion.php +++ /dev/null @@ -1,8 +0,0 @@ -allowedMethodsForSiblings(), - [ - 'attrs', - 'columns', - 'id', - 'isEmpty', - 'isNotEmpty', - 'parent' - ] - ); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/LayoutColumn.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/LayoutColumn.php deleted file mode 100755 index 33b1b23..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/LayoutColumn.php +++ /dev/null @@ -1,30 +0,0 @@ -allowedMethodsForSiblings(), - [ - 'blocks', - 'id', - 'isEmpty', - 'isNotEmpty', - 'span', - 'width' - ] - ); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/LayoutColumns.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/LayoutColumns.php deleted file mode 100755 index 4d74820..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/LayoutColumns.php +++ /dev/null @@ -1,13 +0,0 @@ -object->toArray(); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Layouts.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/Layouts.php deleted file mode 100755 index 167412b..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Layouts.php +++ /dev/null @@ -1,13 +0,0 @@ -object->toArray(); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Page.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/Page.php deleted file mode 100644 index 429bcfb..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Page.php +++ /dev/null @@ -1,68 +0,0 @@ -allowedMethodsForChildren(), - $this->allowedMethodsForFiles(), - $this->allowedMethodsForModels(), - $this->allowedMethodsForParents(), - $this->allowedMethodsForSiblings(), - [ - 'blueprints', - 'depth', - 'hasTemplate', - 'intendedTemplate', - 'isDraft', - 'isErrorPage', - 'isHomePage', - 'isHomeOrErrorPage', - 'isListed', - 'isReadable', - 'isSortable', - 'isUnlisted', - 'num', - 'slug', - 'status', - 'template', - 'title', - 'uid', - 'uri', - ] - ); - } - - public function intendedTemplate(): string - { - return $this->object->intendedTemplate()->name(); - } - - public function template(): string - { - return $this->object->template()->name(); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Pages.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/Pages.php deleted file mode 100644 index 2936226..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Pages.php +++ /dev/null @@ -1,34 +0,0 @@ -allowedMethodsForChildren(), - $this->allowedMethodsForFiles(), - $this->allowedMethodsForModels(), - [ - 'blueprints', - 'breadcrumb', - 'errorPage', - 'errorPageId', - 'homePage', - 'homePageId', - 'page', - 'pages', - 'title', - ] - ); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Structure.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/Structure.php deleted file mode 100644 index 31e5971..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Structure.php +++ /dev/null @@ -1,13 +0,0 @@ -object->toArray(); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/StructureObject.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/StructureObject.php deleted file mode 100644 index 517d8cc..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/StructureObject.php +++ /dev/null @@ -1,20 +0,0 @@ -allowedMethodsForSiblings(), - [ - 'content', - 'id', - 'parent', - ] - ); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/User.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/User.php deleted file mode 100644 index 042d101..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/User.php +++ /dev/null @@ -1,35 +0,0 @@ -allowedMethodsForFiles(), - $this->allowedMethodsForModels(), - $this->allowedMethodsForSiblings(), - [ - 'avatar', - 'email', - 'id', - 'isAdmin', - 'language', - 'modified', - 'name', - 'role', - 'username', - ] - ); - } -} diff --git a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Users.php b/public/site/plugins/kql/src/Kql/Interceptors/Cms/Users.php deleted file mode 100644 index 7178268..0000000 --- a/public/site/plugins/kql/src/Kql/Interceptors/Cms/Users.php +++ /dev/null @@ -1,18 +0,0 @@ -