forked from labring/sealos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system.ts
42 lines (39 loc) · 999 Bytes
/
system.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
export type SystemConfigType = {
scripts: ScriptConfig[];
isSystemConfigEnabled: boolean; // Compatible with older versions
backgroundImageUrl: string;
imageFallBackUrl: string;
title: string;
metaTitle: string;
metaDescription: string;
showGithubStar: boolean;
};
export type ScriptConfig = {
src: string;
'data-website-id'?: string;
};
export type LoginProps = {
wechat_client_id: string;
github_client_id: string;
google_client_id: string;
callback_url: string;
cf_sitekey: string;
service_protocol_zh: string;
private_protocol_zh: string;
service_protocol_en: string;
private_protocol_en: string;
needPassword: boolean;
oauth_proxy: string;
needSms: boolean;
needGithub: boolean;
needWechat: boolean;
needGoogle: boolean;
};
export type SystemEnv = {
SEALOS_CLOUD_DOMAIN: string;
wechatEnabledRecharge: boolean;
rechargeEnabled: boolean;
licenseEnabled: boolean;
guideEnabled: boolean;
openWechatEnabled: boolean;
} & LoginProps;