refactor: move web embeds to web/ directory

This commit is contained in:
fatedier
2026-01-27 02:49:20 +08:00
parent fb2c98e87b
commit b94a0caea6
26 changed files with 12629 additions and 6059 deletions

View File

@@ -1,4 +1,7 @@
.PHONY: dist build preview lint
.PHONY: dist install build preview lint
install:
@npm install
build:
@npm run build

14
web/frpc/embed.go Normal file
View File

@@ -0,0 +1,14 @@
package frpc
import (
"embed"
"github.com/fatedier/frp/assets"
)
//go:embed dist
var EmbedFS embed.FS
func init() {
assets.Register(EmbedFS)
}

5857
web/frpc/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,7 @@
.PHONY: dist build preview lint
.PHONY: dist install build preview lint
install:
@npm install
build:
@npm run build

14
web/frps/embed.go Normal file
View File

@@ -0,0 +1,14 @@
package frps
import (
"embed"
"github.com/fatedier/frp/assets"
)
//go:embed dist
var EmbedFS embed.FS
func init() {
assets.Register(EmbedFS)
}

6687
web/frps/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff