From 38f82501e05246f5999fc4004a307e6a27abc8b1 Mon Sep 17 00:00:00 2001 From: Moment <73689580+xun082@users.noreply.github.com> Date: Sat, 20 Jul 2024 00:18:26 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=8E=A8=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=87=8D=E6=9E=84,=E5=88=A0=E9=99=A4=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=B2=A1=E5=BF=85=E8=A6=81=E7=9A=84=E4=BB=A3=E7=A0=81=E5=B0=81?= =?UTF-8?q?=E8=A3=85=20(#75)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(main)/(router)/dashboard/page.tsx | 236 ++++++++---------- src/app/(main)/layout.tsx | 39 ++- src/app/edit/layout.tsx | 3 - src/app/layout.tsx | 9 +- src/components/main/sider/index.tsx | 78 ++---- .../modals/create-project-modal/index.tsx | 49 ++-- .../provider/modal-provider/index.tsx | 23 -- src/store/uploadFileDataStore.tsx | 119 +++------ src/utils/getLocalDirectory.ts | 68 ++--- src/utils/index.ts | 1 + src/utils/route.tsx | 56 +++++ 11 files changed, 328 insertions(+), 353 deletions(-) delete mode 100644 src/components/provider/modal-provider/index.tsx create mode 100644 src/utils/route.tsx diff --git a/src/app/(main)/(router)/dashboard/page.tsx b/src/app/(main)/(router)/dashboard/page.tsx index 7776405..30be0f0 100644 --- a/src/app/(main)/(router)/dashboard/page.tsx +++ b/src/app/(main)/(router)/dashboard/page.tsx @@ -1,152 +1,128 @@ 'use client'; -const TemplateCardData = [ - { - title: 'Node', - icon: 'https://lf-cdn.marscode.com.cn/obj/eden-cn/ljhwz_lkpkbvsj/ljhwZthlaukjlkulzlp/project_template/prod/e78a9920fc913dcd1b339f0ee1493e429fb237c8/images/native_nodejs/icon.svg', - }, - { - title: 'Vue3', - icon: 'https://lf-cdn.marscode.com.cn/obj/eden-cn/ljhwz_lkpkbvsj/ljhwZthlaukjlkulzlp/project_template/prod/e78a9920fc913dcd1b339f0ee1493e429fb237c8/images/native_nodejs/icon.svg', - }, - { - title: 'React', - icon: 'https://lf-cdn.marscode.com.cn/obj/eden-cn/ljhwz_lkpkbvsj/ljhwZthlaukjlkulzlp/project_template/prod/e78a9920fc913dcd1b339f0ee1493e429fb237c8/images/native_golang/icon.svg', - }, -]; -const LinkCardData = [ - { - linkText: 'Node1', - LinkUrl: 'https://www.baidu.com', - linkDesc: 'ai帮助你学习前端后端运维安全', - }, - { - linkText: 'Node2', - LinkUrl: 'https://www.baidu.com', - linkDesc: 'ai帮助你学习前端后端运维安全', - }, - { - linkText: 'Node3', - LinkUrl: 'https://www.baidu.com', - linkDesc: 'ai帮助你学习前端后端运维安全', - }, -]; +import React from 'react'; -function createTemplateCard(templateName: string, templateIconUrl: string) { - return ( -
+
使用模板快速开始
-阅读文档了解如何使用
-阅读文档了解如何使用
+