From 31c88551ba3527130f9da0f6af069a314d6eca59 Mon Sep 17 00:00:00 2001 From: snomiao Date: Wed, 7 May 2025 16:54:31 +0000 Subject: [PATCH 1/6] fix(57-feat-req-admin-category-dashboard-admincategory): draft draft --- pages/admin/category.tsx | 23 +++++++++++++++++++++++ pages/admin/index.tsx | 9 +++++++++ 2 files changed, 32 insertions(+) create mode 100644 pages/admin/category.tsx diff --git a/pages/admin/category.tsx b/pages/admin/category.tsx new file mode 100644 index 00000000..aa97961b --- /dev/null +++ b/pages/admin/category.tsx @@ -0,0 +1,23 @@ +import { useListAllNodes } from "src/api/generated" + +/** + * + * @author: snomiao + */ +export default function CategoryPage() { + const {data: nodes} = useListAllNodes({ + page: 1, + limit: 100, + sort: ['category'] + }) + return nodes?.map((node) => ( +
+

+ {node.category} +

+
+
{node.name}
+
+
+ )) +}; \ No newline at end of file diff --git a/pages/admin/index.tsx b/pages/admin/index.tsx index 94f48f83..cc21ab85 100644 --- a/pages/admin/index.tsx +++ b/pages/admin/index.tsx @@ -20,6 +20,15 @@ function AdminDashboard() { > Review Node Versions +