mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Enable custom support links (#6313)
* backend: support links * frontend: Support links * fmt * test: CODER_SUPPORT_LINKS_0_NAME * Go tests * Use UpdateAppearanceConfig * ui: UpdateAppearanceConfig * fix: fmt * Fix: site * Fix: site tests * fix: fmt * fix * test: check default support links
This commit is contained in:
Generated
+82
-2
@@ -93,7 +93,7 @@ const docTemplate = `{
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.AppearanceConfig"
|
||||
"$ref": "#/definitions/codersdk.UpdateAppearanceConfig"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -101,7 +101,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.AppearanceConfig"
|
||||
"$ref": "#/definitions/codersdk.UpdateAppearanceConfig"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5379,6 +5379,12 @@ const docTemplate = `{
|
||||
},
|
||||
"service_banner": {
|
||||
"$ref": "#/definitions/codersdk.ServiceBannerConfig"
|
||||
},
|
||||
"support_links": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.LinkConfig"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -6196,6 +6202,9 @@ const docTemplate = `{
|
||||
"strict_transport_security_options": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-array_string"
|
||||
},
|
||||
"support": {
|
||||
"$ref": "#/definitions/codersdk.SupportConfig"
|
||||
},
|
||||
"swagger": {
|
||||
"$ref": "#/definitions/codersdk.SwaggerConfig"
|
||||
},
|
||||
@@ -6254,6 +6263,44 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.DeploymentConfigField-array_codersdk_LinkConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"default": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.LinkConfig"
|
||||
}
|
||||
},
|
||||
"enterprise": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"flag": {
|
||||
"type": "string"
|
||||
},
|
||||
"hidden": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"secret": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"shorthand": {
|
||||
"type": "string"
|
||||
},
|
||||
"usage": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.LinkConfig"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.DeploymentConfigField-array_string": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6651,6 +6698,20 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.LinkConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"icon": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.LogLevel": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -7362,6 +7423,14 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.SupportConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"links": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-array_codersdk_LinkConfig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.SwaggerConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -7795,6 +7864,17 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.UpdateAppearanceConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logo_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"service_banner": {
|
||||
"$ref": "#/definitions/codersdk.ServiceBannerConfig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.UpdateCheckResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Generated
+82
-2
@@ -71,7 +71,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.AppearanceConfig"
|
||||
"$ref": "#/definitions/codersdk.UpdateAppearanceConfig"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -79,7 +79,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.AppearanceConfig"
|
||||
"$ref": "#/definitions/codersdk.UpdateAppearanceConfig"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4760,6 +4760,12 @@
|
||||
},
|
||||
"service_banner": {
|
||||
"$ref": "#/definitions/codersdk.ServiceBannerConfig"
|
||||
},
|
||||
"support_links": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.LinkConfig"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -5516,6 +5522,9 @@
|
||||
"strict_transport_security_options": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-array_string"
|
||||
},
|
||||
"support": {
|
||||
"$ref": "#/definitions/codersdk.SupportConfig"
|
||||
},
|
||||
"swagger": {
|
||||
"$ref": "#/definitions/codersdk.SwaggerConfig"
|
||||
},
|
||||
@@ -5574,6 +5583,44 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.DeploymentConfigField-array_codersdk_LinkConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"default": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.LinkConfig"
|
||||
}
|
||||
},
|
||||
"enterprise": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"flag": {
|
||||
"type": "string"
|
||||
},
|
||||
"hidden": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"secret": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"shorthand": {
|
||||
"type": "string"
|
||||
},
|
||||
"usage": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.LinkConfig"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.DeploymentConfigField-array_string": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5961,6 +6008,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.LinkConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"icon": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.LogLevel": {
|
||||
"type": "string",
|
||||
"enum": ["trace", "debug", "info", "warn", "error"],
|
||||
@@ -6608,6 +6669,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.SupportConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"links": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-array_codersdk_LinkConfig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.SwaggerConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -7011,6 +7080,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.UpdateAppearanceConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logo_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"service_banner": {
|
||||
"$ref": "#/definitions/codersdk.ServiceBannerConfig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.UpdateCheckResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user