frontend

package
v0.86.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const OutputPath = "holos/dist/holos"

Output must be the relative path to where the frontend build too places the output index.html file. Tip: use the holos server frontend ls command to list the embedded file system. Refer to: https://angular.io/guide/workspace-config#output-path-configuration This should be the base output path with the browser field set to "ui" in angular.json

View Source
const Path = "/ui/"

Path needs to match <base href="/ui/"> in index.html and baseHref in angular.json

Variables

View Source
var Dist embed.FS

Functions

func NewSPAFileServer

func NewSPAFileServer(issuer string) func(http.Handler) http.Handler

SPAFileServer returns a http.Handler that calls h and falls back to serving the spa app container when h writes header http.StatusNotFound. Useful when the user's browser refreshes the page and the url is handled by a spa like react router.

func Root

func Root() fs.FS

Root returns the content root subdirectory

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL