mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 00:36:10 +01:00
This commit is contained in:
parent
f887c88b1f
commit
72e966af84
4 changed files with 110 additions and 24 deletions
|
|
@ -46,30 +46,31 @@ var Conf *AppConf
|
|||
|
||||
// AppConf 维护应用元数据,保存在 ~/.siyuan/conf.json。
|
||||
type AppConf struct {
|
||||
LogLevel string `json:"logLevel"` // 日志级别:Off, Trace, Debug, Info, Warn, Error, Fatal
|
||||
Appearance *conf.Appearance `json:"appearance"` // 外观
|
||||
Langs []*conf.Lang `json:"langs"` // 界面语言列表
|
||||
Lang string `json:"lang"` // 选择的界面语言,同 Appearance.Lang
|
||||
FileTree *conf.FileTree `json:"fileTree"` // 文档面板
|
||||
Tag *conf.Tag `json:"tag"` // 标签面板
|
||||
Editor *conf.Editor `json:"editor"` // 编辑器配置
|
||||
Export *conf.Export `json:"export"` // 导出配置
|
||||
Graph *conf.Graph `json:"graph"` // 关系图配置
|
||||
UILayout *conf.UILayout `json:"uiLayout"` // 界面布局
|
||||
UserData string `json:"userData"` // 社区用户信息,对 User 加密存储
|
||||
User *conf.User `json:"-"` // 社区用户内存结构,不持久化
|
||||
Account *conf.Account `json:"account"` // 帐号配置
|
||||
ReadOnly bool `json:"readonly"` // 是否是以只读模式运行
|
||||
LocalIPs []string `json:"localIPs"` // 本地 IP 列表
|
||||
AccessAuthCode string `json:"accessAuthCode"` // 访问授权码
|
||||
System *conf.System `json:"system"` // 系统配置
|
||||
Keymap *conf.Keymap `json:"keymap"` // 快捷键配置
|
||||
Sync *conf.Sync `json:"sync"` // 同步配置
|
||||
Search *conf.Search `json:"search"` // 搜索配置
|
||||
Stat *conf.Stat `json:"stat"` // 统计
|
||||
Api *conf.API `json:"api"` // API
|
||||
Repo *conf.Repo `json:"repo"` // 数据仓库
|
||||
Newbie bool `json:"newbie"` // 是否是安装后第一次启动
|
||||
LogLevel string `json:"logLevel"` // 日志级别:Off, Trace, Debug, Info, Warn, Error, Fatal
|
||||
Appearance *conf.Appearance `json:"appearance"` // 外观
|
||||
Langs []*conf.Lang `json:"langs"` // 界面语言列表
|
||||
Lang string `json:"lang"` // 选择的界面语言,同 Appearance.Lang
|
||||
FileTree *conf.FileTree `json:"fileTree"` // 文档面板
|
||||
Tag *conf.Tag `json:"tag"` // 标签面板
|
||||
Editor *conf.Editor `json:"editor"` // 编辑器配置
|
||||
Export *conf.Export `json:"export"` // 导出配置
|
||||
Graph *conf.Graph `json:"graph"` // 关系图配置
|
||||
UILayout *conf.UILayout `json:"uiLayout"` // 界面布局
|
||||
UserData string `json:"userData"` // 社区用户信息,对 User 加密存储
|
||||
User *conf.User `json:"-"` // 社区用户内存结构,不持久化
|
||||
Account *conf.Account `json:"account"` // 帐号配置
|
||||
ReadOnly bool `json:"readonly"` // 是否是以只读模式运行
|
||||
LocalIPs []string `json:"localIPs"` // 本地 IP 列表
|
||||
AccessAuthCode string `json:"accessAuthCode"` // 访问授权码
|
||||
System *conf.System `json:"system"` // 系统配置
|
||||
Keymap *conf.Keymap `json:"keymap"` // 快捷键配置
|
||||
Sync *conf.Sync `json:"sync"` // 同步配置
|
||||
Search *conf.Search `json:"search"` // 搜索配置
|
||||
Stat *conf.Stat `json:"stat"` // 统计
|
||||
Api *conf.API `json:"api"` // API
|
||||
Repo *conf.Repo `json:"repo"` // 数据仓库
|
||||
Newbie bool `json:"newbie"` // 是否是安装后第一次启动
|
||||
Criteria []*conf.Criterion `json:"criteria"` // 搜索查询
|
||||
}
|
||||
|
||||
func InitConf() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue