Skip to content

Commit

Permalink
feat: change nav bar color by config.navColor
Browse files Browse the repository at this point in the history
Signed-off-by: krrrr38 <[email protected]>
  • Loading branch information
krrrr38 committed Jan 19, 2022
1 parent 13bc89b commit 6030c50
Show file tree
Hide file tree
Showing 22 changed files with 232 additions and 729 deletions.
14 changes: 2 additions & 12 deletions api/jsonschema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5448,8 +5448,8 @@
"managedNamespace": {
"type": "string"
},
"ui": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.UI"
"navColor": {
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -6865,16 +6865,6 @@
],
"type": "object"
},
"io.argoproj.workflow.v1alpha1.UI": {
"description": "UI defines a config for UI",
"properties": {
"navColor": {
"description": "NavColor is an ui navigation bar theme which switch the design",
"type": "string"
}
},
"type": "object"
},
"io.argoproj.workflow.v1alpha1.UpdateCronWorkflowRequest": {
"properties": {
"cronWorkflow": {
Expand Down
14 changes: 2 additions & 12 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -9711,8 +9711,8 @@
"managedNamespace": {
"type": "string"
},
"ui": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.UI"
"navColor": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -11127,16 +11127,6 @@
}
}
},
"io.argoproj.workflow.v1alpha1.UI": {
"description": "UI defines a config for UI",
"type": "object",
"properties": {
"navColor": {
"description": "NavColor is an ui navigation bar theme which switch the design",
"type": "string"
}
}
},
"io.argoproj.workflow.v1alpha1.UpdateCronWorkflowRequest": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ type Config struct {
Images map[string]Image `json:"images,omitempty"`

RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`

// NavColor is an ui navigation bar background color
NavColor string `json:"navColor,omitempty"`
}

func (c Config) GetContainerRuntimeExecutor(labels labels.Labels) (string, error) {
Expand Down
112 changes: 51 additions & 61 deletions pkg/apiclient/info/info.pb.go

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

2 changes: 1 addition & 1 deletion pkg/apiclient/info/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ message GetInfoRequest {
message InfoResponse {
string managedNamespace = 1;
repeated github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.Link links = 2;
github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.UI ui = 3;
string navColor = 3;
}

message GetVersionRequest {
Expand Down
Loading

0 comments on commit 6030c50

Please sign in to comment.