feat: support new profile

This commit is contained in:
GyDi
2022-02-07 17:26:05 +08:00
parent 6082c2bcac
commit c53fe0ed1f
5 changed files with 109 additions and 1 deletions

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 });
}