ui

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplate

func GetTemplate(customTemplatePath string, embeddedTemplateContent string, appPaths config.AppPaths) (*template.Template, error)

GetTemplate parses and returns the appropriate HTML template. It requires AppPaths to know where to find external custom templates/assets.

Types

type TemplateData

type TemplateData struct {
	Networks           []string
	UIConfig           config.UiConfig
	Lang               config.LanguageStrings
	SuccessMessage     string
	ErrorMessage       string
	DeviceID           string
	ClaimCode          string
	LocalNodeSetupLink string
	Message            string
}

TemplateData combines all data needed for the HTML template.

Jump to

Keyboard shortcuts

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