Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84543b12b6 | ||
|
|
3584efb09b | ||
|
|
f357e920b7 | ||
|
|
dca03c4f0c | ||
|
|
576137a62f | ||
|
|
a896f15c44 | ||
|
|
f78eead5fd | ||
|
|
6fe8f03f16 | ||
|
|
8e7b35385b | ||
|
|
0271066e27 | ||
|
|
f2e4ce36de | ||
|
|
cce09de022 | ||
|
|
9e37d4449f | ||
|
|
aff39c1e1b | ||
|
|
6c22566079 | ||
|
|
cfb48a8c25 |
+1
-1
@@ -1,5 +1,5 @@
|
||||
import sources from "../shared/sources.json"
|
||||
|
||||
Promise.all(Object.keys(sources).map(id =>
|
||||
fetch(`https://newsnow.busiyi.world/api/s?id=${id}`),
|
||||
fetch(`https://hot.chgr.cc/api/s?id=${id}`),
|
||||
)).catch(console.error)
|
||||
|
||||
Vendored
+1
@@ -22,6 +22,7 @@ declare module 'glob:./sources/{*.ts,**/index.ts}' {
|
||||
export const kaopu: typeof import('./sources/kaopu')
|
||||
export const kuaishou: typeof import('./sources/kuaishou')
|
||||
export const linuxdo: typeof import('./sources/linuxdo')
|
||||
export const idcflare: typeof import('./sources/idcflare')
|
||||
export const mktnews: typeof import('./sources/mktnews')
|
||||
export const nowcoder: typeof import('./sources/nowcoder')
|
||||
export const pcbeta: typeof import('./sources/pcbeta')
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
interface Res {
|
||||
topic_list: {
|
||||
can_create_topic: boolean
|
||||
more_topics_url: string
|
||||
per_page: number
|
||||
top_tags: string[]
|
||||
topics: {
|
||||
id: number
|
||||
title: string
|
||||
fancy_title: string
|
||||
posts_count: number
|
||||
reply_count: number
|
||||
highest_post_number: number
|
||||
image_url: null | string
|
||||
created_at: Date
|
||||
last_posted_at: Date
|
||||
bumped: boolean
|
||||
bumped_at: Date
|
||||
unseen: boolean
|
||||
pinned: boolean
|
||||
excerpt?: string
|
||||
visible: boolean
|
||||
closed: boolean
|
||||
archived: boolean
|
||||
like_count: number
|
||||
has_summary: boolean
|
||||
last_poster_username: string
|
||||
category_id: number
|
||||
pinned_globally: boolean
|
||||
}[]
|
||||
}
|
||||
}
|
||||
|
||||
const hot = defineSource(async () => {
|
||||
const res = await myFetch<Res>("https://n8n.chgr.cc/webhook/api?name=idcflare")
|
||||
return res.topic_list.topics
|
||||
.filter(k => k.visible && !k.archived && !k.pinned)
|
||||
.map(k => ({
|
||||
id: k.id,
|
||||
title: k.title,
|
||||
url: `https://idcflare.com/t/topic/${k.id}`,
|
||||
}))
|
||||
})
|
||||
|
||||
const latest = defineSource(async () => {
|
||||
const res = await myFetch<Res>("https://idcflare.com/latest.json?order=created")
|
||||
return res.topic_list.topics
|
||||
.filter(k => k.visible && !k.archived && !k.pinned)
|
||||
.map(k => ({
|
||||
id: k.id,
|
||||
title: k.title,
|
||||
pubDate: new Date(k.created_at).valueOf(),
|
||||
url: `https://idcflare.com/t/topic/${k.id}`,
|
||||
}))
|
||||
})
|
||||
|
||||
export default defineSource({
|
||||
"idcflare": latest,
|
||||
"idcflare-latest": latest,
|
||||
"idcflare-hot": hot,
|
||||
})
|
||||
@@ -123,8 +123,14 @@ export interface Actionlog2 {
|
||||
}
|
||||
|
||||
export default defineSource(async () => {
|
||||
const url = "https://m.weibo.cn/api/container/getIndex?containerid=106003type%3D25%26t%3D3%26disable_hot%3D1%26filter_type%3Drealtimehot"
|
||||
const res: Root = await myFetch(url)
|
||||
const url = "https://m.weibo.cn/api/container/getIndex?containerid=106003type%3D25%26t%3D3%26disable_hot%3D1%26filter_type%3Drealtimehot&title=%E5%BE%AE%E5%8D%9A%E7%83%AD%E6%90%9C&extparam=filter_type%3Drealtimehot%26mi_cid%3D100103%26pos%3D0_0%26c_type%3D30%26display_time%3D1540538388&luicode=10000011&lfid=231583"
|
||||
const res: Root = await myFetch(url, {
|
||||
headers: {
|
||||
"referer": "https://s.weibo.com/top/summary?cate=realtimehot",
|
||||
"mweibo-pwa": "1",
|
||||
"x-requested-with": "XMLHttpRequest",
|
||||
},
|
||||
})
|
||||
return res.data.cards[0].card_group
|
||||
.filter((k, i) => i !== 0 && k.desc && !k.actionlog?.ext.includes("ads_word"))
|
||||
.map((k) => {
|
||||
|
||||
+5
-1
@@ -36,10 +36,14 @@
|
||||
"kaopu": "kaopuxinwen",
|
||||
"jin10": "jinshishuju",
|
||||
"baidu": "baiduresou",
|
||||
"linuxdo-latest": "LINUX DO-zuixin",
|
||||
"linuxdo-hot": "LINUX DO-jinrizuire",
|
||||
"idcflare-latest": "IDC Flare-zuixin",
|
||||
"idcflare-hot": "IDC Flare-jinrizuire",
|
||||
"nowcoder": "niuke",
|
||||
"sspai": "shaoshupai",
|
||||
"juejin": "xitujuejin",
|
||||
"ifeng": "fenghuangwang-redianzixun",
|
||||
"chongbuluo-latest": "chongbuluo-zuixin",
|
||||
"chongbuluo-hot": "chongbuluo-zuire"
|
||||
}
|
||||
}
|
||||
|
||||
+18
-1
@@ -336,7 +336,6 @@ export const originSources = {
|
||||
column: "tech",
|
||||
color: "slate",
|
||||
home: "https://linux.do/",
|
||||
disable: true,
|
||||
sub: {
|
||||
latest: {
|
||||
title: "最新",
|
||||
@@ -349,6 +348,24 @@ export const originSources = {
|
||||
home: "https://linux.do/hot",
|
||||
},
|
||||
},
|
||||
},
|
||||
"idcflare": {
|
||||
name: "IDC Flare",
|
||||
column: "tech",
|
||||
color: "slate",
|
||||
home: "https://idcflare.com/",
|
||||
sub: {
|
||||
latest: {
|
||||
title: "最新",
|
||||
home: "https://idcflare.com/latest",
|
||||
},
|
||||
hot: {
|
||||
title: "今日最热",
|
||||
type: "hottest",
|
||||
interval: Time.Common,
|
||||
home: "https://idcflare.com/hot",
|
||||
},
|
||||
},
|
||||
},
|
||||
"ghxi": {
|
||||
name: "果核剥壳",
|
||||
|
||||
+19
-1
@@ -414,6 +414,24 @@
|
||||
"color": "blue",
|
||||
"interval": 600000
|
||||
},
|
||||
"linuxdo-hot": {
|
||||
"name": "LINUX DO",
|
||||
"type": "hottest",
|
||||
"column": "tech",
|
||||
"home": "https://linux.do",
|
||||
"color": "gray",
|
||||
"interval": 1800000,
|
||||
"title": "今日最热"
|
||||
},
|
||||
"idcflare-hot": {
|
||||
"name": "IDC Flare",
|
||||
"type": "hottest",
|
||||
"column": "tech",
|
||||
"home": "https://idcflare.com",
|
||||
"color": "gray",
|
||||
"interval": 1800000,
|
||||
"title": "今日最热"
|
||||
},
|
||||
"nowcoder": {
|
||||
"name": "牛客",
|
||||
"type": "hottest",
|
||||
@@ -473,4 +491,4 @@
|
||||
"interval": 1800000,
|
||||
"title": "最热"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user