Skip to content

Commit

Permalink
Improve Visualizer (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Apr 25, 2024
1 parent 7b6c3d1 commit 85b538a
Show file tree
Hide file tree
Showing 30 changed files with 338 additions and 351 deletions.
1 change: 1 addition & 0 deletions components/dashboard/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func provide(c *dig.Container) error {
dashboard.WithBindAddress(ParamsDashboard.BindAddress),
dashboard.WithDeveloperMode(ParamsDashboard.DeveloperMode),
dashboard.WithDeveloperModeURL(ParamsDashboard.DeveloperModeURL),
dashboard.WithExplorerURL(ParamsDashboard.ExplorerURL),
dashboard.WithAuthUsername(ParamsDashboard.Auth.Username),
dashboard.WithAuthPasswordHash(ParamsDashboard.Auth.PasswordHash),
dashboard.WithAuthPasswordSalt(ParamsDashboard.Auth.PasswordSalt),
Expand Down
2 changes: 2 additions & 0 deletions components/dashboard/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ type ParametersDashboard struct {
DeveloperMode bool `default:"false" usage:"whether to run the dashboard in dev mode"`
// DeveloperModeURL defines the URL to use for dev mode
DeveloperModeURL string `name:"developerModeURL" default:"http://127.0.0.1:9090" usage:"the URL to use for dev mode"`
// ExplorerURL defines the URL to use for the explorer
ExplorerURL string `default:"" usage:"the URL to use for the explorer"`

Auth struct {
// SessionTimeout defines how long the auth session should last before expiring
Expand Down
1 change: 1 addition & 0 deletions config_defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"bindAddress": "localhost:8081",
"developerMode": false,
"developerModeURL": "http://127.0.0.1:9090",
"explorerURL": "",
"auth": {
"sessionTimeout": "72h",
"username": "admin",
Expand Down
2 changes: 2 additions & 0 deletions configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Example:
| bindAddress | The bind address on which the dashboard can be accessed from | string | "localhost:8081" |
| developerMode | Whether to run the dashboard in dev mode | boolean | false |
| developerModeURL | The URL to use for dev mode | string | "http://127.0.0.1:9090" |
| explorerURL | The URL to use for the explorer | string | "" |
| [auth](#dashboard_auth) | Configuration for auth | object | |
| debugRequestLoggerEnabled | Whether the debug logging for requests should be enabled | boolean | false |

Expand Down Expand Up @@ -151,6 +152,7 @@ Example:
"bindAddress": "localhost:8081",
"developerMode": false,
"developerModeURL": "http://127.0.0.1:9090",
"explorerURL": "",
"auth": {
"sessionTimeout": "72h",
"username": "admin",
Expand Down
44 changes: 22 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ toolchain go1.22.0
require (
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/iancoleman/orderedmap v0.3.0
github.com/iotaledger/hive.go/app v0.0.0-20240419094509-31dbb7270ad9
github.com/iotaledger/hive.go/crypto v0.0.0-20240419094509-31dbb7270ad9
github.com/iotaledger/hive.go/ierrors v0.0.0-20240419094509-31dbb7270ad9
github.com/iotaledger/hive.go/lo v0.0.0-20240419094509-31dbb7270ad9
github.com/iotaledger/hive.go/log v0.0.0-20240419094509-31dbb7270ad9
github.com/iotaledger/hive.go/runtime v0.0.0-20240419094509-31dbb7270ad9
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20240419094509-31dbb7270ad9
github.com/iotaledger/hive.go/web v0.0.0-20240419094509-31dbb7270ad9
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20240419103152-aa12c9f5bd66
github.com/iotaledger/iota.go/v4 v4.0.0-20240419095144-054bd7d2ba61
github.com/labstack/echo/v4 v4.11.4
github.com/iotaledger/hive.go/app v0.0.0-20240425095808-113b21573349
github.com/iotaledger/hive.go/crypto v0.0.0-20240425095808-113b21573349
github.com/iotaledger/hive.go/ierrors v0.0.0-20240425095808-113b21573349
github.com/iotaledger/hive.go/lo v0.0.0-20240425095808-113b21573349
github.com/iotaledger/hive.go/log v0.0.0-20240425095808-113b21573349
github.com/iotaledger/hive.go/runtime v0.0.0-20240425095808-113b21573349
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20240425095808-113b21573349
github.com/iotaledger/hive.go/web v0.0.0-20240425095808-113b21573349
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20240425100742-5c85b6d16701
github.com/iotaledger/iota.go/v4 v4.0.0-20240425100055-540c74851d65
github.com/labstack/echo/v4 v4.12.0
github.com/prometheus/client_golang v1.19.0
go.uber.org/atomic v1.11.0
go.uber.org/dig v1.17.1
Expand All @@ -30,27 +30,27 @@ require (
filippo.io/edwards25519 v1.1.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.3 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/eclipse/paho.mqtt.golang v1.4.3 // indirect
github.com/ethereum/go-ethereum v1.13.15 // indirect
github.com/ethereum/go-ethereum v1.14.0 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/felixge/fgprof v0.9.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/google/go-github v17.0.0+incompatible // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/pprof v0.0.0-20240416155748-26353dc0451f // indirect
github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/holiman/uint256 v1.2.4 // indirect
github.com/iotaledger/hive.go/constraints v0.0.0-20240419094509-31dbb7270ad9 // indirect
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20240419094509-31dbb7270ad9 // indirect
github.com/iotaledger/hive.go/ds v0.0.0-20240419094509-31dbb7270ad9 // indirect
github.com/iotaledger/hive.go/stringify v0.0.0-20240419094509-31dbb7270ad9 // indirect
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20240419095729-912f1c2df45d // indirect
github.com/iotaledger/hive.go/constraints v0.0.0-20240425095808-113b21573349 // indirect
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20240425095808-113b21573349 // indirect
github.com/iotaledger/hive.go/ds v0.0.0-20240425095808-113b21573349 // indirect
github.com/iotaledger/hive.go/stringify v0.0.0-20240425095808-113b21573349 // indirect
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20240425100432-05e1bf8fc089 // indirect
github.com/knadh/koanf v1.5.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/labstack/gommon v0.4.2 // indirect
Expand All @@ -63,9 +63,9 @@ require (
github.com/pasztorpisti/qs v0.0.0-20171216220353-8d6c33ee906c // indirect
github.com/pelletier/go-toml/v2 v2.2.1 // indirect
github.com/petermattis/goid v0.0.0-20240327183114-c42a807a84ba // indirect
github.com/prometheus/client_model v0.6.0 // indirect
github.com/prometheus/common v0.50.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.53.0 // indirect
github.com/prometheus/procfs v0.14.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
Expand Down
Loading

0 comments on commit 85b538a

Please sign in to comment.