mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-13 06:05:34 +08:00
feat: hidden api & remove domain unmaintained (#939)
This commit is contained in:
parent
9a8e482593
commit
bd6547873f
@ -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
|
||||
|
@ -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(
|
||||
|
1
src/types/index.d.ts
vendored
1
src/types/index.d.ts
vendored
@ -17,6 +17,7 @@ export type Proxy = {
|
||||
time: string
|
||||
delay: number
|
||||
}[]
|
||||
hidden: boolean
|
||||
udp: boolean
|
||||
xudp: boolean
|
||||
tfo: boolean
|
||||
|
Loading…
Reference in New Issue
Block a user