Fix image of index page for webmanifest

This commit is contained in:
pietervdvn 2021-02-28 00:30:58 +01:00
parent 8d99d64e87
commit 85ec94efe5
3 changed files with 20 additions and 2 deletions

View file

@ -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 = {

View file

@ -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">

View file

@ -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!");