Feat may set api url (#850)

* add api url settings

* may edit api setting before login
This commit is contained in:
an-lee
2024-07-20 17:18:33 +08:00
committed by GitHub
parent fef5aac7b2
commit 223ae743ed
11 changed files with 242 additions and 58 deletions

View File

@@ -128,6 +128,8 @@ type EnjoyAppType = {
switchLanguage: (language: string) => Promise<void>;
getDefaultHotkeys: () => Promise<Record<string, string> | undefined>;
setDefaultHotkeys: (records: Record<string, string>) => Promise<void>;
getApiUrl: () => Promise<string>;
setApiUrl: (url: string) => Promise<void>;
};
fs: {
ensureDir: (path: string) => Promise<boolean>;