Fix manifests

This commit is contained in:
pietervdvn 2021-02-28 23:46:47 +01:00
parent fa7adb492c
commit dc34cb86e4
3 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import { Utils } from "../Utils";
export default class Constants {
public static vNumber = "0.5.4";
public static vNumber = "0.5.4c";
// The user journey states thresholds when a new feature gets unlocked
public static userJourney = {

View file

@ -19,7 +19,7 @@
"de": "Ihr Bild hochladen..."
},
"uploadingMultiple": {
"en": "Uploading {count} of your picture...",
"en": "Uploading {count} pictures...",
"nl": "Bezig met {count} foto's te uploaden...",
"ca": "Pujant {count} de la teva imatge...",
"es": "Subiendo {count} de tus fotos...",

View file

@ -218,7 +218,7 @@ async function createLandingPage(layout: LayoutConfig) {
}
let output = template
.replace("./manifest.manifest", `${enc(layout.id)}.webmanifest`)
.replace("./index.webmanifest", `${enc(layout.id)}.webmanifest`)
.replace("<!-- $$$OG-META -->", og)
.replace(/<title>.+?<\/title>/, `<title>${ogTitle}</title>`)
.replace("Loading MapComplete, hang on...", `Loading MapComplete theme <i>${ogTitle}</i>...`)
@ -263,7 +263,7 @@ for (const layoutName in all) {
const layout = all[layoutName];
validate(layout)
createManifest(layout, "").then(manifObj => {
const manif = JSON.stringify(manifObj);
const manif = JSON.stringify(manifObj, undefined, 2);
const manifestLocation = encodeURIComponent(layout.id.toLowerCase()) + ".webmanifest";
writeFile(manifestLocation, manif, err);
})
@ -292,8 +292,8 @@ writeFile(generatedDir + "/wikiIndex", wikiPage, (err) => {
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);
}),"").then(manifObj => {
const manif = JSON.stringify(manifObj, undefined, 2);
writeFileSync("index.webmanifest",manif)
})