From 37d264d717c5f5dd145f94114af4b5d7c4449297 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 17 Jan 2024 22:38:47 +0100 Subject: [PATCH] refacto: simplify tops wordings --- appinfo/routes.php | 4 +-- ...plistController.php => TopsController.php} | 2 +- src/components/Atoms/AppContent.vue | 4 +-- src/components/Atoms/AppNavigation.vue | 4 +-- src/components/Discover/Tops.vue | 27 +++++++++---------- 5 files changed, 19 insertions(+), 22 deletions(-) rename lib/Controller/{ToplistController.php => TopsController.php} (93%) diff --git a/appinfo/routes.php b/appinfo/routes.php index a7fd5fc..daf2f30 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -17,7 +17,7 @@ return [ ['name' => 'episodes#list', 'url' => '/episodes/list', 'verb' => 'GET'], ['name' => 'podcast#index', 'url' => '/podcast', 'verb' => 'GET'], ['name' => 'search#index', 'url' => '/search', 'verb' => 'GET'], - ['name' => 'toplist#hot', 'url' => '/toplist/hot', 'verb' => 'GET'], - ['name' => 'toplist#new', 'url' => '/toplist/new', 'verb' => 'GET'], + ['name' => 'tops#hot', 'url' => '/tops/hot', 'verb' => 'GET'], + ['name' => 'tops#new', 'url' => '/tops/new', 'verb' => 'GET'], ], ]; diff --git a/lib/Controller/ToplistController.php b/lib/Controller/TopsController.php similarity index 93% rename from lib/Controller/ToplistController.php rename to lib/Controller/TopsController.php index 28bef13..6c5285d 100644 --- a/lib/Controller/ToplistController.php +++ b/lib/Controller/TopsController.php @@ -10,7 +10,7 @@ use OCP\AppFramework\Controller; use OCP\AppFramework\Http\JSONResponse; use OCP\IRequest; -class ToplistController extends Controller +class TopsController extends Controller { public function __construct( IRequest $request, diff --git a/src/components/Atoms/AppContent.vue b/src/components/Atoms/AppContent.vue index 263e73a..49200bf 100644 --- a/src/components/Atoms/AppContent.vue +++ b/src/components/Atoms/AppContent.vue @@ -1,5 +1,5 @@ @@ -21,7 +21,7 @@ export default { diff --git a/src/components/Atoms/AppNavigation.vue b/src/components/Atoms/AppNavigation.vue index 2f3a2db..7369e44 100644 --- a/src/components/Atoms/AppNavigation.vue +++ b/src/components/Atoms/AppNavigation.vue @@ -1,5 +1,5 @@