Fix image of index page for webmanifest
This commit is contained in:
parent
8d99d64e87
commit
85ec94efe5
3 changed files with 20 additions and 2 deletions
|
@ -2,7 +2,7 @@ import { Utils } from "../Utils";
|
|||
|
||||
export default class Constants {
|
||||
|
||||
public static vNumber = "0.5.3";
|
||||
public static vNumber = "0.5.4";
|
||||
|
||||
// The user journey states thresholds when a new feature gets unlocked
|
||||
public static userJourney = {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<link rel="stylesheet" href="vendor/MarkerCluster.Default.css"/>
|
||||
<!-- $$$CUSTOM-CSS -->
|
||||
<!-- $$$MANIFEST -->
|
||||
<link rel="manifest" href="./manifest.manifest">
|
||||
<link rel="manifest" href="./index.webmanifest">
|
||||
|
||||
<link rel="icon" href="assets/svg/add.svg" sizes="any" type="image/svg+xml">
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import {existsSync, mkdirSync, readFileSync, writeFile, writeFileSync} from "fs"
|
|||
import Locale from "../UI/i18n/Locale";
|
||||
import Translations from "../UI/i18n/Translations";
|
||||
import {Translation} from "../UI/i18n/Translation";
|
||||
import Constants from "../Models/Constants";
|
||||
|
||||
|
||||
function enc(str: string): string {
|
||||
|
@ -279,6 +280,23 @@ writeFile(generatedDir + "/wikiIndex", wikiPage, (err) => {
|
|||
console.log("Could not save wikiindex", err);
|
||||
}
|
||||
});
|
||||
createManifest(new LayoutConfig({
|
||||
icon: "./assets/svg/add.svg",
|
||||
id: "index",
|
||||
language: "en",
|
||||
layers: [],
|
||||
maintainer: "Pieter Vander Vennet",
|
||||
startLat: 0,
|
||||
startLon: 0,
|
||||
startZoom: 0,
|
||||
title: "MapComplete",
|
||||
version: Constants.vNumber,
|
||||
description:"MapComplete as a map viewer and editor which show thematic POI based on OpenStreetMap"
|
||||
}),"index").then(manifObj => {
|
||||
const manif = JSON.stringify(manifObj);
|
||||
writeFileSync("index.webmanifest",manif)
|
||||
})
|
||||
|
||||
console.log("Counting all translations")
|
||||
Translations.CountTranslations();
|
||||
console.log("All done!");
|
Loading…
Reference in a new issue