mirror of
https://github.com/fatedier/frp.git
synced 2026-03-20 00:39:15 +08:00
refactor: move web embeds to web/ directory
This commit is contained in:
@@ -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
14
web/frpc/embed.go
Normal 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
5857
web/frpc/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
2975
web/frpc/yarn.lock
2975
web/frpc/yarn.lock
File diff suppressed because it is too large
Load Diff
@@ -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
14
web/frps/embed.go
Normal 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
6687
web/frps/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
3015
web/frps/yarn.lock
3015
web/frps/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user