Skip to content

Commit

Permalink
feat(frontend): 新增doris集群管理页面 #3391
Browse files Browse the repository at this point in the history
  • Loading branch information
3octaves authored and jinquantianxia committed Jun 24, 2024
1 parent 27ca7d8 commit 3cb31d0
Show file tree
Hide file tree
Showing 119 changed files with 7,336 additions and 365 deletions.
19 changes: 19 additions & 0 deletions dbm-ui/frontend/src/common/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export enum DBTypes {
INFLUXDB = 'influxdb',
SPIDER = 'spider',
RIAK = 'riak',
DORIS = 'doris',
}
export type DBTypesValues = `${DBTypes}`;

Expand Down Expand Up @@ -61,6 +62,7 @@ export enum ClusterTypes {
PULSAE = 'pulsar',
INFLUXDB = 'influxdb',
RIAK = 'riak',
DORIS = 'doris',
}

// 机器类型
Expand Down Expand Up @@ -149,6 +151,9 @@ export const clusterTypeInfos = {
[ClusterTypes.SQLSERVER_SINGLE]: {
dbType: DBTypes.SQLSERVER,
},
[ClusterTypes.DORIS]: {
dbType: DBTypes.DORIS,
},
};
export type ClusterTypeInfos = keyof typeof clusterTypeInfos;

Expand Down Expand Up @@ -336,6 +341,14 @@ export enum TicketTypes {
REDIS_INSTANCE_PROXY_OPEN = 'REDIS_INSTANCE_PROXY_OPEN', // redis 主从集群启用
REDIS_INSTANCE_PROXY_CLOSE = 'REDIS_INSTANCE_PROXY_CLOSE', // redis 主从集群禁用
REDIS_INSTANCE_DESTROY = 'REDIS_INSTANCE_DESTROY', // redis 主从集群删除
DORIS_APPLY = 'DORIS_APPLY', // doris 部署
DORIS_ENABLE = 'DORIS_ENABLE', // doris 启用
DORIS_DISABLE = 'DORIS_DISABLE', // doris 禁用
DORIS_DESTROY = 'DORIS_DESTROY', // doris 删除
DORIS_REBOOT = 'DORIS_REBOOT', // doris 重启
DORIS_REPLACE = 'DORIS_REPLACE', // doris 替换
DORIS_SCALE_UP = 'DORIS_SCALE_UP', // doris 扩容
DORIS_SHRINK = 'DORIS_SHRINK', // doris 缩容
MYSQL_DUMP_DATA = 'MYSQL_DUMP_DATA', // 数据导出
}
export type TicketTypesStrings = keyof typeof TicketTypes;
Expand Down Expand Up @@ -434,6 +447,11 @@ export const bigDataType = {
name: t('Riak集群部署'),
type: ClusterTypes.RIAK,
},
[TicketTypes.DORIS_APPLY]: {
id: TicketTypes.DORIS_APPLY,
name: t('Doris集群部署'),
type: ClusterTypes.DORIS,
},
};

export const mongoType = {
Expand Down Expand Up @@ -534,6 +552,7 @@ export enum UserPersonalSettings {
REDIS_HA_INSTANCE_SETTINGS = 'REDIS_HA_INSTANCE_SETTINGS',
SQLSERVER_TOOLBOX_MENUS = 'SQLSERVER_TOOLBOX_MENUS',
SQLSERVER_TOOLBOX_FAVOR = 'SQLSERVER_TOOLBOX_FAVOR',
DORIS_TABLE_SETTINGS = 'DORIS_TABLE_SETTINGS',
}

/**
Expand Down
Loading

0 comments on commit 3cb31d0

Please sign in to comment.