-
Notifications
You must be signed in to change notification settings - Fork 5
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
✨(frontend) Pad to PDF #31
Commits on Apr 10, 2024
-
♻️(app-impress) refacto pad store to add the editor
To spread the data editor to different feature of our app, we add the editor in the pad store. It will give an easy access to the editor data.
Configuration menu - View commit details
-
Copy full SHA for 26b161b - Browse repository at this point
Copy the full SHA 26b161bView commit details -
🔨(backend) add local CSRF_TRUSTED_ORIGINS
To allow the frontend to make requests to the backend, we need to add the frontend's origin to the CSRF_TRUSTED_ORIGINS setting.
Configuration menu - View commit details
-
Copy full SHA for e79c69e - Browse repository at this point
Copy the full SHA e79c69eView commit details -
✨(app-desk) add useCreatePdfFromMarkdown
Add the hook useCreatePdfFromMarkdown, it will be used to generate a pdf from a a template and a markdown.
Configuration menu - View commit details
-
Copy full SHA for f9fbf61 - Browse repository at this point
Copy the full SHA f9fbf61View commit details -
Feature to print the pad to pdf. It display a button in the pad toolbar, when clicked it will convert the pad to markdown, send the markdown with a template to the backend to convert it to pdf and then download the pdf.
Configuration menu - View commit details
-
Copy full SHA for 46d1d32 - Browse repository at this point
Copy the full SHA 46d1d32View commit details -
🐛(backend) format html when generate document
When we converted from markdown to html, we didn't format the html, so it was displayed like a string in our pdf. We now format_html the html before we generate the pdf.
Configuration menu - View commit details
-
Copy full SHA for 8d798ce - Browse repository at this point
Copy the full SHA 8d798ceView commit details -
🙈(project) add .devcontainer in gitignore
.devcontainer is used to create virtual environment for development. It is not necessary to be included in the git repository.
Configuration menu - View commit details
-
Copy full SHA for 604b68b - Browse repository at this point
Copy the full SHA 604b68bView commit details -
Create the create_demo command. It creates a demo template for the backend. We add it in the makefile bootstrap. We force the template id, this id is the same as used in the frontend for the moment. When the template feature will be created in the frontend side we will not have to force it anymore.
Configuration menu - View commit details
-
Copy full SHA for 95e252c - Browse repository at this point
Copy the full SHA 95e252cView commit details -
✅(e2e) test the pdf export of the impress app
Add a test to check the pdf export of the impress app. It intercept the download of the PDF and read its content. We can assert that the template is correctly rendered, and that the pad text is present as well.
Configuration menu - View commit details
-
Copy full SHA for 9828bf3 - Browse repository at this point
Copy the full SHA 9828bf3View commit details