mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
f8d30850e5
## About the changes Promoted experimental networkView flag into a configuration that relies on prometheusApi being configured. Also, a follow-up on https://github.com/Unleash/unleash/pull/3054 moving this code to enterprise because it doesn't make sense to maintain this code in OSS where it's not being used.
70 lines
1.5 KiB
TypeScript
70 lines
1.5 KiB
TypeScript
import { ReactNode } from 'react';
|
|
|
|
export interface IUiConfig {
|
|
authenticationType?: string;
|
|
baseUriPath?: string;
|
|
flags: IFlags;
|
|
name: string;
|
|
slogan: string;
|
|
environment?: string;
|
|
unleashUrl?: string;
|
|
version: string;
|
|
versionInfo?: IVersionInfo;
|
|
links: ILinks[];
|
|
disablePasswordAuth?: boolean;
|
|
emailEnabled?: boolean;
|
|
networkViewEnabled: boolean;
|
|
|
|
maintenanceMode?: boolean;
|
|
toast?: IProclamationToast;
|
|
segmentValuesLimit?: number;
|
|
strategySegmentsLimit?: number;
|
|
frontendApiOrigins?: string[];
|
|
}
|
|
|
|
export interface IProclamationToast {
|
|
message: string;
|
|
id: string;
|
|
severity: 'success' | 'info' | 'warning' | 'error';
|
|
link: string;
|
|
}
|
|
|
|
export interface IFlags {
|
|
P: boolean;
|
|
RE: boolean;
|
|
EEA?: boolean;
|
|
SE?: boolean;
|
|
T?: boolean;
|
|
UNLEASH_CLOUD?: boolean;
|
|
UG?: boolean;
|
|
ENABLE_DARK_MODE_SUPPORT?: boolean;
|
|
embedProxyFrontend?: boolean;
|
|
maintenance?: boolean;
|
|
maintenanceMode?: boolean;
|
|
messageBanner?: boolean;
|
|
featuresExportImport?: boolean;
|
|
newProjectOverview?: boolean;
|
|
caseInsensitiveInOperators?: boolean;
|
|
crOnVariants?: boolean;
|
|
showProjectApiAccess?: boolean;
|
|
}
|
|
|
|
export interface IVersionInfo {
|
|
instanceId: string;
|
|
isLatest: boolean;
|
|
latest: Partial<IVersion>;
|
|
current: IVersion;
|
|
}
|
|
|
|
export interface IVersion {
|
|
oss: string;
|
|
enterprise: string;
|
|
}
|
|
|
|
export interface ILinks {
|
|
value: string;
|
|
icon: ReactNode;
|
|
href: string;
|
|
title: string;
|
|
}
|