newsnow/shared/data.ts

100 lines
2.0 KiB
TypeScript
Raw Normal View History

2024-09-29 20:57:24 +08:00
import type { Metadata } from "./types"
2024-09-26 19:16:42 +08:00
2024-09-29 20:57:24 +08:00
export const sectionIds = ["focus", "social", "china", "world", "digital"] as const
2024-10-01 00:08:07 +08:00
export const sources = {
2024-10-05 01:22:41 +08:00
"wallstreetcn": {
name: "华尔街见闻",
home: "https://wallstreetcn.com/",
2024-10-05 17:20:49 +08:00
interval: 3 * 60 * 1000,
2024-10-05 01:22:41 +08:00
type: "快讯",
2024-10-04 15:36:03 +08:00
},
2024-10-05 01:22:41 +08:00
// "36kr": {
// name: "36氪",
// type: "人气榜",
// interval: 10,
// home: "https://36kr.com",
// },
2024-10-04 15:36:03 +08:00
"36kr-quick": {
name: "36氪",
type: "快讯",
2024-10-05 17:20:49 +08:00
interval: 3 * 60 * 1000,
2024-10-01 00:08:07 +08:00
home: "https://36kr.com",
},
"douyin": {
name: "抖音",
2024-10-05 17:20:49 +08:00
interval: 3 * 60 * 1000,
2024-10-01 00:08:07 +08:00
home: "https://www.douyin.com",
},
"hupu": {
name: "虎扑",
home: "https://hupu.com",
},
"zhihu": {
name: "知乎",
home: "https://www.zhihu.com",
},
"weibo": {
name: "微博",
2024-10-04 15:36:03 +08:00
type: "实时热搜",
2024-10-05 17:20:49 +08:00
interval: 1 * 60 * 1000,
2024-10-01 00:08:07 +08:00
home: "https://weibo.com",
},
"tieba": {
name: "百度贴吧",
home: "https://tieba.baidu.com",
},
"zaobao": {
name: "联合早报",
2024-10-04 15:36:03 +08:00
type: "实时新闻",
2024-10-01 00:08:07 +08:00
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
2024-10-04 15:36:03 +08:00
type?: string
/**
2024-10-05 17:20:49 +08:00
*
2024-10-04 15:36:03 +08:00
*/
interval?: number
2024-10-01 00:08:07 +08:00
home: string
}>
2024-09-29 20:57:24 +08:00
export const metadata: Metadata = {
focus: {
2024-09-26 19:16:42 +08:00
name: "关注",
2024-09-29 20:57:24 +08:00
sourceList: [],
2024-09-26 19:16:42 +08:00
},
2024-09-29 20:57:24 +08:00
social: {
2024-10-05 01:22:41 +08:00
name: "实时",
sourceList: ["douyin", "weibo", "36kr-quick", "wallstreetcn", "zaobao"],
2024-09-26 19:16:42 +08:00
},
2024-09-29 20:57:24 +08:00
china: {
2024-09-26 19:16:42 +08:00
name: "国内",
2024-10-05 01:22:41 +08:00
sourceList: ["peopledaily", "toutiao"],
2024-09-26 19:16:42 +08:00
},
2024-09-29 20:57:24 +08:00
world: {
2024-09-26 19:16:42 +08:00
name: "国外",
2024-10-05 01:22:41 +08:00
sourceList: [],
2024-09-26 19:16:42 +08:00
},
2024-09-29 20:57:24 +08:00
digital: {
2024-09-26 19:16:42 +08:00
name: "数码",
2024-10-05 01:22:41 +08:00
sourceList: [],
2024-09-26 19:16:42 +08:00
},
2024-09-29 20:57:24 +08:00
}