mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-08 15:52:15 +08:00
fix: 样式 & 文案优化
This commit is contained in:
@@ -21,7 +21,6 @@ export default {
|
|||||||
|
|
||||||
[`menu.${systemKey}.cluster`]: 'Cluster',
|
[`menu.${systemKey}.cluster`]: 'Cluster',
|
||||||
[`menu.${systemKey}.cluster.overview`]: 'Overview',
|
[`menu.${systemKey}.cluster.overview`]: 'Overview',
|
||||||
[`menu.${systemKey}.cluster.balance`]: 'Load Rebalance',
|
|
||||||
|
|
||||||
[`menu.${systemKey}.broker`]: 'Broker',
|
[`menu.${systemKey}.broker`]: 'Broker',
|
||||||
[`menu.${systemKey}.broker.dashbord`]: 'Overview',
|
[`menu.${systemKey}.broker.dashbord`]: 'Overview',
|
||||||
@@ -45,7 +44,7 @@ export default {
|
|||||||
[`menu.${systemKey}.consumer-group.group-list`]: 'GroupList',
|
[`menu.${systemKey}.consumer-group.group-list`]: 'GroupList',
|
||||||
|
|
||||||
[`menu.${systemKey}.operation`]: 'Operation',
|
[`menu.${systemKey}.operation`]: 'Operation',
|
||||||
[`menu.${systemKey}.operation.balance`]: 'Load Rebalance',
|
[`menu.${systemKey}.operation.balance`]: 'Rebalance',
|
||||||
[`menu.${systemKey}.operation.jobs`]: 'Job',
|
[`menu.${systemKey}.operation.jobs`]: 'Job',
|
||||||
|
|
||||||
[`menu.${systemKey}.acls`]: 'ACLs',
|
[`menu.${systemKey}.acls`]: 'ACLs',
|
||||||
|
|||||||
@@ -53,6 +53,10 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
.d-range-time-input {
|
.d-range-time-input {
|
||||||
height: 27px !important;
|
height: 27px !important;
|
||||||
|
padding: 0 11px;
|
||||||
|
input{
|
||||||
|
line-height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.divider {
|
.divider {
|
||||||
width: 1px;
|
width: 1px;
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ interface PropsType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const typeObj: any = {
|
const typeObj: any = {
|
||||||
1: '周期均衡',
|
1: '立即均衡',
|
||||||
2: '立即均衡',
|
2: '周期均衡',
|
||||||
};
|
};
|
||||||
|
|
||||||
const { request, post } = Utils;
|
const { request, post } = Utils;
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ const LoadBalance: React.FC = (props: any) => {
|
|||||||
breadcrumbs={[
|
breadcrumbs={[
|
||||||
{ label: '多集群管理', aHref: '/' },
|
{ label: '多集群管理', aHref: '/' },
|
||||||
{ label: global?.clusterInfo?.name, aHref: `/cluster/${global?.clusterInfo?.id}` },
|
{ label: global?.clusterInfo?.name, aHref: `/cluster/${global?.clusterInfo?.id}` },
|
||||||
{ label: 'Load Rebalance', aHref: `` },
|
{ label: 'Rebalance', aHref: `` },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ const AccessClusters = (props: any): JSX.Element => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (modifyKey) {
|
if (modifyKey) {
|
||||||
extraMsg[modifyKey] = `连接失败。${message}`;
|
extraMsg[modifyKey] = message;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -338,7 +338,7 @@ const AccessClusters = (props: any): JSX.Element => {
|
|||||||
<Form.Item
|
<Form.Item
|
||||||
name="bootstrapServers"
|
name="bootstrapServers"
|
||||||
label="Bootstrap Servers"
|
label="Bootstrap Servers"
|
||||||
extra={<span className={extra.bootstrapExtra.includes('连接成功') ? 'error-extra-info' : ''}>{extra.bootstrapExtra}</span>}
|
extra={<span className={!extra.bootstrapExtra.includes('连接成功') ? 'error-extra-info' : ''}>{extra.bootstrapExtra}</span>}
|
||||||
validateTrigger={'onBlur'}
|
validateTrigger={'onBlur'}
|
||||||
rules={[
|
rules={[
|
||||||
{
|
{
|
||||||
@@ -374,7 +374,7 @@ const AccessClusters = (props: any): JSX.Element => {
|
|||||||
<Form.Item
|
<Form.Item
|
||||||
name="zookeeper"
|
name="zookeeper"
|
||||||
label="Zookeeper"
|
label="Zookeeper"
|
||||||
extra={<span className={extra.zooKeeperExtra.includes('连接成功') ? 'error-extra-info' : ''}>{extra.zooKeeperExtra}</span>}
|
extra={<span className={!extra.zooKeeperExtra.includes('连接成功') ? 'error-extra-info' : ''}>{extra.zooKeeperExtra}</span>}
|
||||||
validateStatus={zookeeperErrorStatus ? 'error' : 'success'}
|
validateStatus={zookeeperErrorStatus ? 'error' : 'success'}
|
||||||
validateTrigger={'onBlur'}
|
validateTrigger={'onBlur'}
|
||||||
rules={[
|
rules={[
|
||||||
|
|||||||
@@ -218,10 +218,10 @@ export default (props: any) => {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
<div className="create-topic-flex-layout">
|
<div className="create-topic-flex-layout">
|
||||||
<Form.Item name="partitionNum" label="分区数" rules={[{ required: true, message: '请输入分区数' }]}>
|
<Form.Item name="partitionNum" label="分区数" rules={[{ required: true, message: '请输入分区数' }]}>
|
||||||
<InputNumber min={1} style={{ width: '100%' }} />
|
<InputNumber min={1} style={{ width: '100%' }} addonAfter="个" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item name="replicaNum" label="副本数" rules={[{ required: true, message: '请输入副本数' }]}>
|
<Form.Item name="replicaNum" label="副本数" rules={[{ required: true, message: '请输入副本数' }]}>
|
||||||
<InputNumber min={1} style={{ width: '100%' }} />
|
<InputNumber min={1} style={{ width: '100%' }} addonAfter="个" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</div>
|
</div>
|
||||||
<Form.Item className="data-save-time-label" name="dataSaveTime">
|
<Form.Item className="data-save-time-label" name="dataSaveTime">
|
||||||
|
|||||||
Reference in New Issue
Block a user