forked from TencentBlueKing/blueking-dbm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): 集群部署增加园区和调整容灾要求和增加预估成本展示 TencentBlueKing#9399
- Loading branch information
Showing
126 changed files
with
2,683 additions
and
2,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
import { t } from '@locales/index'; | ||
|
||
export const ClusterAffinityMap = { | ||
CROS_SUBZONE: t('同城跨园区'), | ||
CROSS_RACK: t('跨机架'), | ||
MAX_EACH_ZONE_EQUAL: t('尽量均匀分布'), | ||
NONE: t('同城无园区要求'), | ||
SAME_SUBZONE: t('同城同园区'), | ||
SAME_SUBZONE_CROSS_SWTICH: t('同城同园区跨机架'), | ||
export enum Affinity { | ||
CROS_SUBZONE = 'CROS_SUBZONE', | ||
CROSS_RACK = 'CROSS_RACK', | ||
MAX_EACH_ZONE_EQUAL = 'MAX_EACH_ZONE_EQUAL', | ||
NONE = 'NONE', | ||
SAME_SUBZONE_CROSS_SWTICH = 'SAME_SUBZONE_CROSS_SWTICH', | ||
} | ||
|
||
export const affinityMap = { | ||
[Affinity.CROS_SUBZONE]: t('跨园区'), | ||
[Affinity.CROSS_RACK]: t('不限园区'), | ||
[Affinity.MAX_EACH_ZONE_EQUAL]: t('尽量分散'), | ||
[Affinity.NONE]: t('无'), | ||
[Affinity.SAME_SUBZONE_CROSS_SWTICH]: t('指定园区'), | ||
// SAME_SUBZONE: t('同城同园区'), // 弃用 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.