forked from MapComplete/MapComplete
UX: add version number to loading screen
This commit is contained in:
parent
efce134a6c
commit
41da0d7ab7
5 changed files with 14 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mapcomplete",
|
"name": "mapcomplete",
|
||||||
"version": "0.33.8",
|
"version": "0.33.9",
|
||||||
"repository": "https://github.com/pietervdvn/MapComplete",
|
"repository": "https://github.com/pietervdvn/MapComplete",
|
||||||
"description": "A small website to edit OSM easily",
|
"description": "A small website to edit OSM easily",
|
||||||
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
|
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
|
||||||
|
|
|
@ -1341,6 +1341,10 @@ video {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.items-baseline {
|
||||||
|
align-items: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
.items-stretch {
|
.items-stretch {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
|
@ -443,6 +443,7 @@ async function createLandingPage(layout: LayoutConfig, manifest, whiteIcons, alr
|
||||||
/.*\/src\/index\.ts.*/,
|
/.*\/src\/index\.ts.*/,
|
||||||
`<script type="module" src="./index_${layout.id}.ts"></script>`,
|
`<script type="module" src="./index_${layout.id}.ts"></script>`,
|
||||||
)
|
)
|
||||||
|
.replace("Version", Constants.vNumber)
|
||||||
|
|
||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { AuthConfig } from "../Logic/Osm/AuthConfig"
|
||||||
export type PriviligedLayerType = (typeof Constants.priviliged_layers)[number]
|
export type PriviligedLayerType = (typeof Constants.priviliged_layers)[number]
|
||||||
|
|
||||||
export default class Constants {
|
export default class Constants {
|
||||||
public static vNumber = packagefile.version
|
public static vNumber : string = packagefile.version
|
||||||
/**
|
/**
|
||||||
* API key for Maproulette
|
* API key for Maproulette
|
||||||
*
|
*
|
||||||
|
|
|
@ -58,9 +58,16 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flex justify-between items-end w-full">
|
||||||
|
|
||||||
<!-- IMAGE-START -->
|
<!-- IMAGE-START -->
|
||||||
<img class="p-8 h-32 w-32 self-start" src="./assets/svg/add.svg">
|
<img class="p-8 h-32 w-32 self-start" src="./assets/svg/add.svg">
|
||||||
<!-- IMAGE-END -->
|
<!-- IMAGE-END -->
|
||||||
|
<div class="h-min subtle">
|
||||||
|
Version
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue