Chore: housekeeping
This commit is contained in:
parent
cd9e03dd6f
commit
b300fffdc5
156 changed files with 4436 additions and 1318 deletions
|
@ -1,19 +1,19 @@
|
|||
<script lang="ts">
|
||||
|
||||
import { DownloadIcon } from "@rgossiaux/svelte-heroicons/solid"
|
||||
import { DownloadIcon } from "@rgossiaux/svelte-heroicons/solid"
|
||||
</script>
|
||||
|
||||
<div class="m-8 flex flex-col">
|
||||
<h1>MapComplete Android App</h1>
|
||||
|
||||
<h1>MapComplete Android App</h1>
|
||||
MapComplete is available as Android App as direct download. We are working on publishing this in
|
||||
the play store and on FDroid too.
|
||||
|
||||
MapComplete is available as Android App as direct download.
|
||||
|
||||
We are working on publishing this in the play store and on FDroid too.
|
||||
|
||||
<a class="button primary flex justify-center" href="https://app.mapcomplete.org/mapcomplete-latest.apk">
|
||||
<DownloadIcon class="w-8 h-8"/>
|
||||
Download the latest version
|
||||
</a>
|
||||
<a class="button" href="https://mapcomplete.org">Go back to mapcomplete</a>
|
||||
<a
|
||||
class="button primary flex justify-center"
|
||||
href="https://app.mapcomplete.org/mapcomplete-latest.apk"
|
||||
>
|
||||
<DownloadIcon class="h-8 w-8" />
|
||||
Download the latest version
|
||||
</a>
|
||||
<a class="button" href="https://mapcomplete.org">Go back to mapcomplete</a>
|
||||
</div>
|
||||
|
|
16
app/land.ts
16
app/land.ts
|
@ -13,9 +13,11 @@ const tokenSrc = new UIEventSource("")
|
|||
const debug = new UIEventSource<string[]>([])
|
||||
|
||||
new Combine([
|
||||
new VariableUiElement(debug.map(debug => "<ul><li>"+debug.join("</li><li>")+"</li></ul>")),
|
||||
new VariableUiElement(tokenSrc)]).AttachTo("token")
|
||||
|
||||
new VariableUiElement(
|
||||
debug.map((debug) => "<ul><li>" + debug.join("</li><li>") + "</li></ul>")
|
||||
),
|
||||
new VariableUiElement(tokenSrc),
|
||||
]).AttachTo("token")
|
||||
|
||||
const connection = new OsmConnection()
|
||||
connection.finishLogin(async () => {
|
||||
|
@ -24,16 +26,16 @@ connection.finishLogin(async () => {
|
|||
do {
|
||||
await Utils.waitFor(500)
|
||||
token = connection.getToken()
|
||||
tokenSrc.set("Trying to get token ("+attempt+")")
|
||||
tokenSrc.set("Trying to get token (" + attempt + ")")
|
||||
attempt++
|
||||
|
||||
const dbg = []
|
||||
Object.keys(localStorage).forEach(key => {
|
||||
dbg.push(`${key} - ${localStorage.getItem(key)}`);
|
||||
Object.keys(localStorage).forEach((key) => {
|
||||
dbg.push(`${key} - ${localStorage.getItem(key)}`)
|
||||
})
|
||||
debug.set(dbg)
|
||||
|
||||
if(attempt > 10){
|
||||
if (attempt > 10) {
|
||||
window.location.reload()
|
||||
}
|
||||
} while (!token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue