newsnow/shared/data.ts
2024-10-05 17:20:49 +08:00

100 lines
2.0 KiB
TypeScript

import type { Metadata } from "./types"
export const sectionIds = ["focus", "social", "china", "world", "digital"] as const
export const sources = {
"wallstreetcn": {
name: "华尔街见闻",
home: "https://wallstreetcn.com/",
interval: 3 * 60 * 1000,
type: "快讯",
},
// "36kr": {
// name: "36氪",
// type: "人气榜",
// interval: 10,
// home: "https://36kr.com",
// },
"36kr-quick": {
name: "36氪",
type: "快讯",
interval: 3 * 60 * 1000,
home: "https://36kr.com",
},
"douyin": {
name: "抖音",
interval: 3 * 60 * 1000,
home: "https://www.douyin.com",
},
"hupu": {
name: "虎扑",
home: "https://hupu.com",
},
"zhihu": {
name: "知乎",
home: "https://www.zhihu.com",
},
"weibo": {
name: "微博",
type: "实时热搜",
interval: 1 * 60 * 1000,
home: "https://weibo.com",
},
"tieba": {
name: "百度贴吧",
home: "https://tieba.baidu.com",
},
"zaobao": {
name: "联合早报",
type: "实时新闻",
home: "https://www.zaobao.com",
},
"thepaper": {
name: "澎湃新闻",
home: "https://www.thepaper.cn",
},
"toutiao": {
name: "今日头条",
home: "https://www.toutiao.com",
},
"cankaoxiaoxi": {
name: "参考消息",
home: "http://www.cankaoxiaoxi.com",
},
"peopledaily": {
name: "人民日报",
home: "http://paper.people.com.cn",
},
} as const satisfies Record<string, {
name: string
type?: string
/**
* 刷新的间隔时间,复用缓存
*/
interval?: number
home: string
}>
export const metadata: Metadata = {
focus: {
name: "关注",
sourceList: [],
},
social: {
name: "实时",
sourceList: ["douyin", "weibo", "36kr-quick", "wallstreetcn", "zaobao"],
},
china: {
name: "国内",
sourceList: ["peopledaily", "toutiao"],
},
world: {
name: "国外",
sourceList: [],
},
digital: {
name: "数码",
sourceList: [],
},
}