@solazah/solazah-runtime 0.1.82 → 0.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/System.d.ts +3 -0
- package/types/SystemSetting.d.ts +1 -1
package/package.json
CHANGED
package/types/System.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export default class System {
|
|
|
5
5
|
/** 返回当前运行平台标识("win32" / "darwin" / "linux" 等,同 Node process.platform)。
|
|
6
6
|
* @returns 平台标识字符串 */
|
|
7
7
|
getPlatform: () => Promise<any>;
|
|
8
|
+
/** Solazah 在用户家目录下的根目录绝对路径(双库、日志、插件、skill 都在这下面)。
|
|
9
|
+
* @returns 形如 `C:\Users\<用户>\.solazah` 的绝对路径 */
|
|
10
|
+
getSolazahHome: () => Promise<string>;
|
|
8
11
|
/** 显示并聚焦 Solazah 主窗口(搜索框);主窗口不存在时不做任何事。
|
|
9
12
|
* @returns 无返回 */
|
|
10
13
|
openMainApp: () => Promise<any>;
|
package/types/SystemSetting.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export default class SystemSetting {
|
|
|
3
3
|
private transport;
|
|
4
4
|
constructor(transport?: IpcRenderer);
|
|
5
5
|
/**
|
|
6
|
-
* 获取合并后的全部系统设置键值表。合并顺序:打包默认(DEFAULT_SETTINGS) → 文件(
|
|
6
|
+
* 获取合并后的全部系统设置键值表。合并顺序:打包默认(DEFAULT_SETTINGS) → 文件(~/.solazah/solazah.settings.json) → 数据库;
|
|
7
7
|
* 开发环境中文件覆盖数据库,生产环境中数据库覆盖文件,保证用户运行时的改动优先。
|
|
8
8
|
*
|
|
9
9
|
* @returns 合并后的设置键值表,键为设置 key、值为对应值。
|