Skip to content

Commit

Permalink
fix(route): remove some descs by using options
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Sep 24, 2024
1 parent 0e7fb35 commit 40055cc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
4 changes: 2 additions & 2 deletions lib/routes/newyorker/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const route: Route = {
source: ['newyorker.com/:category?'],
},
],
name: 'The New Yorker',
maintainers: ['EthanWng97'],
name: 'Articles',
maintainers: ['EthanWng97', 'pseudoyu'],
handler,
};

Expand Down
11 changes: 0 additions & 11 deletions lib/routes/nhk/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,6 @@ export const route: Route = {
name: 'WORLD-JAPAN - Top Stories',
maintainers: ['TonyRL', 'pseudoyu'],
handler,
description: `| العربية | বাংলা | မြန်မာဘာသာစကား | 中文(简体) | 中文(繁體) | English | Français |
| ------- | -- | ------------ | ------------ | ------------ | ------- | -------- |
| ar | bn | my | zh | zt | en | fr |
| हिन्दी | Bahasa Indonesia | 코리언 | فارسی | Português | Русский | Español |
| -- | ---------------- | ------ | ----- | --------- | ------- | ------- |
| hi | id | ko | fa | pt | ru | es |
| Kiswahili | ภาษาไทย | Türkçe | Українська | اردو | Tiếng Việt |
| --------- | ------- | ------ | ---------- | ---- | ---------- |
| sw | th | tr | uk | ur | vi |`,
};

async function handler(ctx) {
Expand Down
35 changes: 25 additions & 10 deletions lib/routes/solidot/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,31 @@ export const route: Route = {
categories: ['traditional-media', 'popular'],
view: ViewType.Articles,
example: '/solidot/linux',
parameters: { type: '消息类型。默认为 www. 在网站上方选择后复制子域名即可' },
parameters: {
type: {
description: '消息类型,在网站上方选择后复制子域名或参见 [https://www.solidot.org/index.rss](https://www.solidot.org/index.rss) 即可',
options: [
{ value: 'www', label: '全部' },
{ value: 'startup', label: '创业' },
{ value: 'linux', label: 'Linux' },
{ value: 'science', label: '科学' },
{ value: 'technology', label: '科技' },
{ value: 'mobile', label: '移动' },
{ value: 'apple', label: '苹果' },
{ value: 'hardware', label: '硬件' },
{ value: 'software', label: '软件' },
{ value: 'security', label: '安全' },
{ value: 'games', label: '游戏' },
{ value: 'books', label: '书籍' },
{ value: 'ask', label: 'ask' },
{ value: 'idle', label: 'idle' },
{ value: 'blog', label: '博客' },
{ value: 'cloud', label: '云计算' },
{ value: 'story', label: '奇客故事' },
],
default: 'www',
},
},
features: {
requireConfig: false,
requirePuppeteer: false,
Expand All @@ -28,15 +52,6 @@ export const route: Route = {
name: '最新消息',
maintainers: ['sgqy', 'hang333', 'TonyRL'],
handler,
description: `:::tip
Solidot 提供的 feed:
- [https://www.solidot.org/index.rss](https://www.solidot.org/index.rss)
:::
| 全部 | 创业 | Linux | 科学 | 科技 | 移动 | 苹果 | 硬件 | 软件 | 安全 | 游戏 | 书籍 | ask | idle | 博客 | 云计算 | 奇客故事 |
| ---- | ------- | ----- | ------- | ---------- | ------ | ----- | -------- | -------- | -------- | ----- | ----- | --- | ---- | ---- | ------ | -------- |
| www | startup | linux | science | technology | mobile | apple | hardware | software | security | games | books | ask | idle | blog | cloud | story |`,
};

async function handler(ctx) {
Expand Down

0 comments on commit 40055cc

Please sign in to comment.