From 641c02c2fbe7ad4c1e1e6a8ffddf8aa0c7a14f37 Mon Sep 17 00:00:00 2001 From: brianling Date: Tue, 10 Sep 2024 15:06:42 +0800 Subject: [PATCH] feat(admin):Set up the basic layout pages. --- .gitignore | 2 +- components/Admin/Application/Change.vue | 24 ++++++ components/Admin/Application/DataTable.vue | 1 + layouts/admin.vue | 5 +- layouts/none.vue | 3 + middleware/auth.ts | 4 +- package.json | 2 +- pages/admin/applications/change.vue | 91 ++++++++++++++++++++++ pages/admin/applications/index.vue | 14 +--- pages/admin/index.vue | 70 ++++++++++++++--- prisma/test.prisma | 7 ++ server/api/application/change.post.ts | 6 ++ server/api/web/index.ts | 3 + 13 files changed, 202 insertions(+), 30 deletions(-) create mode 100644 components/Admin/Application/Change.vue create mode 100644 layouts/none.vue create mode 100644 pages/admin/applications/change.vue create mode 100644 server/api/application/change.post.ts create mode 100644 server/api/web/index.ts diff --git a/.gitignore b/.gitignore index 5e3dd4c..76ac693 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ prisma/migrations prisma/SQLite # Node dependencies node_modules - +sms.ts # Logs logs *.log diff --git a/components/Admin/Application/Change.vue b/components/Admin/Application/Change.vue new file mode 100644 index 0000000..b24a3b8 --- /dev/null +++ b/components/Admin/Application/Change.vue @@ -0,0 +1,24 @@ + + diff --git a/components/Admin/Application/DataTable.vue b/components/Admin/Application/DataTable.vue index 95de6c3..2b6294a 100644 --- a/components/Admin/Application/DataTable.vue +++ b/components/Admin/Application/DataTable.vue @@ -24,6 +24,7 @@