Skip to content

Commit

Permalink
Update UI Server
Browse files Browse the repository at this point in the history
  • Loading branch information
temporal-data committed Nov 7, 2023
1 parent 81d2e71 commit 640284a
Show file tree
Hide file tree
Showing 136 changed files with 121 additions and 369 deletions.
12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.ONESHELL:
.PHONY:

all: install-utils build
all: build

##### Variables ######

Expand All @@ -21,16 +21,6 @@ build-server:
go mod tidy
go build -o ui-server ./cmd/server/main.go

##### Install dependencies #####

install-utils:
@go install github.com/temporalio/gogo-protobuf/protoc-gen-gogoslick@latest
@GO111MODULE=off go get github.com/temporalio/gogo-protobuf/protoc-gen-gogoslick
@go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

@go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@latest
@go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest

##### Test #####
test: clean-test-results
@printf $(COLOR) "Running unit tests..."
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
## Development

For contributions follow UI's development guide https://github.com/temporalio/ui


## To View gRPC routes:
[Temporal API Workflowservice](https://github.com/temporalio/api/blob/master/temporal/api/workflowservice/v1/service.proto)
1 change: 0 additions & 1 deletion config/development.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
publicPath:
port: 8081
enableUi: true
enableOpenApi: true
cors:
cookieInsecure: false
allowOrigins:
Expand Down
1 change: 0 additions & 1 deletion docker/config-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ port: {{ default .Env.TEMPORAL_UI_PORT "8080" }}
publicPath: {{ default .Env.TEMPORAL_UI_PUBLIC_PATH "" }}
enableUi: {{ default .Env.TEMPORAL_UI_ENABLED "true" }}
cloudUi: {{ default .Env.TEMPORAL_CLOUD_UI "false" }}
enableOpenApi: {{ default .Env.TEMPORAL_OPENAPI_ENABLED "true" }}
defaultNamespace: {{ default .Env.TEMPORAL_DEFAULT_NAMESPACE "default" }}
feedbackUrl: {{ default .Env.TEMPORAL_FEEDBACK_URL "" }}
notifyOnNewVersion: {{ default .Env.TEMPORAL_NOTIFY_ON_NEW_VERSION "true" }}
Expand Down
3 changes: 0 additions & 3 deletions openapi/assets/README.md

This file was deleted.

Binary file removed openapi/assets/favicon-16x16.png
Binary file not shown.
Binary file removed openapi/assets/favicon-32x32.png
Binary file not shown.
16 changes: 0 additions & 16 deletions openapi/assets/index.css

This file was deleted.

19 changes: 0 additions & 19 deletions openapi/assets/index.html

This file was deleted.

79 changes: 0 additions & 79 deletions openapi/assets/oauth2-redirect.html

This file was deleted.

22 changes: 0 additions & 22 deletions openapi/assets/swagger-initializer.js

This file was deleted.

3 changes: 0 additions & 3 deletions openapi/assets/swagger-ui-bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion openapi/assets/swagger-ui-bundle.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions openapi/assets/swagger-ui-standalone-preset.js

This file was deleted.

1 change: 0 additions & 1 deletion openapi/assets/swagger-ui-standalone-preset.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions openapi/assets/swagger-ui.css

This file was deleted.

1 change: 0 additions & 1 deletion openapi/assets/swagger-ui.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions openapi/assets/swagger-ui.js

This file was deleted.

1 change: 0 additions & 1 deletion openapi/assets/swagger-ui.js.map

This file was deleted.

13 changes: 0 additions & 13 deletions openapi/embed.go

This file was deleted.

1 change: 0 additions & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ type (
EnableUI bool `yaml:"enableUi"`
CloudUI bool `yaml:"cloudUi"`
UIAssetPath string `yaml:"uiAssetPath"`
EnableOpenAPI bool `yaml:"enableOpenApi"`
CORS CORS `yaml:"cors"`
DefaultNamespace string `yaml:"defaultNamespace"`
FeedbackURL string `yaml:"feedbackUrl"`
Expand Down
64 changes: 0 additions & 64 deletions server/route/openapi.go

This file was deleted.

8 changes: 0 additions & 8 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import (
"github.com/temporalio/ui-server/v2/server/route"
"github.com/temporalio/ui-server/v2/server/server_options"

"github.com/temporalio/ui-server/v2/openapi"
"github.com/temporalio/ui-server/v2/ui"
)

Expand Down Expand Up @@ -102,13 +101,6 @@ func NewServer(opts ...server_options.ServerOption) *Server {
route.SetHealthRoute(e)
route.SetAPIRoutes(e, cfgProvider, serverOpts.APIMiddleware)
route.SetAuthRoutes(e, cfgProvider)
if cfg.EnableOpenAPI {
assets, err := openapi.Assets()
if err != nil {
panic(err)
}
route.SetOpenAPIUIRoutes(e, assets)
}
if cfg.EnableUI {
var assets fs.FS
if cfg.UIAssetPath != "" {
Expand Down
1 change: 1 addition & 0 deletions ui/assets/local/_app/immutable/assets/app.05803167.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion ui/assets/local/_app/immutable/assets/app.3dfd645e.css

This file was deleted.

Loading

0 comments on commit 640284a

Please sign in to comment.