Some time ago I created an unpublished app that allows a user to use a simple form to write a specific file to a folder by using the sidebar. Simplified here’s what it does:
Registers a new tab view in the sidebar if selected item is a directory
Shows a form to enter some information in the tab view
Sends the information to a Nextcloud REST endpoint
Backend saves a specific file to the folder with the user input properly formatted for an external script
However, I’ve been adapting a lot of code from the versions app back then.
Now I’d like to update the app, because some JS APIs broke over time. But I’d like to do so in a future-proof way. Actually, I’d like to mount a Vue component into a tab view. Is that even possible? Is there any app that does that already?
For example registerTabView is now deprecated. But no-where it says how to register your tab view instead. Core apps still seem to be using it on master. How’s the way forward? Where do I find references to the future of interacting with the filelist?
@skjnldsv Cool, thanks, I wasn’t realizing that this would be done through the constructor. I’ll check it out. My issue is more that it requires async operations for this app (to load app settings). So I’ll probably stick with the current solution: Having the tab be always enabled and then show a helpful message when the app is not active in that folder.
Quick question at the end: Will this change be breaking? So I need to refactor the Vue component again?