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 及更高版本) # 关联项目 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; } } } diff --git a/src/pages/System/Tools/Base.tsx b/src/pages/System/Tools/Base.tsx index 6cee084..148b314 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 ? '重新编译' : '编译'} )} @@ -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={'请选择入口文件'} 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 = () => { 通过