newsnow/shared/data.ts

31 lines
659 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-10-09 21:36:42 +08:00
export const sectionIds = ["focus", "realtime", "china", "world", "tech", "code"] as const
2024-09-29 20:57:24 +08:00
export const metadata: Metadata = {
focus: {
2024-09-26 19:16:42 +08:00
name: "关注",
2024-10-08 20:49:19 +08:00
sources: [],
2024-09-26 19:16:42 +08:00
},
2024-10-09 21:36:42 +08:00
realtime: {
2024-10-05 01:22:41 +08:00
name: "实时",
2024-10-08 22:44:42 +08:00
sources: ["weibo", "douyin", "zhihu", "toutiao", "wallstreetcn", "ithome", "36kr"],
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-09 19:15:28 +08:00
sources: ["toutiao", "zhihu", "cankaoxiaoxi"],
2024-09-26 19:16:42 +08:00
},
2024-09-29 20:57:24 +08:00
world: {
2024-10-09 19:15:28 +08:00
name: "国际",
sources: ["sputniknewscn", "zaobao"],
2024-10-08 20:49:19 +08:00
},
code: {
name: "代码",
sources: ["v2ex"],
2024-09-26 19:16:42 +08:00
},
2024-10-08 20:49:19 +08:00
tech: {
name: "科技",
2024-10-09 21:36:42 +08:00
sources: ["ithome", "coolapk", "36kr-quick"],
2024-09-26 19:16:42 +08:00
},
2024-09-29 20:57:24 +08:00
}