Skip to content

Commit

Permalink
feat: remove notOperational routes - design
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Dec 19, 2023
1 parent f1a9223 commit a63c86a
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 317 deletions.
7 changes: 0 additions & 7 deletions lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -1448,9 +1448,6 @@ router.get('/uniqlo/stylingbook/:category?', lazyloadRouteHandler('./routes/uniq
// unit-image
router.get('/unit-image/films/:type?', lazyloadRouteHandler('./routes/unit-image/films'));

// digic-picture
router.get('/digic-pictures/:menu/:tags?', lazyloadRouteHandler('./routes/digic-pictures/index'));

// Xposed Module Repository
router.get('/xposed/module/:mod', lazyloadRouteHandler('./routes/xposed/module'));

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

// 优设网
router.get('/uisdc/talk/:sort?', lazyloadRouteHandler('./routes/uisdc/talk'));
router.get('/uisdc/hangye/:caty?', lazyloadRouteHandler('./routes/uisdc/hangye'));
router.get('/uisdc/news', lazyloadRouteHandler('./routes/uisdc/news'));
router.get('/uisdc/zt/:title?', lazyloadRouteHandler('./routes/uisdc/zt'));
router.get('/uisdc/topic/:title?/:sort?', lazyloadRouteHandler('./routes/uisdc/topic'));

// 美国中央情报局
router.get('/cia/foia-annual-report', lazyloadRouteHandler('./routes/us/cia/foia-annual-report'));
Expand Down
72 changes: 0 additions & 72 deletions lib/routes/digic-pictures/index.js

This file was deleted.

34 changes: 0 additions & 34 deletions lib/routes/uisdc/news.js

This file was deleted.

58 changes: 0 additions & 58 deletions lib/routes/uisdc/talk.js

This file was deleted.

55 changes: 0 additions & 55 deletions lib/routes/uisdc/topic.js

This file was deleted.

65 changes: 0 additions & 65 deletions lib/routes/uisdc/zt.js

This file was deleted.

5 changes: 5 additions & 0 deletions lib/utils/request-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ const requestWrapper = (
options.headers['user-agent'] = config.ua;
}

// Accept
if (!headersLowerCaseKeys.includes('Accept')) {
options.headers.Accept = '*/*';
}

let urlHandler;
try {
urlHandler = new URL(options.url || url);
Expand Down
3 changes: 3 additions & 0 deletions lib/v2/zcool/discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ module.exports = async (ctx) => {
const response = await got({
method: 'get',
url: currentUrl,
headers: {
Referer: rootUrl,
},
});

const list = response.data.datas.map((item) => ({
Expand Down
26 changes: 0 additions & 26 deletions website/docs/routes/design.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@
| note | computer-skills | design-resources | design-software | design-tutorial | design\_information |
</Route>

## Digic Picture {#digic-picture}

### Works & News {#digic-picture-works-news}

<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" />

## Dribbble {#dribbble}

### Popular {#dribbble-popular}
Expand Down Expand Up @@ -188,22 +182,6 @@

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

### 设计专题 {#you-she-wang-she-ji-zhuan-ti}

<Route author="nczitzk" example="/uisdc/zt/design-history" path="/uisdc/zt/:title?" paramsDesc={['专题名称,可在标签页的 URL 中找到,如 `design-history`;也可填入 `hot` 展示最热门专题,默认展示最新鲜专题']} notOperational="1">
更多设计专题请参见 [优设专题](https://www.uisdc.com/zt)
</Route>

### 细节猎人 {#you-she-wang-xi-jie-lie-ren}

<Route author="nczitzk" example="/uisdc/topic/all" path="/uisdc/topic/:title?/:sort?" paramsDesc={['标签名称,可在标签页的 URL 中找到', '排序方式,`hot` 指最热门,默认为最新鲜']} notOperational="1">
更多细节标签请参见 [全部标签](https://www.uisdc.com/alltopics)
</Route>

### 设计话题 {#you-she-wang-she-ji-hua-ti}

<Route author="nczitzk" example="/uisdc/talk" path="/uisdc/talk/:sort?" paramsDesc={['排序方式,`hot` 指最热门,默认为最新鲜']} notOperational="1" />

### 行业新闻 {#you-she-wang-hang-ye-xin-wen}

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

### 优设读报 {#you-she-wang-you-she-du-bao}

<Route author="nczitzk" example="/uisdc/news" path="/uisdc/news" notOperational="1" />

## 站酷 {#zhan-ku}

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

0 comments on commit a63c86a

Please sign in to comment.