Skip to content

Commit

Permalink
chore(route): add more new media routes
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Nov 26, 2024
1 parent 755a732 commit fdfd7e0
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion lib/routes/line/publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { baseUrl, parseList, parseItems } from './utils';

export const route: Route = {
path: '/today/:edition/publisher/:id',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/line/today/th/publisher/101048',
parameters: { edition: 'Edition, see table above', id: 'Channel ID, can be found in URL' },
radar: [
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/line/today.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { baseUrl as rootUrl, parseList, parseItems } from './utils';

export const route: Route = {
path: '/today/:edition?/:tab?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/line/today',
parameters: { edition: 'Edition, see below, Taiwan by default', tab: 'Tag, can be found in URL, `top` by default' },
radar: [
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/liveuamap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import InvalidParameterError from '@/errors/types/invalid-parameter';

export const route: Route = {
path: '/:region?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/liveuamap',
parameters: { region: 'region 热点地区,默认为`ukraine`,其他选项见liveuamap.com的三级域名' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/macfilos/blog.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: '/blog',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/macfilos/blog',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/matters/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: 'Matters',
url: 'matters.town',
categories: ['new-media'],
categories: ['new-media', 'popular'],
lang: 'en',
};
2 changes: 1 addition & 1 deletion lib/routes/mirror/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import InvalidParameterError from '@/errors/types/invalid-parameter';

export const route: Route = {
path: '/:id',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/mirror/tingfei.eth',
parameters: { id: 'user id' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/mygopen/index.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: '/:label?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/mygopen',
parameters: { label: '分類,见下表,默认为首页' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/nautil/topics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const baseUrl = 'https://nautil.us';

export const route: Route = {
path: '/topic/:tid',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/nautil/topic/arts',
parameters: { tid: 'topic' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/odaily/activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { rootUrl } from './utils';

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

export const route: Route = {
path: '/newsflash',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/odaily/newsflash',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/odaily/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const titles = {

export const route: Route = {
path: '/:id?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/odaily',
parameters: { id: 'id,见下表,默认为最新' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/odaily/search-news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { rootUrl } from './utils';

export const route: Route = {
path: '/search/news/:keyword',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/odaily/search/news/RSS3',
parameters: { keyword: '搜索关键字' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/odaily/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { rootUrl } from './utils';

export const route: Route = {
path: '/user/:id',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/odaily/user/2147486902',
parameters: { id: '用户 id,可在用户页地址栏中找到' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/panewslab/author.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: ['/author/:id', '/column/:id'],
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/panewslab/author/166',
parameters: { id: '专栏 id,可在地址栏 URL 中找到' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/panewslab/news.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: '/news',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/panewslab/news',
radar: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/panewslab/profundity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const categories = {

export const route: Route = {
path: '/profundity/:category?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/panewslab/profundity',
parameters: { category: '分类,见下表,默认为精选' },
radar: [
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/panewslab/topic.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: '/topic/:id',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/panewslab/topic/1629365774078402',
parameters: { id: '专题 id,可在地址栏 URL 中找到' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/phoronix/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const tryFetch = async (category, topic) => {

export const route: Route = {
path: '/:category?/:topic?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/phoronix/linux/KDE',
parameters: {
category: 'Category',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/psyche/topic.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: '/topic/:topic',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/psyche/topic/therapeia',
parameters: { topic: 'Topic' },
radar: [
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/questmobile/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const parseTree = (tree, result = []) => {

export const route: Route = {
path: '/report/:industry?/:label?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/questmobile/report',
parameters: { industry: '行业,见下表,默认为 `-1`,即全部行业', label: '标签,见下表,默认为 `-1`,即全部标签' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/readhub/daily.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { rootUrl, apiRootUrl, processItems } from './util';

export const route: Route = {
path: '/daily',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/readhub/daily',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/readhub/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { rootUrl, apiTopicUrl, art, processItems } from './util';

export const route: Route = {
path: '/:category?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/readhub',
parameters: { category: '分类,见下表,默认为热门话题' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/rebase/geekdaily.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: '/geekdaily',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/rebase/geekdaily',
radar: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/thepetcity/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const baseUrl = 'https://thepetcity.co';

export const route: Route = {
path: '/:term?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/thepetcity',
parameters: { term: '見下表,留空為全部文章' },
radar: Object.entries(termsMap).map(([key, value]) => ({
Expand Down

0 comments on commit fdfd7e0

Please sign in to comment.