mirror of
https://github.com/clearml/clearml-web
synced 2025-06-26 18:27:02 +00:00
101 lines
2.8 KiB
TypeScript
101 lines
2.8 KiB
TypeScript
import versionConf from '../version.json';
|
|
|
|
export interface CommunityContext {
|
|
title?: string;
|
|
subtitle?: string;
|
|
background?: string;
|
|
backgroundPosition?: string;
|
|
list?: { icon: string; title: string; text: string }[];
|
|
}
|
|
|
|
export interface GettingStartedContext {
|
|
install?: string;
|
|
configure?: string;
|
|
packageName?: string;
|
|
}
|
|
|
|
export interface Legal {
|
|
TOULink?: string;
|
|
pricingLink?: string;
|
|
}
|
|
|
|
export interface Environment {
|
|
production: boolean;
|
|
apiBaseUrl: string;
|
|
fileBaseUrl: string;
|
|
displayedServerUrls?: {apiServer?: string; filesServer?: string};
|
|
productName: string;
|
|
demo: boolean;
|
|
headerPrefix: string;
|
|
version: string;
|
|
userKey: string;
|
|
userSecret: string;
|
|
companyID: string;
|
|
loginNotice?: string;
|
|
loginBanner?: string;
|
|
autoLogin?: boolean;
|
|
whiteLabelLogo?: boolean;
|
|
whiteLabelLink?: any;
|
|
whiteLabelLoginTitle?: string;
|
|
whiteLabelLoginSubtitle?: string;
|
|
whiteLabelSlogan?: string;
|
|
communityServer?: boolean;
|
|
enterpriseServer?: boolean;
|
|
accountAdministration: boolean;
|
|
communityContext?: CommunityContext;
|
|
GTM_ID?: string;
|
|
hideUpdateNotice: boolean;
|
|
showSurvey: boolean;
|
|
plotlyURL: string;
|
|
slackLink: string;
|
|
docsLink: string;
|
|
useFilesProxy: boolean;
|
|
branding?: {faviconUrl?: string; logo?: string; logoSmall?: string};
|
|
gettingStartedContext?: GettingStartedContext;
|
|
serverDownMessage?: string;
|
|
legal: Legal;
|
|
loginPopup?: string;
|
|
appsYouTubeIntroVideoId?: string;
|
|
newExperimentYouTubeVideoId: string;
|
|
baseHref?: string;
|
|
}
|
|
|
|
export const BASE_ENV = {
|
|
production: true,
|
|
apiBaseUrl: null,
|
|
fileBaseUrl: null,
|
|
productName: 'clearml',
|
|
demo: true,
|
|
headerPrefix: 'X-Clearml',
|
|
version: versionConf.version,
|
|
userKey: 'EYVQ385RW7Y2QQUH88CZ7DWIQ1WUHP',
|
|
userSecret: 'yfc8KQo*GMXb*9p((qcYC7ByFIpF7I&4VH3BfUYXH%o9vX1ZUZQEEw1Inc)S',
|
|
companyID: 'd1bd92a3b039400cbafc60a7a5b1e52b',
|
|
loginNotice: '',
|
|
loginBanner: '',
|
|
autoLogin: true,
|
|
whiteLabelLogo: null,
|
|
whiteLabelLink: null,
|
|
whiteLabelLoginTitle: null,
|
|
whiteLabelLoginSubtitle: null,
|
|
whiteLabelSlogan: null,
|
|
communityContext: {
|
|
background: 'app/webapp-common/assets/icons/human-polygon.svg'
|
|
},
|
|
GTM_ID: null,
|
|
hideUpdateNotice: false,
|
|
showSurvey: false,
|
|
accountAdministration: false,
|
|
useFilesProxy: false,
|
|
legal: {TOULink: 'https://allegro.ai/legal-platform-tou/'},
|
|
plotlyURL: 'app/webapp-common/assets/plotly-2.25.2.min.js',
|
|
slackLink: 'https://joinslack.clear.ml',
|
|
docsLink: 'https://clear.ml/docs',
|
|
branding: {logo: 'assets/logo-white.svg?v=7', logoSmall: 'assets/c-logo.svg?=2'},
|
|
serverDownMessage: 'The ClearML server is currently unavailable.<BR>' +
|
|
'Please try to reload this page in a little while.<BR>' +
|
|
'If the problem persists, verify your network connection is working and check the ClearML server logs for possible errors',
|
|
newExperimentYouTubeVideoId: 's3k9ntmQmD4'
|
|
} as Environment;
|
|
|