feat: supports edit profile file

This commit is contained in:
GyDi
2022-03-27 00:58:17 +08:00
parent 7b7e6555c1
commit 7bde7ebc30
12 changed files with 259 additions and 38 deletions

View File

@@ -25,6 +25,14 @@ export async function viewProfile(index: string) {
return invoke<void>("view_profile", { index });
}
export async function readProfileFile(index: string) {
return invoke<string>("read_profile_file", { index });
}
export async function saveProfileFile(index: string, fileData: string) {
return invoke<void>("save_profile_file", { index, fileData });
}
export async function importProfile(url: string) {
return invoke<void>("import_profile", {
url,