newsnow/shared/data.ts

41 lines
892 B
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
export const sourceList = {
"36kr": "36氪",
"douyin": "抖音",
"hupu": "虎扑",
"zhihu": "知乎",
"weibo": "微博",
"tieba": "贴吧",
"zaobao": "联合早报",
"thepaper": "澎湃新闻",
"toutiao": "今日头条",
"cankaoxiaoxi": "参考消息",
"peopledaily": "人民日报",
} as const satisfies Record<string, string | false>
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
}