From df51d107b100bbfb858d5dabc5e473c4e52eff49 Mon Sep 17 00:00:00 2001 From: viown <48097677+viown@users.noreply.github.com> Date: Thu, 5 Jun 2025 21:28:41 +0300 Subject: [PATCH] Migrate plugin repositories to React --- .../plugins/repositories/index.html | 19 -- .../controllers/plugins/repositories/index.js | 190 ------------------ .../features/plugins/api/queryKey.ts | 3 +- .../features/plugins/api/useRepositories.ts | 29 +++ .../plugins/api/useSetRepositories.ts | 21 ++ .../plugins/components/NewRepositoryForm.tsx | 82 ++++++++ .../plugins/components/RepositoryListItem.tsx | 84 ++++++++ src/apps/dashboard/routes/_asyncRoutes.ts | 1 + src/apps/dashboard/routes/_legacyRoutes.ts | 7 - .../dashboard/routes/plugins/repositories.tsx | 107 ++++++++++ src/strings/en-us.json | 3 + 11 files changed, 329 insertions(+), 217 deletions(-) delete mode 100644 src/apps/dashboard/controllers/plugins/repositories/index.html delete mode 100644 src/apps/dashboard/controllers/plugins/repositories/index.js create mode 100644 src/apps/dashboard/features/plugins/api/useRepositories.ts create mode 100644 src/apps/dashboard/features/plugins/api/useSetRepositories.ts create mode 100644 src/apps/dashboard/features/plugins/components/NewRepositoryForm.tsx create mode 100644 src/apps/dashboard/features/plugins/components/RepositoryListItem.tsx create mode 100644 src/apps/dashboard/routes/plugins/repositories.tsx diff --git a/src/apps/dashboard/controllers/plugins/repositories/index.html b/src/apps/dashboard/controllers/plugins/repositories/index.html deleted file mode 100644 index a775da4b42..0000000000 --- a/src/apps/dashboard/controllers/plugins/repositories/index.html +++ /dev/null @@ -1,19 +0,0 @@ -