Chore: housekeeping

This commit is contained in:
Pieter Vander Vennet 2025-08-13 23:09:49 +02:00
parent 69ab755f29
commit 7acddc7281
8 changed files with 84 additions and 88 deletions

View file

@ -10,7 +10,7 @@
const lng = Locale.language
let fdroid = t.downloadOnFDroid.current
let supportedVersions: { version: number, codename: string } = [
let supportedVersions: { version: number; codename: string } = [
{ version: 9, codename: "pie" },
{ version: 10, codename: "quince-tart" },
{ version: 11, codename: "red-velvet-cake" },
@ -56,11 +56,13 @@
{#each supportedVersions as v}
<a
class="button"
href={`https://builds.mapcomplete.org/apk/mapcomplete-latest-${v.version}-${v.codename.toUpperCase()}.apk`}>
href={`https://builds.mapcomplete.org/apk/mapcomplete-latest-${
v.version
}-${v.codename.toUpperCase()}.apk`}
>
Android {v.version} ({v.codename})
</a>
{/each}
</div>
</AccordionSingle>
@ -68,22 +70,27 @@
<Tr t={t.older} />
</a>
<div class="flex flex-col items-center my-4">
<div class="my-4 flex flex-col items-center">
<a href="https://f-droid.org/packages/org.mapcomplete">
<img src={`https://f-droid.org/badge/get-it-on-${$lng}.png`}
onerror="if (this.src !== 'fdroid.png') this.src = 'fdroid.png';"
alt={$fdroid}
style="width: 17rem">
<img
src={`https://f-droid.org/badge/get-it-on-${$lng}.png`}
onerror="if (this.src !== 'fdroid.png') this.src = 'fdroid.png';"
alt={$fdroid}
style="width: 17rem"
/>
</a>
<a
rel="noopener"
href="https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://source.mapcomplete.org/MapComplete/android-wrapper/releases">
<img style="width: 15rem" class="p-4" src="./badge_obtainium.png" alt="Get on obtainium" use:ariaLabel={t.getOnObtanium} />
href="https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://source.mapcomplete.org/MapComplete/android-wrapper/releases"
>
<img
style="width: 15rem"
class="p-4"
src="./badge_obtainium.png"
alt="Get on obtainium"
use:ariaLabel={t.getOnObtanium}
/>
</a>
</div>
</div>