style: auto format

This commit is contained in:
github-actions[bot]
2025-11-27 05:49:33 +00:00
parent 95eb1ba802
commit 838eb3c7ff
178 changed files with 702 additions and 425 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { type ErrorHandler, type NotFoundHandler } from 'hono';
import type {ErrorHandler, NotFoundHandler} from 'hono';
import { routePath } from 'hono/route';
import { config } from '@/config';
+3 -2
View File
@@ -1,5 +1,6 @@
import { type CheerioAPI, load } from 'cheerio';
import { type MiddlewareHandler } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {MiddlewareHandler} from 'hono';
import { config } from '@/config';
import type { Data } from '@/types';
+2 -1
View File
@@ -1,5 +1,6 @@
import Parser from '@postlight/parser';
import { type CheerioAPI, load } from 'cheerio';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import * as entities from 'entities';
import type { MiddlewareHandler } from 'hono';
+2 -1
View File
@@ -1,7 +1,8 @@
import type { Handler, Hono } from 'hono';
import type { RoutePath } from '@/../assets/build/route-paths';
import { type ConfigEnv, setConfig } from '@/config';
import type {ConfigEnv} from '@/config';
import { setConfig } from '@/config';
import type { Data, Namespace, Route } from './types';
+2 -1
View File
@@ -2,7 +2,8 @@ import path from 'node:path';
import { serveStatic } from '@hono/node-server/serve-static';
import { directoryImport } from 'directory-import';
import { type Handler, Hono } from 'hono';
import type {Handler} from 'hono';
import { Hono } from 'hono';
import { routePath } from 'hono/route';
import { config } from '@/config';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate, parseRelativeDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,9 +1,11 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import InvalidParameterError from '@/errors/types/invalid-parameter';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate, parseRelativeDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,9 +1,11 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import iconv from 'iconv-lite';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { baseUrl, fetchItems } from './util';
+5 -3
View File
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { baseUrl, fetchItems } from './util';
+3 -2
View File
@@ -1,9 +1,10 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type DataItem } from '@/types';
import type {DataItem} from '@/types';
import ofetch from '@/utils/ofetch';
import { art } from '@/utils/render';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
export const handler = async (ctx: Context): Promise<Data> => {
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+1 -1
View File
@@ -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';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { art } from '@/utils/render';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,9 +1,11 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,4 +1,5 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import type { DataItem } from '@/types';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,4 +1,5 @@
import { type CheerioAPI, load } from 'cheerio';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { DataItem, Route } from '@/types';
import got from '@/utils/got';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,6 +1,7 @@
import { load } from 'cheerio';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+1 -1
View File
@@ -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[] {
+5 -3
View File
@@ -1,9 +1,11 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { art } from '@/utils/render';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type CheerioAPI, load } from 'cheerio';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import { type Data, type DataItem, type Route } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import md5 from '@/utils/md5';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,4 +1,5 @@
import { type CheerioAPI, load } from 'cheerio';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import cache from '@/utils/cache';
import got from '@/utils/got';
+3 -2
View File
@@ -1,7 +1,8 @@
import { load } from 'cheerio';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Language, type Route, ViewType } from '@/types';
import type {Data, DataItem, Language, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -2,7 +2,8 @@ import { load } from 'cheerio';
import type { Context } from 'hono';
import InvalidParameterError from '@/errors/types/invalid-parameter';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { baseUrl, ProcessItems } from './util';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import MarkdownIt from 'markdown-it';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
+5 -3
View File
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { baseUrl, ProcessItems } from './util';
+3 -2
View File
@@ -1,8 +1,9 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import { type DataItem } from '@/types';
import type {DataItem} from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseRelativeDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,6 +1,7 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import cache from '@/utils/cache';
import got from '@/utils/got';
+5 -3
View File
@@ -1,9 +1,11 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import iconv from 'iconv-lite';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,7 +1,8 @@
import MarkdownIt from 'markdown-it';
import InvalidParameterError from '@/errors/types/invalid-parameter';
import { type DataItem, type Route, ViewType } from '@/types';
import type {DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,4 +1,5 @@
import { type Route, ViewType } from '@/types';
import type {Route} from '@/types';
import { ViewType } from '@/types';
import { handler as cfhHandler } from './cfh';
import { handler as gubaHandler } from './guba';
+5 -3
View File
@@ -1,9 +1,11 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,7 +1,8 @@
import { load } from 'cheerio';
import type { Context } from 'hono';
import { type DataItem, type Route, ViewType } from '@/types';
import type {DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
const dateStringRegex = /(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/;
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,7 +1,8 @@
import type { Context } from 'hono';
import { parse } from 'tldts';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import type { FeedSubscription, FollowResponse, InboxSubscription, ListSubscription, Profile, Subscription } from './types';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import InvalidParameterError from '@/errors/types/invalid-parameter';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import { baseUrl, processItems } from './util';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import { baseUrl, processItems } from './util';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import { baseUrl, processItems } from './util';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import { baseUrl, processItems } from './util';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import { baseUrl, processItems } from './util';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import { baseUrl, processItems } from './util';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import { baseUrl, processItems } from './util';
+3 -2
View File
@@ -1,8 +1,9 @@
import path from 'node:path';
import { type CheerioAPI, load } from 'cheerio';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import { type Data, type DataItem } from '@/types';
import type {Data, DataItem} from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type Route, ViewType } from '@/types';
import type {Data, Route} from '@/types';
import { ViewType } from '@/types';
import { baseUrl, processItems } from './util';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { art } from '@/utils/render';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+5 -3
View File
@@ -1,8 +1,10 @@
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
+5 -3
View File
@@ -1,10 +1,12 @@
import path from 'node:path';
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
import type {Cheerio, CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Element } from 'domhandler';
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import cache from '@/utils/cache';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+2 -1
View File
@@ -1,4 +1,5 @@
import { type CheerioAPI, load } from 'cheerio';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type { Data, DataItem, Route } from '@/types';
import ofetch from '@/utils/ofetch';
+2 -1
View File
@@ -6,7 +6,8 @@ import got from '@/utils/got';
import { parseDate, parseRelativeDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { type HomePostItem, type HupuApiResponse, isHomePostItem, type NewsDataItem } from './types';
import type {HomePostItem, HupuApiResponse, NewsDataItem} from './types';
import { isHomePostItem } from './types';
const categories = {
nba: {
+5 -3
View File
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { author, language, processItems, rootUrl } from './util';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { author, language, processItems, rootUrl } from './util';
+3 -2
View File
@@ -1,6 +1,7 @@
import { type Context } from 'hono';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { author, language, processItems, rootUrl } from './util';
+1 -1
View File
@@ -1,4 +1,4 @@
import { type DataItem } from '@/types';
import type {DataItem} from '@/types';
import { parseDate } from '@/utils/parse-date';
const author: string = '趣集';
+5 -3
View File
@@ -1,7 +1,9 @@
import { type CheerioAPI, load } from 'cheerio';
import { type Context } from 'hono';
import type {CheerioAPI} from 'cheerio';
import { load } from 'cheerio';
import type {Context} from 'hono';
import { type Data, type DataItem, type Route, ViewType } from '@/types';
import type {Data, DataItem, Route} from '@/types';
import { ViewType } from '@/types';
import ofetch from '@/utils/ofetch';
import { parseDate } from '@/utils/parse-date';

Some files were not shown because too many files have changed in this diff Show More