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
GH Pages Custom Domain: http://d.metacubex.one
GH Pages: https://metacubex.github.io/metacubexd
Cloudflare Pages: https://metacubexd.pages.dev

View File

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

View File

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