style(modules/web): lint code with eslint

This commit is contained in:
Xwite
2024-10-03 10:16:25 +08:00
parent 6578660b26
commit 8b7e33a32e
16 changed files with 195 additions and 196 deletions
@@ -34,11 +34,15 @@ const props = defineProps({
const getImageSrc = (content) => {
const imgPattern = /<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/;
const src = content.match(imgPattern)[1];
if (isLegadoUrl(src)) return API.getProxyImageUrl(src, useBookStore().config.readWidth)
if (isLegadoUrl(src))
return API.getProxyImageUrl(src, useBookStore().config.readWidth);
return src;
};
const proxyImage = (event) => {
event.target.src = API.getProxyImageUrl(event.target.src, useBookStore().config.readWidth);
event.target.src = API.getProxyImageUrl(
event.target.src,
useBookStore().config.readWidth,
);
};
const calculateWordCount = (paragraph) => {