G4brym / R2-Explorer

A Google Drive Interface for your Cloudflare R2 Buckets!
https://r2explorer.dev
MIT License
327 stars 60 forks source link

Rendering with other React/Next/Vue or any other frontend page #45

Open mitesh-200228 opened 12 months ago

mitesh-200228 commented 12 months ago

I want to do the conditional rendering of the main dashboard with different Frontend frameworks like React.

E.x.

let x = 1; {x ? <>Hello world</> : <>{R2Explorers dashboard}</> } something like this. is there any way i can do this?

G4brym commented 11 months ago

Hey there, i think the best approach here is to build a proxy worker, that handles the logic if it needs to proxy requests to your react app or to r2-explorer instance Otherwise, if you use vuejs you should be able to easly add your views/pages into the main dashboard code here