mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
Closes https://github.com/coder/coder/issues/15074 We have a hard-coded list of countries at https://github.com/coder/coder/blob/main/site/src/pages/SetupPage/countries.tsx. This means Go code in coder/coder doesn't have an easy way of utilizing it. ## Solution Generate countries.tsx from Go code. Generated by `scripts/apitypings`
12 lines
260 B
Plaintext
12 lines
260 B
Plaintext
// Code generated by typegen/main.go. DO NOT EDIT.
|
|
|
|
// Countries represents all supported countries with their flags
|
|
export const countries = [
|
|
{{- range $country := . }}
|
|
{
|
|
name: "{{ $country.Name }}",
|
|
flag: "{{ $country.Flag }}",
|
|
},
|
|
{{- end }}
|
|
];
|