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 7, 2024
1 parent 043e162 commit 6134f25
Show file tree
Hide file tree
Showing 128 changed files with 7,442 additions and 431 deletions.
30 changes: 30 additions & 0 deletions dbm-ui/frontend/lib/bk-icon/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,18 @@ <h2 class="page-title">
<span class="icon bk-dbm-icon db-icon-kejian"></span>
<p class="icon-text">kejian</p>
</li>
<li class="icon-item" title="doris">
<span class="icon bk-dbm-icon db-icon-doris"></span>
<p class="icon-text">doris</p>
</li>
<li class="icon-item" title="daochu-2">
<span class="icon bk-dbm-icon db-icon-daochu-2"></span>
<p class="icon-text">daochu-2</p>
</li>
<li class="icon-item" title="daoru">
<span class="icon bk-dbm-icon db-icon-daoru"></span>
<p class="icon-text">daoru</p>
</li>
</ul>
<h3 class="describe-title">为什么使用</h3>
<ul class="use-describe">
Expand Down Expand Up @@ -2064,6 +2076,24 @@ <h3 class="describe-title">如何使用</h3>
</svg>
<p class="icon-text">kejian</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#db-icon-doris"></use>
</svg>
<p class="icon-text">doris</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#db-icon-daochu-2"></use>
</svg>
<p class="icon-text">daochu-2</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#db-icon-daoru"></use>
</svg>
<p class="icon-text">daoru</p>
</li>
</ul>
<h3 class="describe-title">为什么使用</h3>
<ul class="use-describe">
Expand Down
Binary file modified dbm-ui/frontend/lib/bk-icon/fonts/iconcool.eot
Binary file not shown.
9 changes: 9 additions & 0 deletions dbm-ui/frontend/lib/bk-icon/fonts/iconcool.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dbm-ui/frontend/lib/bk-icon/fonts/iconcool.ttf
Binary file not shown.
Binary file modified dbm-ui/frontend/lib/bk-icon/fonts/iconcool.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion dbm-ui/frontend/lib/bk-icon/iconcool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dbm-ui/frontend/lib/bk-icon/iconcool.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions dbm-ui/frontend/lib/bk-icon/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -602,3 +602,12 @@ url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
.db-icon-kejian:before {
content: "\e1ec";
}
.db-icon-doris:before {
content: "\e1ee";
}
.db-icon-daochu-2:before {
content: "\e1f0";
}
.db-icon-daoru:before {
content: "\e1ef";
}
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 6134f25

Please sign in to comment.