diff --git a/public/icons/pcbeta.png b/public/icons/pcbeta.png new file mode 100644 index 0000000..2f1c305 Binary files /dev/null and b/public/icons/pcbeta.png differ diff --git a/server/glob.d.ts b/server/glob.d.ts index ab010ba..7e06641 100644 --- a/server/glob.d.ts +++ b/server/glob.d.ts @@ -19,6 +19,7 @@ declare module 'glob:./sources/{*.ts,**/index.ts}' { export const kuaishou: typeof import('./sources/kuaishou') export const linuxdo: typeof import('./sources/linuxdo') export const nowcoder: typeof import('./sources/nowcoder') + export const pcbeta: typeof import('./sources/pcbeta') export const producthunt: typeof import('./sources/producthunt') export const solidot: typeof import('./sources/solidot') export const sputniknewscn: typeof import('./sources/sputniknewscn') diff --git a/server/sources/pcbeta.ts b/server/sources/pcbeta.ts new file mode 100644 index 0000000..249b0a4 --- /dev/null +++ b/server/sources/pcbeta.ts @@ -0,0 +1,4 @@ +export default defineSource({ + "pcbeta-windows11": defineRSSSource("https://bbs.pcbeta.com/forum.php?mod=rss&fid=563&auth=0"), + "pcbeta-windows": defineRSSSource("https://bbs.pcbeta.com/forum.php?mod=rss&fid=521&auth=0"), +}) diff --git a/shared/pinyin.json b/shared/pinyin.json index 99776d6..29714c7 100644 --- a/shared/pinyin.json +++ b/shared/pinyin.json @@ -15,6 +15,8 @@ "thepaper": "pengpaixinwen-rebang", "sputniknewscn": "weixingtongxunshe", "cankaoxiaoxi": "cankaoxiaoxi", + "pcbeta-windows11": "yuanjingluntan-Windows 11", + "pcbeta-windows": "yuanjingluntan-Windows ziyuanqu", "cls-telegraph": "cailianshe-dianbao", "cls-depth": "cailianshe-shendu", "cls-hot": "cailianshe-remen", diff --git a/shared/pre-sources.ts b/shared/pre-sources.ts index 33e2c27..5fc5817 100644 --- a/shared/pre-sources.ts +++ b/shared/pre-sources.ts @@ -151,6 +151,24 @@ export const originSources = { interval: Time.Common, home: "https://china.cankaoxiaoxi.com", }, + "pcbeta": { + name: "远景论坛", + color: "blue", + column: "tech", + home: "https://bbs.pcbeta.com", + sub: { + windows11: { + title: "Windows 11", + type: "realtime", + interval: Time.Fast, + }, + windows: { + title: "Windows 资源", + type: "realtime", + interval: Time.Fast, + }, + }, + }, "cls": { name: "财联社", color: "red", @@ -315,8 +333,7 @@ export const originSources = { "ghxi": { name: "果核剥壳", column: "china", - color: "green", - type: "realtime", + color: "yellow", home: "https://www.ghxi.com/", }, } as const satisfies Record diff --git a/shared/sources.json b/shared/sources.json index 7906c84..8be2d4c 100644 --- a/shared/sources.json +++ b/shared/sources.json @@ -165,6 +165,34 @@ "color": "red", "interval": 1800000 }, + "pcbeta": { + "redirect": "pcbeta-windows11", + "name": "远景论坛", + "type": "realtime", + "column": "tech", + "home": "https://bbs.pcbeta.com", + "color": "blue", + "interval": 300000, + "title": "Windows 11" + }, + "pcbeta-windows11": { + "name": "远景论坛", + "type": "realtime", + "column": "tech", + "home": "https://bbs.pcbeta.com", + "color": "blue", + "interval": 300000, + "title": "Windows 11" + }, + "pcbeta-windows": { + "name": "远景论坛", + "type": "realtime", + "column": "tech", + "home": "https://bbs.pcbeta.com", + "color": "blue", + "interval": 300000, + "title": "Windows 资源区" + }, "cls": { "redirect": "cls-telegraph", "name": "财联社", @@ -389,10 +417,9 @@ }, "ghxi": { "name": "果核剥壳", - "type": "realtime", "column": "china", "home": "https://www.ghxi.com/", - "color": "green", + "color": "yellow", "interval": 600000 } } \ No newline at end of file