From 788affe386ca9061b09399a31a3791b3995a49da Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 12 Mar 2025 17:57:49 +0100 Subject: [PATCH 1/5] fix: add missing NoCSRFRequired import in CssController (#397) --- lib/AppInfo/Application.php | 6 +++++- lib/Controller/CssController.php | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 306d0ea..c5181ef 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -144,7 +144,11 @@ class Application extends App implements IBootstrap $cache = $this->config->getAppValue(self::APP_ID, 'cache', '0'); foreach ($assets as $value) { - $route = \OC::$server->getURLGenerator()->linkToRoute($value['route'], ['v' => $cache]); + $route = \OC::$server->getURLGenerator()->linkToRoute( + $value['route'], + ['v' => $cache] + ); + $value['attr'][$value['route_attr']] = $route; Util::addHeader($value['type'], $value['attr'], ''); diff --git a/lib/Controller/CssController.php b/lib/Controller/CssController.php index e2c9e27..5b3a2dd 100644 --- a/lib/Controller/CssController.php +++ b/lib/Controller/CssController.php @@ -26,6 +26,7 @@ use OCA\SideMenu\Service\ConfigProxy; use OCA\Theming\ThemingDefaults; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\Attribute\FrontpageRoute; +use OCP\AppFramework\Http\Attribute\NoCSRFRequired; use OCP\AppFramework\Http\Attribute\PublicPage; use OCP\AppFramework\Http\TemplateResponse; use OCP\IRequest; From ba737434e52948d7d648d6e1ef9b7031582ebc8c Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 12 Mar 2025 17:58:29 +0100 Subject: [PATCH 2/5] update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d17890b..23139eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## [Unreleased] +### Fixed +* fix: add missing NoCSRFRequired import in CssController (#397) + ## 4.1.0 ### Added * add compatibility with NC31 From 2bdea0d828a9400f0924233efd9cee80767cd732 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 12 Mar 2025 18:20:15 +0100 Subject: [PATCH 3/5] fix(SideMenu): ncApps must be an array (#369) --- src/SideMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SideMenu.vue b/src/SideMenu.vue index 2e8bfa3..00bd3d1 100644 --- a/src/SideMenu.vue +++ b/src/SideMenu.vue @@ -86,7 +86,7 @@ export default { }, methods: { retrieveApps() { - const ncApps = loadState('core', 'apps', {}) + const ncApps = loadState('core', 'apps', []) let orders = {} let finalApps = [] From 20946bcb061f1571aa7cd4fe7e32f3cec4604247 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 12 Mar 2025 18:21:18 +0100 Subject: [PATCH 4/5] update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23139eb..177c03f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ ## [Unreleased] ### Fixed -* fix: add missing NoCSRFRequired import in CssController (#397) +* fix(CssController): add missing NoCSRFRequired import (#397) +* fix(SideMenu): ncApps must be an array (#369) ## 4.1.0 ### Added From e159aff3e7cf83a49db5c93f5e65df1963e052b2 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 12 Mar 2025 18:35:34 +0100 Subject: [PATCH 5/5] release v4.1.1 --- CHANGELOG.md | 1 + appinfo/info.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 177c03f..d55690a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [Unreleased] +## 4.1.1 ### Fixed * fix(CssController): add missing NoCSRFRequired import (#397) * fix(SideMenu): ncApps must be an array (#369) diff --git a/appinfo/info.xml b/appinfo/info.xml index beb19ab..d6a0f5f 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -31,7 +31,7 @@ Notice Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**. In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/). ]]> - 4.1.0 + 4.1.1 agpl Simon Vieille SideMenu