From 783b9c0154cdbb50f5e8bd311375bcf3a5e5ae36 Mon Sep 17 00:00:00 2001 From: Jordy Ruiter Date: Thu, 13 Jan 2022 07:52:43 +0900 Subject: [PATCH] Add XTerm JS to the server static files (#1985) --- Makefile | 2 +- server/controllers/templates/web_templates.go | 30 +-- server/static/bindata_assetfs.go | 127 ++++++++++--- server/static/css/xterm.css | 171 ++++++++++++++++++ server/static/js/xterm-4.9.0.js | 24 +++ server/static/js/xterm-addon-attach-0.6.0.js | 24 +++ server/static/js/xterm-addon-fit-0.4.0.js | 24 +++ 7 files changed, 352 insertions(+), 50 deletions(-) create mode 100644 server/static/css/xterm.css create mode 100644 server/static/js/xterm-4.9.0.js create mode 100644 server/static/js/xterm-addon-attach-0.6.0.js create mode 100644 server/static/js/xterm-addon-fit-0.4.0.js diff --git a/Makefile b/Makefile index 7b06fe573c..38749fbf4c 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ dev-docker: docker build -f Dockerfile.dev -t atlantis-dev . dist: ## Package up everything in static/ using go-bindata-assetfs so it can be served by a single binary - rm -f server/static/bindata_assetfs.go && go-bindata-assetfs -pkg static -prefix server server/static/... && mv bindata_assetfs.go server/static + rm -f server/static/bindata_assetfs.go && go-bindata-assetfs -o bindata_assetfs.go -pkg static -prefix server server/static/... && mv bindata_assetfs.go server/static release: ## Create packages for a release docker run -v $$(pwd):/go/src/github.com/runatlantis/atlantis circleci/golang:1.17 sh -c 'cd /go/src/github.com/runatlantis/atlantis && scripts/binary-release.sh' diff --git a/server/controllers/templates/web_templates.go b/server/controllers/templates/web_templates.go index db1cd5cd96..68f9ca8076 100644 --- a/server/controllers/templates/web_templates.go +++ b/server/controllers/templates/web_templates.go @@ -368,12 +368,7 @@ var ProjectJobsTemplate = template.Must(template.New("blank.html.tmpl").Parse(` atlantis - + @@ -410,10 +405,10 @@ var ProjectJobsTemplate = template.Must(template.New("blank.html.tmpl").Parse(` - - - - + + + + - - - + + + +