Skip to content

Commit a63c86a

Browse files
committed
feat: remove notOperational routes - design
1 parent f1a9223 commit a63c86a

File tree

9 files changed

+8
-317
lines changed

9 files changed

+8
-317
lines changed

lib/router.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,9 +1448,6 @@ router.get('/uniqlo/stylingbook/:category?', lazyloadRouteHandler('./routes/uniq
14481448
// unit-image
14491449
router.get('/unit-image/films/:type?', lazyloadRouteHandler('./routes/unit-image/films'));
14501450

1451-
// digic-picture
1452-
router.get('/digic-pictures/:menu/:tags?', lazyloadRouteHandler('./routes/digic-pictures/index'));
1453-
14541451
// Xposed Module Repository
14551452
router.get('/xposed/module/:mod', lazyloadRouteHandler('./routes/xposed/module'));
14561453

@@ -1858,11 +1855,7 @@ router.get('/nwpu/:column', lazyloadRouteHandler('./routes/nwpu/index'));
18581855
router.get('/us/supremecourt/argument_audio/:year?', lazyloadRouteHandler('./routes/us/supremecourt/argument_audio'));
18591856

18601857
// 优设网
1861-
router.get('/uisdc/talk/:sort?', lazyloadRouteHandler('./routes/uisdc/talk'));
18621858
router.get('/uisdc/hangye/:caty?', lazyloadRouteHandler('./routes/uisdc/hangye'));
1863-
router.get('/uisdc/news', lazyloadRouteHandler('./routes/uisdc/news'));
1864-
router.get('/uisdc/zt/:title?', lazyloadRouteHandler('./routes/uisdc/zt'));
1865-
router.get('/uisdc/topic/:title?/:sort?', lazyloadRouteHandler('./routes/uisdc/topic'));
18661859

18671860
// 美国中央情报局
18681861
router.get('/cia/foia-annual-report', lazyloadRouteHandler('./routes/us/cia/foia-annual-report'));

lib/routes/digic-pictures/index.js

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

lib/routes/uisdc/news.js

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

lib/routes/uisdc/talk.js

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

lib/routes/uisdc/topic.js

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

lib/routes/uisdc/zt.js

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

lib/utils/request-wrapper.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ const requestWrapper = (
8686
options.headers['user-agent'] = config.ua;
8787
}
8888

89+
// Accept
90+
if (!headersLowerCaseKeys.includes('Accept')) {
91+
options.headers.Accept = '*/*';
92+
}
93+
8994
let urlHandler;
9095
try {
9196
urlHandler = new URL(options.url || url);

lib/v2/zcool/discover.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ module.exports = async (ctx) => {
9898
const response = await got({
9999
method: 'get',
100100
url: currentUrl,
101+
headers: {
102+
Referer: rootUrl,
103+
},
101104
});
102105

103106
const list = response.data.datas.map((item) => ({

website/docs/routes/design.mdx

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@
4040
| note | computer-skills | design-resources | design-software | design-tutorial | design\_information |
4141
</Route>
4242

43-
## Digic Picture {#digic-picture}
44-
45-
### Works & News {#digic-picture-works-news}
46-
47-
<Route author="MisteryMonster" example="/digic-pictures/works/real-time-engine" path="/digic-pictures/:menu/:tag?" paramsDesc={['`news`, `works`', 'Under WORK types: `/game-cinematics`, `/feature`, `/making-of`, `/commercials-vfx`, `/real-time-engine`']} notOperational="1" />
48-
4943
## Dribbble {#dribbble}
5044

5145
### Popular {#dribbble-popular}
@@ -188,22 +182,6 @@
188182

189183
## 优设网 {#you-she-wang}
190184

191-
### 设计专题 {#you-she-wang-she-ji-zhuan-ti}
192-
193-
<Route author="nczitzk" example="/uisdc/zt/design-history" path="/uisdc/zt/:title?" paramsDesc={['专题名称,可在标签页的 URL 中找到,如 `design-history`;也可填入 `hot` 展示最热门专题,默认展示最新鲜专题']} notOperational="1">
194-
更多设计专题请参见 [优设专题](https://www.uisdc.com/zt)
195-
</Route>
196-
197-
### 细节猎人 {#you-she-wang-xi-jie-lie-ren}
198-
199-
<Route author="nczitzk" example="/uisdc/topic/all" path="/uisdc/topic/:title?/:sort?" paramsDesc={['标签名称,可在标签页的 URL 中找到', '排序方式,`hot` 指最热门,默认为最新鲜']} notOperational="1">
200-
更多细节标签请参见 [全部标签](https://www.uisdc.com/alltopics)
201-
</Route>
202-
203-
### 设计话题 {#you-she-wang-she-ji-hua-ti}
204-
205-
<Route author="nczitzk" example="/uisdc/talk" path="/uisdc/talk/:sort?" paramsDesc={['排序方式,`hot` 指最热门,默认为最新鲜']} notOperational="1" />
206-
207185
### 行业新闻 {#you-she-wang-hang-ye-xin-wen}
208186

209187
<Route author="nczitzk" example="/uisdc/hangye" path="/uisdc/hangye/:caty?" paramsDesc={['分类,见下表,默认为全部新闻']} anticrawler="1">
@@ -212,10 +190,6 @@
212190
| | events-activity | brand-news | new-products |
213191
</Route>
214192

215-
### 优设读报 {#you-she-wang-you-she-du-bao}
216-
217-
<Route author="nczitzk" example="/uisdc/news" path="/uisdc/news" notOperational="1" />
218-
219193
## 站酷 {#zhan-ku}
220194

221195
### 发现(+ 推荐预设) {#zhan-ku-fa-xian-tui-jian-yu-she}

0 commit comments

Comments
 (0)