refactor(plugins): restructure admin and message_gateway into standard layered sub-packages

This commit is contained in:
ryan
2026-08-28 22:33:26 +08:00
parent 85b383a4e0
commit f4975d6732
128 changed files with 12050 additions and 9901 deletions
@@ -0,0 +1,24 @@
//go:build embed_frontend
// Copyright 2026 Arctel.net
// SPDX-License-Identifier: Apache-2.0
package driver_http
import (
"embed"
"io/fs"
)
//go:embed all:dist
var frontendFS embed.FS
// frontendAssets returns the exported Next.js bundle shipped inside this binary.
func frontendAssets() fs.FS {
sub, err := fs.Sub(frontendFS, "dist")
if err != nil {
panic("driver_http: embedded frontend bundle unavailable: " + err.Error())
}
return sub
}