From 3d9ad16ae67d2c960cf323adc19dd4b86b3601a2 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Thu, 9 Mar 2023 22:47:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=20.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 7 +- cmd/server/web/web.go | 15 ++ .../src/views/container/image/build/index.vue | 197 ++++++++++++++++++ 3 files changed, 217 insertions(+), 2 deletions(-) create mode 100644 cmd/server/web/web.go create mode 100644 frontend/src/views/container/image/build/index.vue diff --git a/.gitignore b/.gitignore index 1a65a8daf..0c5ace70e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ *.dylib .idea -build +build/1panel # Test binary, built with `go test -c` *.test @@ -19,5 +19,8 @@ build /pkg/ backend/__debug_bin cmd/server/__debug_bin -cmd/server/web +cmd/server/web/assets/ +cmd/server/web/monacoeditorwork +cmd/server/web/favicon.png +cmd/server/web/index.html frontend/auto-imports.d.ts diff --git a/cmd/server/web/web.go b/cmd/server/web/web.go new file mode 100644 index 000000000..dc7a3d3b0 --- /dev/null +++ b/cmd/server/web/web.go @@ -0,0 +1,15 @@ +package web + +import "embed" + +//go:embed index.html +var IndexHtml embed.FS + +//go:embed assets/* +var Assets embed.FS + +//go:embed index.html +var IndexByte []byte + +//go:embed favicon.png +var Favicon embed.FS diff --git a/frontend/src/views/container/image/build/index.vue b/frontend/src/views/container/image/build/index.vue new file mode 100644 index 000000000..a576ce0f0 --- /dev/null +++ b/frontend/src/views/container/image/build/index.vue @@ -0,0 +1,197 @@ + + +