This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 55f1634 Author: nekosu <liao.hy@outlook.com> Date: Thu Aug 10 01:31:28 2023 +0800 feat: finial clean commit 323bdbb Author: nekosu <liao.hy@outlook.com> Date: Thu Aug 10 01:30:13 2023 +0800 refactor: migrate to useVModel commit 9d010f6 Author: nekosu <liao.hy@outlook.com> Date: Wed Aug 9 23:02:18 2023 +0800 refactor: clean old fs commit 8bb9ecb Author: nekosu <liao.hy@outlook.com> Date: Wed Aug 9 20:51:37 2023 +0800 feat: migrate into new fs commit d4cdde6 Author: nekosu <liao.hy@outlook.com> Date: Wed Aug 9 20:01:21 2023 +0800 refactor: api commit e2b8aae Author: nekosu <liao.hy@outlook.com> Date: Wed Aug 9 19:53:07 2023 +0800 feat: Reimplement fs commit fe3fd08 Author: nekosu <liao.hy@outlook.com> Date: Wed Aug 9 13:16:43 2023 +0800 refactor: switch history to vueuse history
- Loading branch information
Showing
48 changed files
with
1,448 additions
and
1,481 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import axios from 'axios' | ||
|
||
export async function load() { | ||
return ( | ||
await axios.post('/api/load', null, { | ||
responseType: 'arraybuffer' | ||
}) | ||
).data as ArrayBuffer | ||
} | ||
|
||
export async function save(blob: Blob) { | ||
const form = new FormData() | ||
form.append('file', blob) | ||
await axios.post('/api/save', form, { | ||
headers: { | ||
'Content-Type': 'multipart/form-data' | ||
} | ||
}) | ||
} |
Oops, something went wrong.