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 Mar 7, 2024
1 parent f8614a5 commit 22d3e82
Show file tree
Hide file tree
Showing 55 changed files with 5,891 additions and 90 deletions.
1 change: 1 addition & 0 deletions dbm-ui/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"vite-plugin-html-env": "1.2.8",
"vite-plugin-imp": "2.4.0",
"vite-plugin-style-import": "2.0.0",
"vue-component-type-helpers": "^2.0.4",
"vue-tsc": "^1.8.22"
},
"simple-git-hooks": {
Expand Down
23 changes: 21 additions & 2 deletions dbm-ui/frontend/src/common/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export enum DBTypes {
SPIDER = 'spider',
RIAK = 'riak',
MONGODB = 'mongodb',
SQLSERVER = 'sqlserver'
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 @@ -319,6 +324,14 @@ export enum TicketTypes {
MONGODB_BACKUP = 'MONGODB_BACKUP', // mongo 库表备份
MONGODB_RESTORE = 'MONGODB_RESTORE', // mongo 定点构造
MONGODB_TEMPORARY_DESTROY = 'MONGODB_TEMPORARY_DESTROY', // mongo 临时集群销毁
DORIS_APPLY = 'DORIS_APPLY',
DORIS_DISABLE = 'DORIS_DISABLE',
DORIS_DESTROY = 'DORIS_DESTROY',
DORIS_ENABLE = 'DORIS_ENABLE',
DORIS_SCALE_UP = 'DORIS_SCALE_UP',
DORIS_SHRINK = 'DORIS_SHRINK',
DORIS_REPLACE = 'DORIS_REPLACE',
DORIS_REBOOT = 'DORIS_REBOOT',
}
export type TicketTypesStrings = keyof typeof TicketTypes;

Expand Down Expand Up @@ -377,7 +390,7 @@ export const sqlServerType = {
},
};

export type SqlServerTypeString = keyof typeof sqlServerType
export type SqlServerTypeString = keyof typeof sqlServerType;

export const bigDataType = {
[TicketTypes.ES_APPLY]: {
Expand Down Expand Up @@ -410,6 +423,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 @@ -502,6 +520,7 @@ export enum UserPersonalSettings {
MONGODB_INSTANCE_TABLE_SETTINGS = 'MONGODB_INSTANCE_TABLE_SETTINGS',
MONGODB_REPLICA_SET_SETTINGS = 'MONGODB_REPLICA_SET_SETTINGS',
MONGODB_SHARED_CLUSTER_SETTINGS = 'MONGODB_SHARED_CLUSTER_SETTINGS',
DORIS_TABLE_SETTINGS = 'DORIS_TABLE_SETTINGS',
}

/**
Expand Down
Loading

0 comments on commit 22d3e82

Please sign in to comment.