Skip to content

Commit

Permalink
move things around
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed Mar 25, 2021
1 parent 648507a commit 2a35121
Show file tree
Hide file tree
Showing 23 changed files with 672 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -27,7 +27,7 @@ _testmain.go
# Other dirs
/bin/
/pkg/
/http/web_ui/**
/http/webui/**

# Vault-specific
example.hcl
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -139,7 +139,7 @@ update-plugins:
grep vault-plugin- vendor/vendor.json | cut -d '"' -f 4 | xargs govendor fetch

static-assets-dir:
@mkdir -p ./http/web_ui
@mkdir -p ./http/webui

test-ember:
@echo "--> Installing JavaScript assets"
Expand Down
1 change: 1 addition & 0 deletions go.mod
Expand Up @@ -142,6 +142,7 @@ require (
github.com/rboyer/safeio v0.2.1
github.com/ryanuber/columnize v2.1.0+incompatible
github.com/ryanuber/go-glob v1.0.0
github.com/ryboe/q v1.0.13
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da
github.com/sasha-s/go-deadlock v0.2.0
github.com/sethvargo/go-limiter v0.3.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -1068,6 +1068,8 @@ github.com/ryanuber/columnize v2.1.0+incompatible h1:j1Wcmh8OrK4Q7GXY+V7SVSY8nUW
github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk=
github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc=
github.com/ryboe/q v1.0.13 h1:A7lqkemc1+OmnhjH5wSrrJZZdVwEiLisOoP9QAEEAQk=
github.com/ryboe/q v1.0.13/go.mod h1:ISWUxiBpZfTx3deLPD3TWaP4R8ZUw98Ki1IUVCo2Mjc=
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da h1:p3Vo3i64TCLY7gIfzeQaUJ+kppEO5WQG3cL8iE8tGHU=
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
github.com/sasha-s/go-deadlock v0.2.0 h1:lMqc+fUb7RrFS3gQLtoQsJ7/6TV/pAIFvBsqX73DK8Y=
Expand Down
3 changes: 3 additions & 0 deletions http/handler.go
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/hashicorp/vault/sdk/helper/pathmanager"
"github.com/hashicorp/vault/sdk/logical"
"github.com/hashicorp/vault/vault"
"github.com/ryboe/q"
)

const (
Expand Down Expand Up @@ -570,7 +571,9 @@ type UIAssetWrapper struct {
}

func (fsw *UIAssetWrapper) Open(name string) (fs.File, error) {
q.Q("-->name:", name)
name = "web_ui/" + name
q.Q("-->web_ui name:", name)
file, err := fsw.FileSystem.Open(name)
if err == nil {
return file, nil
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages-oss.lock/pkgs.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages-oss.yml
Expand Up @@ -241,7 +241,7 @@ layers:
- name: build-static-assets
source-include: Makefile
dockerfile: |-
RUN go-bindata-assetfs -o bindata_assetfs.go -pkg http -prefix pkg -modtime 1480000000 -tags ui ./http/web_ui/...
RUN go-bindata-assetfs -o bindata_assetfs.go -pkg http -prefix pkg -modtime 1480000000 -tags ui ./http/webui/...
RUN mkdir -p http && mv bindata_assetfs.go http/
RUN goimports -w http/bindata_assetfs.go
# Up to now, the layers do not vary between packages. This means the layers above
Expand Down
2 changes: 1 addition & 1 deletion ui/.ember-cli
Expand Up @@ -6,5 +6,5 @@
Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": true,
"output-path": "../http/web_ui"
"output-path": "../http/webui"
}
4 changes: 2 additions & 2 deletions ui/package.json
Expand Up @@ -23,8 +23,8 @@
"test:browserstack": "export CI=true; node scripts/start-vault.js --browserstack",
"test:quick": "node scripts/start-vault.js",
"test:quick-oss": "yarn test:quick -f='!enterprise'",
"build:storybook": "build-storybook -s ../http/web_ui",
"storybook": "start-storybook -p 6006 -s ../http/web_ui",
"build:storybook": "build-storybook -s ../http/webui",
"storybook": "start-storybook -p 6006 -s ../http/webui",
"deploy:storybook": "yarn build && yarn build:storybook",
"gen-story-md": "node scripts/gen-story-md.js"
},
Expand Down
2 changes: 2 additions & 0 deletions vendor/github.com/ryboe/q/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions vendor/github.com/ryboe/q/.golangci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions vendor/github.com/ryboe/q/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions vendor/github.com/ryboe/q/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

156 changes: 156 additions & 0 deletions vendor/github.com/ryboe/q/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2a35121

Please sign in to comment.