Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Document Export Functionality #238

Merged
merged 20 commits into from
Jul 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
57a64b4
Chore install dependencies required to implement export markdown
minai621 Jul 19, 2024
508f830
Feat Add DownloadMenu component for exporting markdown files
minai621 Jul 19, 2024
b65d558
remove documentNameStorage
minai621 Jul 20, 2024
68fd0db
Chore remove PreviewRefProvider
minai621 Jul 20, 2024
8ab135b
Chore install dependencies required to implement export markdown to t…
minai621 Jul 20, 2024
4b253e7
Feat file export implementation, supported extensions are pdf, markdo…
minai621 Jul 20, 2024
19046ed
Feat change the export of files implemented by the client to server A…
minai621 Jul 20, 2024
1d6e835
Fix improve file export handling in client
minai621 Jul 20, 2024
8bbdd51
Merge branch 'main' into feat-export-document
minai621 Jul 20, 2024
7a23dbd
Chore remove unused install in frontend
minai621 Jul 21, 2024
2734a4c
Refactor improving handle error
minai621 Jul 21, 2024
e0aec8c
Chore remove fs-extra dependency from backend package.json
minai621 Jul 22, 2024
4cedb04
Refactor remove try-catch block and use class-validator
minai621 Jul 22, 2024
a624af2
Refactor DownloadMenu component to use function syntax
minai621 Jul 22, 2024
9f0a7d7
Refactor change api calls to use react-query
minai621 Jul 22, 2024
1040b83
Refactor DownloadMenu component to fix typo
minai621 Jul 22, 2024
7af17ef
Refactor format executed
minai621 Jul 22, 2024
a35871c
Refactor useFileExport hook to optimize dependencies
minai621 Jul 22, 2024
d0ba0e2
Refactor useFileExport hook to handle file name match more efficiently
minai621 Jul 22, 2024
af14534
Refactor remove fs-extra dependency from backend package-lock.json
minai621 Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor useFileExport hook to optimize dependencies
minai621 committed Jul 22, 2024
commit a35871c6f83b14b7167ee9800ea043bd6062800e
2 changes: 1 addition & 1 deletion frontend/src/hooks/useFileExport.ts
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ export const useFileExport = (): UseFileExportReturn => {
});
}
},
[editorStore.doc, documentStore.data?.title, enqueueSnackbar, exportFileMutation]
[editorStore, documentStore, enqueueSnackbar, exportFileMutation]
);

const handleExportToPDF = () => handleExportFile(FileExtension.PDF);