style: auto format

This commit is contained in:
github-actions[bot]
2025-11-27 05:54:33 +00:00
parent b90d5c8d79
commit edfac9f24c
184 changed files with 741 additions and 741 deletions
+1 -1
View File
@@ -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';
+3 -3
View File
@@ -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';
+2 -2
View File
@@ -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';
+2 -2
View File
@@ -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';
+2 -2
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+3 -3
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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<Data> => {
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+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';
+1 -1
View File
@@ -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 });
+1 -1
View File
@@ -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)) {
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+2 -2
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+2 -2
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+2 -2
View File
@@ -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';
+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 -5
View File
@@ -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';
+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 -3
View File
@@ -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';
+2 -2
View File
@@ -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';
+3 -3
View File
@@ -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';
+5 -5
View File
@@ -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';
+2 -2
View File
@@ -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';
+3 -3
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+3 -3
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
@@ -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';
+2 -2
View File
@@ -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';
+5 -5
View File
@@ -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';
+2 -2
View File
@@ -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';
+2 -2
View File
@@ -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';
+5 -5
View File
@@ -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';
+2 -2
View File
@@ -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 = /(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/;
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+2 -2
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+5 -5
View File
@@ -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';
+2 -2
View File
@@ -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';
+2 -2
View File
@@ -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: {
+5 -5
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';

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