feat: support new profile

This commit is contained in:
GyDi committed 2022-02-07 17:26:05 +08:00
1 parent c596c875a6
commit 66b89ee817
5 files changed
+109 -1

No files matched your search

+4
View File
@@ -9,6 +9,10 @@ export async function syncProfiles() {
return invoke<void>("sync_profiles");
}
export async function newProfile(name: string, desc: string) {
return invoke<void>("new_profile", { name, desc });
}
export async function viewProfile(index: number) {
return invoke<void>("view_profile", { index });
}