Skip to content

Commit

Permalink
feat(frontend): 新增doris集群管理页面 #3391
Browse files Browse the repository at this point in the history
  • Loading branch information
3octaves committed Jun 11, 2024
1 parent 8fae060 commit e80198d
Show file tree
Hide file tree
Showing 118 changed files with 7,354 additions and 388 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 {
RIAK = 'riak',
MONGODB = 'mongodb',
SQLSERVER = 'sqlserver',
DORIS = 'doris',
}
export type DBTypesValues = `${DBTypes}`;

Expand Down Expand Up @@ -61,6 +62,7 @@ export enum ClusterTypes {
RIAK = 'riak',
SQLSERVER_HA = 'sqlserver_ha',
SQLSERVER_SINGLE = 'sqlserver_single',
DORIS = 'doris',
}

// 机器类型
Expand Down Expand Up @@ -146,6 +148,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 @@ -332,6 +337,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 缩容
}
export type TicketTypesStrings = keyof typeof TicketTypes;

Expand Down Expand Up @@ -429,6 +442,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 @@ -527,6 +545,7 @@ export enum UserPersonalSettings {
REDIS_HA_TABLE_SETTINGS = 'REDIS_HA_TABLE_SETTINGS',
REDIS_INSTANCE_SETTINGS = 'REDIS_INSTANCE_SETTINGS',
REDIS_HA_INSTANCE_SETTINGS = 'REDIS_HA_INSTANCE_SETTINGS',
DORIS_TABLE_SETTINGS = 'DORIS_TABLE_SETTINGS',
}

/**
Expand Down
Loading

0 comments on commit e80198d

Please sign in to comment.