newsnow/shared/data.ts

77 lines
1.5 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 = {
"36kr": {
name: "36氪",
home: "https://36kr.com",
},
"douyin": {
name: "抖音",
home: "https://www.douyin.com",
},
"hupu": {
name: "虎扑",
home: "https://hupu.com",
},
"zhihu": {
name: "知乎",
home: "https://www.zhihu.com",
},
"weibo": {
name: "微博",
home: "https://weibo.com",
},
"tieba": {
name: "百度贴吧",
home: "https://tieba.baidu.com",
},
"zaobao": {
name: "联合早报",
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
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: {
name: "社交媒体",
sourceList: ["douyin", "hupu", "tieba", "weibo"],
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-09-29 20:57:24 +08:00
sourceList: ["peopledaily", "36kr", "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-09-29 20:57:24 +08:00
sourceList: ["zaobao"],
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-09-29 20:57:24 +08:00
sourceList: ["36kr"],
2024-09-26 19:16:42 +08:00
},
2024-09-29 20:57:24 +08:00
}