feat: v3 migration - 6/n

This commit is contained in:
DIYgod 2024-02-28 19:40:21 +08:00
parent e5397f9e3e
commit 3eb1545bc5
No known key found for this signature in database
450 changed files with 450 additions and 450 deletions

View File

@ -1,7 +1,7 @@
import cache from '@/utils/cache';
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { config } from '@/config';
const rootUrl = 'https://kyfw.12306.cn';

View File

@ -2,7 +2,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const rootUrl = 'https://www.141jav.com';

View File

@ -2,7 +2,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const rootUrl = 'https://www.141ppv.com';

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const root_url = 'https://inf.ds.163.com';

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const ids = {
'': {

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const { id } = ctx.params;

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const id = ctx.req.param('id');

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const id = ctx.req.param('id');

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { config } from '@/config';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
if (!config.ncm || !config.ncm.cookies) {

View File

@ -1,4 +1,4 @@
const path = require('path');
import * as path from 'node:path';
import got from '@/utils/got';
import { art } from '@/utils/render';
const renderDescription = (info) => art(path.join(__dirname, '../templates/music/userevents.art'), info);

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const uid = ctx.req.param('uid');

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { config } from '@/config';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const headers = {
cookie: config.ncm.cookies,

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const url = 'https://vip.open.163.com';

View File

@ -2,7 +2,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
const iconv = require('iconv-lite');
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const parseDyArticle = (charset, item, tryGet) =>
tryGet(item.link, async () => {

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { config } from '@/config';
const defaultDomain = 'jmcomic1.me';

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
import { parseDate } from '@/utils/parse-date';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
// year 2017-2022

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const bbcode = require('bbcodejs');
const rootUrl = 'https://instant.1point3acres.com';

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const id = ctx.req.param('id') ?? '2';

View File

@ -1,5 +1,5 @@
import got from '@/utils/got';
const path = require('path');
import * as path from 'node:path';
import { art } from '@/utils/render';
import { parseDate } from '@/utils/parse-date';

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const iconv = require('iconv-lite');
module.exports = async (ctx) => {

View File

@ -1,7 +1,7 @@
import cache from '@/utils/cache';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { baseUrl, getTribeDetail, getTribeSets } = require('./utils');

View File

@ -1,7 +1,7 @@
import cache from '@/utils/cache';
import { art } from '@/utils/render';
import { parseDate } from '@/utils/parse-date';
const path = require('path');
import * as path from 'node:path';
const { baseUrl, getUserInfoFromUsername, getUserInfoFromId, getUserWorks } = require('./utils');
module.exports = async (ctx) => {

View File

@ -4,7 +4,7 @@ const iconv = require('iconv-lite');
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const rootUrl = 'https://www.56kog.com';

View File

@ -1,4 +1,4 @@
const path = require('path');
import * as path from 'node:path';
const { CookieJar } = require('tough-cookie');
import { load } from 'cheerio';

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const rootUrl = 'https://www.78dm.net';

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const language = ctx.req.param('language') ?? 'en';

View File

@ -5,7 +5,7 @@ const iconv = require('iconv-lite');
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const { id = '751' } = ctx.params;

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { domainValidation } = require('./utils');
module.exports = async (ctx) => {

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { domainValidation } = require('./utils');
module.exports = async (ctx) => {

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const rootUrl = 'https://www.95mm.vip';

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const { category = 'news/justin' } = ctx.params;

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { config } from '@/config';
import puppeteer from '@/utils/puppeteer';

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
let id = ctx.req.param('id');

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import { load } from 'cheerio';
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const getData = async (ctx, list) => {
const items = await Promise.all(

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const category = ctx.req.param('category') ?? 'latest';

View File

@ -1,4 +1,4 @@
const path = require('path');
import * as path from 'node:path';
import { art } from '@/utils/render';
const puppeteerGet = async (url, browser) => {

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const languages = {
arabic: {

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { load } from 'cheerio';
const host = 'https://www.amazon.com';
module.exports = async (ctx) => {

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const MarkdownIt = require('markdown-it');
module.exports = async (ctx) => {

View File

@ -2,7 +2,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 50;

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { generateRssData } = require('./utils');
module.exports = async (ctx) => {

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { generateRssData } = require('./utils');
module.exports = async (ctx) => {

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const host = 'https://www.regear.arcteryx.com';
function getUSDPrice(number) {

View File

@ -1,7 +1,7 @@
import cache from '@/utils/cache';
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
const path = require('path');
import * as path from 'node:path';
import { art } from '@/utils/render';
import { config } from '@/config';

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const { category } = ctx.params;

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const getProductID = async (model) => {
const searchAPI = `https://odinapi.asus.com.cn/recent-data/apiv2/SearchSuggestion?SystemCode=asus&WebsiteCode=cn&SearchKey=${model}&SearchType=ProductsAll&RowLimit=4&sitelang=cn`;

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const STATUS_MAP = {
up: '上涨',

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const renderDescription = (description, images) => art(path.join(__dirname, './templates/description.art'), { description, images });
import { config } from '@/config';

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
// sortBy: created, replied

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
/**
* 获取最新的帖子回复倒序查看

View File

@ -4,7 +4,7 @@ const iconv = require('iconv-lite');
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const qw = ctx.req.param('qw');

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const { board = 'realtime' } = ctx.params;

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const rootUrl = 'https://bandcamp.com';

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
import { parseDate } from '@/utils/parse-date';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const url = 'https://api.bangumi.online/serve/home';

View File

@ -1,7 +1,7 @@
import cache from '@/utils/cache';
const getData = require('./_base');
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const [list, data] = await getData(cache.tryGet);

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { getLocalName } = require('./utils');
module.exports = async (subjectID, showOriginalName) => {

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const rootUrl = 'https://www.baozimh.com';

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const asyncPool = require('tiny-async-pool');
import { config } from '@/config';

View File

@ -1,5 +1,5 @@
import got from '@/utils/got';
const path = require('path');
import * as path from 'node:path';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';

View File

@ -1,6 +1,6 @@
import cache from '@/utils/cache';
import { load } from 'cheerio';
const path = require('path');
import * as path from 'node:path';
const asyncPool = require('tiny-async-pool');
import { parseDate } from '@/utils/parse-date';

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import { parseDate } from '@/utils/parse-date';
const { resolveHandle, getProfile, getAuthorFeed } = require('./utils');
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const { handle } = ctx.params;

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { config } from '@/config';
const allowDomain = new Set(['2btjia.com', '88btbtt.com', 'btbtt15.com', 'btbtt20.com']);

View File

@ -1,7 +1,7 @@
import { load } from 'cheerio';
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const rootUrl = 'http://www.caareviews.org';

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const titles = {
'01': '关于我们',

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const rootUrl = 'https://database.caixin.com';

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const { data } = await got('https://gateway.caixin.com/api/dataplatform/scroll/index').json();

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const parseArticle = (item, tryGet) =>
/\.blog\.caixin\.com$/.test(new URL(item.link).hostname)

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const id = ctx.req.param('id') ?? 'diyi';

View File

@ -3,7 +3,7 @@ import { load } from 'cheerio';
import got from '@/utils/got';
const iconv = require('iconv-lite');
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const baseUrl = 'https://www.cartoonmad.com';
const KEY = '5e585';

View File

@ -2,7 +2,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { rootUrl, apiSlug, GetFilterId } = require('./utils');

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const rootUrl = 'https://tc.ccf.org.cn';

View File

@ -1,7 +1,7 @@
import { load } from 'cheerio';
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';

View File

@ -1,6 +1,6 @@
import cache from '@/utils/cache';
import got from '@/utils/got';
const path = require('path');
import * as path from 'node:path';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import randUserAgent from '@/utils/rand-user-agent';

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const utils = require('./utils');
const baseUrl = 'https://www.cde.org.cn';

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const url = 'https://zw.cdzjryb.com/lottery/accept/projectList';

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { load } from 'cheerio';
const path = require('path');
import * as path from 'node:path';
import { art } from '@/utils/render';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { load } from 'cheerio';
const path = require('path');
import * as path from 'node:path';
import { art } from '@/utils/render';
const utils = require('./utils');

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const rootUrl = 'https://www.chaincatcher.com';

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1' };
module.exports = async (ctx) => {

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const id = ctx.req.param('id');

View File

@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { config } from '@/config';
import puppeteer from '@/utils/puppeteer';
const baseUrl = 'http://www.chinadegrees.com.cn';

View File

@ -2,7 +2,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const md = require('markdown-it')({
html: true,
});

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { rootUrl, getSearchParams } = require('./utils');

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { rootUrl, getSearchParams } = require('./utils');

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { rootUrl, getSearchParams } = require('./utils');

View File

@ -3,7 +3,7 @@ import { load } from 'cheerio';
import timezone from '@/utils/timezone';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const { id = '380' } = ctx.params;

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { parseDate } from '@/utils/parse-date';
module.exports = async (ctx) => {

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const categories = {
jxrb: '嘉兴日报',

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const rootUrl = 'https://chn.oversea.cnki.net';

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const ProcessItem = async (item) => {
const detailResponse = await got(item.link);

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const id = ctx.req.param('id');

View File

@ -1,6 +1,6 @@
import got from '@/utils/got';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { parseDate } from '@/utils/parse-date';
module.exports = async (ctx) => {

View File

@ -1,5 +1,5 @@
import got from '@/utils/got';
const path = require('path');
import * as path from 'node:path';
import { art } from '@/utils/render';
const dayjs = require('dayjs');

View File

@ -3,7 +3,7 @@ import got from '@/utils/got';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const baseURL = 'https://comicskingdom.com';

View File

@ -3,7 +3,7 @@ import { load } from 'cheerio';
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
import { config } from '@/config';
const asyncPool = require('tiny-async-pool');

View File

@ -1,7 +1,7 @@
import cache from '@/utils/cache';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
const { getUuid, getBook, getChapter, getChapters, getImgEncrypted, getImgKey, decrypt, getRealKey, siteHost } = require('./utils');
module.exports = async (ctx) => {

View File

@ -1,7 +1,7 @@
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
const path = require('path');
import * as path from 'node:path';
module.exports = async (ctx) => {
const username = ctx.req.param('name');

View File

@ -2,7 +2,7 @@ import { load } from 'cheerio';
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
const path = require('path');
import * as path from 'node:path';
import { art } from '@/utils/render';
const renderDesc = (item) => art(path.join(__dirname, 'templates/daily.art'), item);

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