diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 35410ca..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# 默认忽略的文件
-/shelf/
-/workspace.xml
-# 基于编辑器的 HTTP 客户端请求
-/httpRequests/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
deleted file mode 100644
index a3a334c..0000000
--- a/.idea/encodings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/growth_report.iml b/.idea/growth_report.iml
index fba56a2..fac1680 100644
--- a/.idea/growth_report.iml
+++ b/.idea/growth_report.iml
@@ -4,7 +4,7 @@
-
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 23bec8e..0924658 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,7 +1,7 @@
-
+
-
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index 94a25f7..35eb1dd 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/UI.py b/UI.py
index f18697a..94f8a4f 100644
--- a/UI.py
+++ b/UI.py
@@ -73,25 +73,25 @@ class ReportApp:
# === A组: 核心功能 ===
func_btns = [
- ("1. 📁 生成图片路径", self.run_generate_folders),
- ("2. 🤖 生成评语 (AI)", self.run_generate_comments),
- ("3. 📊 生成报告 (PPT)", self.run_generate_report),
- ("4. 📑 格式转换 (PDF)", self.run_convert_pdf),
- ("5. 🐂 生肖转化 (生日)", self.run_zodiac),
+ ("📁 生成图片路径", self.run_generate_folders),
+ ("🤖 生成评语 (AI)", self.run_generate_comments),
+ ("📊 生成报告 (PPT)", self.run_generate_report),
+ ("📑 格式转换 (PDF)", self.run_convert_pdf),
+ ("🐂 生肖转化 (生日)", self.run_zodiac),
]
self.create_btn_group(main_content, "🛠️ 核心功能", func_btns, columns=3)
# === B组: 数据导出 ===
export_btns = [
- ("6. 📦 导出数据模板 (Zip)", self.run_export_data_folder),
- ("8. 📤 导出数据备份 (Zip)", self.run_export_data),
+ ("📦 导出数据模板 (Zip)", self.run_export_data_folder),
+ ("📤 导出数据备份 (Zip)", self.run_export_data),
]
self.create_btn_group(main_content, "📦 数据管理", export_btns, columns=2)
# === C组: 系统设置 ===
system_btns = [
- ("7. ⚠️ 初始化系统 (重置)", self.run_initialize_project),
- ("9. 🚪 退出系统", self.quit_app),
+ ("⚠️ 初始化系统 (重置)", self.run_initialize_project),
+ ("🚪 退出系统", self.quit_app),
]
self.create_btn_group(main_content, "⚙️ 系统操作", system_btns, columns=2)
diff --git a/main.py b/main.py
index 94f3131..f4e30c0 100644
--- a/main.py
+++ b/main.py
@@ -1,3 +1,4 @@
+from config.config import load_config
from utils.generate_utils import (
generate_template,
generate_comment_all,
@@ -7,6 +8,8 @@ from utils.generate_utils import (
)
from utils.file_utils import export_templates_folder, initialize_project, export_data
+config = load_config("config.yaml")
+
def application():
from rich.console import Console
@@ -56,7 +59,7 @@ def application():
choice = Prompt.ask(
"👉 请输入序号执行",
- choices=["1", "2", "3", "4", "5", "6", "7","8","9"],
+ choices=["1", "2", "3", "4", "5", "6", "7", "8", "9"],
default="1",
)
@@ -64,7 +67,7 @@ def application():
if choice == "1":
console.rule("[bold cyan]正在执行: 生成模板[/]")
with console.status(
- "[bold green]正在创建文件夹结构...[/]", spinner="dots"
+ "[bold green]正在创建文件夹结构...[/]", spinner="dots"
):
generate_template()
elif choice == "2":
@@ -74,7 +77,7 @@ def application():
elif choice == "3":
console.rule("[bold blue]正在执行: PPT 合成[/]")
with console.status(
- "[bold blue]正在处理图片和文字...[/]", spinner="earth"
+ "[bold blue]正在处理图片和文字...[/]", spinner="earth"
):
generate_report()
elif choice == "4":