remove ads

This commit is contained in:
pompurin404 2024-09-08 12:54:25 +08:00
parent 2b1846d72c
commit bd71587df9
No known key found for this signature in database

View File

@ -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">