style(modules/web): lint code with eslint

This commit is contained in:
Xwite committed 2024-10-03 10:16:25 +08:00
1 parent 6578660b26
commit 8b7e33a32e
16 files changed
+195 -196

No files matched your search

@@ -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) => {