@ttkit/daily-hot-api 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +77 -0
- package/LICENSE +21 -0
- package/README.md +315 -2
- package/bin/daily-hot-api.js +25 -0
- package/dist/app.controller.d.ts +41 -0
- package/dist/app.controller.js +91 -0
- package/dist/app.controller.js.map +1 -0
- package/dist/app.module.d.ts +4 -0
- package/dist/app.module.js +44 -0
- package/dist/app.module.js.map +1 -0
- package/dist/app.service.d.ts +19 -0
- package/dist/app.service.js +57 -0
- package/dist/app.service.js.map +1 -0
- package/dist/cache/cache.module.d.ts +2 -0
- package/dist/cache/cache.module.js +52 -0
- package/dist/cache/cache.module.js.map +1 -0
- package/dist/cache/cache.service.d.ts +26 -0
- package/dist/cache/cache.service.js +163 -0
- package/dist/cache/cache.service.js.map +1 -0
- package/dist/cli/args.d.ts +24 -0
- package/dist/cli/args.js +261 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/commands/logs.d.ts +3 -0
- package/dist/cli/commands/logs.js +55 -0
- package/dist/cli/commands/logs.js.map +1 -0
- package/dist/cli/commands/restart.d.ts +3 -0
- package/dist/cli/commands/restart.js +62 -0
- package/dist/cli/commands/restart.js.map +1 -0
- package/dist/cli/commands/start.d.ts +3 -0
- package/dist/cli/commands/start.js +280 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/status.d.ts +3 -0
- package/dist/cli/commands/status.js +78 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/stop.d.ts +12 -0
- package/dist/cli/commands/stop.js +135 -0
- package/dist/cli/commands/stop.js.map +1 -0
- package/dist/cli/context.d.ts +4 -0
- package/dist/cli/context.js +3 -0
- package/dist/cli/context.js.map +1 -0
- package/dist/cli/env.d.ts +2 -0
- package/dist/cli/env.js +80 -0
- package/dist/cli/env.js.map +1 -0
- package/dist/cli/errors.d.ts +14 -0
- package/dist/cli/errors.js +25 -0
- package/dist/cli/errors.js.map +1 -0
- package/dist/cli/health.d.ts +2 -0
- package/dist/cli/health.js +44 -0
- package/dist/cli/health.js.map +1 -0
- package/dist/cli/help.d.ts +3 -0
- package/dist/cli/help.js +158 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +94 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/log-file.d.ts +8 -0
- package/dist/cli/log-file.js +58 -0
- package/dist/cli/log-file.js.map +1 -0
- package/dist/cli/output.d.ts +7 -0
- package/dist/cli/output.js +46 -0
- package/dist/cli/output.js.map +1 -0
- package/dist/cli/paths.d.ts +33 -0
- package/dist/cli/paths.js +76 -0
- package/dist/cli/paths.js.map +1 -0
- package/dist/cli/run-state.d.ts +25 -0
- package/dist/cli/run-state.js +159 -0
- package/dist/cli/run-state.js.map +1 -0
- package/dist/common/middlewares/logger.middleware.d.ts +7 -0
- package/dist/common/middlewares/logger.middleware.js +29 -0
- package/dist/common/middlewares/logger.middleware.js.map +1 -0
- package/dist/config/config.module.d.ts +2 -0
- package/dist/config/config.module.js +47 -0
- package/dist/config/config.module.js.map +1 -0
- package/dist/config/configuration.d.ts +3 -0
- package/dist/config/configuration.js +5 -0
- package/dist/config/configuration.js.map +1 -0
- package/dist/config/validation.schema.d.ts +114 -0
- package/dist/config/validation.schema.js +69 -0
- package/dist/config/validation.schema.js.map +1 -0
- package/dist/daily-brief/clients/ai-analysis.client.d.ts +20 -0
- package/dist/daily-brief/clients/ai-analysis.client.js +217 -0
- package/dist/daily-brief/clients/ai-analysis.client.js.map +1 -0
- package/dist/daily-brief/clients/brief-search.service.d.ts +11 -0
- package/dist/daily-brief/clients/brief-search.service.js +52 -0
- package/dist/daily-brief/clients/brief-search.service.js.map +1 -0
- package/dist/daily-brief/clients/deepseek-search.client.d.ts +11 -0
- package/dist/daily-brief/clients/deepseek-search.client.js +70 -0
- package/dist/daily-brief/clients/deepseek-search.client.js.map +1 -0
- package/dist/daily-brief/clients/tavily-search.client.d.ts +11 -0
- package/dist/daily-brief/clients/tavily-search.client.js +72 -0
- package/dist/daily-brief/clients/tavily-search.client.js.map +1 -0
- package/dist/daily-brief/daily-brief.config.d.ts +31 -0
- package/dist/daily-brief/daily-brief.config.js +108 -0
- package/dist/daily-brief/daily-brief.config.js.map +1 -0
- package/dist/daily-brief/daily-brief.controller.d.ts +72 -0
- package/dist/daily-brief/daily-brief.controller.js +169 -0
- package/dist/daily-brief/daily-brief.controller.js.map +1 -0
- package/dist/daily-brief/daily-brief.module.d.ts +2 -0
- package/dist/daily-brief/daily-brief.module.js +49 -0
- package/dist/daily-brief/daily-brief.module.js.map +1 -0
- package/dist/daily-brief/daily-brief.scheduler.d.ts +30 -0
- package/dist/daily-brief/daily-brief.scheduler.js +113 -0
- package/dist/daily-brief/daily-brief.scheduler.js.map +1 -0
- package/dist/daily-brief/daily-brief.service.d.ts +101 -0
- package/dist/daily-brief/daily-brief.service.js +412 -0
- package/dist/daily-brief/daily-brief.service.js.map +1 -0
- package/dist/daily-brief/dto/brief-date-param.dto.d.ts +3 -0
- package/dist/daily-brief/dto/brief-date-param.dto.js +23 -0
- package/dist/daily-brief/dto/brief-date-param.dto.js.map +1 -0
- package/dist/daily-brief/dto/generate-brief.dto.d.ts +6 -0
- package/dist/daily-brief/dto/generate-brief.dto.js +39 -0
- package/dist/daily-brief/dto/generate-brief.dto.js.map +1 -0
- package/dist/daily-brief/dto/list-briefs-query.dto.d.ts +6 -0
- package/dist/daily-brief/dto/list-briefs-query.dto.js +42 -0
- package/dist/daily-brief/dto/list-briefs-query.dto.js.map +1 -0
- package/dist/daily-brief/dto/stock-ranking-query.dto.d.ts +6 -0
- package/dist/daily-brief/dto/stock-ranking-query.dto.js +46 -0
- package/dist/daily-brief/dto/stock-ranking-query.dto.js.map +1 -0
- package/dist/daily-brief/interfaces/daily-brief.interface.d.ts +59 -0
- package/dist/daily-brief/interfaces/daily-brief.interface.js +3 -0
- package/dist/daily-brief/interfaces/daily-brief.interface.js.map +1 -0
- package/dist/daily-brief/interfaces/search-provider.interface.d.ts +11 -0
- package/dist/daily-brief/interfaces/search-provider.interface.js +3 -0
- package/dist/daily-brief/interfaces/search-provider.interface.js.map +1 -0
- package/dist/daily-brief/utils/brief-date.d.ts +2 -0
- package/dist/daily-brief/utils/brief-date.js +16 -0
- package/dist/daily-brief/utils/brief-date.js.map +1 -0
- package/dist/daily-brief/utils/concurrency.d.ts +1 -0
- package/dist/daily-brief/utils/concurrency.js +20 -0
- package/dist/daily-brief/utils/concurrency.js.map +1 -0
- package/dist/database/database.module.d.ts +2 -0
- package/dist/database/database.module.js +57 -0
- package/dist/database/database.module.js.map +1 -0
- package/dist/database/repositories/daily-brief.repository.d.ts +96 -0
- package/dist/database/repositories/daily-brief.repository.js +457 -0
- package/dist/database/repositories/daily-brief.repository.js.map +1 -0
- package/dist/database/repositories/hot-item.repository.d.ts +52 -0
- package/dist/database/repositories/hot-item.repository.js +255 -0
- package/dist/database/repositories/hot-item.repository.js.map +1 -0
- package/dist/database/repositories/source-config.repository.d.ts +15 -0
- package/dist/database/repositories/source-config.repository.js +77 -0
- package/dist/database/repositories/source-config.repository.js.map +1 -0
- package/dist/database/schemas/daily-brief.schema.d.ts +30 -0
- package/dist/database/schemas/daily-brief.schema.js +103 -0
- package/dist/database/schemas/daily-brief.schema.js.map +1 -0
- package/dist/database/schemas/hot-item.schema.d.ts +20 -0
- package/dist/database/schemas/hot-item.schema.js +72 -0
- package/dist/database/schemas/hot-item.schema.js.map +1 -0
- package/dist/database/schemas/source-config.schema.d.ts +15 -0
- package/dist/database/schemas/source-config.schema.js +47 -0
- package/dist/database/schemas/source-config.schema.js.map +1 -0
- package/dist/history/dto/history-response.dto.d.ts +17 -0
- package/dist/history/dto/history-response.dto.js +13 -0
- package/dist/history/dto/history-response.dto.js.map +1 -0
- package/dist/history/dto/search-history.dto.d.ts +10 -0
- package/dist/history/dto/search-history.dto.js +72 -0
- package/dist/history/dto/search-history.dto.js.map +1 -0
- package/dist/history/history.controller.d.ts +13 -0
- package/dist/history/history.controller.js +92 -0
- package/dist/history/history.controller.js.map +1 -0
- package/dist/history/history.module.d.ts +2 -0
- package/dist/history/history.module.js +25 -0
- package/dist/history/history.module.js.map +1 -0
- package/dist/history/history.service.d.ts +15 -0
- package/dist/history/history.service.js +68 -0
- package/dist/history/history.service.js.map +1 -0
- package/dist/host-lists/decorators/hot-source.decorator.d.ts +9 -0
- package/dist/host-lists/decorators/hot-source.decorator.js +11 -0
- package/dist/host-lists/decorators/hot-source.decorator.js.map +1 -0
- package/dist/host-lists/dto/hot-list.dto.d.ts +14 -0
- package/dist/host-lists/dto/hot-list.dto.js +94 -0
- package/dist/host-lists/dto/hot-list.dto.js.map +1 -0
- package/dist/host-lists/hot-lists.controller.d.ts +39 -0
- package/dist/host-lists/hot-lists.controller.js +87 -0
- package/dist/host-lists/hot-lists.controller.js.map +1 -0
- package/dist/host-lists/hot-lists.module.d.ts +2 -0
- package/dist/host-lists/hot-lists.module.js +36 -0
- package/dist/host-lists/hot-lists.module.js.map +1 -0
- package/dist/host-lists/hot-lists.service.d.ts +21 -0
- package/dist/host-lists/hot-lists.service.js +115 -0
- package/dist/host-lists/hot-lists.service.js.map +1 -0
- package/dist/host-lists/interfaces/hot-list-source.interface.d.ts +5 -0
- package/dist/host-lists/interfaces/hot-list-source.interface.js +3 -0
- package/dist/host-lists/interfaces/hot-list-source.interface.js.map +1 -0
- package/dist/host-lists/interfaces/hot-list.interface.d.ts +31 -0
- package/dist/host-lists/interfaces/hot-list.interface.js +3 -0
- package/dist/host-lists/interfaces/hot-list.interface.js.map +1 -0
- package/dist/host-lists/interfaces/router-data.interface.d.ts +19 -0
- package/dist/host-lists/interfaces/router-data.interface.js +3 -0
- package/dist/host-lists/interfaces/router-data.interface.js.map +1 -0
- package/dist/host-lists/sources/36kr.source.d.ts +9 -0
- package/dist/host-lists/sources/36kr.source.js +89 -0
- package/dist/host-lists/sources/36kr.source.js.map +1 -0
- package/dist/host-lists/sources/51cto.source.d.ts +11 -0
- package/dist/host-lists/sources/51cto.source.js +71 -0
- package/dist/host-lists/sources/51cto.source.js.map +1 -0
- package/dist/host-lists/sources/52pojie.source.d.ts +9 -0
- package/dist/host-lists/sources/52pojie.source.js +109 -0
- package/dist/host-lists/sources/52pojie.source.js.map +1 -0
- package/dist/host-lists/sources/acfun.source.d.ts +9 -0
- package/dist/host-lists/sources/acfun.source.js +90 -0
- package/dist/host-lists/sources/acfun.source.js.map +1 -0
- package/dist/host-lists/sources/baidu.source.d.ts +9 -0
- package/dist/host-lists/sources/baidu.source.js +85 -0
- package/dist/host-lists/sources/baidu.source.js.map +1 -0
- package/dist/host-lists/sources/bilibili.source.d.ts +14 -0
- package/dist/host-lists/sources/bilibili.source.js +188 -0
- package/dist/host-lists/sources/bilibili.source.js.map +1 -0
- package/dist/host-lists/sources/caixin.source.d.ts +9 -0
- package/dist/host-lists/sources/caixin.source.js +102 -0
- package/dist/host-lists/sources/caixin.source.js.map +1 -0
- package/dist/host-lists/sources/cls.source.d.ts +9 -0
- package/dist/host-lists/sources/cls.source.js +62 -0
- package/dist/host-lists/sources/cls.source.js.map +1 -0
- package/dist/host-lists/sources/coolapk.source.d.ts +9 -0
- package/dist/host-lists/sources/coolapk.source.js +57 -0
- package/dist/host-lists/sources/coolapk.source.js.map +1 -0
- package/dist/host-lists/sources/csdn.source.d.ts +9 -0
- package/dist/host-lists/sources/csdn.source.js +59 -0
- package/dist/host-lists/sources/csdn.source.js.map +1 -0
- package/dist/host-lists/sources/dgtle.source.d.ts +9 -0
- package/dist/host-lists/sources/dgtle.source.js +57 -0
- package/dist/host-lists/sources/dgtle.source.js.map +1 -0
- package/dist/host-lists/sources/douban-group.source.d.ts +11 -0
- package/dist/host-lists/sources/douban-group.source.js +100 -0
- package/dist/host-lists/sources/douban-group.source.js.map +1 -0
- package/dist/host-lists/sources/douban-movie.source.d.ts +10 -0
- package/dist/host-lists/sources/douban-movie.source.js +103 -0
- package/dist/host-lists/sources/douban-movie.source.js.map +1 -0
- package/dist/host-lists/sources/douyin.d.ts +16 -0
- package/dist/host-lists/sources/douyin.js +215 -0
- package/dist/host-lists/sources/douyin.js.map +1 -0
- package/dist/host-lists/sources/eastmoney-stock.source.d.ts +11 -0
- package/dist/host-lists/sources/eastmoney-stock.source.js +151 -0
- package/dist/host-lists/sources/eastmoney-stock.source.js.map +1 -0
- package/dist/host-lists/sources/eastmoney.source.d.ts +9 -0
- package/dist/host-lists/sources/eastmoney.source.js +86 -0
- package/dist/host-lists/sources/eastmoney.source.js.map +1 -0
- package/dist/host-lists/sources/geekpark.source.d.ts +9 -0
- package/dist/host-lists/sources/geekpark.source.js +60 -0
- package/dist/host-lists/sources/geekpark.source.js.map +1 -0
- package/dist/host-lists/sources/gelonghui.source.d.ts +9 -0
- package/dist/host-lists/sources/gelonghui.source.js +139 -0
- package/dist/host-lists/sources/gelonghui.source.js.map +1 -0
- package/dist/host-lists/sources/github.source.d.ts +12 -0
- package/dist/host-lists/sources/github.source.js +171 -0
- package/dist/host-lists/sources/github.source.js.map +1 -0
- package/dist/host-lists/sources/guokr.source.d.ts +11 -0
- package/dist/host-lists/sources/guokr.source.js +98 -0
- package/dist/host-lists/sources/guokr.source.js.map +1 -0
- package/dist/host-lists/sources/hackernews.source.d.ts +11 -0
- package/dist/host-lists/sources/hackernews.source.js +121 -0
- package/dist/host-lists/sources/hackernews.source.js.map +1 -0
- package/dist/host-lists/sources/hellogithub.source.d.ts +11 -0
- package/dist/host-lists/sources/hellogithub.source.js +98 -0
- package/dist/host-lists/sources/hellogithub.source.js.map +1 -0
- package/dist/host-lists/sources/history.source.d.ts +11 -0
- package/dist/host-lists/sources/history.source.js +92 -0
- package/dist/host-lists/sources/history.source.js.map +1 -0
- package/dist/host-lists/sources/honkai.source.d.ts +9 -0
- package/dist/host-lists/sources/honkai.source.js +72 -0
- package/dist/host-lists/sources/honkai.source.js.map +1 -0
- package/dist/host-lists/sources/hostloc.source.d.ts +9 -0
- package/dist/host-lists/sources/hostloc.source.js +75 -0
- package/dist/host-lists/sources/hostloc.source.js.map +1 -0
- package/dist/host-lists/sources/hupu.source.d.ts +9 -0
- package/dist/host-lists/sources/hupu.source.js +73 -0
- package/dist/host-lists/sources/hupu.source.js.map +1 -0
- package/dist/host-lists/sources/huxiu.source.d.ts +9 -0
- package/dist/host-lists/sources/huxiu.source.js +153 -0
- package/dist/host-lists/sources/huxiu.source.js.map +1 -0
- package/dist/host-lists/sources/ifanr.source.d.ts +9 -0
- package/dist/host-lists/sources/ifanr.source.js +57 -0
- package/dist/host-lists/sources/ifanr.source.js.map +1 -0
- package/dist/host-lists/sources/index.d.ts +2 -0
- package/dist/host-lists/sources/index.js +134 -0
- package/dist/host-lists/sources/index.js.map +1 -0
- package/dist/host-lists/sources/ithome-xijiayi.source.d.ts +9 -0
- package/dist/host-lists/sources/ithome-xijiayi.source.js +75 -0
- package/dist/host-lists/sources/ithome-xijiayi.source.js.map +1 -0
- package/dist/host-lists/sources/ithome.source.d.ts +9 -0
- package/dist/host-lists/sources/ithome.source.js +71 -0
- package/dist/host-lists/sources/ithome.source.js.map +1 -0
- package/dist/host-lists/sources/jd.source.d.ts +9 -0
- package/dist/host-lists/sources/jd.source.js +82 -0
- package/dist/host-lists/sources/jd.source.js.map +1 -0
- package/dist/host-lists/sources/jianshu.source.d.ts +9 -0
- package/dist/host-lists/sources/jianshu.source.js +72 -0
- package/dist/host-lists/sources/jianshu.source.js.map +1 -0
- package/dist/host-lists/sources/jin10.source.d.ts +9 -0
- package/dist/host-lists/sources/jin10.source.js +63 -0
- package/dist/host-lists/sources/jin10.source.js.map +1 -0
- package/dist/host-lists/sources/juejin.source.d.ts +10 -0
- package/dist/host-lists/sources/juejin.source.js +81 -0
- package/dist/host-lists/sources/juejin.source.js.map +1 -0
- package/dist/host-lists/sources/kuaishou.source.d.ts +13 -0
- package/dist/host-lists/sources/kuaishou.source.js +179 -0
- package/dist/host-lists/sources/kuaishou.source.js.map +1 -0
- package/dist/host-lists/sources/linuxdo.source.d.ts +9 -0
- package/dist/host-lists/sources/linuxdo.source.js +62 -0
- package/dist/host-lists/sources/linuxdo.source.js.map +1 -0
- package/dist/host-lists/sources/lol.source.d.ts +9 -0
- package/dist/host-lists/sources/lol.source.js +58 -0
- package/dist/host-lists/sources/lol.source.js.map +1 -0
- package/dist/host-lists/sources/miyoushe.source.d.ts +9 -0
- package/dist/host-lists/sources/miyoushe.source.js +88 -0
- package/dist/host-lists/sources/miyoushe.source.js.map +1 -0
- package/dist/host-lists/sources/netease-news.source.d.ts +9 -0
- package/dist/host-lists/sources/netease-news.source.js +56 -0
- package/dist/host-lists/sources/netease-news.source.js.map +1 -0
- package/dist/host-lists/sources/ngabbs.source.d.ts +9 -0
- package/dist/host-lists/sources/ngabbs.source.js +70 -0
- package/dist/host-lists/sources/ngabbs.source.js.map +1 -0
- package/dist/host-lists/sources/nodeseek.source.d.ts +9 -0
- package/dist/host-lists/sources/nodeseek.source.js +62 -0
- package/dist/host-lists/sources/nodeseek.source.js.map +1 -0
- package/dist/host-lists/sources/nytimes.source.d.ts +9 -0
- package/dist/host-lists/sources/nytimes.source.js +77 -0
- package/dist/host-lists/sources/nytimes.source.js.map +1 -0
- package/dist/host-lists/sources/producthunt.source.d.ts +9 -0
- package/dist/host-lists/sources/producthunt.source.js +75 -0
- package/dist/host-lists/sources/producthunt.source.js.map +1 -0
- package/dist/host-lists/sources/qq-news.source.d.ts +9 -0
- package/dist/host-lists/sources/qq-news.source.js +53 -0
- package/dist/host-lists/sources/qq-news.source.js.map +1 -0
- package/dist/host-lists/sources/sina-news.source.d.ts +9 -0
- package/dist/host-lists/sources/sina-news.source.js +98 -0
- package/dist/host-lists/sources/sina-news.source.js.map +1 -0
- package/dist/host-lists/sources/sina.source.d.ts +9 -0
- package/dist/host-lists/sources/sina.source.js +78 -0
- package/dist/host-lists/sources/sina.source.js.map +1 -0
- package/dist/host-lists/sources/smzdm.source.d.ts +9 -0
- package/dist/host-lists/sources/smzdm.source.js +71 -0
- package/dist/host-lists/sources/smzdm.source.js.map +1 -0
- package/dist/host-lists/sources/sspai.source.d.ts +9 -0
- package/dist/host-lists/sources/sspai.source.js +69 -0
- package/dist/host-lists/sources/sspai.source.js.map +1 -0
- package/dist/host-lists/sources/starrail.source.d.ts +9 -0
- package/dist/host-lists/sources/starrail.source.js +72 -0
- package/dist/host-lists/sources/starrail.source.js.map +1 -0
- package/dist/host-lists/sources/taobao.source.d.ts +10 -0
- package/dist/host-lists/sources/taobao.source.js +169 -0
- package/dist/host-lists/sources/taobao.source.js.map +1 -0
- package/dist/host-lists/sources/thepaper.source.d.ts +9 -0
- package/dist/host-lists/sources/thepaper.source.js +56 -0
- package/dist/host-lists/sources/thepaper.source.js.map +1 -0
- package/dist/host-lists/sources/tieba.source.d.ts +9 -0
- package/dist/host-lists/sources/tieba.source.js +58 -0
- package/dist/host-lists/sources/tieba.source.js.map +1 -0
- package/dist/host-lists/sources/tonghuashun.source.d.ts +9 -0
- package/dist/host-lists/sources/tonghuashun.source.js +112 -0
- package/dist/host-lists/sources/tonghuashun.source.js.map +1 -0
- package/dist/host-lists/sources/toutiao.source.d.ts +9 -0
- package/dist/host-lists/sources/toutiao.source.js +56 -0
- package/dist/host-lists/sources/toutiao.source.js.map +1 -0
- package/dist/host-lists/sources/v2ex.source.d.ts +9 -0
- package/dist/host-lists/sources/v2ex.source.js +67 -0
- package/dist/host-lists/sources/v2ex.source.js.map +1 -0
- package/dist/host-lists/sources/wallstreet.source.d.ts +9 -0
- package/dist/host-lists/sources/wallstreet.source.js +59 -0
- package/dist/host-lists/sources/wallstreet.source.js.map +1 -0
- package/dist/host-lists/sources/weatheralarm.source.d.ts +9 -0
- package/dist/host-lists/sources/weatheralarm.source.js +68 -0
- package/dist/host-lists/sources/weatheralarm.source.js.map +1 -0
- package/dist/host-lists/sources/weibo.source.d.ts +15 -0
- package/dist/host-lists/sources/weibo.source.js +180 -0
- package/dist/host-lists/sources/weibo.source.js.map +1 -0
- package/dist/host-lists/sources/weread.source.d.ts +9 -0
- package/dist/host-lists/sources/weread.source.js +82 -0
- package/dist/host-lists/sources/weread.source.js.map +1 -0
- package/dist/host-lists/sources/xinyu.source.d.ts +9 -0
- package/dist/host-lists/sources/xinyu.source.js +151 -0
- package/dist/host-lists/sources/xinyu.source.js.map +1 -0
- package/dist/host-lists/sources/yicai.source.d.ts +9 -0
- package/dist/host-lists/sources/yicai.source.js +113 -0
- package/dist/host-lists/sources/yicai.source.js.map +1 -0
- package/dist/host-lists/sources/yystv.source.d.ts +9 -0
- package/dist/host-lists/sources/yystv.source.js +57 -0
- package/dist/host-lists/sources/yystv.source.js.map +1 -0
- package/dist/host-lists/sources/zhihu-daily.source.d.ts +9 -0
- package/dist/host-lists/sources/zhihu-daily.source.js +60 -0
- package/dist/host-lists/sources/zhihu-daily.source.js.map +1 -0
- package/dist/host-lists/sources/zhihu.source.d.ts +12 -0
- package/dist/host-lists/sources/zhihu.source.js +195 -0
- package/dist/host-lists/sources/zhihu.source.js.map +1 -0
- package/dist/http/http.module.d.ts +2 -0
- package/dist/http/http.module.js +30 -0
- package/dist/http/http.module.js.map +1 -0
- package/dist/http/http.service.d.ts +53 -0
- package/dist/http/http.service.js +277 -0
- package/dist/http/http.service.js.map +1 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +70 -0
- package/dist/main.js.map +1 -0
- package/dist/rss/rss.module.d.ts +2 -0
- package/dist/rss/rss.module.js +21 -0
- package/dist/rss/rss.module.js.map +1 -0
- package/dist/rss/rss.service.d.ts +5 -0
- package/dist/rss/rss.service.js +55 -0
- package/dist/rss/rss.service.js.map +1 -0
- package/dist/scheduler/dto/trigger-fetch.dto.d.ts +3 -0
- package/dist/scheduler/dto/trigger-fetch.dto.js +22 -0
- package/dist/scheduler/dto/trigger-fetch.dto.js.map +1 -0
- package/dist/scheduler/dto/update-source-config.dto.d.ts +4 -0
- package/dist/scheduler/dto/update-source-config.dto.js +29 -0
- package/dist/scheduler/dto/update-source-config.dto.js.map +1 -0
- package/dist/scheduler/scheduler.controller.d.ts +52 -0
- package/dist/scheduler/scheduler.controller.js +132 -0
- package/dist/scheduler/scheduler.controller.js.map +1 -0
- package/dist/scheduler/scheduler.module.d.ts +2 -0
- package/dist/scheduler/scheduler.module.js +34 -0
- package/dist/scheduler/scheduler.module.js.map +1 -0
- package/dist/scheduler/scheduler.service.d.ts +54 -0
- package/dist/scheduler/scheduler.service.js +238 -0
- package/dist/scheduler/scheduler.service.js.map +1 -0
- package/dist/scheduler/tasks/fetch-hot-data.task.d.ts +34 -0
- package/dist/scheduler/tasks/fetch-hot-data.task.js +175 -0
- package/dist/scheduler/tasks/fetch-hot-data.task.js.map +1 -0
- package/dist/token/coolapk.d.ts +11 -0
- package/dist/token/coolapk.js +40 -0
- package/dist/token/coolapk.js.map +1 -0
- package/dist/token/token.module.d.ts +2 -0
- package/dist/token/token.module.js +23 -0
- package/dist/token/token.module.js.map +1 -0
- package/dist/token/token.service.d.ts +19 -0
- package/dist/token/token.service.js +115 -0
- package/dist/token/token.service.js.map +1 -0
- package/dist/token/tools.d.ts +1 -0
- package/dist/token/tools.js +15 -0
- package/dist/token/tools.js.map +1 -0
- package/dist/token/weread.d.ts +2 -0
- package/dist/token/weread.js +55 -0
- package/dist/token/weread.js.map +1 -0
- package/dist/utils/getNum.d.ts +1 -0
- package/dist/utils/getNum.js +20 -0
- package/dist/utils/getNum.js.map +1 -0
- package/dist/utils/getTime.d.ts +11 -0
- package/dist/utils/getTime.js +134 -0
- package/dist/utils/getTime.js.map +1 -0
- package/dist/utils/headers.d.ts +16 -0
- package/dist/utils/headers.js +20 -0
- package/dist/utils/headers.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +12 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/parseRSS.d.ts +11 -0
- package/dist/utils/parseRSS.js +47 -0
- package/dist/utils/parseRSS.js.map +1 -0
- package/package.json +148 -4
- package/views/home.hbs +65 -0
|
@@ -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AA;AA7FY,kCAAW;sBAAX,WAAW;IAPvB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,+BAA+B;KACtC,CAAC;qCAE0C,gCAAiB;GADhD,WAAW,CA6FvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class IfanrSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IfanrSource = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
15
|
+
const http_service_1 = require("../../http/http.service");
|
|
16
|
+
const getTime_1 = require("../../utils/getTime");
|
|
17
|
+
let IfanrSource = class IfanrSource {
|
|
18
|
+
constructor(httpService) {
|
|
19
|
+
this.httpService = httpService;
|
|
20
|
+
}
|
|
21
|
+
async getList(options, noCache) {
|
|
22
|
+
const url = 'https://sso.ifanr.com/api/v5/wp/buzz/?limit=20&offset=0';
|
|
23
|
+
const result = await this.httpService.get({
|
|
24
|
+
url,
|
|
25
|
+
noCache,
|
|
26
|
+
});
|
|
27
|
+
const list = result.data.objects || [];
|
|
28
|
+
return {
|
|
29
|
+
data: list.map((v) => {
|
|
30
|
+
return {
|
|
31
|
+
id: v.id,
|
|
32
|
+
title: v.post_title,
|
|
33
|
+
desc: v.post_content,
|
|
34
|
+
timestamp: (0, getTime_1.getTime)(v.created_at),
|
|
35
|
+
hot: v.like_count || v.comment_count,
|
|
36
|
+
url: v.buzz_original_url || `https://www.ifanr.com/${v.post_id}`,
|
|
37
|
+
mobileUrl: v.buzz_original_url || `https://www.ifanr.com/digest/${v.post_id}`,
|
|
38
|
+
};
|
|
39
|
+
}),
|
|
40
|
+
fromCache: result.fromCache,
|
|
41
|
+
updateTime: result.updateTime,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.IfanrSource = IfanrSource;
|
|
46
|
+
exports.IfanrSource = IfanrSource = __decorate([
|
|
47
|
+
(0, common_1.Injectable)(),
|
|
48
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
49
|
+
name: 'ifanr',
|
|
50
|
+
title: '爱范儿',
|
|
51
|
+
type: '快讯',
|
|
52
|
+
description: '15秒了解全球新鲜事',
|
|
53
|
+
link: 'https://www.ifanr.com/digest/',
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
56
|
+
], IfanrSource);
|
|
57
|
+
//# sourceMappingURL=ifanr.source.js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AAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,+BAA+B;KACtC,CAAC;qCAE0C,gCAAiB;GADhD,WAAW,CAgCvB"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HOT_LIST_SOURCES = void 0;
|
|
4
|
+
const zhihu_source_1 = require("./zhihu.source");
|
|
5
|
+
const baidu_source_1 = require("./baidu.source");
|
|
6
|
+
const bilibili_source_1 = require("./bilibili.source");
|
|
7
|
+
const github_source_1 = require("./github.source");
|
|
8
|
+
const juejin_source_1 = require("./juejin.source");
|
|
9
|
+
const _36kr_source_1 = require("./36kr.source");
|
|
10
|
+
const _51cto_source_1 = require("./51cto.source");
|
|
11
|
+
const _52pojie_source_1 = require("./52pojie.source");
|
|
12
|
+
const acfun_source_1 = require("./acfun.source");
|
|
13
|
+
const caixin_source_1 = require("./caixin.source");
|
|
14
|
+
const cls_source_1 = require("./cls.source");
|
|
15
|
+
const coolapk_source_1 = require("./coolapk.source");
|
|
16
|
+
const csdn_source_1 = require("./csdn.source");
|
|
17
|
+
const dgtle_source_1 = require("./dgtle.source");
|
|
18
|
+
const douban_group_source_1 = require("./douban-group.source");
|
|
19
|
+
const douban_movie_source_1 = require("./douban-movie.source");
|
|
20
|
+
const douyin_1 = require("./douyin");
|
|
21
|
+
const eastmoney_stock_source_1 = require("./eastmoney-stock.source");
|
|
22
|
+
const eastmoney_source_1 = require("./eastmoney.source");
|
|
23
|
+
const geekpark_source_1 = require("./geekpark.source");
|
|
24
|
+
const guokr_source_1 = require("./guokr.source");
|
|
25
|
+
const hackernews_source_1 = require("./hackernews.source");
|
|
26
|
+
const hellogithub_source_1 = require("./hellogithub.source");
|
|
27
|
+
const history_source_1 = require("./history.source");
|
|
28
|
+
const honkai_source_1 = require("./honkai.source");
|
|
29
|
+
const hostloc_source_1 = require("./hostloc.source");
|
|
30
|
+
const huxiu_source_1 = require("./huxiu.source");
|
|
31
|
+
const ifanr_source_1 = require("./ifanr.source");
|
|
32
|
+
const ithome_xijiayi_source_1 = require("./ithome-xijiayi.source");
|
|
33
|
+
const ithome_source_1 = require("./ithome.source");
|
|
34
|
+
const jianshu_source_1 = require("./jianshu.source");
|
|
35
|
+
const jd_source_1 = require("./jd.source");
|
|
36
|
+
const jin10_source_1 = require("./jin10.source");
|
|
37
|
+
const kuaishou_source_1 = require("./kuaishou.source");
|
|
38
|
+
const linuxdo_source_1 = require("./linuxdo.source");
|
|
39
|
+
const lol_source_1 = require("./lol.source");
|
|
40
|
+
const miyoushe_source_1 = require("./miyoushe.source");
|
|
41
|
+
const netease_news_source_1 = require("./netease-news.source");
|
|
42
|
+
const ngabbs_source_1 = require("./ngabbs.source");
|
|
43
|
+
const nodeseek_source_1 = require("./nodeseek.source");
|
|
44
|
+
const nytimes_source_1 = require("./nytimes.source");
|
|
45
|
+
const producthunt_source_1 = require("./producthunt.source");
|
|
46
|
+
const qq_news_source_1 = require("./qq-news.source");
|
|
47
|
+
const sina_news_source_1 = require("./sina-news.source");
|
|
48
|
+
const sina_source_1 = require("./sina.source");
|
|
49
|
+
const smzdm_source_1 = require("./smzdm.source");
|
|
50
|
+
const sspai_source_1 = require("./sspai.source");
|
|
51
|
+
const starrail_source_1 = require("./starrail.source");
|
|
52
|
+
const taobao_source_1 = require("./taobao.source");
|
|
53
|
+
const thepaper_source_1 = require("./thepaper.source");
|
|
54
|
+
const tieba_source_1 = require("./tieba.source");
|
|
55
|
+
const toutiao_source_1 = require("./toutiao.source");
|
|
56
|
+
const v2ex_source_1 = require("./v2ex.source");
|
|
57
|
+
const wallstreet_source_1 = require("./wallstreet.source");
|
|
58
|
+
const weatheralarm_source_1 = require("./weatheralarm.source");
|
|
59
|
+
const weibo_source_1 = require("./weibo.source");
|
|
60
|
+
const weread_source_1 = require("./weread.source");
|
|
61
|
+
const yicai_source_1 = require("./yicai.source");
|
|
62
|
+
const xinyu_source_1 = require("./xinyu.source");
|
|
63
|
+
const yystv_source_1 = require("./yystv.source");
|
|
64
|
+
const zhihu_daily_source_1 = require("./zhihu-daily.source");
|
|
65
|
+
const hupu_source_1 = require("./hupu.source");
|
|
66
|
+
const tonghuashun_source_1 = require("./tonghuashun.source");
|
|
67
|
+
const gelonghui_source_1 = require("./gelonghui.source");
|
|
68
|
+
exports.HOT_LIST_SOURCES = [
|
|
69
|
+
zhihu_source_1.ZhihuSource,
|
|
70
|
+
baidu_source_1.BaiduSource,
|
|
71
|
+
bilibili_source_1.BilibiliSource,
|
|
72
|
+
github_source_1.GitHubSource,
|
|
73
|
+
juejin_source_1.JuejinSource,
|
|
74
|
+
_36kr_source_1.Kr36Source,
|
|
75
|
+
_51cto_source_1._51ctoSource,
|
|
76
|
+
_52pojie_source_1.PojieSource,
|
|
77
|
+
acfun_source_1.AcFunSource,
|
|
78
|
+
caixin_source_1.CaixinSource,
|
|
79
|
+
cls_source_1.ClsSource,
|
|
80
|
+
coolapk_source_1.CoolapkSource,
|
|
81
|
+
csdn_source_1.CsdnSource,
|
|
82
|
+
dgtle_source_1.DgtleSource,
|
|
83
|
+
douban_group_source_1.DoubanGroupSource,
|
|
84
|
+
douban_movie_source_1.DoubanMovieSource,
|
|
85
|
+
douyin_1.DouyinSource,
|
|
86
|
+
eastmoney_stock_source_1.EastmoneyStockSource,
|
|
87
|
+
eastmoney_source_1.EastmoneySource,
|
|
88
|
+
geekpark_source_1.GeekparkSource,
|
|
89
|
+
guokr_source_1.GuokrSource,
|
|
90
|
+
hackernews_source_1.HackerNewsSource,
|
|
91
|
+
hellogithub_source_1.HelloGitHubSource,
|
|
92
|
+
history_source_1.HistorySource,
|
|
93
|
+
honkai_source_1.HonkaiSource,
|
|
94
|
+
hostloc_source_1.HostlocSource,
|
|
95
|
+
huxiu_source_1.HuxiuSource,
|
|
96
|
+
ifanr_source_1.IfanrSource,
|
|
97
|
+
ithome_xijiayi_source_1.IthomeXijiaYiSource,
|
|
98
|
+
ithome_source_1.IthomeSource,
|
|
99
|
+
jianshu_source_1.JianshuSource,
|
|
100
|
+
jd_source_1.JdSource,
|
|
101
|
+
jin10_source_1.Jin10Source,
|
|
102
|
+
kuaishou_source_1.KuaishouSource,
|
|
103
|
+
linuxdo_source_1.LinuxdoSource,
|
|
104
|
+
lol_source_1.LolSource,
|
|
105
|
+
miyoushe_source_1.MiyousheSource,
|
|
106
|
+
netease_news_source_1.NeteaseNewsSource,
|
|
107
|
+
ngabbs_source_1.NgabbsSource,
|
|
108
|
+
nodeseek_source_1.NodeseekSource,
|
|
109
|
+
nytimes_source_1.NyTimesSource,
|
|
110
|
+
producthunt_source_1.ProductHuntSource,
|
|
111
|
+
qq_news_source_1.QQNewsSource,
|
|
112
|
+
sina_news_source_1.SinaNewsSource,
|
|
113
|
+
sina_source_1.SinaSource,
|
|
114
|
+
smzdm_source_1.SmzdmSource,
|
|
115
|
+
sspai_source_1.SsPaiSource,
|
|
116
|
+
starrail_source_1.StarrailSource,
|
|
117
|
+
taobao_source_1.TaobaoSource,
|
|
118
|
+
thepaper_source_1.ThepaperSource,
|
|
119
|
+
tieba_source_1.TiebaSource,
|
|
120
|
+
toutiao_source_1.ToutiaoSource,
|
|
121
|
+
v2ex_source_1.V2exSource,
|
|
122
|
+
wallstreet_source_1.WallstreetSource,
|
|
123
|
+
weatheralarm_source_1.WeatheralarmSource,
|
|
124
|
+
weibo_source_1.WeiboSource,
|
|
125
|
+
weread_source_1.WereadSource,
|
|
126
|
+
yicai_source_1.YicaiSource,
|
|
127
|
+
xinyu_source_1.XinyuSource,
|
|
128
|
+
yystv_source_1.YystvSource,
|
|
129
|
+
zhihu_daily_source_1.ZhihuDailySource,
|
|
130
|
+
hupu_source_1.HupuSource,
|
|
131
|
+
tonghuashun_source_1.TonghuashunSource,
|
|
132
|
+
gelonghui_source_1.GelonghuiSource,
|
|
133
|
+
];
|
|
134
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/host-lists/sources/index.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAC7C,iDAA6C;AAC7C,uDAAmD;AACnD,mDAA+C;AAC/C,mDAA+C;AAC/C,gDAA2C;AAC3C,kDAA8C;AAC9C,sDAA+C;AAC/C,iDAA6C;AAC7C,mDAA+C;AAC/C,6CAAyC;AACzC,qDAAiD;AACjD,+CAA2C;AAC3C,iDAA6C;AAC7C,+DAA0D;AAC1D,+DAA0D;AAC1D,qCAAwC;AACxC,qEAAgE;AAChE,yDAAqD;AACrD,uDAAmD;AACnD,iDAA6C;AAC7C,2DAAuD;AACvD,6DAAyD;AACzD,qDAAiD;AACjD,mDAA+C;AAC/C,qDAAiD;AACjD,iDAA6C;AAC7C,iDAA6C;AAC7C,mEAA8D;AAC9D,mDAA+C;AAC/C,qDAAiD;AACjD,2CAAuC;AACvC,iDAA6C;AAC7C,uDAAmD;AACnD,qDAAiD;AACjD,6CAAyC;AACzC,uDAAmD;AACnD,+DAA0D;AAC1D,mDAA+C;AAC/C,uDAAmD;AACnD,qDAAiD;AACjD,6DAAyD;AACzD,qDAAgD;AAChD,yDAAoD;AACpD,+CAA2C;AAC3C,iDAA6C;AAC7C,iDAA6C;AAC7C,uDAAmD;AACnD,mDAA+C;AAC/C,uDAAmD;AACnD,iDAA6C;AAC7C,qDAAiD;AACjD,+CAA2C;AAC3C,2DAAuD;AACvD,+DAA2D;AAC3D,iDAA6C;AAC7C,mDAA+C;AAC/C,iDAA6C;AAC7C,iDAA6C;AAC7C,iDAA6C;AAC7C,6DAAwD;AACxD,+CAA2C;AAC3C,6DAAyD;AACzD,yDAAqD;AAExC,QAAA,gBAAgB,GAAe;IAC1C,0BAAW;IACX,0BAAW;IACX,gCAAc;IACd,4BAAY;IACZ,4BAAY;IACZ,yBAAU;IACV,4BAAY;IACZ,6BAAW;IACX,0BAAW;IACX,4BAAY;IACZ,sBAAS;IACT,8BAAa;IACb,wBAAU;IACV,0BAAW;IACX,uCAAiB;IACjB,uCAAiB;IACjB,qBAAY;IACZ,6CAAoB;IACpB,kCAAe;IACf,gCAAc;IACd,0BAAW;IACX,oCAAgB;IAChB,sCAAiB;IACjB,8BAAa;IACb,4BAAY;IACZ,8BAAa;IACb,0BAAW;IACX,0BAAW;IACX,2CAAmB;IACnB,4BAAY;IACZ,8BAAa;IACb,oBAAQ;IACR,0BAAW;IACX,gCAAc;IACd,8BAAa;IACb,sBAAS;IACT,gCAAc;IACd,uCAAiB;IACjB,4BAAY;IACZ,gCAAc;IACd,8BAAa;IACb,sCAAiB;IACjB,6BAAY;IACZ,iCAAc;IACd,wBAAU;IACV,0BAAW;IACX,0BAAW;IACX,gCAAc;IACd,4BAAY;IACZ,gCAAc;IACd,0BAAW;IACX,8BAAa;IACb,wBAAU;IACV,oCAAgB;IAChB,wCAAkB;IAClB,0BAAW;IACX,4BAAY;IACZ,0BAAW;IACX,0BAAW;IACX,0BAAW;IACX,qCAAgB;IAChB,wBAAU;IACV,sCAAiB;IACjB,kCAAe;CAChB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class IthomeXijiaYiSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IthomeXijiaYiSource = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
15
|
+
const http_service_1 = require("../../http/http.service");
|
|
16
|
+
const getTime_1 = require("../../utils/getTime");
|
|
17
|
+
const cheerio_1 = require("cheerio");
|
|
18
|
+
const replaceLink = (url, getId = false) => {
|
|
19
|
+
const match = url.match(/https:\/\/www\.ithome\.com\/0\/(\d+)\/(\d+)\.htm/);
|
|
20
|
+
if (match && match[1] && match[2]) {
|
|
21
|
+
return getId
|
|
22
|
+
? match[1] + match[2]
|
|
23
|
+
: `https://m.ithome.com/html/${match[1]}${match[2]}.htm`;
|
|
24
|
+
}
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
let IthomeXijiaYiSource = class IthomeXijiaYiSource {
|
|
28
|
+
constructor(httpService) {
|
|
29
|
+
this.httpService = httpService;
|
|
30
|
+
}
|
|
31
|
+
async getList(options, noCache) {
|
|
32
|
+
const url = `https://www.ithome.com/zt/xijiayi`;
|
|
33
|
+
const result = await this.httpService.get({
|
|
34
|
+
url,
|
|
35
|
+
noCache,
|
|
36
|
+
});
|
|
37
|
+
const $ = (0, cheerio_1.load)(result.data);
|
|
38
|
+
const listDom = $('.newslist li');
|
|
39
|
+
const listData = listDom.toArray().map((item) => {
|
|
40
|
+
const dom = $(item);
|
|
41
|
+
const href = dom.find('a').attr('href');
|
|
42
|
+
const time = dom.find('span.time').text().trim();
|
|
43
|
+
const match = time.match(/'([^']+)'/);
|
|
44
|
+
const dateTime = match ? match[1] : undefined;
|
|
45
|
+
return {
|
|
46
|
+
id: href ? Number(replaceLink(href, true)) : 100000,
|
|
47
|
+
title: dom.find('.newsbody h2').text().trim(),
|
|
48
|
+
desc: dom.find('.newsbody p').text().trim(),
|
|
49
|
+
cover: dom.find('img').attr('data-original'),
|
|
50
|
+
timestamp: (0, getTime_1.getTime)(dateTime || 0),
|
|
51
|
+
hot: Number(dom.find('.comment').text().replace(/\D/g, '')),
|
|
52
|
+
url: href || '',
|
|
53
|
+
mobileUrl: href ? replaceLink(href) : '',
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
data: listData,
|
|
58
|
+
fromCache: result.fromCache,
|
|
59
|
+
updateTime: result.updateTime,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
exports.IthomeXijiaYiSource = IthomeXijiaYiSource;
|
|
64
|
+
exports.IthomeXijiaYiSource = IthomeXijiaYiSource = __decorate([
|
|
65
|
+
(0, common_1.Injectable)(),
|
|
66
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
67
|
+
name: 'ithome-xijiayi',
|
|
68
|
+
title: 'IT之家「喜加一」',
|
|
69
|
+
type: '最新动态',
|
|
70
|
+
description: '最新最全的「喜加一」游戏动态尽在这里!',
|
|
71
|
+
link: 'https://www.ithome.com/zt/xijiayi',
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
74
|
+
], IthomeXijiaYiSource);
|
|
75
|
+
//# sourceMappingURL=ithome-xijiayi.source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ith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CAAC;IACJ,CAAC;CACF,CAAA;AAvCY,kDAAmB;8BAAnB,mBAAmB;IAR/B,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mCAAmC;KAC1C,CAAC;qCAE0C,gCAAiB;GADhD,mBAAmB,CAuC/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class IthomeSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IthomeSource = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
15
|
+
const http_service_1 = require("../../http/http.service");
|
|
16
|
+
const getTime_1 = require("../../utils/getTime");
|
|
17
|
+
const cheerio_1 = require("cheerio");
|
|
18
|
+
const replaceLink = (url, getId = false) => {
|
|
19
|
+
const match = url.match(/[html|live]\/(\d+)\.htm/);
|
|
20
|
+
if (match && match[1]) {
|
|
21
|
+
return getId
|
|
22
|
+
? match[1]
|
|
23
|
+
: `https://www.ithome.com/0/${match[1].slice(0, 3)}/${match[1].slice(3)}.htm`;
|
|
24
|
+
}
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
let IthomeSource = class IthomeSource {
|
|
28
|
+
constructor(httpService) {
|
|
29
|
+
this.httpService = httpService;
|
|
30
|
+
}
|
|
31
|
+
async getList(options, noCache) {
|
|
32
|
+
const url = `https://m.ithome.com/rankm/`;
|
|
33
|
+
const result = await this.httpService.get({
|
|
34
|
+
url,
|
|
35
|
+
noCache,
|
|
36
|
+
});
|
|
37
|
+
const $ = (0, cheerio_1.load)(result.data);
|
|
38
|
+
const listDom = $('.rank-box .placeholder');
|
|
39
|
+
const listData = listDom.toArray().map((item) => {
|
|
40
|
+
const dom = $(item);
|
|
41
|
+
const href = dom.find('a').attr('href');
|
|
42
|
+
return {
|
|
43
|
+
id: href ? Number(replaceLink(href, true)) : 100000,
|
|
44
|
+
title: dom.find('.plc-title').text().trim(),
|
|
45
|
+
cover: dom.find('img').attr('data-original'),
|
|
46
|
+
timestamp: (0, getTime_1.getTime)(dom.find('span.post-time').text().trim()),
|
|
47
|
+
hot: Number(dom.find('.review-num').text().replace(/\D/g, '')),
|
|
48
|
+
url: href ? replaceLink(href) : '',
|
|
49
|
+
mobileUrl: href ? replaceLink(href) : '',
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
return {
|
|
53
|
+
data: listData,
|
|
54
|
+
fromCache: result.fromCache,
|
|
55
|
+
updateTime: result.updateTime,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
exports.IthomeSource = IthomeSource;
|
|
60
|
+
exports.IthomeSource = IthomeSource = __decorate([
|
|
61
|
+
(0, common_1.Injectable)(),
|
|
62
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
63
|
+
name: 'ithome',
|
|
64
|
+
title: 'IT之家',
|
|
65
|
+
type: '热榜',
|
|
66
|
+
description: '爱科技,爱这里 - 前沿科技新闻网站',
|
|
67
|
+
link: 'https://m.ithome.com/rankm/',
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
70
|
+
], IthomeSource);
|
|
71
|
+
//# sourceMappingURL=ithome.source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ithome.source.js","sourceRoot":"","sources":["../../../src/host-lists/sources/ithome.source.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6EAA+D;AAG/D,0DAA4D;AAE5D,iDAA4C;AAC5C,qCAA+B;AAG/B,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,QAAiB,KAAK,EAAE,EAAE;IAC1D,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAEnD,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACtB,OAAO,KAAK;YACV,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,CAAC,CAAC,4BAA4B,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IAClF,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAUK,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,YAA6B,WAA8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AW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;gBAClC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;aACzC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACJ,CAAC;CACF,CAAA;AAnCY,oCAAY;uBAAZ,YAAY;IARxB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,6BAA6B;KACpC,CAAC;qCAE0C,gCAAiB;GADhD,YAAY,CAmCxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class JdSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(_options: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.JdSource = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const cheerio_1 = require("cheerio");
|
|
15
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
16
|
+
const http_service_1 = require("../../http/http.service");
|
|
17
|
+
const JD_HOME_URL = 'https://www.jd.com/';
|
|
18
|
+
const rankLinkPattern = /\/\/www\.jd\.com\/(?:phb|jxinfo|zxnews)\/[A-Za-z0-9_/.-]+\.html/;
|
|
19
|
+
const toAbsoluteUrl = (url) => {
|
|
20
|
+
if (url.startsWith('//'))
|
|
21
|
+
return `https:${url}`;
|
|
22
|
+
if (url.startsWith('/'))
|
|
23
|
+
return `https://www.jd.com${url}`;
|
|
24
|
+
return url;
|
|
25
|
+
};
|
|
26
|
+
const toMobileSearchUrl = (keyword) => `https://so.m.jd.com/ware/search.action?keyword=${encodeURIComponent(keyword)}&sort_type=sort_totalsales15_desc`;
|
|
27
|
+
let JdSource = class JdSource {
|
|
28
|
+
constructor(httpService) {
|
|
29
|
+
this.httpService = httpService;
|
|
30
|
+
}
|
|
31
|
+
async getList(_options, noCache) {
|
|
32
|
+
const result = await this.httpService.get({
|
|
33
|
+
url: JD_HOME_URL,
|
|
34
|
+
noCache,
|
|
35
|
+
headers: {
|
|
36
|
+
Referer: JD_HOME_URL,
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
const $ = (0, cheerio_1.load)(result.data);
|
|
40
|
+
const seen = new Set();
|
|
41
|
+
const list = [];
|
|
42
|
+
$('a[href]').each((_, el) => {
|
|
43
|
+
const href = $(el).attr('href');
|
|
44
|
+
const title = $(el).text().trim().replace(/\s+/g, ' ');
|
|
45
|
+
if (!href || !title)
|
|
46
|
+
return;
|
|
47
|
+
const url = toAbsoluteUrl(href);
|
|
48
|
+
if (!rankLinkPattern.test(url) || seen.has(url))
|
|
49
|
+
return;
|
|
50
|
+
seen.add(url);
|
|
51
|
+
list.push({ title, url });
|
|
52
|
+
});
|
|
53
|
+
return {
|
|
54
|
+
data: list.map((item, index) => ({
|
|
55
|
+
id: item.url,
|
|
56
|
+
title: item.title,
|
|
57
|
+
desc: '京东官方排行榜或热销相关入口',
|
|
58
|
+
hot: index + 1,
|
|
59
|
+
timestamp: 0,
|
|
60
|
+
url: item.url,
|
|
61
|
+
mobileUrl: toMobileSearchUrl(item.title),
|
|
62
|
+
})),
|
|
63
|
+
type: '热销总榜',
|
|
64
|
+
description: '京东首页官方曝光的排行榜与热销相关入口,条目链接到京东官方页面。',
|
|
65
|
+
fromCache: result.fromCache,
|
|
66
|
+
updateTime: result.updateTime,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
exports.JdSource = JdSource;
|
|
71
|
+
exports.JdSource = JdSource = __decorate([
|
|
72
|
+
(0, common_1.Injectable)(),
|
|
73
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
74
|
+
name: 'jd',
|
|
75
|
+
title: '京东',
|
|
76
|
+
type: '热销总榜',
|
|
77
|
+
description: '京东首页官方曝光的排行榜与热销相关入口,条目链接到京东官方页面。',
|
|
78
|
+
link: JD_HOME_URL,
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
81
|
+
], JdSource);
|
|
82
|
+
//# sourceMappingURL=jd.source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jd.source.js","sourceRoot":"","sources":["../../../src/host-lists/sources/jd.source.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,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import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class JianshuSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.JianshuSource = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
15
|
+
const http_service_1 = require("../../http/http.service");
|
|
16
|
+
const cheerio_1 = require("cheerio");
|
|
17
|
+
const getID = (url) => {
|
|
18
|
+
if (!url)
|
|
19
|
+
return 'undefined';
|
|
20
|
+
const match = url.match(/([^/]+)$/);
|
|
21
|
+
return match ? match[1] : 'undefined';
|
|
22
|
+
};
|
|
23
|
+
let JianshuSource = class JianshuSource {
|
|
24
|
+
constructor(httpService) {
|
|
25
|
+
this.httpService = httpService;
|
|
26
|
+
}
|
|
27
|
+
async getList(options, noCache) {
|
|
28
|
+
const url = `https://www.jianshu.com/`;
|
|
29
|
+
const result = await this.httpService.get({
|
|
30
|
+
url,
|
|
31
|
+
noCache,
|
|
32
|
+
headers: {
|
|
33
|
+
Referer: 'https://www.jianshu.com',
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
const $ = (0, cheerio_1.load)(result.data);
|
|
37
|
+
const listDom = $('ul.note-list li');
|
|
38
|
+
const listData = listDom.toArray().map((item) => {
|
|
39
|
+
const dom = $(item);
|
|
40
|
+
const href = dom.find('a').attr('href') || '';
|
|
41
|
+
return {
|
|
42
|
+
id: getID(href),
|
|
43
|
+
title: dom.find('a.title').text()?.trim(),
|
|
44
|
+
cover: dom.find('img').attr('src'),
|
|
45
|
+
desc: dom.find('p.abstract').text()?.trim(),
|
|
46
|
+
author: dom.find('a.nickname').text()?.trim(),
|
|
47
|
+
hot: undefined,
|
|
48
|
+
timestamp: undefined,
|
|
49
|
+
url: `https://www.jianshu.com${href}`,
|
|
50
|
+
mobileUrl: `https://www.jianshu.com${href}`,
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
return {
|
|
54
|
+
data: listData,
|
|
55
|
+
fromCache: result.fromCache,
|
|
56
|
+
updateTime: result.updateTime,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.JianshuSource = JianshuSource;
|
|
61
|
+
exports.JianshuSource = JianshuSource = __decorate([
|
|
62
|
+
(0, common_1.Injectable)(),
|
|
63
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
64
|
+
name: 'jianshu',
|
|
65
|
+
title: '简书',
|
|
66
|
+
type: '热门推荐',
|
|
67
|
+
description: '一个优质的创作社区',
|
|
68
|
+
link: 'https://www.jianshu.com/',
|
|
69
|
+
}),
|
|
70
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
71
|
+
], JianshuSource);
|
|
72
|
+
//# sourceMappingURL=jianshu.source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jianshu.source.js","sourceRoot":"","sources":["../../../src/host-lists/sources/jianshu.source.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6EAA+D;AAG/D,0DAA4D;AAE5D,qCAA+B;AAG/B,MAAM,KAAK,GAAG,CAAC,GAAW,EAAE,EAAE;IAC5B,IAAI,CAAC,GAAG;QAAE,OAAO,WAAW,CAAC;IAC7B,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACpC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;AACxC,CAAC,CAAC;AAUK,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAA6B,WAA8B;QAA9B,gBAAW,GAAX,WAAW,CAAmB;IAAG,CAAC;IAE/D,KAAK,CAAC,OAAO,CACX,OAAuB,EACvB,OAAiB;QAEjB,MAAM,GAAG,GAAG,0BAA0B,CAAC;QACvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAS;YAChD,GAAG;YACH,OAAO;YACP,OAAO,EAAE;gBACP,OAAO,EAAE,yBAAyB;aACnC;SACF,CAAC,CAAC;QAEH,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5B,MAAM,OAAO,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC;QACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAC9C,MAAM,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;YACpB,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YAC9C,OAAO;gBACL,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC;gBACf,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE;gBACzC,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;gBAClC,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE;gBAC3C,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE;gBAC7C,GAAG,EAAE,SAAS;gBACd,SAAS,EAAE,SAAS;gBACpB,GAAG,EAAE,0BAA0B,IAAI,EAAE;gBACrC,SAAS,EAAE,0BAA0B,IAAI,EAAE;aAC5C,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACJ,CAAC;CACF,CAAA;AAxCY,sCAAa;wBAAb,aAAa;IARzB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,0BAA0B;KACjC,CAAC;qCAE0C,gCAAiB;GADhD,aAAa,CAwCzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class Jin10Source implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|