fix(route): remove some descs by using options
This commit is contained in:
@@ -23,8 +23,8 @@ export const route: Route = {
|
||||
source: ['newyorker.com/:category?'],
|
||||
},
|
||||
],
|
||||
name: 'The New Yorker',
|
||||
maintainers: ['EthanWng97'],
|
||||
name: 'Articles',
|
||||
maintainers: ['EthanWng97', 'pseudoyu'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
+25
-10
@@ -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,
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user