mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 11:19:14 +08:00
chore: minor changes
This commit is contained in:
parent
62344a33ae
commit
76c282f302
@ -7,20 +7,18 @@ type Res = {
|
|||||||
title: string
|
title: string
|
||||||
}[]
|
}[]
|
||||||
export default defineSource(async () => {
|
export default defineSource(async () => {
|
||||||
const url = "https://kaopucdn.azureedge.net/jsondata/news_list_beta_hans_0.json"
|
const res = await Promise.all(["https://kaopucdn.azureedge.net/jsondata/news_list_beta_hans_0.json", "https://kaopucdn.azureedge.net/jsondata/news_list_beta_hans_1.json"].map(url => $fetch(url) as Promise<Res>))
|
||||||
const res: Res = await $fetch(url)
|
return res.flat().filter(k => ["财新", "公视"].every(h => k.publisher !== h)).map((k) => {
|
||||||
return res.filter(k => ["财新", "公视"].every(h => k.publisher !== h))
|
return {
|
||||||
.map((k) => {
|
id: k.link,
|
||||||
return {
|
title: k.title,
|
||||||
id: k.link,
|
pubDate: k.pubDate,
|
||||||
title: k.title,
|
extra: {
|
||||||
pubDate: k.pubDate,
|
hover: k.description,
|
||||||
extra: {
|
info: k.publisher,
|
||||||
hover: k.description,
|
},
|
||||||
info: k.publisher,
|
url: k.link,
|
||||||
},
|
}
|
||||||
url: k.link,
|
})
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -240,8 +240,6 @@ export const originSources = {
|
|||||||
name: "哔哩哔哩",
|
name: "哔哩哔哩",
|
||||||
color: "blue",
|
color: "blue",
|
||||||
home: "https://www.bilibili.com",
|
home: "https://www.bilibili.com",
|
||||||
// cloudflare pages cannot access
|
|
||||||
// disable: true,
|
|
||||||
sub: {
|
sub: {
|
||||||
"hot-search": {
|
"hot-search": {
|
||||||
title: "热搜",
|
title: "热搜",
|
||||||
@ -256,13 +254,14 @@ export const originSources = {
|
|||||||
column: "china",
|
column: "china",
|
||||||
color: "orange",
|
color: "orange",
|
||||||
// cloudflare pages cannot access
|
// cloudflare pages cannot access
|
||||||
disable: true,
|
// disable: true,
|
||||||
home: "https://www.kuaishou.com",
|
home: "https://www.kuaishou.com",
|
||||||
},
|
},
|
||||||
"kaopu": {
|
"kaopu": {
|
||||||
name: "靠谱新闻",
|
name: "靠谱新闻",
|
||||||
column: "world",
|
column: "world",
|
||||||
color: "gray",
|
color: "gray",
|
||||||
|
interval: Time.Common,
|
||||||
desc: "不一定靠谱,多看多思考",
|
desc: "不一定靠谱,多看多思考",
|
||||||
home: "https://kaopu.news/",
|
home: "https://kaopu.news/",
|
||||||
},
|
},
|
||||||
@ -270,6 +269,7 @@ export const originSources = {
|
|||||||
name: "金十数据",
|
name: "金十数据",
|
||||||
column: "finance",
|
column: "finance",
|
||||||
color: "blue",
|
color: "blue",
|
||||||
|
type: "realtime",
|
||||||
home: "https://www.jin10.com",
|
home: "https://www.jin10.com",
|
||||||
},
|
},
|
||||||
} as const satisfies Record<string, OriginSource>
|
} as const satisfies Record<string, OriginSource>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user