From 7df7fd3b07d4b9a5a6fdff453cb8d5cda6aae4ed Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 22 Nov 2024 12:19:03 +0100 Subject: [PATCH] Change RPC route to lowercase --- ts/WoltLabSuite/Core/Api/{GridViews => Gridviews}/GetRows.ts | 2 +- ts/WoltLabSuite/Core/Component/GridView.ts | 2 +- .../WoltLabSuite/Core/Api/{GridViews => Gridviews}/GetRows.js | 2 +- .../install/files/js/WoltLabSuite/Core/Component/GridView.js | 2 +- wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php | 2 +- .../core/{gridViews => gridviews}/GetRows.class.php | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) rename ts/WoltLabSuite/Core/Api/{GridViews => Gridviews}/GetRows.ts (95%) rename wcfsetup/install/files/js/WoltLabSuite/Core/Api/{GridViews => Gridviews}/GetRows.js (95%) rename wcfsetup/install/files/lib/system/endpoint/controller/core/{gridViews => gridviews}/GetRows.class.php (96%) diff --git a/ts/WoltLabSuite/Core/Api/GridViews/GetRows.ts b/ts/WoltLabSuite/Core/Api/Gridviews/GetRows.ts similarity index 95% rename from ts/WoltLabSuite/Core/Api/GridViews/GetRows.ts rename to ts/WoltLabSuite/Core/Api/Gridviews/GetRows.ts index a262a51b57..142f6b15b6 100644 --- a/ts/WoltLabSuite/Core/Api/GridViews/GetRows.ts +++ b/ts/WoltLabSuite/Core/Api/Gridviews/GetRows.ts @@ -16,7 +16,7 @@ export async function getRows( filters?: Map, gridViewParameters?: Map, ): Promise> { - const url = new URL(`${window.WSC_RPC_API_URL}core/gridViews/rows`); + const url = new URL(`${window.WSC_RPC_API_URL}core/gridviews/rows`); url.searchParams.set("gridView", gridViewClass); url.searchParams.set("pageNo", pageNo.toString()); url.searchParams.set("sortField", sortField); diff --git a/ts/WoltLabSuite/Core/Component/GridView.ts b/ts/WoltLabSuite/Core/Component/GridView.ts index ba0d4b751d..a0a82ba9c5 100644 --- a/ts/WoltLabSuite/Core/Component/GridView.ts +++ b/ts/WoltLabSuite/Core/Component/GridView.ts @@ -1,4 +1,4 @@ -import { getRows } from "../Api/GridViews/GetRows"; +import { getRows } from "../Api/Gridviews/GetRows"; import DomChangeListener from "../Dom/Change/Listener"; import DomUtil from "../Dom/Util"; import { promiseMutex } from "../Helper/PromiseMutex"; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Api/GridViews/GetRows.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Api/Gridviews/GetRows.js similarity index 95% rename from wcfsetup/install/files/js/WoltLabSuite/Core/Api/GridViews/GetRows.js rename to wcfsetup/install/files/js/WoltLabSuite/Core/Api/Gridviews/GetRows.js index 3299f1af96..8e0931892b 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Api/GridViews/GetRows.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Api/Gridviews/GetRows.js @@ -3,7 +3,7 @@ define(["require", "exports", "WoltLabSuite/Core/Ajax/Backend", "../Result"], fu Object.defineProperty(exports, "__esModule", { value: true }); exports.getRows = getRows; async function getRows(gridViewClass, pageNo, sortField = "", sortOrder = "ASC", filters, gridViewParameters) { - const url = new URL(`${window.WSC_RPC_API_URL}core/gridViews/rows`); + const url = new URL(`${window.WSC_RPC_API_URL}core/gridviews/rows`); url.searchParams.set("gridView", gridViewClass); url.searchParams.set("pageNo", pageNo.toString()); url.searchParams.set("sortField", sortField); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView.js index 562d5dca5e..addb5e72bd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView.js @@ -1,4 +1,4 @@ -define(["require", "exports", "tslib", "../Api/GridViews/GetRows", "../Dom/Change/Listener", "../Dom/Util", "../Helper/PromiseMutex", "../Ui/Dropdown/Simple", "./Dialog"], function (require, exports, tslib_1, GetRows_1, Listener_1, Util_1, PromiseMutex_1, Simple_1, Dialog_1) { +define(["require", "exports", "tslib", "../Api/Gridviews/GetRows", "../Dom/Change/Listener", "../Dom/Util", "../Helper/PromiseMutex", "../Ui/Dropdown/Simple", "./Dialog"], function (require, exports, tslib_1, GetRows_1, Listener_1, Util_1, PromiseMutex_1, Simple_1, Dialog_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GridView = void 0; diff --git a/wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php b/wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php index 60ddb452b2..22f5a5a0a2 100644 --- a/wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php +++ b/wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php @@ -135,7 +135,7 @@ return static function (): void { $event->register(new \wcf\system\endpoint\controller\core\comments\responses\RenderResponses); $event->register(new \wcf\system\endpoint\controller\core\comments\responses\UpdateResponse); $event->register(new \wcf\system\endpoint\controller\core\exceptions\RenderException); - $event->register(new \wcf\system\endpoint\controller\core\gridViews\GetRows); + $event->register(new \wcf\system\endpoint\controller\core\gridviews\GetRows); $event->register(new \wcf\system\endpoint\controller\core\messages\GetMentionSuggestions); $event->register(new \wcf\system\endpoint\controller\core\sessions\DeleteSession); $event->register(new \wcf\system\endpoint\controller\core\users\options\DeleteOption); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/gridViews/GetRows.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/gridviews/GetRows.class.php similarity index 96% rename from wcfsetup/install/files/lib/system/endpoint/controller/core/gridViews/GetRows.class.php rename to wcfsetup/install/files/lib/system/endpoint/controller/core/gridviews/GetRows.class.php index d1213a60df..a2dc415696 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/gridViews/GetRows.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/gridviews/GetRows.class.php @@ -1,6 +1,6 @@ * @since 6.2 */ -#[GetRequest('/core/gridViews/rows')] +#[GetRequest('/core/gridviews/rows')] final class GetRows implements IController { #[\Override] -- 2.20.1