From 9ca2ec8859c041bbdec77b1c91a8f06d1ec5f3ad Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Sun, 15 Sep 2024 13:07:32 +0800 Subject: [PATCH 1/5] Refactor(BaseManagement): Support recompile --- src/pages/System/Tools/Base.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/System/Tools/Base.tsx b/src/pages/System/Tools/Base.tsx index 6cee084..ac8f54c 100644 --- a/src/pages/System/Tools/Base.tsx +++ b/src/pages/System/Tools/Base.tsx @@ -169,18 +169,18 @@ const Base = () => { )} ), - width: '12em', + width: '14em', align: 'center', render: (_, record) => ( <> - {!record.compiled && !Object.keys(hasEdited).length && ( + {!Object.keys(hasEdited).length && ( - 编译 + {record.compiled ? '重新编译' : '编译'} )} From fc18927116e089177a94bdd4ebe30501390dc377 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Sun, 15 Sep 2024 15:02:02 +0800 Subject: [PATCH 2/5] Style(close-editor-btn): Fix the bug of editor cover the editor close button --- src/assets/css/pages/system/tools/base.scss | 1 + src/assets/css/pages/system/tools/template.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/src/assets/css/pages/system/tools/base.scss b/src/assets/css/pages/system/tools/base.scss index e23e257..8133ee5 100644 --- a/src/assets/css/pages/system/tools/base.scss +++ b/src/assets/css/pages/system/tools/base.scss @@ -38,6 +38,7 @@ opacity: 0.6; box-shadow: 2px 2px 10px 0 rgba(0,0,0,0.2); cursor: pointer; + z-index: 1000; } } } diff --git a/src/assets/css/pages/system/tools/template.scss b/src/assets/css/pages/system/tools/template.scss index dacf2c0..04b9f99 100644 --- a/src/assets/css/pages/system/tools/template.scss +++ b/src/assets/css/pages/system/tools/template.scss @@ -38,6 +38,7 @@ opacity: 0.6; box-shadow: 2px 2px 10px 0 rgba(0,0,0,0.2); cursor: pointer; + z-index: 1000; } } } From 77551804f7415e3f951965272d0c779fdd3bb58a Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Sun, 15 Sep 2024 18:22:02 +0800 Subject: [PATCH 3/5] Refactor(ToolManagement): Optimize the prompt for required review option --- src/pages/System/Tools/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/System/Tools/index.tsx b/src/pages/System/Tools/index.tsx index 36690ca..976a198 100644 --- a/src/pages/System/Tools/index.tsx +++ b/src/pages/System/Tools/index.tsx @@ -219,7 +219,7 @@ const Tools = () => { 通过 From e17fcdb4011cebc7d2784f87fa58a47113c13687 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Sun, 15 Sep 2024 18:27:54 +0800 Subject: [PATCH 4/5] Refactor(BaseManagement): Optimize the filter of entry file --- src/pages/System/Tools/Base.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/System/Tools/Base.tsx b/src/pages/System/Tools/Base.tsx index ac8f54c..148b314 100644 --- a/src/pages/System/Tools/Base.tsx +++ b/src/pages/System/Tools/Base.tsx @@ -304,7 +304,10 @@ const Base = () => { ![ IMPORT_MAP_FILE_NAME, TS_CONFIG_FILE_NAME - ].includes(value) + ].includes(value) && + !value.endsWith('.d.ts') && + !value.endsWith('.css') && + !value.endsWith('.json') ) .map((value) => ({ value, label: value }))} placeholder={'请选择入口文件'} From d5037dc14eaeaeaf74243dea20b4bd7b8ee4bcb6 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Sun, 15 Sep 2024 18:31:23 +0800 Subject: [PATCH 5/5] Docs(README): Add API version requirement --- README.md | 1 + README_zh.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 8378716..1380d76 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ This project is a front-end web UI of Oxygen Toolbox and needs to be used with t # Requires - Web Server (e.g. Nginx, Apache httpd) +- [API of Oxygen Toolbox](https://github.com/FatttSnake/oxygen-api) (v1.0.0 and later versions) # Related projects diff --git a/README_zh.md b/README_zh.md index 352cae2..51308ed 100644 --- a/README_zh.md +++ b/README_zh.md @@ -24,6 +24,7 @@ # 环境要求 - Web 服务器(如 Nginx, Apache httpd) +- [API of Oxygen Toolbox](https://github.com/FatttSnake/oxygen-api) (v1.0.0 及更高版本) # 关联项目