feat: replace require with import 1/n

This commit is contained in:
DIYgod
2024-03-06 23:39:15 +08:00
parent 7a8335ee1e
commit 156b58d780
659 changed files with 1627 additions and 2338 deletions

View File

@@ -1,9 +1,8 @@
import cache from '@/utils/cache';
import got from '@/utils/got';
const { topicDataHanding } = require('./utils');
import { topicDataHanding, constructTopicEntry } from './utils';
import { load } from 'cheerio';
const dayjs = require('dayjs');
const { constructTopicEntry } = require('./utils');
const urlRegex = /(https?:\/\/[^\s"'<>]+)/g;