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

feat: support media in file viewer, allow editing files #1022

Merged
merged 2 commits into from
Mar 29, 2024
Merged

Conversation

mscolnick
Copy link
Contributor

This PR:

  • adds a new endpoint to update file contents
  • renames an existing update endpoint, to move
  • supports saving, downloading, copying from the file-viewer
  • adds a basic media view for image, audio, video,
  • fixes a dark-mode bug with the editor
Screenshot 2024-03-29 at 9 49 11 AM Screenshot 2024-03-29 at 9 49 25 AM

Copy link

vercel bot commented Mar 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 2:15pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 2:15pm

@mscolnick mscolnick requested a review from akshayka March 29, 2024 13:50
Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

# The current path of the file or directory
path: str
# The new contents of the file
contents: str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be base64 encoded, similar to FileCreateRequest? Since not all files will be encoded with unicode.

If this is only used for text files, then what you have is fine for now.

@akshayka akshayka merged commit 48976b3 into main Mar 29, 2024
29 checks passed
@akshayka akshayka deleted the ms/file-viewr branch March 29, 2024 16:06
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.3.7-dev3

Benni-Math pushed a commit to Benni-Math/marimo that referenced this pull request Apr 16, 2024
…1022)

* feat: support media in file viewer, allow editing files

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants