Draft: Render markdown code, display & download share setup script
Overview
Resolves #900 (closed).
- Builds on @jxxcarlson's share setup script.
- Implements a share script helper.
- Adds a markdown renderer for inline code & code blocks.
- Adds a port for downloading files.
- Adjusts script content based on available export locations & selected access rule.
- Allows share setup script to be copied or downloaded.
How to Test
- Since the Shares List page does not yet exist, please navigate directly to a Share Detail page. For example:
- http://app.exosphere.localhost:8000/projects/95e98332bb62488eba5fee7c5849e13c/regions/IU/shares/29be2b3e-7ceb-4a44-b96a-cbb061b9d0ef
- http://app.exosphere.localhost:8000/projects/95e98332bb62488eba5fee7c5849e13c/regions/IU/shares/ad9d87f9-1c7b-4c89-b6cf-f5f88155331e
- http://app.exosphere.localhost:8000/projects/95e98332bb62488eba5fee7c5849e13c/regions/IU/shares/99eaae37-dcaa-47af-aba0-841d46ec52da
- Review the share setup instructions (& code blocks).
- Select/deselect access rules & review the script changes.
- Copy & review the script content.
- Download & review the script.
- Validate that the script works to set up a share.