frontend

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 4 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

Overview

Package frontend 嵌入 MCP gallery 与登录页的 HTML、CSS、JS 源码,并在加载时内联 样式和脚本。

HTTP 与 MCP 的行为属于各自的 owner,本包只提供渲染好的页面内容。 Pages 的组合由 MustLoad 一次性建立;嵌入路径写死,避免把 fixtures 或开发文件 打进可执行文件。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pages

type Pages struct {
	GalleryHTML string
	ConsentHTML string
	Login       fs.FS
}

Pages 保存已内联样式的自包含 HTML 与只读登录模板/样式。

func MustLoad

func MustLoad() Pages

MustLoad 在 owner 初始化时暴露损坏的嵌入源码,行为类似 template.Must。

Jump to

Keyboard shortcuts

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