{group.name}}
- secondary={
-
-
- {group.type}
-
- {group.now}
-
-
-
- }
- slotProps={{
- secondary: {
- component: 'div',
- sx: {
- display: 'flex',
- alignItems: 'center',
- color: '#ccc',
- },
- },
- }}
- />
-
- )
-
- const proxyCount = (
-
-
-
- alpha(theme.palette.primary.main, 0.1),
- color: (theme) => theme.palette.primary.main,
- }}
- />
-
-
- )
-
- const toolsBlock = (
-
- {toolsOnLeft && proxyCount}
- onLocation(group)}
- onCheckDelay={() => onCheckAll(group.name)}
- onHeadState={(p) => onHeadState(group.name, p)}
- />
- {!toolsOnLeft && proxyCount}
-
- )
-
- return (
-
- {
- if (headState?.open) {
- onGroupToggle?.(group)
- }
- onHeadState?.(group.name, { open: !headState?.open })
- }}
- >
-
-
- {toolsOnLeft ? toolsBlock : nameBlock}
- {toolsOnLeft ? nameBlock : toolsBlock}
- {headState?.open ? : }
-
-
-
-
- )
- }
+ if (type === 0) return
if (type === 1) {
return (
@@ -271,23 +291,7 @@ export const ProxyRender = memo(function ProxyRender(props: RenderProps) {
}
if (type === 3) {
- return (
-
-
-
- {t('proxies.page.empty.noProxies')}
-
-
- )
+ return
}
if (type === 4) {
diff --git a/src/components/proxy/use-render-list.ts b/src/components/proxy/use-render-list.ts
index 24f1a182e..116f73972 100644
--- a/src/components/proxy/use-render-list.ts
+++ b/src/components/proxy/use-render-list.ts
@@ -68,6 +68,7 @@ type GroupCache = {
/// does not throw away every other group's sorted order.
delays: DelaySnapshot | undefined
occurrences: ResolvedMemberOccurrence[] | undefined
+ projected: ResolvedMemberOccurrence[] | undefined
items: IRenderItem[]
}
@@ -260,11 +261,15 @@ export const useRenderList = (
const groupCacheRef = useRef