mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: expose application name via Appearance API (#9886)
This commit is contained in:
@@ -1088,6 +1088,7 @@ export const getAppearance = async (): Promise<TypesGen.AppearanceConfig> => {
|
||||
} catch (ex) {
|
||||
if (axios.isAxiosError(ex) && ex.response?.status === 404) {
|
||||
return {
|
||||
application_name: "",
|
||||
logo_url: "",
|
||||
service_banner: {
|
||||
enabled: false,
|
||||
|
||||
Generated
+2
@@ -46,6 +46,7 @@ export interface AppHostResponse {
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export interface AppearanceConfig {
|
||||
readonly application_name: string;
|
||||
readonly logo_url: string;
|
||||
readonly service_banner: ServiceBannerConfig;
|
||||
readonly support_links?: LinkConfig[];
|
||||
@@ -1091,6 +1092,7 @@ export interface UpdateActiveTemplateVersion {
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export interface UpdateAppearanceConfig {
|
||||
readonly application_name: string;
|
||||
readonly logo_url: string;
|
||||
readonly service_banner: ServiceBannerConfig;
|
||||
}
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ const meta: Meta<typeof AppearanceSettingsPageView> = {
|
||||
component: AppearanceSettingsPageView,
|
||||
args: {
|
||||
appearance: {
|
||||
application_name: "",
|
||||
logo_url: "https://github.com/coder.png",
|
||||
service_banner: {
|
||||
enabled: true,
|
||||
|
||||
@@ -2152,6 +2152,7 @@ export const MockDeploymentConfig: DeploymentConfig = {
|
||||
};
|
||||
|
||||
export const MockAppearanceConfig: TypesGen.AppearanceConfig = {
|
||||
application_name: "",
|
||||
logo_url: "",
|
||||
service_banner: {
|
||||
enabled: false,
|
||||
|
||||
Reference in New Issue
Block a user