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

✨(frontend) Pad to PDF #31

Merged
merged 8 commits into from
Apr 11, 2024
Merged

✨(frontend) Pad to PDF #31

merged 8 commits into from
Apr 11, 2024

Commits on Apr 10, 2024

  1. ♻️(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.
    AntoLC committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    26b161b View commit details
    Browse the repository at this point in the history
  2. 🔨(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.
    AntoLC committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    e79c69e View commit details
    Browse the repository at this point in the history
  3. ✨(app-desk) add useCreatePdfFromMarkdown

    Add the hook useCreatePdfFromMarkdown,
    it will be used to generate a pdf from a
    a template and a markdown.
    AntoLC committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    f9fbf61 View commit details
    Browse the repository at this point in the history
  4. ✨(app-impress) print to pdf

    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.
    AntoLC committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    46d1d32 View commit details
    Browse the repository at this point in the history
  5. 🐛(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.
    AntoLC committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    8d798ce View commit details
    Browse the repository at this point in the history
  6. 🙈(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.
    AntoLC committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    604b68b View commit details
    Browse the repository at this point in the history
  7. 🤡(backend) demo template

    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.
    AntoLC committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    95e252c View commit details
    Browse the repository at this point in the history
  8. ✅(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.
    AntoLC committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    9828bf3 View commit details
    Browse the repository at this point in the history