thombruce / tnt

Thom's Nuxt Template
https://tnt.thombruce.com/
MIT License
1 stars 0 forks source link

[Feature]: Web API #110

Open thombruce opened 2 months ago

thombruce commented 2 months ago

Feature request

Applications using the TNT API currently only work in an Electron environment. All API options listed in tntAPI concern the file system, and there are presently no fallbacks for an application hosted on the web used via the browser.

This is the reason the tntApi composable exists! Ideally any call to get or save a document/folder should have a fallback that works with a browser feature, be that...

To my mind the tricky part is gonna be folders... but having an analogue for files shouldn't be too tricky if we just treat the storage solution as a document database.

Folder hierarchy? It's a question of whether or not we want to natively support that idea in browser or handle things a little differently there. At present, the only component that deals with folder creation/deletion/navigation explicitly is the DirectoryTree component which exists on TNT Electron - we could favour some other approach in a non-Electron environment. How much this varies by app, I don't know.

Code of Conduct