Upload image for use in blocknote editor (#3044)

* - upload image to use in blocknote editor
- fix local-storage not in gitignore

* fix lint

* fix runtime config
add tests for body parsing notes and tasks

* lint
This commit is contained in:
brendanlaschke
2023-12-20 15:16:19 +01:00
committed by GitHub
parent 351dc6488c
commit c4fecb0a1a
11 changed files with 282 additions and 24 deletions

View File

@ -1,5 +1,7 @@
import { REACT_APP_SERVER_BASE_URL } from '~/config';
export const downloadFile = (fullPath: string, fileName: string) => {
fetch(process.env.REACT_APP_SERVER_BASE_URL + '/files/' + fullPath)
fetch(REACT_APP_SERVER_BASE_URL + '/files/' + fullPath)
.then((resp) =>
resp.status === 200
? resp.blob()