Skip to content

Commit

Permalink
core/web: go:generate operator-ui assets (#11239)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Nov 22, 2023
1 parent 60cb43a commit 543d946
Show file tree
Hide file tree
Showing 12 changed files with 192 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ golangci-lint-output.txt
# can be left behind by tests
core/cmd/vrfkey1

# left behind by webpack - compiled frontend assets
core/web/assets

# Integration Tests
integration-tests/**/logs/
tests-*.xml
Expand Down
2 changes: 0 additions & 2 deletions .goreleaser.develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ env:

before:
hooks:
- go mod tidy
- make operator-ui
- ./tools/bin/goreleaser_utils before_hook

# See https://goreleaser.com/customization/build/
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ docker-plugins:

.PHONY: operator-ui
operator-ui: ## Fetch the frontend
./operator_ui/install.sh
go generate ./core/web

.PHONY: abigen
abigen: ## Build & install abigen.
Expand Down
1 change: 1 addition & 0 deletions core/web/assets/9f6d832ef97e8493764e.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/web/assets/9f6d832ef97e8493764e.svg.gz
Binary file not shown.
1 change: 1 addition & 0 deletions core/web/assets/ba8bbf16ebf8e1d05bef.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/web/assets/ba8bbf16ebf8e1d05bef.svg.gz
Binary file not shown.
1 change: 1 addition & 0 deletions core/web/assets/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Operator UI</title><link rel="shortcut icon" href="https://smartcontract.imgix.net/chainlink.ico?auto=compress%2Cformat"/><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"/><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/><link href="/favicon.ico" rel="shortcut icon" type="image/x-icon"/><title>Chainlink</title><script defer="defer" src="/assets/main.b0b6f79f7f4a94560e37.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
Binary file added core/web/assets/index.html.gz
Binary file not shown.
187 changes: 187 additions & 0 deletions core/web/assets/main.b0b6f79f7f4a94560e37.js

Large diffs are not rendered by default.

Binary file added core/web/assets/main.b0b6f79f7f4a94560e37.js.gz
Binary file not shown.
1 change: 1 addition & 0 deletions core/web/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
// inside this module. To achieve this, we direct webpack to output all of the compiled assets
// in this module's folder under the "assets" directory.

//go:generate ../../operator_ui/install.sh
//go:embed "assets"
var uiEmbedFs embed.FS

Expand Down

0 comments on commit 543d946

Please sign in to comment.