mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-23 21:35:36 +08:00
fix: rule size
This commit is contained in:
parent
b5d0ef9f83
commit
2ff31d40b1
@ -5,6 +5,7 @@ import { ROUTES } from '~/constants'
|
|||||||
import {
|
import {
|
||||||
curTheme,
|
curTheme,
|
||||||
endpoint,
|
endpoint,
|
||||||
|
renderProxiesInSamePage,
|
||||||
selectedEndpoint,
|
selectedEndpoint,
|
||||||
useAutoSwitchTheme,
|
useAutoSwitchTheme,
|
||||||
useProxies,
|
useProxies,
|
||||||
@ -48,7 +49,9 @@ export const App = () => {
|
|||||||
<Show when={selectedEndpoint()}>
|
<Show when={selectedEndpoint()}>
|
||||||
<Route path={ROUTES.Overview} component={Overview} />
|
<Route path={ROUTES.Overview} component={Overview} />
|
||||||
<Route path={ROUTES.Proxies} component={Proxies} />
|
<Route path={ROUTES.Proxies} component={Proxies} />
|
||||||
<Route path={ROUTES.ProxyProvider} component={ProxyProvider} />
|
<Show when={!renderProxiesInSamePage()}>
|
||||||
|
<Route path={ROUTES.ProxyProvider} component={ProxyProvider} />
|
||||||
|
</Show>
|
||||||
<Route path={ROUTES.Rules} component={Rules} />
|
<Route path={ROUTES.Rules} component={Rules} />
|
||||||
<Route path={ROUTES.Conns} component={Connections} />
|
<Route path={ROUTES.Conns} component={Connections} />
|
||||||
<Route path={ROUTES.Log} component={Logs} />
|
<Route path={ROUTES.Log} component={Logs} />
|
||||||
|
@ -48,7 +48,9 @@ export default () => {
|
|||||||
<div class="card card-bordered card-compact mb-2 bg-base-200 p-4">
|
<div class="card card-bordered card-compact mb-2 bg-base-200 p-4">
|
||||||
<div class="break-all">
|
<div class="break-all">
|
||||||
{rule.payload}
|
{rule.payload}
|
||||||
{rule.size !== -1 && ` (${rule.size})`}
|
{typeof rule.size === 'number' &&
|
||||||
|
rule.size !== -1 &&
|
||||||
|
` (${rule.size})`}
|
||||||
</div>
|
</div>
|
||||||
<div class="text-xs text-slate-500">
|
<div class="text-xs text-slate-500">
|
||||||
{rule.type} :: {rule.proxy}
|
{rule.type} :: {rule.proxy}
|
||||||
|
Loading…
Reference in New Issue
Block a user