ui

package
v0.34.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: GPL-3.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderManagementShell

func RenderManagementShell(bootstrap interface{}, metadata ManagementShellMetadata) (string, error)

func RenderManagementShellWithAssets

func RenderManagementShellWithAssets(bootstrap interface{}, metadata ManagementShellMetadata, assets ManagementShellAssets) (string, error)

func RenderToString

func RenderToString(page *Page) (string, error)

func SetRoot

func SetRoot(root string)

Types

type LoginPageCommonData

type LoginPageCommonData struct {
	WebBaseURL     string
	HeadCustomCode template.HTML
	Version        string
	Year           int
	CaptchaOpen    bool
	CaptchaHTML    template.HTML
}

func (LoginPageCommonData) Map

func (d LoginPageCommonData) Map() map[string]interface{}

type ManagementPageCommonData

type ManagementPageCommonData struct {
	WebBaseURL     string
	HeadCustomCode template.HTML
	Version        string
	Year           int
	IsAdmin        bool
	Username       string
	BridgeType     string
	BridgeAddr     string
	BridgeIP       string
	BridgePort     string
	WindowsSuffix  string
	TCPIP          string
	TCPPort        string
	KCPIP          string
	KCPPort        string
	TLSIP          string
	TLSPort        string
	QUICIP         string
	QUICPort       string
	QUICALPN       string
	QUICAddr       string
	WSPath         string
	WSIP           string
	WSPort         string
	WSSIP          string
	WSSPort        string
	ProxyPort      string
}

func (ManagementPageCommonData) Map

func (d ManagementPageCommonData) Map() map[string]interface{}

type ManagementShellAssets

type ManagementShellAssets struct {
	Ready   bool     `json:"ready"`
	Styles  []string `json:"styles,omitempty"`
	Scripts []string `json:"scripts,omitempty"`
}

func DefaultManagementShellAssets

func DefaultManagementShellAssets(baseURL string) ManagementShellAssets

func ResolveManagementShellAssets

func ResolveManagementShellAssets(staticRoot, staticBase string) ManagementShellAssets

func (ManagementShellAssets) Clone

type ManagementShellMetadata

type ManagementShellMetadata struct {
	BaseURL        string
	HeadCustomCode string
}

type Model

type Model struct {
	Controller string                 `json:"controller"`
	Action     string                 `json:"action"`
	TplName    string                 `json:"tpl_name"`
	Layout     string                 `json:"layout,omitempty"`
	Data       map[string]interface{} `json:"data"`
}

func PageModel

func PageModel(page *Page) *Model

type Page

type Page struct {
	Controller string
	Action     string
	Template   string
	Layout     string
	Data       map[string]interface{}
}

Jump to

Keyboard shortcuts

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