cloudera / hue

Open source SQL Query Assistant service for Databases/Warehouses
https://cloudera.com
Apache License 2.0
1.16k stars 364 forks source link

[ui-core] adds showReactAppPage to allow UI routing to pure frontend … #3745

Open bjornalm opened 4 months ago

bjornalm commented 4 months ago

…(react) pages

What changes were proposed in this pull request?

This PR modifies the frontend router to support the loading of pure frontend apps, i.e. apps not dependent on being rendered by the server's mako files.

How was this patch tested?

Use this function if you want to show a React based application page 
for a specific url without the need to use legacy mako templates.
1. Add a new appsItem in HueSidebar.vue that links to the new url
2. Import the new React component at the top of this file.
3. Add a new object to the pageMapping array below as examplified here:  

Please review Hue Contributing Guide before opening a pull request.

github-actions[bot] commented 2 months ago

This PR is stale because it has been open 45 days with no activity and is not labeled "Prevent stale". Remove "stale" label or comment or this will be closed in 10 days.