mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10:30 +08:00
remove ads
This commit is contained in:
parent
2b1846d72c
commit
bd71587df9
@ -194,40 +194,28 @@ const Profiles: React.FC = () => {
|
|||||||
ref={pageRef}
|
ref={pageRef}
|
||||||
title="订阅管理"
|
title="订阅管理"
|
||||||
header={
|
header={
|
||||||
<>
|
<Button
|
||||||
<Button
|
size="sm"
|
||||||
size="sm"
|
title="更新全部订阅"
|
||||||
variant="light"
|
className="app-nodrag"
|
||||||
className="app-nodrag"
|
variant="light"
|
||||||
onPress={async () => {
|
isIconOnly
|
||||||
open('https://mihomo.party/ads/airport/')
|
onPress={async () => {
|
||||||
}}
|
setUpdating(true)
|
||||||
>
|
for (const item of items) {
|
||||||
订阅推荐
|
if (item.id === current) continue
|
||||||
</Button>
|
if (item.type !== 'remote') continue
|
||||||
<Button
|
await addProfileItem(item)
|
||||||
size="sm"
|
}
|
||||||
title="更新全部订阅"
|
const currentItem = items.find((item) => item.id === current)
|
||||||
className="app-nodrag"
|
if (currentItem && currentItem.type === 'remote') {
|
||||||
variant="light"
|
await addProfileItem(currentItem)
|
||||||
isIconOnly
|
}
|
||||||
onPress={async () => {
|
setUpdating(false)
|
||||||
setUpdating(true)
|
}}
|
||||||
for (const item of items) {
|
>
|
||||||
if (item.id === current) continue
|
<IoMdRefresh className={`text-lg ${updating ? 'animate-spin' : ''}`} />
|
||||||
if (item.type !== 'remote') continue
|
</Button>
|
||||||
await addProfileItem(item)
|
|
||||||
}
|
|
||||||
const currentItem = items.find((item) => item.id === current)
|
|
||||||
if (currentItem && currentItem.type === 'remote') {
|
|
||||||
await addProfileItem(currentItem)
|
|
||||||
}
|
|
||||||
setUpdating(false)
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<IoMdRefresh className={`text-lg ${updating ? 'animate-spin' : ''}`} />
|
|
||||||
</Button>
|
|
||||||
</>
|
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className="sticky top-0 z-40 bg-background">
|
<div className="sticky top-0 z-40 bg-background">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user