mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 支持配置闪卡相关参数 https://github.com/siyuan-note/siyuan/issues/7704
This commit is contained in:
parent
07d5a6cd2f
commit
f281b33fbd
2 changed files with 39 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ type AppConf struct {
|
|||
Keymap *conf.Keymap `json:"keymap"` // 快捷键配置
|
||||
Sync *conf.Sync `json:"sync"` // 同步配置
|
||||
Search *conf.Search `json:"search"` // 搜索配置
|
||||
Flashcard *conf.Flashcard `json:"flashcard"` // 闪卡配置
|
||||
Stat *conf.Stat `json:"stat"` // 统计
|
||||
Api *conf.API `json:"api"` // API
|
||||
Repo *conf.Repo `json:"repo"` // 数据仓库
|
||||
|
|
@ -313,7 +314,12 @@ func InitConf() {
|
|||
Conf.Stat = conf.NewStat()
|
||||
}
|
||||
|
||||
if nil == Conf.Flashcard {
|
||||
Conf.Flashcard = conf.NewFlashcard()
|
||||
}
|
||||
|
||||
Conf.ReadOnly = util.ReadOnly
|
||||
|
||||
if "" != util.AccessAuthCode {
|
||||
Conf.AccessAuthCode = util.AccessAuthCode
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue