diff --git a/lib/errors/index.tsx b/lib/errors/index.tsx index a63cb2061..5117c1ecc 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 a706330e3..2db26509e 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 864354f01..c6e2c6b56 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 068a339a6..3cc2f1e26 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 177cc2396..58a1b71c4 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 5e573916b..b51b61c24 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 0769c6dfc..b935827ec 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 893b126e4..e25b15d42 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 7a88515d1..370637875 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 2c82967b1..77e35451b 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 51c1991f5..1ad6a8081 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 a06612d24..c18346713 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 c0336bc6a..9efa0c1f5 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 d15dfc741..516c45864 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 66bdb9016..ee884a8b6 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 dc3f03d56..8a5c0a1d9 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 baa7d1345..0c308e810 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 2ee9e63e1..637bf1e25 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 f8e2975dd..72757390b 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 07ed4170d..0b81d409b 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 2469ee798..720d79ba5 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 e58783d87..122ff5fcc 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 94ea8e698..60998128d 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 51fd1970f..34daf6a09 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 d624c4d4a..bddac96a7 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 126bda8d0..2d2a191e4 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 4aba0504f..f896503db 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 371d7d5db..e6e9c3dde 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 5724734e0..c26e426e8 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 440855f87..965c2a07b 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 4c51ea488..b8dc8fc2a 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 a6fab55c9..c0fd30fff 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 07dda6093..24d72be83 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 ceb96c5c4..1398a509a 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 af79a1dc5..bf94a4d3a 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 3d9b618f7..531754f89 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 782783ff7..58b5ef10a 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 3521b1560..6d7b3ae6d 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 e72ddd1a6..4e5fd8930 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 7bd2523e8..4bd592adc 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 bc9a87059..e40b79c1c 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 5a4cc3777..344e7b785 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 a24306c92..ba12cdfa8 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 f49a12b6a..124ed761f 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 9f27bfdd5..2d08203b3 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 8a1d34b72..9a20ae76f 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 8ef2f0cfe..500310d9b 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 f092729a9..721f8dc88 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 0c8b3d7ce..270a1400f 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 8f4c1f221..57e3524c8 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 5656c1c1f..b81ba8cb6 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 d373d8ed6..60ee3ce16 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 0175ee7cf..4edf1d012 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 6fea01bc4..84ae2eadb 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 b4f258c30..847c111f1 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 0b4bf90fb..23010e9ce 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 45ee23cf4..9e8de3c25 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 65385238c..495fda2da 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 fb1b9289c..f9e936cb6 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 4a1224da5..78dd6b013 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 b6df72a4e..33b9c3571 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 f2389f38b..267d69bc2 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 a0fd5071c..6e41bf8d6 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 ee5e0eefc..12fc5f266 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 349e3a948..7e8e87f82 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 ea36656f6..fc2e2f485 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 879b13287..11e2972c9 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 4f75e74ec..8ced24abd 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 6bcb5c2b5..aa78cfeee 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 05da6fefa..e0f04ec3e 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 d7178d963..2a7aa91b4 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 b4a9146ff..f390526f4 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 cfded31d3..16d2d038c 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 c0434b25e..ac1569dff 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 d6f16350d..32fd4413d 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 8705124fe..d3c4ba4b1 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 910b2b5a1..9d18fa9fb 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 68bfe84e7..d889e5132 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 e9155bb8b..0fb5cc82a 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 4e763776d..584fec249 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 07e760f1e..82ae9f1f3 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 60f86574c..bb8e00c62 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 6ade81fca..418e6ef31 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 4e90b2278..276826708 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 5be5f91e3..e25046c8f 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 f59b1487a..e6f593420 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 15d36eced..b9e87aa69 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 129e62ae3..b92f42c15 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 715e542a5..a2e6e2973 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 34aaaaa61..86d31097b 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 180ee384d..2e76c837a 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 61820e3dc..1643bdabd 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 c4346679f..5527e6ae9 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 58d33618a..2d768c560 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 9647b937b..40cc680ba 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 859e083c9..05defa6cb 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 ab8c25a0d..13c9a6545 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 23f108463..6b35dcfee 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 44916b372..111280879 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 1a0fdebb9..faf221d6f 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 b482af2b0..3169ca910 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 90dff3cc1..ec9368411 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 70cd0163d..29e4cff3e 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 3a1238c6a..400d0c010 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 e90c12a78..a267e1529 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 47c8637d8..d2f030afc 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 ed9f2bb35..b58df7c4b 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 7520ae9c8..ccc75c91e 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 099f7b1d6..4982ef33b 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 63be480ab..9585a71b4 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 fcf275aea..c25149d15 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 ca9602e04..4cf5dba96 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 747a6cec8..93418a2f2 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 207fcdf40..7f8061162 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 f83494671..e61f30b2b 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 4cec2f530..2e31d29f1 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 e36c26afb..bd0707ed3 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 df761d66c..eeaa886b2 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 7e7be473d..6c2889604 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 3b7687fb2..62d6ecd47 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 7074d5c8c..2a2c76da9 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 6ba391dc8..59bee3d32 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 4e3082866..f1d5a5241 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 69759d2b3..e56a129c2 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 32157d0ec..aacf10db9 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 579780264..5e4450c15 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 538c34ea6..85b300174 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 fc54fbe9e..7c214eccb 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 4accf4d68..0371b9afc 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 864b142d9..9101fdf82 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 241f656dc..fa5cd59dc 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 c54452e2a..d63051419 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 c0d62c529..eea448120 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 c90c37c82..400ae92f4 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 ac331520c..3873857ef 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 5dd003962..1eac07f21 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 ba4fb8162..b2ea88815 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 62dec5cb0..70406e3f7 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 b74e5a0eb..84e504551 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 25c2e6378..484d6860a 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 20b2141f2..b3b076a42 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 a25df7e64..2aab4b5b5 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 7409015a8..1a2d193ac 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 eb5d612ca..3c07c200d 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 6e7ac6b8b..5287d20db 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 692101a04..79dd01fd4 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 caebf9bd2..75980e6f3 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 72cdf98ff..50d08f4c7 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 a41ef2005..cf1e7faa2 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 5008fb02f..4cafb0f3c 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 3343c3ddc..ca2841b70 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 f8adaa502..477882864 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 ef531fbeb..bfeaa8626 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 92a2cf418..21f378871 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 b7fa0b929..18f186ab5 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 64902957e..2d92a0343 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 b2783a2e0..774986b12 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 ebd22505e..864ae8472 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 43e7a3c3d..ed6e6d024 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 623194914..bc3ef5226 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 87c21da81..ba3c1b9b4 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 101013f1c..69eacdab9 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 8182ec026..fa2fa664e 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 d1447aa31..c19396da8 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 e9a689e1d..215408990 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 b63a15b3f..92f2e1cce 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 249705fa2..301ca2358 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 bf951d166..b1cba47a5 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 ac68fbb4b..ab5a591af 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 6622a47f0..c062edc05 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 8d8c1858e..a2cb00dd4 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 fd9241be8..e1b9a008f 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 53e383529..492fb592a 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 2406224d8..69475dcf1 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 b5cdb1800..12e982d67 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 335aa376f..109d3f7d1 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 8a7b737b9..dc4d47daf 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 9abd4dda9..b70a4091c 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';