chore: strip pre-fork version comments across 72 files
Removes standalone "// v0.X.X:" comment lines and inline trailing version annotations. Keeps version references in config field docs and compatibility notes where they describe requirements. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@ type Engine struct {
|
||||
cfg *config.Config
|
||||
stores store.Stores
|
||||
loaders map[string]DataLoaderFunc
|
||||
surfaces []SurfaceManifest // v0.25.0: registered surface definitions
|
||||
surfaces []SurfaceManifest
|
||||
devMode bool
|
||||
}
|
||||
|
||||
@@ -95,25 +95,20 @@ type PageData struct {
|
||||
User *UserContext
|
||||
Data any // surface-specific data from loader
|
||||
|
||||
// v0.22.7: Theme + settings injection
|
||||
Theme string // "dark", "light", or "" (= use default)
|
||||
SurfaceSettings any // JSON-serialized to window.__SETTINGS__
|
||||
|
||||
// v0.25.0: Surface manifest — layout preset, components, etc.
|
||||
Manifest *SurfaceManifest `json:"manifest,omitempty"`
|
||||
|
||||
// v0.25.0: Enabled surface IDs for conditional nav rendering.
|
||||
EnabledSurfaces []string `json:"-"`
|
||||
|
||||
// v0.27.0: Extension surfaces for sidebar nav rendering.
|
||||
ExtensionSurfaces []ExtensionNavItem `json:"-"`
|
||||
|
||||
// v0.22.7: Login/splash page fields
|
||||
InstanceName string // branding: instance display name
|
||||
LogoURL string // branding: custom logo URL
|
||||
Tagline string // branding: tagline under instance name
|
||||
RegistrationOpen bool // whether self-registration is enabled
|
||||
AuthMode string // v0.24.1: "builtin", "mtls", "oidc"
|
||||
AuthMode string // "builtin", "mtls", "oidc"
|
||||
}
|
||||
|
||||
// SurfaceEnabled returns true if the given surface ID is in the EnabledSurfaces list.
|
||||
@@ -137,7 +132,6 @@ type ExtensionNavItem struct {
|
||||
|
||||
// ConfigSectionEntry describes a package-declared config section for
|
||||
// lazy-loading in Settings, Admin, or Team Admin surfaces.
|
||||
// v0.38.3: manifest-driven discovery — no new tables or endpoints.
|
||||
type ConfigSectionEntry struct {
|
||||
PackageID string `json:"package_id"` // section key & asset path prefix
|
||||
Label string `json:"label"` // nav link text
|
||||
@@ -207,7 +201,7 @@ func New(cfg *config.Config, stores store.Stores) *Engine {
|
||||
e.parseTemplates()
|
||||
e.registerLoaders()
|
||||
e.registerCoreSurfaces()
|
||||
e.SeedSurfaces() // v0.25.0: Write core manifests to DB (preserves admin toggle state)
|
||||
e.SeedSurfaces()
|
||||
return e
|
||||
}
|
||||
|
||||
@@ -322,7 +316,6 @@ func (e *Engine) Render(c *gin.Context, name string, data PageData) {
|
||||
data.Message = e.loadMessage()
|
||||
data.Footer = e.loadFooter()
|
||||
|
||||
// v0.22.7: Default theme if not set
|
||||
if data.Theme == "" {
|
||||
data.Theme = "dark"
|
||||
}
|
||||
@@ -477,7 +470,6 @@ func (e *Engine) RegisterPageRoutes(base *gin.RouterGroup, mw PageRouteMiddlewar
|
||||
registerRoutes(group, s, handler)
|
||||
}
|
||||
|
||||
// v0.27.0: Extension surface catch-all — DB lookup at request time.
|
||||
// No restart needed after installing new surfaces via admin API.
|
||||
group.GET("/s/:slug", e.RenderExtensionSurface())
|
||||
}
|
||||
@@ -592,7 +584,6 @@ func stripPrefix(route, prefix string) string {
|
||||
// RenderLogin serves the standalone login page.
|
||||
func (e *Engine) RenderLogin() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
// v0.22.7: Populate splash/login fields from global config
|
||||
instanceName, logoURL, tagline := e.loadBranding()
|
||||
regOpen := e.isRegistrationOpen()
|
||||
|
||||
@@ -619,8 +610,8 @@ type WorkflowPageData struct {
|
||||
FormTemplateJSON string // typed form template JSON (empty if custom)
|
||||
TotalStages int
|
||||
CurrentStage int
|
||||
SurfacePkgID string // v0.30.2: custom package surface override (empty = use StageMode)
|
||||
BrandingJSON string // v0.35.0: workflow branding JSON (accent_color, logo_url, tagline)
|
||||
SurfacePkgID string
|
||||
BrandingJSON string
|
||||
}
|
||||
|
||||
// WorkflowLandingPageData is passed to workflow-landing.html.
|
||||
|
||||
Reference in New Issue
Block a user