mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Fix: display count on rule provider
This commit is contained in:
parent
7be76d374a
commit
fe608889d8
@ -3,6 +3,7 @@
|
|||||||
.tag {
|
.tag {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
|
@ -16,7 +16,7 @@ export function Provider (props: ProvidersProps) {
|
|||||||
const { useTranslation, lang } = useI18n()
|
const { useTranslation, lang } = useI18n()
|
||||||
|
|
||||||
const { provider } = props
|
const { provider } = props
|
||||||
const { t } = useTranslation('Proxies')
|
const { t } = useTranslation('Rules')
|
||||||
|
|
||||||
const { visible, hide, show } = useVisible()
|
const { visible, hide, show } = useVisible()
|
||||||
|
|
||||||
@ -34,6 +34,7 @@ export function Provider (props: ProvidersProps) {
|
|||||||
<span className="rule-provider-name">{ provider.name }</span>
|
<span className="rule-provider-name">{ provider.name }</span>
|
||||||
<Tag>{ provider.vehicleType }</Tag>
|
<Tag>{ provider.vehicleType }</Tag>
|
||||||
<Tag className="rule-provider-behavior">{ provider.behavior }</Tag>
|
<Tag className="rule-provider-behavior">{ provider.behavior }</Tag>
|
||||||
|
<span className="rule-provider-update">{ `${t('ruleCount')}: ${provider.ruleCount}` }</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="rule-provider-header-part">
|
<div className="rule-provider-header-part">
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.rule-provider-behavior {
|
.rule-provider-behavior {
|
||||||
margin-left: 12px;
|
width: 80px;
|
||||||
|
margin: 0 20px 0 12px;
|
||||||
background-color: $color-primary-dark;
|
background-color: $color-primary-dark;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,8 @@ export default {
|
|||||||
Rules: {
|
Rules: {
|
||||||
title: 'Rules',
|
title: 'Rules',
|
||||||
providerTitle: 'Providers',
|
providerTitle: 'Providers',
|
||||||
providerUpdateTime: 'Last updated at'
|
providerUpdateTime: 'Last updated at',
|
||||||
|
ruleCount: 'Rule count'
|
||||||
},
|
},
|
||||||
Connections: {
|
Connections: {
|
||||||
title: 'Connections',
|
title: 'Connections',
|
||||||
|
@ -43,7 +43,8 @@ export default {
|
|||||||
Rules: {
|
Rules: {
|
||||||
title: '规则',
|
title: '规则',
|
||||||
providerTitle: '规则集',
|
providerTitle: '规则集',
|
||||||
providerUpdateTime: '最后更新于'
|
providerUpdateTime: '最后更新于',
|
||||||
|
ruleCount: '规则条数'
|
||||||
},
|
},
|
||||||
Connections: {
|
Connections: {
|
||||||
title: '连接',
|
title: '连接',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user