diff --git a/docs/design.md b/docs/design.md index 254445714..d557fdb22 100644 --- a/docs/design.md +++ b/docs/design.md @@ -159,22 +159,23 @@ Behance 用户主页 URL 获取用户名,如 + -| 分类 | 韩文分类名 | 中文分类名 | -| ---- | --------------- | --------------- | -| all | 전체 | 全部 | -| A7 | 공예 | 工艺品 | -| J7 | 그래픽 디자인 | 平面设计 | -| B7 | 디지털 아트 | 数字艺术 | -| C7 | 영상/모션그래픽 | 视频 / 图形动画 | -| D7 | 브랜딩/편집 | 品牌创建 / 编辑 | -| E7 | 산업 디자인 | 工业设计 | -| F7 | UI/UX | UI/UX | -| G7 | 일러스트레이션 | 插画 | -| K7 | 타이포그래피 | 字体 | -| H7 | 파인아트 | 纯艺术 | -| I7 | 포토그래피 | 摄影 | +| 分类 | 韩文分类名 | 中文分类名 | +| ---- | ---------------- | --------------- | +| all | 전체 | 全部 | +| 1 | 영상/모션그래픽 | 视频 / 动态图像 | +| 2 | 그래픽 디자인 | 平面设计 | +| 3 | 브랜딩/편집 | 品牌创建 / 编辑 | +| 4 | UI/UX | UI/UX | +| 5 | 일러스트레이션 | 插画 | +| 6 | 디지털 아트 | 数字艺术 | +| 7 | 캐릭터 디자인 | 角色设计 | +| 8 | 품/패키지 디자인 | 产品 / 包装设计 | +| 9 | 포토그래피 | 摄影 | +| 10 | 타이포그래피 | 字体设计 | +| 11 | 공예 | 工艺品 | +| 12 | 파인아트 | 纯艺术 | diff --git a/docs/en/design.md b/docs/en/design.md index 5893dffe3..a26749008 100644 --- a/docs/en/design.md +++ b/docs/en/design.md @@ -105,22 +105,23 @@ Default is under 'https://www.methodstudios.com/en/features'. ### Works - + | Category | Name in Korean | Name in English | -| -------- | -------------- | --------------- | -| all | 전체 | All | -| A7 | 공예 | Crafts | -| J7 | 그래픽 디자인 | Graphic Design | -| B7 | 디지털 아트 | Digital Art | -| C7 | 영상/모션그래픽 | Video / Motion Graphics | -| D7 | 브랜딩/편집 | Branding / Editing | -| E7 | 산업 디자인 | Industrial Design | -| F7 | UI/UX | UI/UX | -| G7 | 일러스트레이션 | Illustration | -| K7 | 타이포그래피 | Typography | -| H7 | 파인아트 | Fine Art | -| I7 | 포토그래피 | Photography | +| ---- | --------------- | --------------- | +| all | 전체 | All | +| 1 | 영상/모션그래픽 | Video / Motion Graphics | +| 2 | 그래픽 디자인 | Graphic Design | +| 3 | 브랜딩/편집 | Branding / Editing | +| 4 | UI/UX | UI/UX | +| 5 | 일러스트레이션 | Illustration | +| 6 | 디지털 아트 | Digital Art | +| 7 | 캐릭터 디자인 | Character Design | +| 8 | 제품/패키지 디자인 | Product Package Design | +| 9 | 포토그래피 | Photography | +| 10 | 타이포그래피 | Typography | +| 11 | 공예 | Crafts | +| 12 | 파인아트 | Fine Art| diff --git a/lib/router.js b/lib/router.js index e497f3329..cc8e91e2a 100644 --- a/lib/router.js +++ b/lib/router.js @@ -3232,7 +3232,7 @@ router.get('/mamibuy/:caty?/:age?/:sort?', lazyloadRouteHandler('./routes/mamibu router.get('/mercari/:type/:id', lazyloadRouteHandler('./routes/mercari/index')); // notefolio -router.get('/notefolio/:caty?/:order?/:time?/:query?', lazyloadRouteHandler('./routes/notefolio/index')); +// router.get('/notefolio/:caty?/:order?/:time?/:query?', lazyloadRouteHandler('./routes/notefolio/index')); // JavDB // router.get('/javdb/home/:category?/:sort?/:filter?', lazyloadRouteHandler('./routes/javdb')); diff --git a/lib/routes/notefolio/index.js b/lib/routes/notefolio/index.js deleted file mode 100644 index 9eb8023e2..000000000 --- a/lib/routes/notefolio/index.js +++ /dev/null @@ -1,67 +0,0 @@ -const got = require('@/utils/got'); -const cheerio = require('cheerio'); - -module.exports = async (ctx) => { - const caty = ctx.params.caty || 'all'; - const order = ctx.params.order || 'pick'; - const time = ctx.params.time || 'all'; - const query = ctx.params.query || ''; - - const rootUrl = `https://notefolio.net/?work_categories=${caty === 'all' ? '' : caty}&order=${order}&from=${time}&q=${query}`; - const response = await got({ - method: 'get', - url: rootUrl, - }); - - const $ = cheerio.load(response.data); - - $('div.mobile-category-order').remove(); - - const list = $('div.work-list div.work-list-item') - .slice(0, 5) - .map((_, item) => { - item = $(item); - const a = item.find('a.go-to-work-info').eq(0); - return { - title: item.find('div.title').text(), - link: `https://notefolio.net${a.attr('href')}`, - author: item.find('span.go-profile-area').text(), - }; - }) - .get(); - - const items = await Promise.all( - list.map((item) => - ctx.cache.tryGet(item.link, async () => { - const detailResponse = await got({ - method: 'get', - url: item.link, - }); - - const content = cheerio.load(detailResponse.data); - - item.description = '