Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hidden api & remove domain unmaintained #939

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions src/pages/Proxies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ export default () => {
updatingMap,
} = useProxies()

const renderProxies = createMemo(() =>
proxies().filter((proxy) => !proxy.hidden),
)
const { speedGroupByName } = useConnections()

const [collapsedMap, setCollapsedMap] = makePersisted(
Expand Down Expand Up @@ -110,7 +113,7 @@ export default () => {
{
type: ActiveTab.proxies,
name: t('proxies'),
count: proxies().length,
count: renderProxies().length,
},
{
type: ActiveTab.proxyProviders,
Expand Down Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type Proxy = {
time: string
delay: number
}[]
hidden: boolean
udp: boolean
xudp: boolean
tfo: boolean
Expand Down