From 838eb3c7ff368f4d06c437f093307435b2ad7609 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Nov 2025 05:49:33 +0000 Subject: [PATCH] style: auto format --- lib/errors/index.tsx | 2 +- lib/middleware/anti-hotlink.ts | 5 +++-- lib/middleware/parameter.ts | 3 ++- lib/pkg.ts | 3 ++- lib/registry.ts | 3 ++- lib/routes/0xxx/index.ts | 8 +++++--- lib/routes/10000link/info.ts | 8 +++++--- lib/routes/121/weather-live.ts | 8 +++++--- lib/routes/199it/index.ts | 8 +++++--- lib/routes/21caijing/channel.ts | 8 +++++--- lib/routes/6v123/index.ts | 8 +++++--- lib/routes/aa1/60s.ts | 8 +++++--- lib/routes/adquan/case-library.ts | 8 +++++--- lib/routes/adquan/index.ts | 8 +++++--- lib/routes/aflcio/blog.ts | 8 +++++--- lib/routes/ali213/news.ts | 8 +++++--- lib/routes/ali213/zl.ts | 8 +++++--- lib/routes/amazfitwatchfaces/index.ts | 8 +++++--- lib/routes/anytxt/release-notes.ts | 8 +++++--- lib/routes/app-sales/index.ts | 8 +++++--- lib/routes/app-sales/mostwanted.ts | 8 +++++--- lib/routes/app-sales/util.ts | 5 +++-- lib/routes/apple/security-releases.ts | 8 +++++--- lib/routes/asiafruitchina/categories.ts | 8 +++++--- lib/routes/asiafruitchina/news.ts | 8 +++++--- lib/routes/augmentcode/blog.ts | 8 +++++--- lib/routes/azul/packages.ts | 8 +++++--- lib/routes/bandisoft/history.ts | 8 +++++--- lib/routes/banshujiang/index.ts | 8 +++++--- lib/routes/banyuetan/index.ts | 8 +++++--- lib/routes/bbc/learningenglish.ts | 2 +- lib/routes/bookwalker/search.ts | 8 +++++--- lib/routes/bullionvault/gold-news.ts | 8 +++++--- lib/routes/cbndata/information.ts | 8 +++++--- lib/routes/ccagm/index.ts | 8 +++++--- lib/routes/cccmc/index.ts | 8 +++++--- lib/routes/ccg/index.ts | 8 +++++--- lib/routes/cfr/utils.ts | 3 ++- lib/routes/chinacdc/index.ts | 8 +++++--- lib/routes/chinadaily/language.ts | 8 +++++--- lib/routes/chinaratings/credit-research.ts | 8 +++++--- lib/routes/chocolatey/packages.ts | 8 +++++--- lib/routes/cline/blog.ts | 3 ++- lib/routes/cloudflarestatus/index.ts | 8 +++++--- lib/routes/cnljxh/index.ts | 8 +++++--- lib/routes/cognition/blog.ts | 3 ++- lib/routes/collabo-cafe/parser.ts | 2 +- lib/routes/coolbuy/index.ts | 8 +++++--- lib/routes/coolidge/film-guide.ts | 2 +- lib/routes/coolidge/news.ts | 2 +- lib/routes/crush/index.ts | 5 +++-- lib/routes/csust/utils.ts | 3 ++- lib/routes/cursor/blog.ts | 5 +++-- lib/routes/cursor/changelog.ts | 8 +++++--- lib/routes/cybersecurityventures/news.ts | 3 ++- lib/routes/daum/potplayer.ts | 5 +++-- lib/routes/dbaplus/new.ts | 8 +++++--- lib/routes/deepl/blog.ts | 8 +++++--- lib/routes/dgtle/article.ts | 8 +++++--- lib/routes/dgtle/feed.ts | 8 +++++--- lib/routes/dgtle/news.ts | 8 +++++--- lib/routes/dgtle/util.ts | 5 +++-- lib/routes/dgtle/video.ts | 8 +++++--- lib/routes/diariofruticola/filtro.ts | 8 +++++--- lib/routes/digitalpolicyalert/activity-tracker.ts | 8 +++++--- lib/routes/dw/utils.ts | 3 ++- lib/routes/dytt/index.ts | 8 +++++--- lib/routes/ea/apex-news.ts | 3 ++- lib/routes/eastmoney/gerenzhongxin/gather.ts | 3 ++- lib/routes/eeo/kuaixun.ts | 8 +++++--- lib/routes/eventernote/actors.ts | 3 ++- lib/routes/expats/czech-news.ts | 8 +++++--- lib/routes/fangchan/list.ts | 8 +++++--- lib/routes/follow/profile.ts | 3 ++- lib/routes/gamebase/news.ts | 8 +++++--- lib/routes/gaoyu/blog.ts | 8 +++++--- lib/routes/gcores/articles.ts | 5 +++-- lib/routes/gcores/categories.ts | 5 +++-- lib/routes/gcores/collections.ts | 5 +++-- lib/routes/gcores/news.ts | 5 +++-- lib/routes/gcores/program-previews.ts | 5 +++-- lib/routes/gcores/tags.ts | 5 +++-- lib/routes/gcores/topics.ts | 5 +++-- lib/routes/gcores/util.ts | 5 +++-- lib/routes/gcores/videos.ts | 5 +++-- lib/routes/gitstar-ranking/index.ts | 8 +++++--- lib/routes/go/jihs/idwr.ts | 8 +++++--- lib/routes/gov/mee/nnsa.ts | 8 +++++--- lib/routes/gov/moa/gjs.ts | 8 +++++--- lib/routes/gov/mot/index.ts | 8 +++++--- lib/routes/grainoil/category.ts | 8 +++++--- lib/routes/hit/hitgs.ts | 8 +++++--- lib/routes/huijin-inv/news.ts | 3 ++- lib/routes/hupu/index.ts | 3 ++- lib/routes/ifanr/digest.ts | 8 +++++--- lib/routes/ifun/n/category.ts | 5 +++-- lib/routes/ifun/n/search.ts | 5 +++-- lib/routes/ifun/n/tag.ts | 5 +++-- lib/routes/ifun/n/util.ts | 2 +- lib/routes/indianexpress/section.ts | 8 +++++--- lib/routes/investor/index.ts | 8 +++++--- lib/routes/iresearch/report.ts | 5 +++-- lib/routes/iresearch/weekly.ts | 5 +++-- lib/routes/jbma/report.ts | 8 +++++--- lib/routes/jisilu/category.ts | 8 +++++--- lib/routes/jisilu/explore.ts | 8 +++++--- lib/routes/jisilu/people.ts | 8 +++++--- lib/routes/jisilu/topic.ts | 8 +++++--- lib/routes/jisilu/util.ts | 5 +++-- lib/routes/jl1mall/forum.ts | 5 +++-- lib/routes/joneslanglasalle/index.ts | 8 +++++--- lib/routes/kiro/blog.ts | 8 +++++--- lib/routes/kiro/changelog.ts | 8 +++++--- lib/routes/koyso/index.ts | 8 +++++--- lib/routes/kpopping/kpics.ts | 8 +++++--- lib/routes/kpopping/news.ts | 8 +++++--- lib/routes/lhratings/research.ts | 8 +++++--- lib/routes/lineageos/changes.ts | 8 +++++--- lib/routes/linkresearcher/index.ts | 3 ++- lib/routes/ltaaa/article.ts | 8 +++++--- lib/routes/m-78/news.ts | 3 ++- lib/routes/mathpix/blog.ts | 8 +++++--- lib/routes/melonbooks/parser.ts | 2 +- lib/routes/mixi2/community.ts | 3 ++- lib/routes/mixi2/discovery.ts | 3 ++- lib/routes/mixi2/home.ts | 3 ++- lib/routes/mixi2/user.ts | 3 ++- lib/routes/mixi2/utils.ts | 3 ++- lib/routes/musify/index.ts | 8 +++++--- lib/routes/musikguru/news.ts | 8 +++++--- lib/routes/mycard520/news.ts | 8 +++++--- lib/routes/neea/jlpt.ts | 8 +++++--- lib/routes/ornl/all-news.ts | 8 +++++--- lib/routes/oschina/column.ts | 8 +++++--- lib/routes/oschina/event.ts | 8 +++++--- lib/routes/oshwhub/explore.ts | 8 +++++--- lib/routes/papers/category.ts | 8 +++++--- lib/routes/parliament.uk/petitions.ts | 8 +++++--- lib/routes/pixelstech/index.ts | 8 +++++--- lib/routes/python/release.ts | 8 +++++--- lib/routes/qq/lol/news.ts | 8 +++++--- lib/routes/qweather/3days.ts | 3 ++- lib/routes/qweather/now.ts | 3 ++- lib/routes/raspberrypi/magazine.ts | 8 +++++--- lib/routes/rockthejvm/articles.ts | 8 +++++--- lib/routes/samrdprc/index.ts | 8 +++++--- lib/routes/scientificamerican/podcast.ts | 8 +++++--- lib/routes/scitechvista/index.ts | 2 +- lib/routes/scoop/apps.ts | 8 +++++--- lib/routes/sorrycc/index.ts | 3 ++- lib/routes/stcn/index.ts | 8 +++++--- lib/routes/stcn/kx.ts | 8 +++++--- lib/routes/stcn/rank.ts | 8 +++++--- lib/routes/surfshark/blog.ts | 8 +++++--- lib/routes/szse/disclosure/listed-notice.ts | 8 +++++--- lib/routes/taobao/mysql.ts | 8 +++++--- lib/routes/theinitium/app.ts | 3 ++- lib/routes/tidb/blog.ts | 8 +++++--- lib/routes/tmtpost/column.ts | 5 +++-- lib/routes/tmtpost/new.ts | 5 +++-- lib/routes/tmtpost/util.ts | 5 +++-- lib/routes/trendforce/new.ts | 8 +++++--- lib/routes/voronoiapp/common.ts | 3 ++- lib/routes/wainao/topics.ts | 8 +++++--- lib/routes/wdfxw/bookfree.ts | 8 +++++--- lib/routes/windsurf/blog.ts | 8 +++++--- lib/routes/windsurf/changelog.ts | 8 +++++--- lib/routes/xjtu/zs.ts | 8 +++++--- lib/routes/xwenming/index.ts | 8 +++++--- lib/routes/ynet/list.ts | 8 +++++--- lib/routes/yuanliao/index.ts | 8 +++++--- lib/utils/header-generator.ts | 3 ++- lib/utils/proxy/index.ts | 3 ++- lib/utils/proxy/multi-proxy.ts | 2 +- lib/utils/proxy/pac-proxy.ts | 2 +- lib/utils/proxy/unify-proxy.ts | 2 +- lib/utils/puppeteer.test.ts | 2 +- lib/utils/wechat-mp.ts | 3 ++- 178 files changed, 702 insertions(+), 425 deletions(-) diff --git a/lib/errors/index.tsx b/lib/errors/index.tsx index a63cb20612..5117c1ecce 100644 --- a/lib/errors/index.tsx +++ b/lib/errors/index.tsx @@ -1,5 +1,5 @@ import * as Sentry from '@sentry/node'; -import { type ErrorHandler, type NotFoundHandler } from 'hono'; +import type {ErrorHandler, NotFoundHandler} from 'hono'; import { routePath } from 'hono/route'; import { config } from '@/config'; diff --git a/lib/middleware/anti-hotlink.ts b/lib/middleware/anti-hotlink.ts index a706330e30..2db26509ee 100644 --- a/lib/middleware/anti-hotlink.ts +++ b/lib/middleware/anti-hotlink.ts @@ -1,5 +1,6 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type MiddlewareHandler } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {MiddlewareHandler} from 'hono'; import { config } from '@/config'; import type { Data } from '@/types'; diff --git a/lib/middleware/parameter.ts b/lib/middleware/parameter.ts index 864354f01e..c6e2c6b561 100644 --- a/lib/middleware/parameter.ts +++ b/lib/middleware/parameter.ts @@ -1,5 +1,6 @@ import Parser from '@postlight/parser'; -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; import * as entities from 'entities'; import type { MiddlewareHandler } from 'hono'; diff --git a/lib/pkg.ts b/lib/pkg.ts index 068a339a69..3cc2f1e262 100644 --- a/lib/pkg.ts +++ b/lib/pkg.ts @@ -1,7 +1,8 @@ import type { Handler, Hono } from 'hono'; import type { RoutePath } from '@/../assets/build/route-paths'; -import { type ConfigEnv, setConfig } from '@/config'; +import type {ConfigEnv} from '@/config'; +import { setConfig } from '@/config'; import type { Data, Namespace, Route } from './types'; diff --git a/lib/registry.ts b/lib/registry.ts index 177cc23964..58a1b71c4f 100644 --- a/lib/registry.ts +++ b/lib/registry.ts @@ -2,7 +2,8 @@ import path from 'node:path'; import { serveStatic } from '@hono/node-server/serve-static'; import { directoryImport } from 'directory-import'; -import { type Handler, Hono } from 'hono'; +import type {Handler} from 'hono'; +import { Hono } from 'hono'; import { routePath } from 'hono/route'; import { config } from '@/config'; diff --git a/lib/routes/0xxx/index.ts b/lib/routes/0xxx/index.ts index 5e573916ba..b51b61c243 100644 --- a/lib/routes/0xxx/index.ts +++ b/lib/routes/0xxx/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/10000link/info.ts b/lib/routes/10000link/info.ts index 0769c6dfcc..b935827eca 100644 --- a/lib/routes/10000link/info.ts +++ b/lib/routes/10000link/info.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate, parseRelativeDate } from '@/utils/parse-date'; diff --git a/lib/routes/121/weather-live.ts b/lib/routes/121/weather-live.ts index 893b126e4f..e25b15d422 100644 --- a/lib/routes/121/weather-live.ts +++ b/lib/routes/121/weather-live.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/199it/index.ts b/lib/routes/199it/index.ts index 7a88515d19..3706378756 100644 --- a/lib/routes/199it/index.ts +++ b/lib/routes/199it/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/21caijing/channel.ts b/lib/routes/21caijing/channel.ts index 2c82967b16..77e35451b7 100644 --- a/lib/routes/21caijing/channel.ts +++ b/lib/routes/21caijing/channel.ts @@ -1,8 +1,10 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate, parseRelativeDate } from '@/utils/parse-date'; diff --git a/lib/routes/6v123/index.ts b/lib/routes/6v123/index.ts index 51c1991f5d..1ad6a80819 100644 --- a/lib/routes/6v123/index.ts +++ b/lib/routes/6v123/index.ts @@ -1,9 +1,11 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; import iconv from 'iconv-lite'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/aa1/60s.ts b/lib/routes/aa1/60s.ts index a06612d248..c183467130 100644 --- a/lib/routes/aa1/60s.ts +++ b/lib/routes/aa1/60s.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/adquan/case-library.ts b/lib/routes/adquan/case-library.ts index c0336bc6a6..9efa0c1f5b 100644 --- a/lib/routes/adquan/case-library.ts +++ b/lib/routes/adquan/case-library.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/adquan/index.ts b/lib/routes/adquan/index.ts index d15dfc7410..516c458644 100644 --- a/lib/routes/adquan/index.ts +++ b/lib/routes/adquan/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/aflcio/blog.ts b/lib/routes/aflcio/blog.ts index 66bdb90163..ee884a8b65 100644 --- a/lib/routes/aflcio/blog.ts +++ b/lib/routes/aflcio/blog.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ali213/news.ts b/lib/routes/ali213/news.ts index dc3f03d566..8a5c0a1d9e 100644 --- a/lib/routes/ali213/news.ts +++ b/lib/routes/ali213/news.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ali213/zl.ts b/lib/routes/ali213/zl.ts index baa7d1345e..0c308e810c 100644 --- a/lib/routes/ali213/zl.ts +++ b/lib/routes/ali213/zl.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/amazfitwatchfaces/index.ts b/lib/routes/amazfitwatchfaces/index.ts index 2ee9e63e1d..637bf1e256 100644 --- a/lib/routes/amazfitwatchfaces/index.ts +++ b/lib/routes/amazfitwatchfaces/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/anytxt/release-notes.ts b/lib/routes/anytxt/release-notes.ts index f8e2975ddd..72757390bc 100644 --- a/lib/routes/anytxt/release-notes.ts +++ b/lib/routes/anytxt/release-notes.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/app-sales/index.ts b/lib/routes/app-sales/index.ts index 07ed4170d2..0b81d409b3 100644 --- a/lib/routes/app-sales/index.ts +++ b/lib/routes/app-sales/index.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { baseUrl, fetchItems } from './util'; diff --git a/lib/routes/app-sales/mostwanted.ts b/lib/routes/app-sales/mostwanted.ts index 2469ee7985..720d79ba57 100644 --- a/lib/routes/app-sales/mostwanted.ts +++ b/lib/routes/app-sales/mostwanted.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { baseUrl, fetchItems } from './util'; diff --git a/lib/routes/app-sales/util.ts b/lib/routes/app-sales/util.ts index e58783d873..122ff5fcca 100644 --- a/lib/routes/app-sales/util.ts +++ b/lib/routes/app-sales/util.ts @@ -1,9 +1,10 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type DataItem } from '@/types'; +import type {DataItem} from '@/types'; import ofetch from '@/utils/ofetch'; import { art } from '@/utils/render'; diff --git a/lib/routes/apple/security-releases.ts b/lib/routes/apple/security-releases.ts index 94ea8e6981..60998128d0 100644 --- a/lib/routes/apple/security-releases.ts +++ b/lib/routes/apple/security-releases.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/asiafruitchina/categories.ts b/lib/routes/asiafruitchina/categories.ts index 51fd1970fc..34daf6a09d 100644 --- a/lib/routes/asiafruitchina/categories.ts +++ b/lib/routes/asiafruitchina/categories.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/asiafruitchina/news.ts b/lib/routes/asiafruitchina/news.ts index d624c4d4a8..bddac96a71 100644 --- a/lib/routes/asiafruitchina/news.ts +++ b/lib/routes/asiafruitchina/news.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/augmentcode/blog.ts b/lib/routes/augmentcode/blog.ts index 126bda8d05..2d2a191e48 100644 --- a/lib/routes/augmentcode/blog.ts +++ b/lib/routes/augmentcode/blog.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/azul/packages.ts b/lib/routes/azul/packages.ts index 4aba0504f1..f896503dba 100644 --- a/lib/routes/azul/packages.ts +++ b/lib/routes/azul/packages.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; export const handler = async (ctx: Context): Promise => { diff --git a/lib/routes/bandisoft/history.ts b/lib/routes/bandisoft/history.ts index 371d7d5db9..e6e9c3dde1 100644 --- a/lib/routes/bandisoft/history.ts +++ b/lib/routes/bandisoft/history.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/banshujiang/index.ts b/lib/routes/banshujiang/index.ts index 5724734e0d..c26e426e8a 100644 --- a/lib/routes/banshujiang/index.ts +++ b/lib/routes/banshujiang/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/banyuetan/index.ts b/lib/routes/banyuetan/index.ts index 440855f87d..965c2a07b8 100644 --- a/lib/routes/banyuetan/index.ts +++ b/lib/routes/banyuetan/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/bbc/learningenglish.ts b/lib/routes/bbc/learningenglish.ts index 4c51ea4883..b8dc8fc2a8 100644 --- a/lib/routes/bbc/learningenglish.ts +++ b/lib/routes/bbc/learningenglish.ts @@ -1,5 +1,5 @@ import { load } from 'cheerio'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; import type { DataItem, Route } from '@/types'; import cache from '@/utils/cache'; diff --git a/lib/routes/bookwalker/search.ts b/lib/routes/bookwalker/search.ts index a6fab55c9c..c0fd30ffff 100644 --- a/lib/routes/bookwalker/search.ts +++ b/lib/routes/bookwalker/search.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { art } from '@/utils/render'; diff --git a/lib/routes/bullionvault/gold-news.ts b/lib/routes/bullionvault/gold-news.ts index 07dda60932..24d72be839 100644 --- a/lib/routes/bullionvault/gold-news.ts +++ b/lib/routes/bullionvault/gold-news.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/cbndata/information.ts b/lib/routes/cbndata/information.ts index ceb96c5c4b..1398a509a0 100644 --- a/lib/routes/cbndata/information.ts +++ b/lib/routes/cbndata/information.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ccagm/index.ts b/lib/routes/ccagm/index.ts index af79a1dc5e..bf94a4d3a5 100644 --- a/lib/routes/ccagm/index.ts +++ b/lib/routes/ccagm/index.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/cccmc/index.ts b/lib/routes/cccmc/index.ts index 3d9b618f77..531754f899 100644 --- a/lib/routes/cccmc/index.ts +++ b/lib/routes/cccmc/index.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ccg/index.ts b/lib/routes/ccg/index.ts index 782783ff71..58b5ef10ad 100644 --- a/lib/routes/ccg/index.ts +++ b/lib/routes/ccg/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/cfr/utils.ts b/lib/routes/cfr/utils.ts index 3521b15607..6d7b3ae6da 100644 --- a/lib/routes/cfr/utils.ts +++ b/lib/routes/cfr/utils.ts @@ -1,4 +1,5 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; import type { DataItem } from '@/types'; diff --git a/lib/routes/chinacdc/index.ts b/lib/routes/chinacdc/index.ts index e72ddd1a68..4e5fd89308 100644 --- a/lib/routes/chinacdc/index.ts +++ b/lib/routes/chinacdc/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/chinadaily/language.ts b/lib/routes/chinadaily/language.ts index 7bd2523e81..4bd592adc3 100644 --- a/lib/routes/chinadaily/language.ts +++ b/lib/routes/chinadaily/language.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/chinaratings/credit-research.ts b/lib/routes/chinaratings/credit-research.ts index bc9a870597..e40b79c1c8 100644 --- a/lib/routes/chinaratings/credit-research.ts +++ b/lib/routes/chinaratings/credit-research.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/chocolatey/packages.ts b/lib/routes/chocolatey/packages.ts index 5a4cc37778..344e7b7851 100644 --- a/lib/routes/chocolatey/packages.ts +++ b/lib/routes/chocolatey/packages.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/cline/blog.ts b/lib/routes/cline/blog.ts index a24306c921..ba12cdfa88 100644 --- a/lib/routes/cline/blog.ts +++ b/lib/routes/cline/blog.ts @@ -1,4 +1,5 @@ -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { DataItem, Route } from '@/types'; import got from '@/utils/got'; diff --git a/lib/routes/cloudflarestatus/index.ts b/lib/routes/cloudflarestatus/index.ts index f49a12b6a6..124ed761fa 100644 --- a/lib/routes/cloudflarestatus/index.ts +++ b/lib/routes/cloudflarestatus/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/cnljxh/index.ts b/lib/routes/cnljxh/index.ts index 9f27bfdd5c..2d08203b30 100644 --- a/lib/routes/cnljxh/index.ts +++ b/lib/routes/cnljxh/index.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/cognition/blog.ts b/lib/routes/cognition/blog.ts index 8a1d34b729..9a20ae76fa 100644 --- a/lib/routes/cognition/blog.ts +++ b/lib/routes/cognition/blog.ts @@ -1,6 +1,7 @@ import { load } from 'cheerio'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/collabo-cafe/parser.ts b/lib/routes/collabo-cafe/parser.ts index 8ef2f0cfe4..500310d9b0 100644 --- a/lib/routes/collabo-cafe/parser.ts +++ b/lib/routes/collabo-cafe/parser.ts @@ -1,6 +1,6 @@ import type { CheerioAPI } from 'cheerio'; -import { type DataItem } from '@/types'; +import type {DataItem} from '@/types'; import { parseDate } from '@/utils/parse-date'; export function parseItems($: CheerioAPI): DataItem[] { diff --git a/lib/routes/coolbuy/index.ts b/lib/routes/coolbuy/index.ts index f092729a93..721f8dc88c 100644 --- a/lib/routes/coolbuy/index.ts +++ b/lib/routes/coolbuy/index.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { art } from '@/utils/render'; diff --git a/lib/routes/coolidge/film-guide.ts b/lib/routes/coolidge/film-guide.ts index 0c8b3d7ceb..270a1400fb 100644 --- a/lib/routes/coolidge/film-guide.ts +++ b/lib/routes/coolidge/film-guide.ts @@ -2,7 +2,7 @@ import path from 'node:path'; import { load } from 'cheerio'; -import { type Route } from '@/types'; +import type {Route} from '@/types'; import ofetch from '@/utils/ofetch'; import { art } from '@/utils/render'; diff --git a/lib/routes/coolidge/news.ts b/lib/routes/coolidge/news.ts index 8f4c1f2211..57e3524c80 100644 --- a/lib/routes/coolidge/news.ts +++ b/lib/routes/coolidge/news.ts @@ -2,7 +2,7 @@ import path from 'node:path'; import { load } from 'cheerio'; -import { type Route } from '@/types'; +import type {Route} from '@/types'; import ofetch from '@/utils/ofetch'; import { art } from '@/utils/render'; diff --git a/lib/routes/crush/index.ts b/lib/routes/crush/index.ts index 5656c1c1f1..b81ba8cb66 100644 --- a/lib/routes/crush/index.ts +++ b/lib/routes/crush/index.ts @@ -1,6 +1,7 @@ -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; -import { type Data, type DataItem, type Route } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; import md5 from '@/utils/md5'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/csust/utils.ts b/lib/routes/csust/utils.ts index d373d8ed6e..60ee3ce16a 100644 --- a/lib/routes/csust/utils.ts +++ b/lib/routes/csust/utils.ts @@ -1,4 +1,5 @@ -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import cache from '@/utils/cache'; import got from '@/utils/got'; diff --git a/lib/routes/cursor/blog.ts b/lib/routes/cursor/blog.ts index 0175ee7cf4..4edf1d0123 100644 --- a/lib/routes/cursor/blog.ts +++ b/lib/routes/cursor/blog.ts @@ -1,7 +1,8 @@ import { load } from 'cheerio'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/cursor/changelog.ts b/lib/routes/cursor/changelog.ts index 6fea01bc4b..84ae2eadba 100644 --- a/lib/routes/cursor/changelog.ts +++ b/lib/routes/cursor/changelog.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Language, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Language, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/cybersecurityventures/news.ts b/lib/routes/cybersecurityventures/news.ts index b4f258c305..847c111f10 100644 --- a/lib/routes/cybersecurityventures/news.ts +++ b/lib/routes/cybersecurityventures/news.ts @@ -2,7 +2,8 @@ import { load } from 'cheerio'; import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/daum/potplayer.ts b/lib/routes/daum/potplayer.ts index 0b4bf90fb5..23010e9ce3 100644 --- a/lib/routes/daum/potplayer.ts +++ b/lib/routes/daum/potplayer.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/dbaplus/new.ts b/lib/routes/dbaplus/new.ts index 45ee23cf4d..9e8de3c255 100644 --- a/lib/routes/dbaplus/new.ts +++ b/lib/routes/dbaplus/new.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/deepl/blog.ts b/lib/routes/deepl/blog.ts index 65385238ca..495fda2da6 100644 --- a/lib/routes/deepl/blog.ts +++ b/lib/routes/deepl/blog.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/dgtle/article.ts b/lib/routes/dgtle/article.ts index fb1b9289c2..f9e936cb64 100644 --- a/lib/routes/dgtle/article.ts +++ b/lib/routes/dgtle/article.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { baseUrl, ProcessItems } from './util'; diff --git a/lib/routes/dgtle/feed.ts b/lib/routes/dgtle/feed.ts index 4a1224da52..78dd6b0131 100644 --- a/lib/routes/dgtle/feed.ts +++ b/lib/routes/dgtle/feed.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; import MarkdownIt from 'markdown-it'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/dgtle/news.ts b/lib/routes/dgtle/news.ts index b6df72a4e6..33b9c35715 100644 --- a/lib/routes/dgtle/news.ts +++ b/lib/routes/dgtle/news.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { baseUrl, ProcessItems } from './util'; diff --git a/lib/routes/dgtle/util.ts b/lib/routes/dgtle/util.ts index f2389f38bd..267d69bc29 100644 --- a/lib/routes/dgtle/util.ts +++ b/lib/routes/dgtle/util.ts @@ -1,8 +1,9 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; -import { type DataItem } from '@/types'; +import type {DataItem} from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/dgtle/video.ts b/lib/routes/dgtle/video.ts index a0fd5071c0..6e41bf8d65 100644 --- a/lib/routes/dgtle/video.ts +++ b/lib/routes/dgtle/video.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseRelativeDate } from '@/utils/parse-date'; diff --git a/lib/routes/diariofruticola/filtro.ts b/lib/routes/diariofruticola/filtro.ts index ee5e0eefcf..12fc5f2664 100644 --- a/lib/routes/diariofruticola/filtro.ts +++ b/lib/routes/diariofruticola/filtro.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/digitalpolicyalert/activity-tracker.ts b/lib/routes/digitalpolicyalert/activity-tracker.ts index 349e3a9485..7e8e87f827 100644 --- a/lib/routes/digitalpolicyalert/activity-tracker.ts +++ b/lib/routes/digitalpolicyalert/activity-tracker.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/dw/utils.ts b/lib/routes/dw/utils.ts index ea36656f68..fc2e2f485e 100644 --- a/lib/routes/dw/utils.ts +++ b/lib/routes/dw/utils.ts @@ -1,6 +1,7 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import cache from '@/utils/cache'; import got from '@/utils/got'; diff --git a/lib/routes/dytt/index.ts b/lib/routes/dytt/index.ts index 879b13287f..11e2972c94 100644 --- a/lib/routes/dytt/index.ts +++ b/lib/routes/dytt/index.ts @@ -1,9 +1,11 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; import iconv from 'iconv-lite'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ea/apex-news.ts b/lib/routes/ea/apex-news.ts index 4f75e74ec9..8ced24abd2 100644 --- a/lib/routes/ea/apex-news.ts +++ b/lib/routes/ea/apex-news.ts @@ -1,7 +1,8 @@ import MarkdownIt from 'markdown-it'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type DataItem, type Route, ViewType } from '@/types'; +import type {DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/eastmoney/gerenzhongxin/gather.ts b/lib/routes/eastmoney/gerenzhongxin/gather.ts index 6bcb5c2b57..aa78cfeee1 100644 --- a/lib/routes/eastmoney/gerenzhongxin/gather.ts +++ b/lib/routes/eastmoney/gerenzhongxin/gather.ts @@ -1,4 +1,5 @@ -import { type Route, ViewType } from '@/types'; +import type {Route} from '@/types'; +import { ViewType } from '@/types'; import { handler as cfhHandler } from './cfh'; import { handler as gubaHandler } from './guba'; diff --git a/lib/routes/eeo/kuaixun.ts b/lib/routes/eeo/kuaixun.ts index 05da6fefad..e0f04ec3e4 100644 --- a/lib/routes/eeo/kuaixun.ts +++ b/lib/routes/eeo/kuaixun.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/eventernote/actors.ts b/lib/routes/eventernote/actors.ts index d7178d9639..2a7aa91b49 100644 --- a/lib/routes/eventernote/actors.ts +++ b/lib/routes/eventernote/actors.ts @@ -1,7 +1,8 @@ import { load } from 'cheerio'; import type { Context } from 'hono'; -import { type DataItem, type Route, ViewType } from '@/types'; +import type {DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; const dateStringRegex = /(?\d{4})-(?\d{2})-(?\d{2})/; diff --git a/lib/routes/expats/czech-news.ts b/lib/routes/expats/czech-news.ts index b4a9146ff4..f390526f47 100644 --- a/lib/routes/expats/czech-news.ts +++ b/lib/routes/expats/czech-news.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/fangchan/list.ts b/lib/routes/fangchan/list.ts index cfded31d3e..16d2d038c1 100644 --- a/lib/routes/fangchan/list.ts +++ b/lib/routes/fangchan/list.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/follow/profile.ts b/lib/routes/follow/profile.ts index c0434b25e0..ac1569dff2 100644 --- a/lib/routes/follow/profile.ts +++ b/lib/routes/follow/profile.ts @@ -1,7 +1,8 @@ import type { Context } from 'hono'; import { parse } from 'tldts'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import type { FeedSubscription, FollowResponse, InboxSubscription, ListSubscription, Profile, Subscription } from './types'; diff --git a/lib/routes/gamebase/news.ts b/lib/routes/gamebase/news.ts index d6f16350d6..32fd4413d2 100644 --- a/lib/routes/gamebase/news.ts +++ b/lib/routes/gamebase/news.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/gaoyu/blog.ts b/lib/routes/gaoyu/blog.ts index 8705124fe1..d3c4ba4b16 100644 --- a/lib/routes/gaoyu/blog.ts +++ b/lib/routes/gaoyu/blog.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/gcores/articles.ts b/lib/routes/gcores/articles.ts index 910b2b5a1d..9d18fa9fb4 100644 --- a/lib/routes/gcores/articles.ts +++ b/lib/routes/gcores/articles.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { baseUrl, processItems } from './util'; diff --git a/lib/routes/gcores/categories.ts b/lib/routes/gcores/categories.ts index 68bfe84e79..d889e51320 100644 --- a/lib/routes/gcores/categories.ts +++ b/lib/routes/gcores/categories.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { baseUrl, processItems } from './util'; diff --git a/lib/routes/gcores/collections.ts b/lib/routes/gcores/collections.ts index e9155bb8b1..0fb5cc82a0 100644 --- a/lib/routes/gcores/collections.ts +++ b/lib/routes/gcores/collections.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { baseUrl, processItems } from './util'; diff --git a/lib/routes/gcores/news.ts b/lib/routes/gcores/news.ts index 4e763776d7..584fec249a 100644 --- a/lib/routes/gcores/news.ts +++ b/lib/routes/gcores/news.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { baseUrl, processItems } from './util'; diff --git a/lib/routes/gcores/program-previews.ts b/lib/routes/gcores/program-previews.ts index 07e760f1e3..82ae9f1f36 100644 --- a/lib/routes/gcores/program-previews.ts +++ b/lib/routes/gcores/program-previews.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { baseUrl, processItems } from './util'; diff --git a/lib/routes/gcores/tags.ts b/lib/routes/gcores/tags.ts index 60f86574ca..bb8e00c62c 100644 --- a/lib/routes/gcores/tags.ts +++ b/lib/routes/gcores/tags.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { baseUrl, processItems } from './util'; diff --git a/lib/routes/gcores/topics.ts b/lib/routes/gcores/topics.ts index 6ade81fcaf..418e6ef315 100644 --- a/lib/routes/gcores/topics.ts +++ b/lib/routes/gcores/topics.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { baseUrl, processItems } from './util'; diff --git a/lib/routes/gcores/util.ts b/lib/routes/gcores/util.ts index 4e90b2278c..2768267081 100644 --- a/lib/routes/gcores/util.ts +++ b/lib/routes/gcores/util.ts @@ -1,8 +1,9 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; -import { type Data, type DataItem } from '@/types'; +import type {Data, DataItem} from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/gcores/videos.ts b/lib/routes/gcores/videos.ts index 5be5f91e35..e25046c8ff 100644 --- a/lib/routes/gcores/videos.ts +++ b/lib/routes/gcores/videos.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { baseUrl, processItems } from './util'; diff --git a/lib/routes/gitstar-ranking/index.ts b/lib/routes/gitstar-ranking/index.ts index f59b1487ac..e6f5934209 100644 --- a/lib/routes/gitstar-ranking/index.ts +++ b/lib/routes/gitstar-ranking/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { art } from '@/utils/render'; diff --git a/lib/routes/go/jihs/idwr.ts b/lib/routes/go/jihs/idwr.ts index 15d36eced6..b9e87aa69e 100644 --- a/lib/routes/go/jihs/idwr.ts +++ b/lib/routes/go/jihs/idwr.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/gov/mee/nnsa.ts b/lib/routes/gov/mee/nnsa.ts index 129e62ae37..b92f42c15c 100644 --- a/lib/routes/gov/mee/nnsa.ts +++ b/lib/routes/gov/mee/nnsa.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/gov/moa/gjs.ts b/lib/routes/gov/moa/gjs.ts index 715e542a56..a2e6e29739 100644 --- a/lib/routes/gov/moa/gjs.ts +++ b/lib/routes/gov/moa/gjs.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/gov/mot/index.ts b/lib/routes/gov/mot/index.ts index 34aaaaa617..86d31097b5 100644 --- a/lib/routes/gov/mot/index.ts +++ b/lib/routes/gov/mot/index.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/grainoil/category.ts b/lib/routes/grainoil/category.ts index 180ee384d1..2e76c837ac 100644 --- a/lib/routes/grainoil/category.ts +++ b/lib/routes/grainoil/category.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; diff --git a/lib/routes/hit/hitgs.ts b/lib/routes/hit/hitgs.ts index 61820e3dcd..1643bdabdd 100644 --- a/lib/routes/hit/hitgs.ts +++ b/lib/routes/hit/hitgs.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/huijin-inv/news.ts b/lib/routes/huijin-inv/news.ts index c4346679fa..5527e6ae91 100644 --- a/lib/routes/huijin-inv/news.ts +++ b/lib/routes/huijin-inv/news.ts @@ -1,4 +1,5 @@ -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Data, DataItem, Route } from '@/types'; import ofetch from '@/utils/ofetch'; diff --git a/lib/routes/hupu/index.ts b/lib/routes/hupu/index.ts index 58d33618a4..2d768c560b 100644 --- a/lib/routes/hupu/index.ts +++ b/lib/routes/hupu/index.ts @@ -6,7 +6,8 @@ import got from '@/utils/got'; import { parseDate, parseRelativeDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; -import { type HomePostItem, type HupuApiResponse, isHomePostItem, type NewsDataItem } from './types'; +import type {HomePostItem, HupuApiResponse, NewsDataItem} from './types'; +import { isHomePostItem } from './types'; const categories = { nba: { diff --git a/lib/routes/ifanr/digest.ts b/lib/routes/ifanr/digest.ts index 9647b937b6..40cc680bae 100644 --- a/lib/routes/ifanr/digest.ts +++ b/lib/routes/ifanr/digest.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ifun/n/category.ts b/lib/routes/ifun/n/category.ts index 859e083c90..05defa6cb9 100644 --- a/lib/routes/ifun/n/category.ts +++ b/lib/routes/ifun/n/category.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { author, language, processItems, rootUrl } from './util'; diff --git a/lib/routes/ifun/n/search.ts b/lib/routes/ifun/n/search.ts index ab8c25a0d4..13c9a6545f 100644 --- a/lib/routes/ifun/n/search.ts +++ b/lib/routes/ifun/n/search.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { author, language, processItems, rootUrl } from './util'; diff --git a/lib/routes/ifun/n/tag.ts b/lib/routes/ifun/n/tag.ts index 23f1084639..6b35dcfeea 100644 --- a/lib/routes/ifun/n/tag.ts +++ b/lib/routes/ifun/n/tag.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { author, language, processItems, rootUrl } from './util'; diff --git a/lib/routes/ifun/n/util.ts b/lib/routes/ifun/n/util.ts index 44916b372e..111280879b 100644 --- a/lib/routes/ifun/n/util.ts +++ b/lib/routes/ifun/n/util.ts @@ -1,4 +1,4 @@ -import { type DataItem } from '@/types'; +import type {DataItem} from '@/types'; import { parseDate } from '@/utils/parse-date'; const author: string = '趣集'; diff --git a/lib/routes/indianexpress/section.ts b/lib/routes/indianexpress/section.ts index 1a0fdebb9d..faf221d6fc 100644 --- a/lib/routes/indianexpress/section.ts +++ b/lib/routes/indianexpress/section.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/investor/index.ts b/lib/routes/investor/index.ts index b482af2b09..3169ca910c 100644 --- a/lib/routes/investor/index.ts +++ b/lib/routes/investor/index.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/iresearch/report.ts b/lib/routes/iresearch/report.ts index 90dff3cc18..ec93684113 100644 --- a/lib/routes/iresearch/report.ts +++ b/lib/routes/iresearch/report.ts @@ -1,8 +1,9 @@ import path from 'node:path'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/iresearch/weekly.ts b/lib/routes/iresearch/weekly.ts index 70cd0163db..29e4cff3ec 100644 --- a/lib/routes/iresearch/weekly.ts +++ b/lib/routes/iresearch/weekly.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; export const handler = (ctx: Context): Data | undefined => { const { id } = ctx.req.param(); diff --git a/lib/routes/jbma/report.ts b/lib/routes/jbma/report.ts index 3a1238c6a4..400d0c0103 100644 --- a/lib/routes/jbma/report.ts +++ b/lib/routes/jbma/report.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/jisilu/category.ts b/lib/routes/jisilu/category.ts index e90c12a780..a267e15298 100644 --- a/lib/routes/jisilu/category.ts +++ b/lib/routes/jisilu/category.ts @@ -1,8 +1,10 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { processItems, rootUrl } from './util'; diff --git a/lib/routes/jisilu/explore.ts b/lib/routes/jisilu/explore.ts index 47c8637d86..d2f030afcb 100644 --- a/lib/routes/jisilu/explore.ts +++ b/lib/routes/jisilu/explore.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { processItems, rootUrl } from './util'; diff --git a/lib/routes/jisilu/people.ts b/lib/routes/jisilu/people.ts index ed9f2bb354..b58df7c4ba 100644 --- a/lib/routes/jisilu/people.ts +++ b/lib/routes/jisilu/people.ts @@ -1,8 +1,10 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { processItems, rootUrl } from './util'; diff --git a/lib/routes/jisilu/topic.ts b/lib/routes/jisilu/topic.ts index 7520ae9c8f..ccc75c91ee 100644 --- a/lib/routes/jisilu/topic.ts +++ b/lib/routes/jisilu/topic.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { processItems, rootUrl } from './util'; diff --git a/lib/routes/jisilu/util.ts b/lib/routes/jisilu/util.ts index 099f7b1d64..4982ef33bb 100644 --- a/lib/routes/jisilu/util.ts +++ b/lib/routes/jisilu/util.ts @@ -1,7 +1,8 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type DataItem } from '@/types'; +import type {DataItem} from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/jl1mall/forum.ts b/lib/routes/jl1mall/forum.ts index 63be480abc..9585a71b42 100644 --- a/lib/routes/jl1mall/forum.ts +++ b/lib/routes/jl1mall/forum.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; diff --git a/lib/routes/joneslanglasalle/index.ts b/lib/routes/joneslanglasalle/index.ts index fcf275aea7..c25149d159 100644 --- a/lib/routes/joneslanglasalle/index.ts +++ b/lib/routes/joneslanglasalle/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/kiro/blog.ts b/lib/routes/kiro/blog.ts index ca9602e040..4cf5dba962 100644 --- a/lib/routes/kiro/blog.ts +++ b/lib/routes/kiro/blog.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/kiro/changelog.ts b/lib/routes/kiro/changelog.ts index 747a6cec8b..93418a2f29 100644 --- a/lib/routes/kiro/changelog.ts +++ b/lib/routes/kiro/changelog.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/koyso/index.ts b/lib/routes/koyso/index.ts index 207fcdf407..7f80611625 100644 --- a/lib/routes/koyso/index.ts +++ b/lib/routes/koyso/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { art } from '@/utils/render'; diff --git a/lib/routes/kpopping/kpics.ts b/lib/routes/kpopping/kpics.ts index f83494671b..e61f30b2b0 100644 --- a/lib/routes/kpopping/kpics.ts +++ b/lib/routes/kpopping/kpics.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/kpopping/news.ts b/lib/routes/kpopping/news.ts index 4cec2f5303..2e31d29f16 100644 --- a/lib/routes/kpopping/news.ts +++ b/lib/routes/kpopping/news.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/lhratings/research.ts b/lib/routes/lhratings/research.ts index e36c26afba..bd0707ed31 100644 --- a/lib/routes/lhratings/research.ts +++ b/lib/routes/lhratings/research.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/lineageos/changes.ts b/lib/routes/lineageos/changes.ts index df761d66cb..eeaa886b2a 100644 --- a/lib/routes/lineageos/changes.ts +++ b/lib/routes/lineageos/changes.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/linkresearcher/index.ts b/lib/routes/linkresearcher/index.ts index 7e7be473d7..6c28896043 100644 --- a/lib/routes/linkresearcher/index.ts +++ b/lib/routes/linkresearcher/index.ts @@ -4,7 +4,8 @@ import path from 'node:path'; import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ltaaa/article.ts b/lib/routes/ltaaa/article.ts index 3b7687fb2b..62d6ecd47b 100644 --- a/lib/routes/ltaaa/article.ts +++ b/lib/routes/ltaaa/article.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/m-78/news.ts b/lib/routes/m-78/news.ts index 7074d5c8ce..2a2c76da9a 100644 --- a/lib/routes/m-78/news.ts +++ b/lib/routes/m-78/news.ts @@ -2,7 +2,8 @@ import { load } from 'cheerio'; import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/mathpix/blog.ts b/lib/routes/mathpix/blog.ts index 6ba391dc88..59bee3d322 100644 --- a/lib/routes/mathpix/blog.ts +++ b/lib/routes/mathpix/blog.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/melonbooks/parser.ts b/lib/routes/melonbooks/parser.ts index 4e3082866c..f1d5a52417 100644 --- a/lib/routes/melonbooks/parser.ts +++ b/lib/routes/melonbooks/parser.ts @@ -1,7 +1,7 @@ import type { CheerioAPI } from 'cheerio'; import { load } from 'cheerio'; -import { type DataItem } from '@/types'; +import type {DataItem} from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; diff --git a/lib/routes/mixi2/community.ts b/lib/routes/mixi2/community.ts index 69759d2b31..e56a129c22 100644 --- a/lib/routes/mixi2/community.ts +++ b/lib/routes/mixi2/community.ts @@ -1,6 +1,7 @@ import type { Context } from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { CONFIG_OPTIONS, generatePostDataItem, getClient, postFilter } from './utils'; diff --git a/lib/routes/mixi2/discovery.ts b/lib/routes/mixi2/discovery.ts index 32157d0ec6..aacf10db97 100644 --- a/lib/routes/mixi2/discovery.ts +++ b/lib/routes/mixi2/discovery.ts @@ -1,6 +1,7 @@ import type { Context } from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { CONFIG_OPTIONS, generatePostDataItem, getClient, postFilter } from './utils'; diff --git a/lib/routes/mixi2/home.ts b/lib/routes/mixi2/home.ts index 5797802642..5e4450c159 100644 --- a/lib/routes/mixi2/home.ts +++ b/lib/routes/mixi2/home.ts @@ -1,6 +1,7 @@ import type { Context } from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { CONFIG_OPTIONS, generatePostDataItem, getClient, postFilter } from './utils'; diff --git a/lib/routes/mixi2/user.ts b/lib/routes/mixi2/user.ts index 538c34ea6e..85b3001745 100644 --- a/lib/routes/mixi2/user.ts +++ b/lib/routes/mixi2/user.ts @@ -1,7 +1,8 @@ import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { parseDate } from '@/utils/parse-date'; import { CONFIG_OPTIONS, getClient, parsePost, postFilter } from './utils'; diff --git a/lib/routes/mixi2/utils.ts b/lib/routes/mixi2/utils.ts index fc54fbe9e3..7c214eccb5 100644 --- a/lib/routes/mixi2/utils.ts +++ b/lib/routes/mixi2/utils.ts @@ -1,4 +1,5 @@ -import { Category, MixiClient, type Persona, type Post } from 'mixi2'; +import type {Persona, Post} from 'mixi2'; +import { Category, MixiClient } from 'mixi2'; import { config } from '@/config'; import ConfigNotFoundError from '@/errors/types/config-not-found'; diff --git a/lib/routes/musify/index.ts b/lib/routes/musify/index.ts index 4accf4d682..0371b9afcf 100644 --- a/lib/routes/musify/index.ts +++ b/lib/routes/musify/index.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; export const handler = async (ctx: Context): Promise => { diff --git a/lib/routes/musikguru/news.ts b/lib/routes/musikguru/news.ts index 864b142d90..9101fdf823 100644 --- a/lib/routes/musikguru/news.ts +++ b/lib/routes/musikguru/news.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/mycard520/news.ts b/lib/routes/mycard520/news.ts index 241f656dc1..fa5cd59dc4 100644 --- a/lib/routes/mycard520/news.ts +++ b/lib/routes/mycard520/news.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/neea/jlpt.ts b/lib/routes/neea/jlpt.ts index c54452e2af..d63051419f 100644 --- a/lib/routes/neea/jlpt.ts +++ b/lib/routes/neea/jlpt.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ornl/all-news.ts b/lib/routes/ornl/all-news.ts index c0d62c529a..eea4481209 100644 --- a/lib/routes/ornl/all-news.ts +++ b/lib/routes/ornl/all-news.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/oschina/column.ts b/lib/routes/oschina/column.ts index c90c37c823..400ae92f4d 100644 --- a/lib/routes/oschina/column.ts +++ b/lib/routes/oschina/column.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/oschina/event.ts b/lib/routes/oschina/event.ts index ac331520cf..3873857ef7 100644 --- a/lib/routes/oschina/event.ts +++ b/lib/routes/oschina/event.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/oshwhub/explore.ts b/lib/routes/oshwhub/explore.ts index 5dd0039621..1eac07f214 100644 --- a/lib/routes/oshwhub/explore.ts +++ b/lib/routes/oshwhub/explore.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; import MarkdownIt from 'markdown-it'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/papers/category.ts b/lib/routes/papers/category.ts index ba4fb81629..b2ea888157 100644 --- a/lib/routes/papers/category.ts +++ b/lib/routes/papers/category.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/parliament.uk/petitions.ts b/lib/routes/parliament.uk/petitions.ts index 62dec5cb04..70406e3f7f 100644 --- a/lib/routes/parliament.uk/petitions.ts +++ b/lib/routes/parliament.uk/petitions.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/pixelstech/index.ts b/lib/routes/pixelstech/index.ts index b74e5a0eb2..84e504551b 100644 --- a/lib/routes/pixelstech/index.ts +++ b/lib/routes/pixelstech/index.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/python/release.ts b/lib/routes/python/release.ts index 25c2e63784..484d6860af 100644 --- a/lib/routes/python/release.ts +++ b/lib/routes/python/release.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/qq/lol/news.ts b/lib/routes/qq/lol/news.ts index 20b2141f20..b3b076a421 100644 --- a/lib/routes/qq/lol/news.ts +++ b/lib/routes/qq/lol/news.ts @@ -1,8 +1,10 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; import iconv from 'iconv-lite'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/qweather/3days.ts b/lib/routes/qweather/3days.ts index a25df7e645..2aab4b5b55 100644 --- a/lib/routes/qweather/3days.ts +++ b/lib/routes/qweather/3days.ts @@ -4,7 +4,8 @@ import type { Route } from '@/types'; import cache from '@/utils/cache'; import got from '@/utils/got'; -import { render3DaysDescription, type WeatherForecastItem } from './util'; +import type {WeatherForecastItem} from './util'; +import { render3DaysDescription } from './util'; const author = 'QWeather'; diff --git a/lib/routes/qweather/now.ts b/lib/routes/qweather/now.ts index 7409015a8d..1a2d193ac4 100644 --- a/lib/routes/qweather/now.ts +++ b/lib/routes/qweather/now.ts @@ -5,7 +5,8 @@ import cache from '@/utils/cache'; import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; -import { type NowItem, renderNowDescription } from './util'; +import type {NowItem} from './util'; +import { renderNowDescription } from './util'; export const route: Route = { path: '/now/:location', diff --git a/lib/routes/raspberrypi/magazine.ts b/lib/routes/raspberrypi/magazine.ts index eb5d612ca7..3c07c200d5 100644 --- a/lib/routes/raspberrypi/magazine.ts +++ b/lib/routes/raspberrypi/magazine.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/rockthejvm/articles.ts b/lib/routes/rockthejvm/articles.ts index 6e7ac6b8be..5287d20dbf 100644 --- a/lib/routes/rockthejvm/articles.ts +++ b/lib/routes/rockthejvm/articles.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/samrdprc/index.ts b/lib/routes/samrdprc/index.ts index 692101a045..79dd01fd4f 100644 --- a/lib/routes/samrdprc/index.ts +++ b/lib/routes/samrdprc/index.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/scientificamerican/podcast.ts b/lib/routes/scientificamerican/podcast.ts index caebf9bd22..75980e6f30 100644 --- a/lib/routes/scientificamerican/podcast.ts +++ b/lib/routes/scientificamerican/podcast.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/scitechvista/index.ts b/lib/routes/scitechvista/index.ts index 72cdf98ff6..50d08f4c73 100644 --- a/lib/routes/scitechvista/index.ts +++ b/lib/routes/scitechvista/index.ts @@ -2,7 +2,7 @@ import path from 'node:path'; import { load } from 'cheerio'; -import { type Data, type DataItem, type Route } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/scoop/apps.ts b/lib/routes/scoop/apps.ts index a41ef20054..cf1e7faa28 100644 --- a/lib/routes/scoop/apps.ts +++ b/lib/routes/scoop/apps.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/sorrycc/index.ts b/lib/routes/sorrycc/index.ts index 5008fb02fd..4cafb0f3cc 100644 --- a/lib/routes/sorrycc/index.ts +++ b/lib/routes/sorrycc/index.ts @@ -2,7 +2,8 @@ import { load } from 'cheerio'; import type { Context } from 'hono'; import { config } from '@/config'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/stcn/index.ts b/lib/routes/stcn/index.ts index 3343c3ddc7..ca2841b701 100644 --- a/lib/routes/stcn/index.ts +++ b/lib/routes/stcn/index.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/stcn/kx.ts b/lib/routes/stcn/kx.ts index f8adaa5020..4778828646 100644 --- a/lib/routes/stcn/kx.ts +++ b/lib/routes/stcn/kx.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/stcn/rank.ts b/lib/routes/stcn/rank.ts index ef531fbeb4..bfeaa86267 100644 --- a/lib/routes/stcn/rank.ts +++ b/lib/routes/stcn/rank.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/surfshark/blog.ts b/lib/routes/surfshark/blog.ts index 92a2cf4185..21f378871a 100644 --- a/lib/routes/surfshark/blog.ts +++ b/lib/routes/surfshark/blog.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/szse/disclosure/listed-notice.ts b/lib/routes/szse/disclosure/listed-notice.ts index b7fa0b929d..18f186ab58 100644 --- a/lib/routes/szse/disclosure/listed-notice.ts +++ b/lib/routes/szse/disclosure/listed-notice.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; diff --git a/lib/routes/taobao/mysql.ts b/lib/routes/taobao/mysql.ts index 64902957e3..2d92a03434 100644 --- a/lib/routes/taobao/mysql.ts +++ b/lib/routes/taobao/mysql.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/theinitium/app.ts b/lib/routes/theinitium/app.ts index b2783a2e09..774986b128 100644 --- a/lib/routes/theinitium/app.ts +++ b/lib/routes/theinitium/app.ts @@ -1,6 +1,7 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; import { config } from '@/config'; diff --git a/lib/routes/tidb/blog.ts b/lib/routes/tidb/blog.ts index ebd22505eb..864ae84724 100644 --- a/lib/routes/tidb/blog.ts +++ b/lib/routes/tidb/blog.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/tmtpost/column.ts b/lib/routes/tmtpost/column.ts index 43e7a3c3d4..ed6e6d0246 100644 --- a/lib/routes/tmtpost/column.ts +++ b/lib/routes/tmtpost/column.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { apiBaseUrl, baseUrl, processItems } from './util'; diff --git a/lib/routes/tmtpost/new.ts b/lib/routes/tmtpost/new.ts index 6231949148..bc3ef5226b 100644 --- a/lib/routes/tmtpost/new.ts +++ b/lib/routes/tmtpost/new.ts @@ -1,6 +1,7 @@ -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type Route, ViewType } from '@/types'; +import type {Data, Route} from '@/types'; +import { ViewType } from '@/types'; import { apiBaseUrl, baseUrl, processItems } from './util'; diff --git a/lib/routes/tmtpost/util.ts b/lib/routes/tmtpost/util.ts index 87c21da810..ba3c1b9b42 100644 --- a/lib/routes/tmtpost/util.ts +++ b/lib/routes/tmtpost/util.ts @@ -1,8 +1,9 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; -import { type Data, type DataItem } from '@/types'; +import type {Data, DataItem} from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/trendforce/new.ts b/lib/routes/trendforce/new.ts index 101013f1c7..69eacdab92 100644 --- a/lib/routes/trendforce/new.ts +++ b/lib/routes/trendforce/new.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/voronoiapp/common.ts b/lib/routes/voronoiapp/common.ts index 8182ec026c..fa2fa664e9 100644 --- a/lib/routes/voronoiapp/common.ts +++ b/lib/routes/voronoiapp/common.ts @@ -1,4 +1,5 @@ -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/wainao/topics.ts b/lib/routes/wainao/topics.ts index d1447aa312..c19396da87 100644 --- a/lib/routes/wainao/topics.ts +++ b/lib/routes/wainao/topics.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/wdfxw/bookfree.ts b/lib/routes/wdfxw/bookfree.ts index e9a689e1d9..2154089902 100644 --- a/lib/routes/wdfxw/bookfree.ts +++ b/lib/routes/wdfxw/bookfree.ts @@ -1,10 +1,12 @@ import path from 'node:path'; -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/windsurf/blog.ts b/lib/routes/windsurf/blog.ts index b63a15b3f4..92f2e1cce3 100644 --- a/lib/routes/windsurf/blog.ts +++ b/lib/routes/windsurf/blog.ts @@ -1,9 +1,11 @@ import path from 'node:path'; -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; diff --git a/lib/routes/windsurf/changelog.ts b/lib/routes/windsurf/changelog.ts index 249705fa2a..301ca2358e 100644 --- a/lib/routes/windsurf/changelog.ts +++ b/lib/routes/windsurf/changelog.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/xjtu/zs.ts b/lib/routes/xjtu/zs.ts index bf951d166a..b1cba47a56 100644 --- a/lib/routes/xjtu/zs.ts +++ b/lib/routes/xjtu/zs.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/xwenming/index.ts b/lib/routes/xwenming/index.ts index ac68fbb4b5..ab5a591afb 100644 --- a/lib/routes/xwenming/index.ts +++ b/lib/routes/xwenming/index.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/ynet/list.ts b/lib/routes/ynet/list.ts index 6622a47f01..c062edc056 100644 --- a/lib/routes/ynet/list.ts +++ b/lib/routes/ynet/list.ts @@ -1,8 +1,10 @@ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; -import { type Context } from 'hono'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import cache from '@/utils/cache'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/yuanliao/index.ts b/lib/routes/yuanliao/index.ts index 8d8c1858e2..a2cb00dd4f 100644 --- a/lib/routes/yuanliao/index.ts +++ b/lib/routes/yuanliao/index.ts @@ -1,7 +1,9 @@ -import { type CheerioAPI, load } from 'cheerio'; -import { type Context } from 'hono'; +import type {CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; +import type {Context} from 'hono'; -import { type Data, type DataItem, type Route, ViewType } from '@/types'; +import type {Data, DataItem, Route} from '@/types'; +import { ViewType } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/utils/header-generator.ts b/lib/utils/header-generator.ts index fd9241be8a..e1b9a008fd 100644 --- a/lib/utils/header-generator.ts +++ b/lib/utils/header-generator.ts @@ -1,4 +1,5 @@ -import { HeaderGenerator, type HeaderGeneratorOptions, PRESETS } from 'header-generator'; +import type {HeaderGeneratorOptions} from 'header-generator'; +import { HeaderGenerator, PRESETS } from 'header-generator'; export { PRESETS } from 'header-generator'; diff --git a/lib/utils/proxy/index.ts b/lib/utils/proxy/index.ts index 53e3835298..492fb592a9 100644 --- a/lib/utils/proxy/index.ts +++ b/lib/utils/proxy/index.ts @@ -6,7 +6,8 @@ import { ProxyAgent } from 'undici'; import { config } from '@/config'; import logger from '@/utils/logger'; -import createMultiProxy, { type MultiProxyResult, type ProxyState } from './multi-proxy'; +import type {MultiProxyResult, ProxyState} from './multi-proxy'; +import createMultiProxy from './multi-proxy'; import pacProxy from './pac-proxy'; import unifyProxy from './unify-proxy'; diff --git a/lib/utils/proxy/multi-proxy.ts b/lib/utils/proxy/multi-proxy.ts index 2406224d8f..69475dcf14 100644 --- a/lib/utils/proxy/multi-proxy.ts +++ b/lib/utils/proxy/multi-proxy.ts @@ -1,4 +1,4 @@ -import { type Config } from '@/config'; +import type {Config} from '@/config'; import logger from '@/utils/logger'; import unifyProxy from './unify-proxy'; diff --git a/lib/utils/proxy/pac-proxy.ts b/lib/utils/proxy/pac-proxy.ts index b5cdb1800b..12e982d679 100644 --- a/lib/utils/proxy/pac-proxy.ts +++ b/lib/utils/proxy/pac-proxy.ts @@ -1,4 +1,4 @@ -import { type Config } from '@/config'; +import type {Config} from '@/config'; import logger from '@/utils/logger'; const possibleProtocol = ['http', 'https', 'ftp', 'file', 'data']; diff --git a/lib/utils/proxy/unify-proxy.ts b/lib/utils/proxy/unify-proxy.ts index 335aa376fc..109d3f7d10 100644 --- a/lib/utils/proxy/unify-proxy.ts +++ b/lib/utils/proxy/unify-proxy.ts @@ -1,4 +1,4 @@ -import { type Config } from '@/config'; +import type {Config} from '@/config'; import logger from '@/utils/logger'; const defaultProtocol = 'http'; diff --git a/lib/utils/puppeteer.test.ts b/lib/utils/puppeteer.test.ts index 8a7b737b98..dc4d47dafe 100644 --- a/lib/utils/puppeteer.test.ts +++ b/lib/utils/puppeteer.test.ts @@ -1,4 +1,4 @@ -import { type Browser } from 'rebrowser-puppeteer'; +import type {Browser} from 'rebrowser-puppeteer'; import { afterEach, describe, expect, it, vi } from 'vitest'; import wait from './wait'; diff --git a/lib/utils/wechat-mp.ts b/lib/utils/wechat-mp.ts index 9abd4dda9d..b70a4091ca 100644 --- a/lib/utils/wechat-mp.ts +++ b/lib/utils/wechat-mp.ts @@ -25,7 +25,8 @@ * For more details of these functions, please refer to the jsDoc in the source code. */ -import { type Cheerio, type CheerioAPI, load } from 'cheerio'; +import type {Cheerio, CheerioAPI} from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; import cache from '@/utils/cache';