Fix linting issues

pull/2984/head
Zerebos 4 months ago
parent f1adb29498
commit 012ca26b4c

@ -39,11 +39,17 @@ export default function Component({ service }) {
<Block label="stash.scenesPlayed" value={t("common.number", { value: stats.scenes_played })} /> <Block label="stash.scenesPlayed" value={t("common.number", { value: stats.scenes_played })} />
<Block label="stash.playCount" value={t("common.number", { value: stats.total_play_count })} /> <Block label="stash.playCount" value={t("common.number", { value: stats.total_play_count })} />
<Block label="stash.playDuration" value={t("common.uptime", { value: stats.total_play_duration })} /> <Block label="stash.playDuration" value={t("common.uptime", { value: stats.total_play_duration })} />
<Block label="stash.sceneSize" value={t("common.bbytes", { value: stats.scenes_size, maximumFractionDigits: 1 })} /> <Block
label="stash.sceneSize"
value={t("common.bbytes", { value: stats.scenes_size, maximumFractionDigits: 1 })}
/>
<Block label="stash.sceneDuration" value={t("common.uptime", { value: stats.scenes_duration })} /> <Block label="stash.sceneDuration" value={t("common.uptime", { value: stats.scenes_duration })} />
<Block label="stash.images" value={t("common.number", { value: stats.image_count })} /> <Block label="stash.images" value={t("common.number", { value: stats.image_count })} />
<Block label="stash.imageSize" value={t("common.bbytes", { value: stats.images_size, maximumFractionDigits: 1 })} /> <Block
label="stash.imageSize"
value={t("common.bbytes", { value: stats.images_size, maximumFractionDigits: 1 })}
/>
<Block label="stash.galleries" value={t("common.number", { value: stats.gallery_count })} /> <Block label="stash.galleries" value={t("common.number", { value: stats.gallery_count })} />
<Block label="stash.performers" value={t("common.number", { value: stats.performer_count })} /> <Block label="stash.performers" value={t("common.number", { value: stats.performer_count })} />

@ -1,4 +1,4 @@
import {asJson} from "utils/proxy/api-helpers"; import { asJson } from "utils/proxy/api-helpers";
import genericProxyHandler from "utils/proxy/handlers/generic"; import genericProxyHandler from "utils/proxy/handlers/generic";
const widget = { const widget = {
@ -32,7 +32,7 @@ const widget = {
} }
}` }`
}), }),
map: (data) => asJson(data).data.stats map: (data) => asJson(data).data.stats,
}, },
}, },
}; };

Loading…
Cancel
Save