diff --git a/lib/errors/index.tsx b/lib/errors/index.tsx index 5117c1ecc..c8ae927ed 100644 --- a/lib/errors/index.tsx +++ b/lib/errors/index.tsx @@ -1,5 +1,5 @@ import * as Sentry from '@sentry/node'; -import type {ErrorHandler, 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 2db26509e..b06a32ef1 100644 --- a/lib/middleware/anti-hotlink.ts +++ b/lib/middleware/anti-hotlink.ts @@ -1,6 +1,6 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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 c6e2c6b56..51478c88f 100644 --- a/lib/middleware/parameter.ts +++ b/lib/middleware/parameter.ts @@ -1,6 +1,6 @@ import Parser from '@postlight/parser'; -import type {CheerioAPI} from 'cheerio'; -import { 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 3cc2f1e26..37762522c 100644 --- a/lib/pkg.ts +++ b/lib/pkg.ts @@ -1,8 +1,8 @@ import type { Handler, Hono } from 'hono'; import type { RoutePath } from '@/../assets/build/route-paths'; -import type {ConfigEnv} from '@/config'; -import { 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 58a1b71c4..2e7f28c83 100644 --- a/lib/registry.ts +++ b/lib/registry.ts @@ -2,8 +2,8 @@ import path from 'node:path'; import { serveStatic } from '@hono/node-server/serve-static'; import { directoryImport } from 'directory-import'; -import type {Handler} from 'hono'; -import { 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 b51b61c24..582ddd5dd 100644 --- a/lib/routes/0xxx/index.ts +++ b/lib/routes/0xxx/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 b935827ec..cf57a3481 100644 --- a/lib/routes/10000link/info.ts +++ b/lib/routes/10000link/info.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 e25b15d42..4a1ad13c8 100644 --- a/lib/routes/121/weather-live.ts +++ b/lib/routes/121/weather-live.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 370637875..08c8ace86 100644 --- a/lib/routes/199it/index.ts +++ b/lib/routes/199it/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 77e35451b..e7738cbcc 100644 --- a/lib/routes/21caijing/channel.ts +++ b/lib/routes/21caijing/channel.ts @@ -1,10 +1,10 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 1ad6a8081..12c02661d 100644 --- a/lib/routes/6v123/index.ts +++ b/lib/routes/6v123/index.ts @@ -1,11 +1,11 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 c18346713..af7e98264 100644 --- a/lib/routes/aa1/60s.ts +++ b/lib/routes/aa1/60s.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 9efa0c1f5..6746cbdfa 100644 --- a/lib/routes/adquan/case-library.ts +++ b/lib/routes/adquan/case-library.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 516c45864..1fd823337 100644 --- a/lib/routes/adquan/index.ts +++ b/lib/routes/adquan/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 ee884a8b6..1e824792a 100644 --- a/lib/routes/aflcio/blog.ts +++ b/lib/routes/aflcio/blog.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 8a5c0a1d9..c54fa4c13 100644 --- a/lib/routes/ali213/news.ts +++ b/lib/routes/ali213/news.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 0c308e810..6c405624e 100644 --- a/lib/routes/ali213/zl.ts +++ b/lib/routes/ali213/zl.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 637bf1e25..dd64d326b 100644 --- a/lib/routes/amazfitwatchfaces/index.ts +++ b/lib/routes/amazfitwatchfaces/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 72757390b..951d75d48 100644 --- a/lib/routes/anytxt/release-notes.ts +++ b/lib/routes/anytxt/release-notes.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 0b81d409b..3b19daba0 100644 --- a/lib/routes/app-sales/index.ts +++ b/lib/routes/app-sales/index.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 720d79ba5..31f16a198 100644 --- a/lib/routes/app-sales/mostwanted.ts +++ b/lib/routes/app-sales/mostwanted.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 122ff5fcc..8e81daae7 100644 --- a/lib/routes/app-sales/util.ts +++ b/lib/routes/app-sales/util.ts @@ -1,10 +1,10 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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 60998128d..723441955 100644 --- a/lib/routes/apple/security-releases.ts +++ b/lib/routes/apple/security-releases.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 34daf6a09..ec596ac55 100644 --- a/lib/routes/asiafruitchina/categories.ts +++ b/lib/routes/asiafruitchina/categories.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 bddac96a7..facc192aa 100644 --- a/lib/routes/asiafruitchina/news.ts +++ b/lib/routes/asiafruitchina/news.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 2d2a191e4..9d93acd56 100644 --- a/lib/routes/augmentcode/blog.ts +++ b/lib/routes/augmentcode/blog.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 f896503db..4a9ce21fa 100644 --- a/lib/routes/azul/packages.ts +++ b/lib/routes/azul/packages.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 e6e9c3dde..620a0568b 100644 --- a/lib/routes/bandisoft/history.ts +++ b/lib/routes/bandisoft/history.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 c26e426e8..9ade65daf 100644 --- a/lib/routes/banshujiang/index.ts +++ b/lib/routes/banshujiang/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 965c2a07b..c953deeb0 100644 --- a/lib/routes/banyuetan/index.ts +++ b/lib/routes/banyuetan/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 b8dc8fc2a..e0acd8f53 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/bilibili/danmaku.ts b/lib/routes/bilibili/danmaku.ts index 9b52a7d78..a29a8df35 100644 --- a/lib/routes/bilibili/danmaku.ts +++ b/lib/routes/bilibili/danmaku.ts @@ -57,7 +57,7 @@ async function handler(ctx) { let danmakuText = danmakuResponse.body; - danmakuText = await ((danmakuText[0] & 0x0F) === 0x08 ? zlib.inflateSync(danmakuText) : zlib.inflateRawSync(danmakuText)); + danmakuText = await ((danmakuText[0] & 0x0f) === 0x08 ? zlib.inflateSync(danmakuText) : zlib.inflateRawSync(danmakuText)); let danmakuList = []; const $ = load(danmakuText, { xmlMode: true }); diff --git a/lib/routes/bilibili/wasm-exec.ts b/lib/routes/bilibili/wasm-exec.ts index 47b4a7fd9..7cfb8a02f 100644 --- a/lib/routes/bilibili/wasm-exec.ts +++ b/lib/routes/bilibili/wasm-exec.ts @@ -207,7 +207,7 @@ }; const storeValue = (addr, v) => { - const nanHead = 0x7F_F8_00_00; + const nanHead = 0x7f_f8_00_00; if (typeof v === 'number' && v !== 0) { if (Number.isNaN(v)) { diff --git a/lib/routes/bookwalker/search.ts b/lib/routes/bookwalker/search.ts index c0fd30fff..4ac2f6b2b 100644 --- a/lib/routes/bookwalker/search.ts +++ b/lib/routes/bookwalker/search.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 24d72be83..f3dc7e9f8 100644 --- a/lib/routes/bullionvault/gold-news.ts +++ b/lib/routes/bullionvault/gold-news.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 1398a509a..525964d9f 100644 --- a/lib/routes/cbndata/information.ts +++ b/lib/routes/cbndata/information.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 bf94a4d3a..6716b2347 100644 --- a/lib/routes/ccagm/index.ts +++ b/lib/routes/ccagm/index.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 531754f89..fae13256b 100644 --- a/lib/routes/cccmc/index.ts +++ b/lib/routes/cccmc/index.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 58b5ef10a..c272bcd2f 100644 --- a/lib/routes/ccg/index.ts +++ b/lib/routes/ccg/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 6d7b3ae6d..662b4e8e9 100644 --- a/lib/routes/cfr/utils.ts +++ b/lib/routes/cfr/utils.ts @@ -1,5 +1,5 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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 4e5fd8930..e541dc9de 100644 --- a/lib/routes/chinacdc/index.ts +++ b/lib/routes/chinacdc/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 4bd592adc..a6f2a3d64 100644 --- a/lib/routes/chinadaily/language.ts +++ b/lib/routes/chinadaily/language.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 e40b79c1c..5b2506ad7 100644 --- a/lib/routes/chinaratings/credit-research.ts +++ b/lib/routes/chinaratings/credit-research.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 344e7b785..a7bc40017 100644 --- a/lib/routes/chocolatey/packages.ts +++ b/lib/routes/chocolatey/packages.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 ba12cdfa8..7455759c8 100644 --- a/lib/routes/cline/blog.ts +++ b/lib/routes/cline/blog.ts @@ -1,5 +1,5 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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 124ed761f..8c1611a7f 100644 --- a/lib/routes/cloudflarestatus/index.ts +++ b/lib/routes/cloudflarestatus/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 2d08203b3..24ca1cc2e 100644 --- a/lib/routes/cnljxh/index.ts +++ b/lib/routes/cnljxh/index.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 9a20ae76f..f1a53b09c 100644 --- a/lib/routes/cognition/blog.ts +++ b/lib/routes/cognition/blog.ts @@ -1,7 +1,7 @@ import { load } from 'cheerio'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 500310d9b..46a336214 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 721f8dc88..5957f53ba 100644 --- a/lib/routes/coolbuy/index.ts +++ b/lib/routes/coolbuy/index.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 270a1400f..c0ffad2a6 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 57e3524c8..4be351d69 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 b81ba8cb6..f45b4855e 100644 --- a/lib/routes/crush/index.ts +++ b/lib/routes/crush/index.ts @@ -1,7 +1,7 @@ -import type {CheerioAPI} from 'cheerio'; -import { load } from 'cheerio'; +import type { CheerioAPI } from 'cheerio'; +import { load } from 'cheerio'; -import type {Data, DataItem, 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 60ee3ce16..5e69f612d 100644 --- a/lib/routes/csust/utils.ts +++ b/lib/routes/csust/utils.ts @@ -1,5 +1,5 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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 4edf1d012..6e93a30e8 100644 --- a/lib/routes/cursor/blog.ts +++ b/lib/routes/cursor/blog.ts @@ -1,8 +1,8 @@ import { load } from 'cheerio'; -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 84ae2eadb..b52f3d30c 100644 --- a/lib/routes/cursor/changelog.ts +++ b/lib/routes/cursor/changelog.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Language, Route} from '@/types'; -import { 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 847c111f1..29cb7e218 100644 --- a/lib/routes/cybersecurityventures/news.ts +++ b/lib/routes/cybersecurityventures/news.ts @@ -2,8 +2,8 @@ import { load } from 'cheerio'; import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 23010e9ce..d682f9681 100644 --- a/lib/routes/daum/potplayer.ts +++ b/lib/routes/daum/potplayer.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 9e8de3c25..ada104dc7 100644 --- a/lib/routes/dbaplus/new.ts +++ b/lib/routes/dbaplus/new.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 495fda2da..746a22898 100644 --- a/lib/routes/deepl/blog.ts +++ b/lib/routes/deepl/blog.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 f9e936cb6..1ec82a356 100644 --- a/lib/routes/dgtle/article.ts +++ b/lib/routes/dgtle/article.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 78dd6b013..c49fb97b5 100644 --- a/lib/routes/dgtle/feed.ts +++ b/lib/routes/dgtle/feed.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 33b9c3571..b30934d49 100644 --- a/lib/routes/dgtle/news.ts +++ b/lib/routes/dgtle/news.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 267d69bc2..64e6d947b 100644 --- a/lib/routes/dgtle/util.ts +++ b/lib/routes/dgtle/util.ts @@ -1,9 +1,9 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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 6e41bf8d6..9c7bf3e3e 100644 --- a/lib/routes/dgtle/video.ts +++ b/lib/routes/dgtle/video.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 12fc5f266..a81dd31c1 100644 --- a/lib/routes/diariofruticola/filtro.ts +++ b/lib/routes/diariofruticola/filtro.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 7e8e87f82..06ef0167c 100644 --- a/lib/routes/digitalpolicyalert/activity-tracker.ts +++ b/lib/routes/digitalpolicyalert/activity-tracker.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 fc2e2f485..852251366 100644 --- a/lib/routes/dw/utils.ts +++ b/lib/routes/dw/utils.ts @@ -1,7 +1,7 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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 11e2972c9..4ce35c6f3 100644 --- a/lib/routes/dytt/index.ts +++ b/lib/routes/dytt/index.ts @@ -1,11 +1,11 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 8ced24abd..c8431890f 100644 --- a/lib/routes/ea/apex-news.ts +++ b/lib/routes/ea/apex-news.ts @@ -1,8 +1,8 @@ import MarkdownIt from 'markdown-it'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import type {DataItem, Route} from '@/types'; -import { 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 aa78cfeee..9b7ae1ca7 100644 --- a/lib/routes/eastmoney/gerenzhongxin/gather.ts +++ b/lib/routes/eastmoney/gerenzhongxin/gather.ts @@ -1,5 +1,5 @@ -import type {Route} from '@/types'; -import { 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 e0f04ec3e..8eb0395ab 100644 --- a/lib/routes/eeo/kuaixun.ts +++ b/lib/routes/eeo/kuaixun.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 2a7aa91b4..05db86718 100644 --- a/lib/routes/eventernote/actors.ts +++ b/lib/routes/eventernote/actors.ts @@ -1,8 +1,8 @@ import { load } from 'cheerio'; import type { Context } from 'hono'; -import type {DataItem, Route} from '@/types'; -import { 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 f390526f4..4c51a4836 100644 --- a/lib/routes/expats/czech-news.ts +++ b/lib/routes/expats/czech-news.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 16d2d038c..1b9085685 100644 --- a/lib/routes/fangchan/list.ts +++ b/lib/routes/fangchan/list.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 ac1569dff..e28834080 100644 --- a/lib/routes/follow/profile.ts +++ b/lib/routes/follow/profile.ts @@ -1,8 +1,8 @@ import type { Context } from 'hono'; import { parse } from 'tldts'; -import type {Data, Route} from '@/types'; -import { 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 32fd4413d..2f626dcb1 100644 --- a/lib/routes/gamebase/news.ts +++ b/lib/routes/gamebase/news.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 d3c4ba4b1..3a3a9c855 100644 --- a/lib/routes/gaoyu/blog.ts +++ b/lib/routes/gaoyu/blog.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 9d18fa9fb..8322f4ea1 100644 --- a/lib/routes/gcores/articles.ts +++ b/lib/routes/gcores/articles.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 d889e5132..61785b68a 100644 --- a/lib/routes/gcores/categories.ts +++ b/lib/routes/gcores/categories.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 0fb5cc82a..47cf12c67 100644 --- a/lib/routes/gcores/collections.ts +++ b/lib/routes/gcores/collections.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 584fec249..4a3d5f943 100644 --- a/lib/routes/gcores/news.ts +++ b/lib/routes/gcores/news.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 82ae9f1f3..505a1ce6c 100644 --- a/lib/routes/gcores/program-previews.ts +++ b/lib/routes/gcores/program-previews.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 bb8e00c62..28ec4cdc6 100644 --- a/lib/routes/gcores/tags.ts +++ b/lib/routes/gcores/tags.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 418e6ef31..37944068f 100644 --- a/lib/routes/gcores/topics.ts +++ b/lib/routes/gcores/topics.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 276826708..5236adb5b 100644 --- a/lib/routes/gcores/util.ts +++ b/lib/routes/gcores/util.ts @@ -1,9 +1,9 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { load } from 'cheerio'; +import type { CheerioAPI } from 'cheerio'; +import { load } from 'cheerio'; -import type {Data, 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 e25046c8f..f64d877db 100644 --- a/lib/routes/gcores/videos.ts +++ b/lib/routes/gcores/videos.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 e6f593420..f8ac0ae69 100644 --- a/lib/routes/gitstar-ranking/index.ts +++ b/lib/routes/gitstar-ranking/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 b9e87aa69..e3ebd4602 100644 --- a/lib/routes/go/jihs/idwr.ts +++ b/lib/routes/go/jihs/idwr.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 b92f42c15..baa6523d4 100644 --- a/lib/routes/gov/mee/nnsa.ts +++ b/lib/routes/gov/mee/nnsa.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 a2e6e2973..bfe60e195 100644 --- a/lib/routes/gov/moa/gjs.ts +++ b/lib/routes/gov/moa/gjs.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 86d31097b..d82e53457 100644 --- a/lib/routes/gov/mot/index.ts +++ b/lib/routes/gov/mot/index.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 2e76c837a..cb16b1deb 100644 --- a/lib/routes/grainoil/category.ts +++ b/lib/routes/grainoil/category.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 1643bdabd..19c91c286 100644 --- a/lib/routes/hit/hitgs.ts +++ b/lib/routes/hit/hitgs.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 5527e6ae9..1a53567b6 100644 --- a/lib/routes/huijin-inv/news.ts +++ b/lib/routes/huijin-inv/news.ts @@ -1,5 +1,5 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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 2d768c560..34a19d3d6 100644 --- a/lib/routes/hupu/index.ts +++ b/lib/routes/hupu/index.ts @@ -6,8 +6,8 @@ import got from '@/utils/got'; import { parseDate, parseRelativeDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; -import type {HomePostItem, HupuApiResponse, NewsDataItem} from './types'; -import { isHomePostItem } 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 40cc680ba..e53dd3289 100644 --- a/lib/routes/ifanr/digest.ts +++ b/lib/routes/ifanr/digest.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 05defa6cb..388f7372a 100644 --- a/lib/routes/ifun/n/category.ts +++ b/lib/routes/ifun/n/category.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 13c9a6545..c9ae19314 100644 --- a/lib/routes/ifun/n/search.ts +++ b/lib/routes/ifun/n/search.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 6b35dcfee..c25ddb7dd 100644 --- a/lib/routes/ifun/n/tag.ts +++ b/lib/routes/ifun/n/tag.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 111280879..41f7162b8 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 faf221d6f..38bbbfb08 100644 --- a/lib/routes/indianexpress/section.ts +++ b/lib/routes/indianexpress/section.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 3169ca910..b1e82c709 100644 --- a/lib/routes/investor/index.ts +++ b/lib/routes/investor/index.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 ec9368411..f547d5a1c 100644 --- a/lib/routes/iresearch/report.ts +++ b/lib/routes/iresearch/report.ts @@ -1,9 +1,9 @@ import path from 'node:path'; -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 29e4cff3e..29b3b21ca 100644 --- a/lib/routes/iresearch/weekly.ts +++ b/lib/routes/iresearch/weekly.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 400d0c010..844f01edd 100644 --- a/lib/routes/jbma/report.ts +++ b/lib/routes/jbma/report.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, Route} from '@/types'; -import { 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 a267e1529..ace277801 100644 --- a/lib/routes/jisilu/category.ts +++ b/lib/routes/jisilu/category.ts @@ -1,10 +1,10 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 d2f030afc..df83b5516 100644 --- a/lib/routes/jisilu/explore.ts +++ b/lib/routes/jisilu/explore.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 b58df7c4b..90973fef8 100644 --- a/lib/routes/jisilu/people.ts +++ b/lib/routes/jisilu/people.ts @@ -1,10 +1,10 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 ccc75c91e..5083ff679 100644 --- a/lib/routes/jisilu/topic.ts +++ b/lib/routes/jisilu/topic.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 4982ef33b..de1dce60c 100644 --- a/lib/routes/jisilu/util.ts +++ b/lib/routes/jisilu/util.ts @@ -1,8 +1,8 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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 9585a71b4..6da9e8635 100644 --- a/lib/routes/jl1mall/forum.ts +++ b/lib/routes/jl1mall/forum.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 c25149d15..21278824b 100644 --- a/lib/routes/joneslanglasalle/index.ts +++ b/lib/routes/joneslanglasalle/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 4cf5dba96..f016cd0f4 100644 --- a/lib/routes/kiro/blog.ts +++ b/lib/routes/kiro/blog.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 93418a2f2..23e987de4 100644 --- a/lib/routes/kiro/changelog.ts +++ b/lib/routes/kiro/changelog.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 7f8061162..75b4ce9ce 100644 --- a/lib/routes/koyso/index.ts +++ b/lib/routes/koyso/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 e61f30b2b..4443544a7 100644 --- a/lib/routes/kpopping/kpics.ts +++ b/lib/routes/kpopping/kpics.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 2e31d29f1..f5dac1490 100644 --- a/lib/routes/kpopping/news.ts +++ b/lib/routes/kpopping/news.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 bd0707ed3..9a70f9d86 100644 --- a/lib/routes/lhratings/research.ts +++ b/lib/routes/lhratings/research.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 eeaa886b2..6894ea5f8 100644 --- a/lib/routes/lineageos/changes.ts +++ b/lib/routes/lineageos/changes.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 6c2889604..5cc151f58 100644 --- a/lib/routes/linkresearcher/index.ts +++ b/lib/routes/linkresearcher/index.ts @@ -4,8 +4,8 @@ import path from 'node:path'; import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 62d6ecd47..e7487e8f3 100644 --- a/lib/routes/ltaaa/article.ts +++ b/lib/routes/ltaaa/article.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 2a2c76da9..5c5e5f8c3 100644 --- a/lib/routes/m-78/news.ts +++ b/lib/routes/m-78/news.ts @@ -2,8 +2,8 @@ import { load } from 'cheerio'; import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import type {Data, Route} from '@/types'; -import { 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 59bee3d32..f441115a1 100644 --- a/lib/routes/mathpix/blog.ts +++ b/lib/routes/mathpix/blog.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 f1d5a5241..dacdece97 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/mercari/util.ts b/lib/routes/mercari/util.ts index 4389fa343..203b9b9a1 100644 --- a/lib/routes/mercari/util.ts +++ b/lib/routes/mercari/util.ts @@ -103,7 +103,7 @@ function readDerLength(buf: Buffer, offset: number): { length: number; bytesRead if (byte < 0x80) { return { length: byte, bytesRead: 1 }; } - const bytesCount = byte & 0x7F; + const bytesCount = byte & 0x7f; if (bytesCount > 4) { throw new Error('DER length too long'); } diff --git a/lib/routes/mixi2/community.ts b/lib/routes/mixi2/community.ts index e56a129c2..c27ab97da 100644 --- a/lib/routes/mixi2/community.ts +++ b/lib/routes/mixi2/community.ts @@ -1,7 +1,7 @@ import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 aacf10db9..2be377991 100644 --- a/lib/routes/mixi2/discovery.ts +++ b/lib/routes/mixi2/discovery.ts @@ -1,7 +1,7 @@ import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 5e4450c15..917f0141f 100644 --- a/lib/routes/mixi2/home.ts +++ b/lib/routes/mixi2/home.ts @@ -1,7 +1,7 @@ import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 85b300174..9e93a192c 100644 --- a/lib/routes/mixi2/user.ts +++ b/lib/routes/mixi2/user.ts @@ -1,8 +1,8 @@ import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import type {Data, Route} from '@/types'; -import { 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 7c214eccb..cbaa546ce 100644 --- a/lib/routes/mixi2/utils.ts +++ b/lib/routes/mixi2/utils.ts @@ -1,5 +1,5 @@ -import type {Persona, Post} from 'mixi2'; -import { Category, MixiClient } 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 0371b9afc..9eaf8c9db 100644 --- a/lib/routes/musify/index.ts +++ b/lib/routes/musify/index.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 9101fdf82..0b8fc652a 100644 --- a/lib/routes/musikguru/news.ts +++ b/lib/routes/musikguru/news.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 fa5cd59dc..b2338fd60 100644 --- a/lib/routes/mycard520/news.ts +++ b/lib/routes/mycard520/news.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 d63051419..637cb8e75 100644 --- a/lib/routes/neea/jlpt.ts +++ b/lib/routes/neea/jlpt.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 eea448120..ceac0a6b0 100644 --- a/lib/routes/ornl/all-news.ts +++ b/lib/routes/ornl/all-news.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 400ae92f4..6cd4c0128 100644 --- a/lib/routes/oschina/column.ts +++ b/lib/routes/oschina/column.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 3873857ef..135d5fe77 100644 --- a/lib/routes/oschina/event.ts +++ b/lib/routes/oschina/event.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 1eac07f21..01238d37e 100644 --- a/lib/routes/oshwhub/explore.ts +++ b/lib/routes/oshwhub/explore.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 b2ea88815..745a53178 100644 --- a/lib/routes/papers/category.ts +++ b/lib/routes/papers/category.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 70406e3f7..15baa2318 100644 --- a/lib/routes/parliament.uk/petitions.ts +++ b/lib/routes/parliament.uk/petitions.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 84e504551..c2a776f0b 100644 --- a/lib/routes/pixelstech/index.ts +++ b/lib/routes/pixelstech/index.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 484d6860a..40f80c933 100644 --- a/lib/routes/python/release.ts +++ b/lib/routes/python/release.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 b3b076a42..d9480e9cf 100644 --- a/lib/routes/qq/lol/news.ts +++ b/lib/routes/qq/lol/news.ts @@ -1,10 +1,10 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 2aab4b5b5..b547f2954 100644 --- a/lib/routes/qweather/3days.ts +++ b/lib/routes/qweather/3days.ts @@ -4,8 +4,8 @@ import type { Route } from '@/types'; import cache from '@/utils/cache'; import got from '@/utils/got'; -import type {WeatherForecastItem} from './util'; -import { render3DaysDescription } 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 1a2d193ac..0f1206809 100644 --- a/lib/routes/qweather/now.ts +++ b/lib/routes/qweather/now.ts @@ -5,8 +5,8 @@ import cache from '@/utils/cache'; import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; -import type {NowItem} from './util'; -import { 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 3c07c200d..df8a315e0 100644 --- a/lib/routes/raspberrypi/magazine.ts +++ b/lib/routes/raspberrypi/magazine.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 5287d20db..9dd905168 100644 --- a/lib/routes/rockthejvm/articles.ts +++ b/lib/routes/rockthejvm/articles.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 79dd01fd4..b31d86d08 100644 --- a/lib/routes/samrdprc/index.ts +++ b/lib/routes/samrdprc/index.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 75980e6f3..07e98a824 100644 --- a/lib/routes/scientificamerican/podcast.ts +++ b/lib/routes/scientificamerican/podcast.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 50d08f4c7..bbcfbba7b 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, DataItem, 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 cf1e7faa2..8d547483c 100644 --- a/lib/routes/scoop/apps.ts +++ b/lib/routes/scoop/apps.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 4cafb0f3c..d8c5e0d6c 100644 --- a/lib/routes/sorrycc/index.ts +++ b/lib/routes/sorrycc/index.ts @@ -2,8 +2,8 @@ import { load } from 'cheerio'; import type { Context } from 'hono'; import { config } from '@/config'; -import type {Data, DataItem, Route} from '@/types'; -import { 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 ca2841b70..cd055d36b 100644 --- a/lib/routes/stcn/index.ts +++ b/lib/routes/stcn/index.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 477882864..23766b6e2 100644 --- a/lib/routes/stcn/kx.ts +++ b/lib/routes/stcn/kx.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 bfeaa8626..ee9226e24 100644 --- a/lib/routes/stcn/rank.ts +++ b/lib/routes/stcn/rank.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 21f378871..e0c2066af 100644 --- a/lib/routes/surfshark/blog.ts +++ b/lib/routes/surfshark/blog.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 18f186ab5..930fd88d8 100644 --- a/lib/routes/szse/disclosure/listed-notice.ts +++ b/lib/routes/szse/disclosure/listed-notice.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 2d92a0343..fe87166fe 100644 --- a/lib/routes/taobao/mysql.ts +++ b/lib/routes/taobao/mysql.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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/telegram/channel-media.ts b/lib/routes/telegram/channel-media.ts index a5c639aca..a00edbe58 100644 --- a/lib/routes/telegram/channel-media.ts +++ b/lib/routes/telegram/channel-media.ts @@ -23,25 +23,25 @@ function ExpandInlineBytes(bytes: Buffer) { throw new Error('cannot inflate a stripped jpeg'); } const header = Buffer.from([ - 0xFF, 0xD8, 0xFF, 0xE0, 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0xFF, 0xDB, 0x00, 0x43, 0x00, 0x28, 0x1C, 0x1E, 0x23, 0x1E, 0x19, 0x28, 0x23, 0x21, 0x23, 0x2D, 0x2B, - 0x28, 0x30, 0x3C, 0x64, 0x41, 0x3C, 0x37, 0x37, 0x3C, 0x7B, 0x58, 0x5D, 0x49, 0x64, 0x91, 0x80, 0x99, 0x96, 0x8F, 0x80, 0x8C, 0x8A, 0xA0, 0xB4, 0xE6, 0xC3, 0xA0, 0xAA, 0xDA, 0xAD, 0x8A, 0x8C, 0xC8, 0xFF, 0xCB, 0xDA, 0xEE, - 0xF5, 0xFF, 0xFF, 0xFF, 0x9B, 0xC1, 0xFF, 0xFF, 0xFF, 0xFA, 0xFF, 0xE6, 0xFD, 0xFF, 0xF8, 0xFF, 0xDB, 0x00, 0x43, 0x01, 0x2B, 0x2D, 0x2D, 0x3C, 0x35, 0x3C, 0x76, 0x41, 0x41, 0x76, 0xF8, 0xA5, 0x8C, 0xA5, 0xF8, 0xF8, 0xF8, - 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, - 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x22, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11, 0x01, 0xFF, 0xC4, 0x00, 0x1F, 0x00, 0x00, 0x01, 0x05, - 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0xFF, 0xC4, 0x00, 0xB5, 0x10, 0x00, 0x02, 0x01, 0x03, 0x03, 0x02, 0x04, - 0x03, 0x05, 0x05, 0x04, 0x04, 0x00, 0x00, 0x01, 0x7D, 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xA1, 0x08, 0x23, 0x42, 0xB1, 0xC1, - 0x15, 0x52, 0xD1, 0xF0, 0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0A, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, - 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x92, 0x93, 0x94, 0x95, 0x96, - 0x97, 0x98, 0x99, 0x9A, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, - 0xD8, 0xD9, 0xDA, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFF, 0xC4, 0x00, 0x1F, 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, - 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0xFF, 0xC4, 0x00, 0xB5, 0x11, 0x00, 0x02, 0x01, 0x02, 0x04, 0x04, 0x03, 0x04, 0x07, 0x05, 0x04, 0x04, 0x00, - 0x01, 0x02, 0x77, 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, 0xA1, 0xB1, 0xC1, 0x09, 0x23, 0x33, 0x52, 0xF0, 0x15, 0x62, - 0x72, 0xD1, 0x0A, 0x16, 0x24, 0x34, 0xE1, 0x25, 0xF1, 0x17, 0x18, 0x19, 0x1A, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, - 0x58, 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, - 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xE2, - 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFF, 0xDA, 0x00, 0x0C, 0x03, 0x01, 0x00, 0x02, 0x11, 0x03, 0x11, 0x00, 0x3F, 0x00, + 0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0xff, 0xdb, 0x00, 0x43, 0x00, 0x28, 0x1c, 0x1e, 0x23, 0x1e, 0x19, 0x28, 0x23, 0x21, 0x23, 0x2d, 0x2b, + 0x28, 0x30, 0x3c, 0x64, 0x41, 0x3c, 0x37, 0x37, 0x3c, 0x7b, 0x58, 0x5d, 0x49, 0x64, 0x91, 0x80, 0x99, 0x96, 0x8f, 0x80, 0x8c, 0x8a, 0xa0, 0xb4, 0xe6, 0xc3, 0xa0, 0xaa, 0xda, 0xad, 0x8a, 0x8c, 0xc8, 0xff, 0xcb, 0xda, 0xee, + 0xf5, 0xff, 0xff, 0xff, 0x9b, 0xc1, 0xff, 0xff, 0xff, 0xfa, 0xff, 0xe6, 0xfd, 0xff, 0xf8, 0xff, 0xdb, 0x00, 0x43, 0x01, 0x2b, 0x2d, 0x2d, 0x3c, 0x35, 0x3c, 0x76, 0x41, 0x41, 0x76, 0xf8, 0xa5, 0x8c, 0xa5, 0xf8, 0xf8, 0xf8, + 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, + 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xff, 0xc0, 0x00, 0x11, 0x08, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x22, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11, 0x01, 0xff, 0xc4, 0x00, 0x1f, 0x00, 0x00, 0x01, 0x05, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0xff, 0xc4, 0x00, 0xb5, 0x10, 0x00, 0x02, 0x01, 0x03, 0x03, 0x02, 0x04, + 0x03, 0x05, 0x05, 0x04, 0x04, 0x00, 0x00, 0x01, 0x7d, 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08, 0x23, 0x42, 0xb1, 0xc1, + 0x15, 0x52, 0xd1, 0xf0, 0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0a, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, + 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, + 0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xff, 0xc4, 0x00, 0x1f, 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, + 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0xff, 0xc4, 0x00, 0xb5, 0x11, 0x00, 0x02, 0x01, 0x02, 0x04, 0x04, 0x03, 0x04, 0x07, 0x05, 0x04, 0x04, 0x00, + 0x01, 0x02, 0x77, 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, 0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, 0x52, 0xf0, 0x15, 0x62, + 0x72, 0xd1, 0x0a, 0x16, 0x24, 0x34, 0xe1, 0x25, 0xf1, 0x17, 0x18, 0x19, 0x1a, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, + 0x58, 0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, + 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe2, + 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xff, 0xda, 0x00, 0x0c, 0x03, 0x01, 0x00, 0x02, 0x11, 0x03, 0x11, 0x00, 0x3f, 0x00, ]); - const footer = Buffer.from([0xFF, 0xD9]); + const footer = Buffer.from([0xff, 0xd9]); const real = Buffer.alloc(header.length + bytes.length + footer.length); header.copy(real); bytes.copy(real, header.length, 3); diff --git a/lib/routes/theinitium/app.ts b/lib/routes/theinitium/app.ts index 774986b12..26e67d05d 100644 --- a/lib/routes/theinitium/app.ts +++ b/lib/routes/theinitium/app.ts @@ -1,7 +1,7 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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 864ae8472..43b544121 100644 --- a/lib/routes/tidb/blog.ts +++ b/lib/routes/tidb/blog.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 ed6e6d024..b1d074165 100644 --- a/lib/routes/tmtpost/column.ts +++ b/lib/routes/tmtpost/column.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 bc3ef5226..cd173bbeb 100644 --- a/lib/routes/tmtpost/new.ts +++ b/lib/routes/tmtpost/new.ts @@ -1,7 +1,7 @@ -import type {Context} from 'hono'; +import type { Context } from 'hono'; -import type {Data, Route} from '@/types'; -import { 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 ba3c1b9b4..8f9044006 100644 --- a/lib/routes/tmtpost/util.ts +++ b/lib/routes/tmtpost/util.ts @@ -1,9 +1,9 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { load } from 'cheerio'; +import type { CheerioAPI } from 'cheerio'; +import { load } from 'cheerio'; -import type {Data, 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/toutiao/a-bogus.ts b/lib/routes/toutiao/a-bogus.ts index 5f13a59d4..1522472f3 100644 --- a/lib/routes/toutiao/a-bogus.ts +++ b/lib/routes/toutiao/a-bogus.ts @@ -43,9 +43,9 @@ function rotateLeft32(e, r) { function T(j) { if (0 <= j && j < 16) { - return 0x79_CC_45_19; + return 0x79_cc_45_19; } else if (16 <= j && j < 64) { - return 0x7A_87_9D_8A; + return 0x7a_87_9d_8a; } else { logger.error('invalid j for constant Tj'); } @@ -74,14 +74,14 @@ function GG(j, x, y, z) { } function reset(this: any) { - this.reg[0] = 0x73_80_16_6F; - this.reg[1] = 0x49_14_B2_B9; - this.reg[2] = 0x17_24_42_D7; - this.reg[3] = 0xDA_8A_06_00; - this.reg[4] = 0xA9_6F_30_BC; - this.reg[5] = 0x16_31_38_AA; - this.reg[6] = 0xE3_8D_EE_4D; - this.reg[7] = 0xB0_FB_0E_4E; + this.reg[0] = 0x73_80_16_6f; + this.reg[1] = 0x49_14_b2_b9; + this.reg[2] = 0x17_24_42_d7; + this.reg[3] = 0xda_8a_06_00; + this.reg[4] = 0xa9_6f_30_bc; + this.reg[5] = 0x16_31_38_aa; + this.reg[6] = 0xe3_8d_ee_4d; + this.reg[7] = 0xb0_fb_0e_4e; this.chunk = []; this.size = 0; } @@ -172,17 +172,17 @@ function _compress(this: any, t) { const i = this.reg.slice(0); for (let c = 0; c < 64; c++) { let o = rotateLeft32(i[0], 12) + i[4] + rotateLeft32(T(c), c); - o = (0xFF_FF_FF_FF & o) >>> 0; + o = (0xff_ff_ff_ff & o) >>> 0; o = rotateLeft32(o, 7); const s = (o ^ rotateLeft32(i[0], 12)) >>> 0; let u = FF(c, i[0], i[1], i[2]); u = u + i[3] + s + f[c + 68]; - u = (0xFF_FF_FF_FF & u) >>> 0; + u = (0xff_ff_ff_ff & u) >>> 0; let b = GG(c, i[4], i[5], i[6]); b = b + i[7] + o + f[c]; - b = (0xFF_FF_FF_FF & b) >>> 0; + b = (0xff_ff_ff_ff & b) >>> 0; i[3] = i[2]; i[2] = rotateLeft32(i[1], 9); i[1] = i[0]; @@ -206,10 +206,10 @@ function _fill(this: any) { } for (let i = 0; i < 4; i++) { const c = Math.floor(a / 0x1_00_00_00_00); - this.chunk.push((c >>> (8 * (3 - i))) & 0xFF); + this.chunk.push((c >>> (8 * (3 - i))) & 0xff); } for (let i = 0; i < 4; i++) { - this.chunk.push((a >>> (8 * (3 - i))) & 0xFF); + this.chunk.push((a >>> (8 * (3 - i))) & 0xff); } } diff --git a/lib/routes/trendforce/new.ts b/lib/routes/trendforce/new.ts index 69eacdab9..c2a2555fa 100644 --- a/lib/routes/trendforce/new.ts +++ b/lib/routes/trendforce/new.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 fa2fa664e..98b02ea1d 100644 --- a/lib/routes/voronoiapp/common.ts +++ b/lib/routes/voronoiapp/common.ts @@ -1,5 +1,5 @@ -import type {Data, DataItem, Route} from '@/types'; -import { 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 c19396da8..2aba40e01 100644 --- a/lib/routes/wainao/topics.ts +++ b/lib/routes/wainao/topics.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 215408990..26ebe02b0 100644 --- a/lib/routes/wdfxw/bookfree.ts +++ b/lib/routes/wdfxw/bookfree.ts @@ -1,12 +1,12 @@ import path from 'node:path'; -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 92f2e1cce..0a18baa48 100644 --- a/lib/routes/windsurf/blog.ts +++ b/lib/routes/windsurf/blog.ts @@ -1,11 +1,11 @@ import path from 'node:path'; -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 301ca2358..e5bd8cf8c 100644 --- a/lib/routes/windsurf/changelog.ts +++ b/lib/routes/windsurf/changelog.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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/xiaoheihe/util.ts b/lib/routes/xiaoheihe/util.ts index 1572ae782..fe131fc12 100644 --- a/lib/routes/xiaoheihe/util.ts +++ b/lib/routes/xiaoheihe/util.ts @@ -27,7 +27,7 @@ function c3(v) { } function convertByte(v) { - return v & 0x80 ? 0xFF & ((v << 1) ^ 0x1B) : v << 1; + return v & 0x80 ? 0xff & ((v << 1) ^ 0x1b) : v << 1; } /** diff --git a/lib/routes/xjtu/zs.ts b/lib/routes/xjtu/zs.ts index b1cba47a5..f0abbea1f 100644 --- a/lib/routes/xjtu/zs.ts +++ b/lib/routes/xjtu/zs.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 ab5a591af..c5cfdc01d 100644 --- a/lib/routes/xwenming/index.ts +++ b/lib/routes/xwenming/index.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 c062edc05..8d8fcf3e8 100644 --- a/lib/routes/ynet/list.ts +++ b/lib/routes/ynet/list.ts @@ -1,10 +1,10 @@ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 a2cb00dd4..1863dfdc2 100644 --- a/lib/routes/yuanliao/index.ts +++ b/lib/routes/yuanliao/index.ts @@ -1,9 +1,9 @@ -import type {CheerioAPI} from 'cheerio'; -import { 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, DataItem, Route} from '@/types'; -import { 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 e1b9a008f..432dadd07 100644 --- a/lib/utils/header-generator.ts +++ b/lib/utils/header-generator.ts @@ -1,5 +1,5 @@ -import type {HeaderGeneratorOptions} from 'header-generator'; -import { HeaderGenerator, 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 492fb592a..119c86d5e 100644 --- a/lib/utils/proxy/index.ts +++ b/lib/utils/proxy/index.ts @@ -6,7 +6,7 @@ import { ProxyAgent } from 'undici'; import { config } from '@/config'; import logger from '@/utils/logger'; -import type {MultiProxyResult, 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 69475dcf1..3f386afa1 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 12e982d67..09c18a31b 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 109d3f7d1..f4c17bbab 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 dc4d47daf..bb2bd2b3a 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 b70a4091c..238fbe179 100644 --- a/lib/utils/wechat-mp.ts +++ b/lib/utils/wechat-mp.ts @@ -25,8 +25,8 @@ * For more details of these functions, please refer to the jsDoc in the source code. */ -import type {Cheerio, CheerioAPI} from 'cheerio'; -import { load } from 'cheerio'; +import type { Cheerio, CheerioAPI } from 'cheerio'; +import { load } from 'cheerio'; import type { Element } from 'domhandler'; import cache from '@/utils/cache'; @@ -184,7 +184,7 @@ class ExtractMetadata { $, (script) => { const scriptText = $(script).text(); - const metadataExtracted = > this.doExtract(this.commonMetadataToBeExtracted, scriptText); + const metadataExtracted = >this.doExtract(this.commonMetadataToBeExtracted, scriptText); const showType = showTypeMapReverse[metadataExtracted.showType]; const realShowType = showTypeMapReverse[metadataExtracted.realShowType]; metadataExtracted.sourceUrl = metadataExtracted.sourceUrl && fixUrl(metadataExtracted.sourceUrl); @@ -219,7 +219,7 @@ class ExtractMetadata { $, (script) => { const scriptText = $(script).text(); - const metadataExtracted = > this.doExtract(this.audioMetadataToBeExtracted, scriptText); + const metadataExtracted = >this.doExtract(this.audioMetadataToBeExtracted, scriptText); throw new LoopReturn(metadataExtracted); }, {}, @@ -235,7 +235,7 @@ class ExtractMetadata { $, (script) => { const scriptText = $(script).text(); - const metadataExtracted = > this.doExtract(this.imgMetadataToBeExtracted, scriptText); + const metadataExtracted = >this.doExtract(this.imgMetadataToBeExtracted, scriptText); if (Array.isArray(metadataExtracted.imgUrls)) { metadataExtracted.imgUrls = metadataExtracted.imgUrls.map((url) => fixUrl(url)); }