改进
This commit is contained in:
@@ -8,14 +8,13 @@ from heurams.services.logger import get_logger
|
|||||||
|
|
||||||
logger = get_logger(__name__)
|
logger = get_logger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class HeurAMSApp(App):
|
class HeurAMSApp(App):
|
||||||
TITLE = "潜进"
|
TITLE = "潜进"
|
||||||
CSS_PATH = "css/main.tcss"
|
CSS_PATH = "css/main.tcss"
|
||||||
SUB_TITLE = "启发式先进记忆调度器"
|
SUB_TITLE = "启发式辅助记忆调度器"
|
||||||
BINDINGS = [
|
BINDINGS = [
|
||||||
("q", "quit", "退出"),
|
("q", "quit", "退出"),
|
||||||
("d", "toggle_dark", "改变色调"),
|
("d", "toggle_dark", "切换色调"),
|
||||||
("1", "app.push_screen('dashboard')", "仪表盘"),
|
("1", "app.push_screen('dashboard')", "仪表盘"),
|
||||||
("2", "app.push_screen('precache_all')", "缓存管理器"),
|
("2", "app.push_screen('precache_all')", "缓存管理器"),
|
||||||
("3", "app.push_screen('nucleon_creator')", "创建新单元"),
|
("3", "app.push_screen('nucleon_creator')", "创建新单元"),
|
||||||
@@ -34,6 +33,9 @@ class HeurAMSApp(App):
|
|||||||
def on_button_pressed(self, event: Button.Pressed) -> None:
|
def on_button_pressed(self, event: Button.Pressed) -> None:
|
||||||
self.exit(event.button.id)
|
self.exit(event.button.id)
|
||||||
|
|
||||||
|
def action_do_nothing(self):
|
||||||
|
print("DO NOTHING")
|
||||||
|
self.refresh()
|
||||||
|
|
||||||
def environment_check():
|
def environment_check():
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|||||||
@@ -32,9 +32,14 @@ class AboutScreen(Screen):
|
|||||||
|
|
||||||
以 AGPL-3.0 开放源代码
|
以 AGPL-3.0 开放源代码
|
||||||
|
|
||||||
贡献人员:
|
开发人员:
|
||||||
|
|
||||||
- @pluvium27 (Wang Zhiyu)
|
- [@pluvium27](https://github.com/pluvium27) (Wang Zhiyu)
|
||||||
|
|
||||||
|
特别感谢:
|
||||||
|
|
||||||
|
- [Piotr A. Woźniak](https://supermemo.guru/wiki/Piotr_Wozniak): SuperMemo-2 算法
|
||||||
|
- [Thoughts Memo](https://www.zhihu.com/people/L.M.Sherlock): 文献参考
|
||||||
|
|
||||||
# 参与贡献
|
# 参与贡献
|
||||||
|
|
||||||
|
|||||||
@@ -25,17 +25,17 @@ import pathlib
|
|||||||
logger = get_logger(__name__)
|
logger = get_logger(__name__)
|
||||||
|
|
||||||
class DashboardScreen(Screen):
|
class DashboardScreen(Screen):
|
||||||
|
SUB_TITLE = "仪表盘"
|
||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
yield Header(show_clock=True)
|
yield Header(show_clock=True)
|
||||||
yield ScrollableContainer(
|
yield ScrollableContainer(
|
||||||
Label(f'欢迎使用 "潜进" 启发式先进记忆调度器', classes="title-label"),
|
Label(f'欢迎使用 "潜进" 启发式辅助记忆调度器', classes="title-label"),
|
||||||
Label(f"当前 UNIX 日时间戳: {timer.get_daystamp()}"),
|
Label(f"当前 UNIX 日时间戳: {timer.get_daystamp()}"),
|
||||||
Label(f'时区修正: UTC+{config_var.get()["timezone_offset"] / 3600}'),
|
Label(f'时区修正: UTC+{config_var.get()["timezone_offset"] / 3600}'),
|
||||||
Label("选择待学习或待修改的记忆单元集:", classes="title-label"),
|
Label("选择待学习或待修改的记忆单元集:", classes="title-label"),
|
||||||
ListView(id="union-list", classes="union-list-view"),
|
ListView(id="union-list", classes="union-list-view"),
|
||||||
Label(
|
Label(
|
||||||
f'"潜进" 开放源代码软件项目 | 版本 {version.ver} {version.codename.capitalize()} | Wang Zhiyu 2025'
|
f'"潜进" 启发式辅助记忆调度器 | 版本 {version.ver} {version.codename.capitalize()} 2025'
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
yield Footer()
|
yield Footer()
|
||||||
|
|||||||
@@ -23,9 +23,10 @@ logger = get_logger(__name__)
|
|||||||
class MemScreen(Screen):
|
class MemScreen(Screen):
|
||||||
BINDINGS = [
|
BINDINGS = [
|
||||||
("q", "pop_screen", "返回"),
|
("q", "pop_screen", "返回"),
|
||||||
#("p", "prev", "复习上一个"),
|
("p", "prev", "复习上一个"),
|
||||||
("d", "toggle_dark", "改变色调"),
|
("d", "toggle_dark", ""),
|
||||||
("v", "play_voice", "朗读"),
|
("v", "play_voice", "朗读"),
|
||||||
|
("0,1,2,3", "app.push_screen('about')", ""),
|
||||||
]
|
]
|
||||||
|
|
||||||
if config_var.get()["quick_pass"]:
|
if config_var.get()["quick_pass"]:
|
||||||
|
|||||||
@@ -17,7 +17,15 @@ from heurams.context import *
|
|||||||
|
|
||||||
|
|
||||||
class PreparationScreen(Screen):
|
class PreparationScreen(Screen):
|
||||||
BINDINGS = [("q", "go_back", "返回"), ("p", "precache", "预缓存音频")]
|
|
||||||
|
SUB_TITLE = "准备记忆集"
|
||||||
|
|
||||||
|
BINDINGS = [
|
||||||
|
("q", "go_back", "返回"),
|
||||||
|
("p", "precache", "预缓存音频"),
|
||||||
|
("d", "toggle_dark", ""),
|
||||||
|
("0,1,2,3", "app.push_screen('about')", ""),
|
||||||
|
]
|
||||||
|
|
||||||
def __init__(self, nucleon_file: pathlib.Path, electron_file: pathlib.Path) -> None:
|
def __init__(self, nucleon_file: pathlib.Path, electron_file: pathlib.Path) -> None:
|
||||||
super().__init__(name=None, id=None, classes=None)
|
super().__init__(name=None, id=None, classes=None)
|
||||||
@@ -62,6 +70,7 @@ class PreparationScreen(Screen):
|
|||||||
def action_go_back(self):
|
def action_go_back(self):
|
||||||
self.app.pop_screen()
|
self.app.pop_screen()
|
||||||
|
|
||||||
|
|
||||||
def action_precache(self):
|
def action_precache(self):
|
||||||
from ..screens.precache import PrecachingScreen
|
from ..screens.precache import PrecachingScreen
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
"""Kernel 操作先进函数库"""
|
"""Kernel 操作辅助函数库"""
|
||||||
|
|
||||||
import random
|
import random
|
||||||
import heurams.kernel.particles as pt
|
import heurams.kernel.particles as pt
|
||||||
|
|||||||
Reference in New Issue
Block a user