chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-04-15 18:18:44 +02:00
parent 79b6927b56
commit 42ded4c1b1
328 changed files with 4062 additions and 1284 deletions

View file

@ -26,9 +26,9 @@
*/
function getCount(input: Store<string[]>): Store<number> {
if (featureId == "*") {
return input.map(inp => inp.length)
return input.map((inp) => inp.length)
}
return input.map(success => success.filter(item => item === featureId).length)
return input.map((success) => success.filter((item) => item === featureId).length)
}
let successfull = getCount(state.imageUploadManager.successfull)
@ -39,7 +39,7 @@
const t = Translations.t.image
const debugging = state.featureSwitches.featureSwitchIsDebugging
let dismissed = 0
failed.addCallbackAndRun(failed => {
failed.addCallbackAndRun((failed) => {
dismissed = Math.min(failed, dismissed)
})
</script>
@ -56,7 +56,7 @@
{#if $pending - $failed === 1}
<Tr t={t.upload.one.uploading} />
{:else if $pending - $failed > 1}
<Tr t={t.upload.multiple.uploading.Subs({count: $pending})} />
<Tr t={t.upload.multiple.uploading.Subs({ count: $pending })} />
{/if}
</Loading>
</div>
@ -70,6 +70,6 @@
{#if $successfull === 1}
<Tr cls="thanks" t={t.upload.one.done} />
{:else if $successfull > 1}
<Tr cls="thanks" t={t.upload.multiple.done.Subs({count: $successfull})} />
<Tr cls="thanks" t={t.upload.multiple.done.Subs({ count: $successfull })} />
{/if}
{/if}