From 845a505ca171ac149974aa9e2e8677d29f28b1b0 Mon Sep 17 00:00:00 2001 From: Wang Zhiyu Date: Mon, 20 Apr 2026 07:39:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AF=95=E5=A2=9E=E5=8A=A0=E5=8D=95?= =?UTF-8?q?=E5=85=83=E9=9B=86=E7=8B=AC=E7=AB=8B=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/config/repo/_.toml | 2 ++ data/config/repo/高考必背古诗文-0.toml | 11 +++++++++++ data/config/repo/高考必背古诗文.toml | 11 +++++++++++ src/heurams/interface/__init__.py | 1 + src/heurams/interface/screens/dashboard.py | 3 ++- 5 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 data/config/repo/_.toml create mode 100644 data/config/repo/高考必背古诗文-0.toml create mode 100644 data/config/repo/高考必背古诗文.toml diff --git a/data/config/repo/_.toml b/data/config/repo/_.toml new file mode 100644 index 0000000..d471edb --- /dev/null +++ b/data/config/repo/_.toml @@ -0,0 +1,2 @@ +_cngk-t_desc = "高考必备古诗文" +_cngk_desc = "高考必备古诗文" diff --git a/data/config/repo/高考必背古诗文-0.toml b/data/config/repo/高考必背古诗文-0.toml new file mode 100644 index 0000000..3cd8fc9 --- /dev/null +++ b/data/config/repo/高考必背古诗文-0.toml @@ -0,0 +1,11 @@ +algorithm = "NSP-0" +_algorithm_desc = "记忆调度算法" +scheduled_num = 420 +_scheduled_num_desc = "单次记忆单元数量" + +[_algorithm_candidate] +NSP-0 = "筛选用非间隔重复调度器" +none = "不设置默认调度器" +SM-2 = "第二代 SuperMemo 简单间隔重复调度器" +SM-15M = "第15代 SuperMemo 复杂间隔重复调度器 (不稳定且逆向工程)" +FSRS = "先进开放间隔重复调度器" diff --git a/data/config/repo/高考必背古诗文.toml b/data/config/repo/高考必背古诗文.toml new file mode 100644 index 0000000..19dff73 --- /dev/null +++ b/data/config/repo/高考必背古诗文.toml @@ -0,0 +1,11 @@ +algorithm = "SM-2" +_algorithm_desc = "记忆调度算法" +scheduled_num = 20 +_scheduled_num_desc = "单次记忆单元数量" + +[_algorithm_candidate] +NSP-0 = "筛选用非间隔重复调度器" +none = "不设置默认调度器" +SM-2 = "第二代 SuperMemo 简单间隔重复调度器" +SM-15M = "第15代 SuperMemo 复杂间隔重复调度器 (不稳定且逆向工程)" +FSRS = "先进开放间隔重复调度器" diff --git a/src/heurams/interface/__init__.py b/src/heurams/interface/__init__.py index e52cdc9..8454e4f 100644 --- a/src/heurams/interface/__init__.py +++ b/src/heurams/interface/__init__.py @@ -37,6 +37,7 @@ class HeurAMSApp(App): ("q", "go_back", "退出"), ("d", "toggle_dark", "主题"), ("n", "app.push_screen('navigator')", "导航"), + ("s", "app.push_screen('setting')", "设置"), ("z", "app.push_screen('about')", "关于"), ] SCREENS = { diff --git a/src/heurams/interface/screens/dashboard.py b/src/heurams/interface/screens/dashboard.py index 30889bf..de85d2c 100644 --- a/src/heurams/interface/screens/dashboard.py +++ b/src/heurams/interface/screens/dashboard.py @@ -96,7 +96,8 @@ class DashboardScreen(Screen): nucleonic_data=repo.nucleonic_data_lict.get_itemic_unit(i) ) electron = pt.Electron.create_on_electonic_data( - electronic_data=repo.electronic_data_lict.get_itemic_unit(i) + electronic_data=repo.electronic_data_lict.get_itemic_unit(i), + algo_name=config_var.get()['repo'][repo.manifest['title']]['algorithm'] ) if electron.is_activated(): activated_sum += 1