Skip to content

Commit

Permalink
chore(route): add more popular routes
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Nov 26, 2024
1 parent f9c5ccb commit fa1dcc5
Show file tree
Hide file tree
Showing 42 changed files with 44 additions and 42 deletions.
2 changes: 1 addition & 1 deletion lib/routes/36kr/hot-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const categories = {

export const route: Route = {
path: '/hot-list/:category?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/36kr/hot-list',
parameters: { category: '分类,默认为24小时热榜' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/36kr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const shortcuts = {

export const route: Route = {
path: '/:category/:subCategory?/:keyword?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/36kr/newsflashes',
parameters: {
category: '分类,必填项',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/aeon/category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getData } from './utils';

export const route: Route = {
path: '/category/:category',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/aeon/category/philosophy',
parameters: { category: 'Category' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/aeon/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getData } from './utils';

export const route: Route = {
path: '/:type',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/aeon/essays',
parameters: { type: 'Type' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/aibase/discover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export const route: Route = {
| [法律](https://top.aibase.com/discover/138-139) | [138-139](https://rsshub.app/aibase/discover/138-139) |
</details>
`,
categories: ['new-media'],
categories: ['new-media', 'popular'],

features: {
requireConfig: false,
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/aibase/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const route: Route = {
},
example: '/aibase/news',
description: '获取 AI 资讯列表',
categories: ['new-media'],
categories: ['new-media', 'popular'],
features: {
requireConfig: false,
requirePuppeteer: false,
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/aibase/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const route: Route = {
| [娱乐](https://top.aibase.com/topic/%E5%A8%B1%E4%B9%90) | [简历](https://top.aibase.com/topic/%E7%AE%80%E5%8E%86) | [OpenAI](https://top.aibase.com/topic/OpenAI) | [客户服务](https://top.aibase.com/topic/%E5%AE%A2%E6%88%B7%E6%9C%8D%E5%8A%A1) | [室内设计](https://top.aibase.com/topic/%E5%AE%A4%E5%86%85%E8%AE%BE%E8%AE%A1) |
</details>
`,
categories: ['new-media'],
categories: ['new-media', 'popular'],

features: {
requireConfig: false,
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/appleinsider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date';

export const route: Route = {
path: '/:category?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/appleinsider',
parameters: { category: 'Category, see below, News by default' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/cara/likes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const __dirname = getCurrentPath(import.meta.url);

export const route: Route = {
path: ['/likes/:user'],
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/cara/likes/fengz',
parameters: { user: 'username' },
name: 'Likes',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/cara/portfolio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import cache from '@/utils/cache';

export const route: Route = {
path: ['/portfolio/:user'],
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/cara/portfolio/fengz',
parameters: { user: 'username' },
name: 'Portfolio',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/cara/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const __dirname = getCurrentPath(import.meta.url);

export const route: Route = {
path: ['/timeline/:user'],
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/cara/timeline/fengz',
parameters: { user: 'username' },
name: 'Timeline',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/chub/characters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { parseDate } from '@/utils/parse-date';

export const route: Route = {
path: '/characters',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/chub/characters',
name: 'Characters',
maintainers: ['flameleaf'],
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/cnbeta/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import type { Namespace } from '@/types';
export const namespace: Namespace = {
name: 'cnBeta.COM',
url: 'cnbeta.com.tw',
categories: ['new-media'],
categories: ['new-media', 'popular'],
lang: 'zh-TW',
};
2 changes: 1 addition & 1 deletion lib/routes/dcfever/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { baseUrl, parseItem } from './utils';

export const route: Route = {
path: '/news/:type?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/dcfever/news',
parameters: { type: '分類,預設為所有新聞' },
name: '新聞中心',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/dcfever/reviews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { baseUrl, parseItem } from './utils';

export const route: Route = {
path: '/reviews/:type?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/dcfever/reviews/cameras',
parameters: { type: '分類,預設為 `cameras`' },
radar: [
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/dcfever/trading-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { baseUrl, parseTradeItem } from './utils';

export const route: Route = {
path: '/trading/search/:keyword/:mainCat?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/dcfever/trading/search/Sony',
parameters: { keyword: '關鍵字', mainCat: '主要分類 ID,見上表' },
name: '二手市集 - 物品搜尋',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/dcfever/trading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { baseUrl, parseTradeItem } from './utils';

export const route: Route = {
path: '/trading/:id',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/dcfever/trading/1',
parameters: { id: '分類 ID,見下表' },
name: '二手市集',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/deepmind/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import parser from '@/utils/rss-parser';

export const route: Route = {
path: '/blog',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/deepmind/blog',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/digitalcameraworld/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { parseDate } from '@/utils/parse-date';
const host = 'https://www.digitalcameraworld.com';
export const route: Route = {
path: '/news',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/digitalcameraworld/news',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/dn/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import path from 'node:path';

export const route: Route = {
path: '/:language/news/:category?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/dn/en-us/news',
parameters: { language: 'Language, see below', category: 'Category, see below, The Latest by default' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/fashionnetwork/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Namespace } from '@/types';
export const namespace: Namespace = {
name: 'FashionNetwork',
url: 'fashionnetwork.cn',
categories: ['new-media'],
categories: ['new-media', 'popular'],
description: '',
lang: 'zh-CN',
};
2 changes: 1 addition & 1 deletion lib/routes/foresightnews/article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { rootUrl, apiRootUrl, processItems, icon, image } from './util';

export const route: Route = {
path: '/article',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/foresightnews/article',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/foresightnews/column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { rootUrl, apiRootUrl, processItems, icon, image } from './util';

export const route: Route = {
path: '/column/:id',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/foresightnews/column/1',
parameters: { id: '专栏 id, 可在对应专栏页 URL 中找到' },
features: {
Expand Down
4 changes: 3 additions & 1 deletion lib/routes/foresightnews/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import { rootUrl, apiRootUrl, processItems, icon, image } from './util';

export const route: Route = {
path: '/',
categories: ['new-media', 'popular'],
example: '/foresightnews',
radar: [
{
source: ['foresightnews.pro/'],
target: '',
},
],
name: 'Unknown',
name: '精选资讯',
maintainers: ['nczitzk'],
handler,
url: 'foresightnews.pro/',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/foresightnews/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { rootUrl, apiRootUrl, processItems, icon, image } from './util';

export const route: Route = {
path: '/news',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/foresightnews/news',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/ftm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ofetch from '@/utils/ofetch';

export const route: Route = {
path: '/',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/ftm',
parameters: {},
name: '文章',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/furaffinity/browse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const route: Route = {
path: '/browse/:mode?',
name: 'Browse',
url: 'furaffinity.net',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/furaffinity/browse/nsfw',
maintainers: ['TigerCubDen', 'SkyNetX007'],
parameters: { mode: 'R18 content toggle, default value is sfw, options are sfw, nsfw' },
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/furaffinity/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const route: Route = {
path: '/home/:category/:mode?',
name: 'Home',
url: 'furaffinity.net',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/furaffinity/home/nsfw',
maintainers: ['TigerCubDen', 'SkyNetX007'],
parameters: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/furaffinity/journals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const route: Route = {
path: '/journals/:username',
name: 'Journals',
url: 'furaffinity.net',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/furaffinity/journals/fender',
maintainers: ['TigerCubDen', 'SkyNetX007'],
parameters: { username: 'Username, can find in userpage' },
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/furaffinity/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const route: Route = {
path: '/search/:query/:mode?/:routeParams?',
name: 'Search',
url: 'furaffinity.net',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/furaffinity/search/protogen/nsfw',
maintainers: ['TigerCubDen', 'SkyNetX007'],
parameters: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/furaffinity/shouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const route: Route = {
path: '/shouts/:username',
name: 'Shouts',
url: 'furaffinity.net',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/furaffinity/shouts/fender',
maintainers: ['TigerCubDen', 'SkyNetX007'],
parameters: { username: 'Username, can find in userpage' },
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/furaffinity/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const route: Route = {
path: '/status',
name: 'Status',
url: 'furaffinity.net',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/furaffinity/status',
maintainers: ['TigerCubDen', 'SkyNetX007'],
parameters: {},
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/keep/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import path from 'node:path';

export const route: Route = {
path: '/user/:id',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/keep/user/556b02c1ab59390afea671ea',
parameters: { id: 'Keep 用户 id' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/lofter/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date';

export const route: Route = {
path: '/collection/:collectionID',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/lofter/collection/552041',
parameters: { collectionID: 'Lofter collection ID, can be found in the share URL' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/lofter/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { JSDOM } from 'jsdom';

export const route: Route = {
path: '/tag/:name?/:type?',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/lofter/tag/cosplay/date',
parameters: { name: 'tag name, such as `名侦探柯南`, `摄影` by default', type: 'ranking type, see below, new by default' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/plurk/anonymous.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { baseUrl, getPlurk } from './utils';

export const route: Route = {
path: '/anonymous',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/plurk/anonymous',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/plurk/hotlinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { baseUrl, getPlurk } from './utils';

export const route: Route = {
path: '/hotlinks',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/plurk/hotlinks',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/plurk/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { baseUrl, fetchFriends, getPlurk } from './utils';

export const route: Route = {
path: '/news/:lang?',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/plurk/news/:lang?',
parameters: { lang: 'Language, see the table above, `en` by default' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/plurk/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { baseUrl, getPlurk } from './utils';

export const route: Route = {
path: '/search/:keyword',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/plurk/search/FGO',
parameters: { keyword: 'Search keyword' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/telegram/stickerpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ConfigNotFoundError from '@/errors/types/config-not-found';

export const route: Route = {
path: '/stickerpack/:name',
categories: ['social-media', 'popular'],
categories: ['social-media'],
view: ViewType.Pictures,
example: '/telegram/stickerpack/DIYgod',
parameters: { name: 'Sticker Pack name, available in the sharing URL' },
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/vocus/publication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { processList, ProcessFeed, baseUrl, apiUrl } from './utils';

export const route: Route = {
path: '/publication/:id',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/vocus/publication/bass',
parameters: { id: '出版專題 id,可在出版專題主页的 URL 找到' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/vocus/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { processList, ProcessFeed, baseUrl, apiUrl } from './utils';

export const route: Route = {
path: '/user/:id',
categories: ['social-media'],
categories: ['social-media', 'popular'],
example: '/vocus/user/tsetyan',
parameters: { id: '用户 id,可在用户主页的 URL 找到' },
features: {
Expand Down

0 comments on commit fa1dcc5

Please sign in to comment.