feat: hidden api & remove domain unmaintained (#939)

This commit is contained in:
YetAnotherZephyruso 2024-08-22 16:43:23 +08:00 committed by GitHub
parent 9a8e482593
commit bd6547873f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

@ -17,8 +17,6 @@ Mihomo Dashboard, The Official One, XD
## Published Official Links ## Published Official Links
GH Pages Custom Domain: http://d.metacubex.one
GH Pages: https://metacubex.github.io/metacubexd GH Pages: https://metacubex.github.io/metacubexd
Cloudflare Pages: https://metacubexd.pages.dev Cloudflare Pages: https://metacubexd.pages.dev

View File

@ -62,6 +62,9 @@ export default () => {
updatingMap, updatingMap,
} = useProxies() } = useProxies()
const renderProxies = createMemo(() =>
proxies().filter((proxy) => !proxy.hidden),
)
const { speedGroupByName } = useConnections() const { speedGroupByName } = useConnections()
const [collapsedMap, setCollapsedMap] = makePersisted( const [collapsedMap, setCollapsedMap] = makePersisted(
@ -110,7 +113,7 @@ export default () => {
{ {
type: ActiveTab.proxies, type: ActiveTab.proxies,
name: t('proxies'), name: t('proxies'),
count: proxies().length, count: renderProxies().length,
}, },
{ {
type: ActiveTab.proxyProviders, type: ActiveTab.proxyProviders,
@ -171,7 +174,7 @@ export default () => {
renderProxiesInTwoColumns() ? 'sm:grid-cols-2' : 'sm:grid-cols-1', renderProxiesInTwoColumns() ? 'sm:grid-cols-2' : 'sm:grid-cols-1',
)} )}
> >
<For each={proxies()}> <For each={renderProxies()}>
{(proxyGroup) => { {(proxyGroup) => {
const sortedProxyNames = createMemo(() => const sortedProxyNames = createMemo(() =>
filterProxiesByAvailability( filterProxiesByAvailability(

View File

@ -17,6 +17,7 @@ export type Proxy = {
time: string time: string
delay: number delay: number
}[] }[]
hidden: boolean
udp: boolean udp: boolean
xudp: boolean xudp: boolean
tfo: boolean tfo: boolean