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:
@@ -60,6 +60,25 @@ export const MockBuildInfo: TypesGen.BuildInfoResponse = {
|
||||
version: "v99.999.9999+c9cdf14",
|
||||
}
|
||||
|
||||
export const MockSupportLinks: TypesGen.LinkConfig[] = [
|
||||
{
|
||||
name: "First link",
|
||||
target: "http://first-link",
|
||||
icon: "chat",
|
||||
},
|
||||
{
|
||||
name: "Second link",
|
||||
target: "http://second-link",
|
||||
icon: "docs",
|
||||
},
|
||||
{
|
||||
name: "Third link",
|
||||
target:
|
||||
"https://github.com/coder/coder/issues/new?labels=needs+grooming&body={CODER_BUILD_INFO}",
|
||||
icon: "",
|
||||
},
|
||||
]
|
||||
|
||||
export const MockUpdateCheck: TypesGen.UpdateCheckResponse = {
|
||||
current: true,
|
||||
url: "file:///mock-url",
|
||||
|
||||
Reference in New Issue
Block a user