Skip to content

Commit b09e21f

Browse files
authored
Merge pull request #942 from DIYgod/master
[pull] master from diygod:master
2 parents a742641 + b11eee1 commit b09e21f

File tree

22 files changed

+294
-152
lines changed

22 files changed

+294
-152
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# folders
22
.devcontainer
33
.github
4+
.husky
45
.idea
56
.vscode
67
Dockerfile*

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
.env
3+
.eslintcache
34
.idea
45
.log
56
.now

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run format:staged

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ RUN \
1515
pnpm config set registry https://registry.npmmirror.com ; \
1616
fi;
1717

18+
COPY ./scripts/prepare.js /app/scripts/
1819
COPY ./pnpm-lock.yaml /app/
1920
COPY ./package.json /app/
2021

docs/en/programming.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ For instance, the `/github/topics/framework/l=php&o=desc&s=stars` route will gen
223223

224224
<RouteEn author="zhzy0077" example="/github/notifications" path="/github/notifications" radar="1" rssbud="1" selfhost="1"/>
225225

226+
### Gist Commits
227+
228+
<RouteEn author="TonyRL" example="/github/gist/d2c152bb7179d07015f336b1a0582679" path="/github/gist/:gistId" :paramsDesc="['Gist ID']" radar="1" rssbud="1"/>
229+
226230
## GitLab
227231

228232
### Explore

docs/forecast.md

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,6 @@ pageClass: routes
7777

7878
<Route author="nczitzk" example="/12379" path="/12379/index"/>
7979

80-
## 国家应急广播网
81-
82-
### 预警信息
83-
84-
<Route author="muzea" example="/cneb/yjxx" path="/cneb/yjxx"/>
85-
86-
### 国内新闻
87-
88-
<Route author="muzea" example="/cneb/guoneinews" path="/cneb/guoneinews"/>
89-
9080
## 和风天气
9181

9282
### 近三天天气
@@ -187,6 +177,48 @@ pageClass: routes
187177

188178
<Route author="calpa" example="/hko/weather" path="/hko/weather"/>
189179

180+
## 中国国家应急广播
181+
182+
### 预警信息
183+
184+
<Route author="muzea nczitzk" example="/cneb/yjxx" path="/cneb/yjxx/:level?/:province?/:city?" :paramsDesc="['灾害级别,见下表,默认为全部', '省份,默认为空,即全国', '城市,默认为空,即全省']">
185+
186+
灾害级别
187+
188+
| 全部 | 红色 | 橙色 | 黄色 | 蓝色 |
189+
| ---- | ---- | ---- | ---- | ---- |
190+
| | 红色 | 橙色 | 黄色 | 蓝色 |
191+
192+
::: tip 提示
193+
194+
若订阅全国的全部预警信息,此时路由为 [`/cneb/yjxx`](https://rsshub.app/cneb/yjxx)
195+
196+
若订阅全国的 **红色** 预警信息,此时路由为 [`/cneb/yjxx/红色`](https://rsshub.app/cneb/yjxx/红色)
197+
198+
若订阅 **北京市** 的全部预警信息,此时路由为 [`/cneb/yjxx/北京市`](https://rsshub.app/cneb/yjxx/北京市)
199+
200+
若订阅 **北京市****蓝色** 预警信息,此时路由为 [`/cneb/yjxx/北京市/蓝色`](https://rsshub.app/cneb/yjxx/北京市/蓝色)
201+
202+
若订阅 **广东省****橙色** 预警信息,此时路由为 [`/cneb/yjxx/广东省/橙色`](https://rsshub.app/cneb/yjxx/广东省/橙色)
203+
204+
若订阅 **广东省广州市** 的全部预警信息,此时路由为 [`/cneb/yjxx/广东省/广州市`](https://rsshub.app/cneb/yjxx/广东省/广州市)
205+
206+
若订阅 **广东省广州市****黄色** 预警信息,此时路由为 [`/cneb/yjxx/广东省/广州市/黄色`](https://rsshub.app/cneb/yjxx/广东省/广州市/黄色)
207+
208+
:::
209+
210+
</Route>
211+
212+
### 应急新闻
213+
214+
<Route author="nczitzk" example="/cneb/yjxw" path="/cneb/yjxw/:category?" :paramsDesc="['分类,见下表,默认为全部']">
215+
216+
| 全部 | 国内新闻 | 国际新闻 |
217+
| ---- | -------- | -------- |
218+
| | gnxw | gjxw |
219+
220+
</Route>
221+
190222
## 中央气象台
191223

192224
### 全国气象预警

docs/programming.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ GitHub 官方也提供了一些 RSS:
318318

319319
<Route author="zhzy0077" example="/github/notifications" path="/github/notifications" radar="1" rssbud="1" selfhost="1"/>
320320

321+
### Gist Commits
322+
323+
<Route author="TonyRL" example="/github/gist/d2c152bb7179d07015f336b1a0582679" path="/github/gist/:gistId" :paramsDesc="['Gist ID']" radar="1" rssbud="1"/>
324+
321325
## GitLab
322326

323327
### Explore

lib/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,8 +2017,8 @@ router.get('/latexstudio/home', lazyloadRouteHandler('./routes/latexstudio/home'
20172017
router.get('/jskou/:type?', lazyloadRouteHandler('./routes/jskou/index'));
20182018

20192019
// 国家应急广播
2020-
router.get('/cneb/yjxx', lazyloadRouteHandler('./routes/cneb/yjxx'));
2021-
router.get('/cneb/guoneinews', lazyloadRouteHandler('./routes/cneb/guoneinews'));
2020+
// router.get('/cneb/yjxx', lazyloadRouteHandler('./routes/cneb/yjxx'));
2021+
// router.get('/cneb/guoneinews', lazyloadRouteHandler('./routes/cneb/guoneinews'));
20222022

20232023
// 邮箱
20242024
router.get('/mail/imap/:email', lazyloadRouteHandler('./routes/mail/imap'));

lib/routes/cneb/guoneinews.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

lib/routes/cneb/yjxx.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)