JustArchiNET / ASF-ui

The official web interface for ASF
Apache License 2.0
257 stars 36 forks source link

Add support for displaying plugins GUI URL #1634

Open fazelukario opened 1 year ago

fazelukario commented 1 year ago

Checklist

Enhancement purpose

Convenience

Solution

The title speaks for itself. Add support to render plugins gui url.

Why currently available solutions are not sufficient?

More convenience!

Can you help us with this enhancement idea?

Somehow, I can test and offer feedback, but can't code

Additional info

Since ASF now officially supports plugins GUI (as of V5.4.5.2, reference #2877 #2876 ) it would be nice to display URLs of plugins interfaces in ASF-ui.

All plugins that have a GUI must pass a WebPath that can be used to display a link to the plugin's GUI. (The WebPath is sent by ASF along with the plugin name, reference)

For example, it would be nice to add a link button next to the plugin name (if the plugin has a GUI) to open the plugin's GUI page in a new window, it would also be cool to add a second button that opens the plugin GUI inside the ASF-ui (<iframe> it inside the main window, reference to screenshot 2).

image Screenshot 1. Globe for open in new tab, laptop for embed into ASF-ui (just for examle).

image Screenshot 2. Embeded plugin GUI (market white).

Also, the plugin GUI URLs can be here:

image Screenshot 3. Globe for open in new tab, laptop for embed into ASF-ui (just for examle).

MrBurrBurr commented 6 months ago

Can you provide an example plugin for both scenarios?

fazelukario commented 6 months ago

Ok, give me a couple of days, I'll write an example plugin when I have some free time.