style: auto format
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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
@@ -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
@@ -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';
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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,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,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,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,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,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,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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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,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,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,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,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> => {
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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,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,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';
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
@@ -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,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,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,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';
|
||||
|
||||
@@ -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,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,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,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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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,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,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[] {
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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,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,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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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})/;
|
||||
|
||||
@@ -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,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,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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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,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,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,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';
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user