Storage / filesystem access for addons #1818
Replies: 2 comments 6 replies
-
The data can be stored on the disk and accessed via
|
Beta Was this translation helpful? Give feedback.
-
Ok, I should have provided my code to explain it better. I already figured out a way to store and pass the tldraw data, based on the But what I would like is to store the document content as a separate file and update the content of the I currently don't see a way of adding new server methods to the slidev server from an addon (or at least, can't find it documented). If the server was accessible in some way (maybe via hooks) my addon could add another server method. |
Beta Was this translation helpful? Give feedback.
-
I'm creating an addon for adding
tldraw
support. Currently I'm serializing the tldraw document and storing it directly in the markdown file, but the format is quite technical and would be better off stored on the file system or in some kind of storage.I've seen that an addon can add new routes to the server app, but maybe there should be an 'official' way of storing extra data for a presentation from an addon? Next to the tldraw documents, you can also upload images via the tldraw component. It would be nice to hook that up to some kind of backend storage.
There's also another plugin for integrating excalidraw that could benefit from it.
Maybe you can care to elaborate on this topic, @KermanX or @antfu?
Beta Was this translation helpful? Give feedback.
All reactions