10 Commits
Author SHA1 Message Date
ZSCGRandGitHub a896f15c44 Update pinyin.json 2025-09-21 21:11:19 +08:00
ZSCGRandGitHub f78eead5fd Create idcflare.ts 2025-09-21 21:07:18 +08:00
ZSCGRandGitHub 6fe8f03f16 Update sources.json 2025-09-21 21:04:38 +08:00
ZSCGRandGitHub 8e7b35385b Update pre-sources.ts 2025-09-21 21:03:29 +08:00
ZSCGRandGitHub 0271066e27 Update pre-sources.ts 2025-08-19 14:03:18 +08:00
ZSCGRandGitHub f2e4ce36de Update pre-sources.ts 2025-08-19 13:55:57 +08:00
ZSCGRandGitHub cce09de022 Update sources.json 2025-08-19 13:45:58 +08:00
ZSCGRandGitHub 9e37d4449f Update sources.json 2025-08-19 13:42:39 +08:00
ZSCGRandGitHub aff39c1e1b Update pinyin.json 2025-08-19 13:29:29 +08:00
ZSCGRandGitHub 6c22566079 Update pinyin.json 2025-08-18 22:48:38 +08:00
4 changed files with 95 additions and 5 deletions
+61
View File
@@ -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://linux.do/t/topic/${k.id}`,
}))
})
const latest = defineSource(async () => {
const res = await myFetch<Res>("https://linux.do/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://linux.do/t/topic/${k.id}`,
}))
})
export default defineSource({
"linuxdo": latest,
"linuxdo-latest": latest,
"linuxdo-hot": hot,
})
+5 -1
View File
@@ -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
View File
@@ -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: "果核剥壳",
+11 -3
View File
@@ -417,10 +417,18 @@
"linuxdo-hot": {
"name": "LINUX DO",
"type": "hottest",
"disable": "cf",
"column": "tech",
"home": "https://linux.do/hot",
"color": "slate",
"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": "今日最热"
},