mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 19:29:17 +08:00
34 lines
838 B
TypeScript
34 lines
838 B
TypeScript
import type { DisabledSourceID, SourceID } from "@shared/types"
|
|
import weibo from "./weibo"
|
|
import zaobao from "./zaobao"
|
|
import v2ex from "./v2ex"
|
|
import ithome from "./ithome"
|
|
import zhihu from "./zhihu"
|
|
import cankaoxiaoxi from "./cankaoxiaoxi"
|
|
import coolapk from "./coolapk"
|
|
import kr36 from "./36kr"
|
|
import wallstreetcn from "./wallstreetcn"
|
|
import douyin from "./douyin"
|
|
import toutiao from "./toutiao"
|
|
import cls from "./cls"
|
|
import sputniknewscn from "./sputniknewscn"
|
|
import xueqiu from "./xueqiu"
|
|
import type { SourceGetter } from "#/types"
|
|
|
|
export const sourcesGetters = {
|
|
weibo,
|
|
zaobao,
|
|
...v2ex,
|
|
ithome,
|
|
zhihu,
|
|
coolapk,
|
|
cankaoxiaoxi,
|
|
sputniknewscn,
|
|
...wallstreetcn,
|
|
...xueqiu,
|
|
douyin,
|
|
...cls,
|
|
toutiao,
|
|
...kr36,
|
|
} as Record<SourceID, SourceGetter> & Partial<Record<DisabledSourceID, SourceGetter>>
|