Skip to content

Commit

Permalink
chore: 完善文档;完善文件校验机制;调整 gitignore 规则
Browse files Browse the repository at this point in the history
  • Loading branch information
weinibuliu committed Nov 24, 2024
1 parent 6b3571f commit b0ef283
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
.nicegui
__pycache__
*/__pycache__
config/
debug/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

## 亮点
- 跨平台兼容: **NFM** 可以运行在 Windows,Linux 与 MacOS 设备上。
- 局域网访问: **NFM** 可以通过局域网实现远程操控
- 自定义支持: 支持开发者接入使用 **Python** 编写的自定义任务。详见 **[开发文档](docs/zh-cn/Bulid/开发文档.md)**
- 局域网访问: **NFM** 可以通过局域网实现远程访问
- 自定义支持: 支持开发者接入使用 **Python** 编写的自定义任务。详见 **[开发文档](docs/zh-cn/2-1开发文档.md)**
- 多语言支持: UI 本体全部文本均支持多语言。

## 文档
Expand Down
1 change: 1 addition & 0 deletions config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
2 changes: 1 addition & 1 deletion uis/_manage/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __init__(self, language: str) -> None:
self.language = language
self.i18n = language_type(language).Manage
self.button = (
ui.button(self.i18n.Button.run, icon="start")
ui.button(self.i18n.Button.run, icon="play_arrow")
.props("no-caps")
.props("align='left'")
.classes("justify-start")
Expand Down
4 changes: 4 additions & 0 deletions utils/tool/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
class Read:
def __init__(self) -> None:
configs_path: Path = Path(Path.cwd(), "config")
if not configs_path.exists():
configs_path.mkdir()
self.ui_cofig_path = Path(configs_path, "ui_config.json")
self.adbs_path = Path(configs_path, "adbs.json")
self.win32s_path = Path(configs_path, "win32s.json")
Expand Down Expand Up @@ -63,6 +65,8 @@ def devices(self, target: Literal["adbs", "win32s", "apps"]) -> dict | int | Non
class Wirte:
def __init__(self) -> None:
configs_path: Path = Path(Path.cwd(), "config")
if not configs_path.exists():
configs_path.mkdir()
self.ui_cofig_path = Path(configs_path, "ui_config.json")
self.adbs_path = Path(configs_path, "adbs.json")
self.win32s_path = Path(configs_path, "win32s.json")
Expand Down

0 comments on commit b0ef283

Please sign in to comment.