Skip to content

Commit cb589ba

Browse files
committed
delete all unsuded files
1 parent 44676ae commit cb589ba

File tree

14 files changed

+7
-738
lines changed

14 files changed

+7
-738
lines changed

packages/app/src/app/overmind/effects/zip/index.ts renamed to packages/app/src/app/overmind/effects/zip.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios';
22
import store from 'store/dist/store.modern';
3-
import { fileDownload } from './fileDownload';
3+
import { saveAs } from 'file-saver';
44

55
const getFile = async (id: string) => {
66
const jwt =
@@ -9,7 +9,9 @@ const getFile = async (id: string) => {
99
headers: {
1010
Authorization: `Bearer ${jwt}`,
1111
},
12+
responseType: 'arraybuffer',
1213
});
14+
1315
return file.data;
1416
};
1517

@@ -19,6 +21,9 @@ export default {
1921
},
2022
async download({ title, id }: { title: string; id: string }) {
2123
const file = await getFile(id);
22-
fileDownload(file.data, title || id);
24+
const blob = new Blob([file], {
25+
type: 'application/zip',
26+
});
27+
saveAs(blob, `${title || id}.zip`);
2328
},
2429
};
Binary file not shown.

packages/app/src/app/overmind/effects/zip/create-zip/create-react-app-typescript/index.ts

Lines changed: 0 additions & 64 deletions
This file was deleted.
Binary file not shown.

packages/app/src/app/overmind/effects/zip/create-zip/create-react-app/index.ts

Lines changed: 0 additions & 99 deletions
This file was deleted.

packages/app/src/app/overmind/effects/zip/create-zip/full/index.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)