Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
Diagnostic is a single validation finding for an admin theme
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AssetHandler ¶
func (*Manager) RenderIndex ¶
type Manifest ¶
type Manifest struct {
Name string `yaml:"name"`
Title string `yaml:"title"`
Version string `yaml:"version"`
Description string `yaml:"description"`
Author string `yaml:"author"`
License string `yaml:"license"`
Repo string `yaml:"repo,omitempty"`
AdminAPI string `yaml:"admin_api"`
SDKVersion string `yaml:"sdk_version,omitempty"`
CompatibilityVersion string `yaml:"compatibility_version,omitempty"`
Components []string `yaml:"components"`
WidgetSlots []string `yaml:"widget_slots,omitempty"`
Screenshots []string `yaml:"screenshots,omitempty"`
}
Manifest is the contract Foundry reads from an admin theme's admin-theme.yaml.
Admin themes should declare the admin API version, SDK version, shell components, and widget slots they support so alternate admin frontends remain compatible with Foundry's extension system.
func LoadManifest ¶
LoadManifest reads and normalizes admin-theme.yaml for an admin theme.
When the manifest is missing, Foundry synthesizes a default contract so the built-in admin theme can still work
type ThemeInfo ¶
ThemeInfo identifies an installed admin theme directory
func ListInstalled ¶
ListInstalled returns all admin themes under themesDir/admin-themes.
type ValidationResult ¶
type ValidationResult struct {
Valid bool
Diagnostics []Diagnostic
}
ValidationResult summarizes admin theme validation
func ValidateTheme ¶
func ValidateTheme(themesDir, name string) (*ValidationResult, error)
ValidateTheme validates an installed admin theme against Foundry's required contract