forked from MapComplete/MapComplete
		
	Fix manifests
This commit is contained in:
		
							parent
							
								
									fa7adb492c
								
							
						
					
					
						commit
						dc34cb86e4
					
				
					 3 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -2,7 +2,7 @@ import { Utils } from "../Utils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class Constants {
 | 
					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
 | 
					    // The user journey states thresholds when a new feature gets unlocked
 | 
				
			||||||
    public static userJourney = {
 | 
					    public static userJourney = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -19,7 +19,7 @@
 | 
				
			||||||
      "de": "Ihr Bild hochladen..."
 | 
					      "de": "Ihr Bild hochladen..."
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "uploadingMultiple": {
 | 
					    "uploadingMultiple": {
 | 
				
			||||||
      "en": "Uploading {count} of your picture...",
 | 
					      "en": "Uploading {count} pictures...",
 | 
				
			||||||
      "nl": "Bezig met {count} foto's te uploaden...",
 | 
					      "nl": "Bezig met {count} foto's te uploaden...",
 | 
				
			||||||
      "ca": "Pujant {count} de la teva imatge...",
 | 
					      "ca": "Pujant {count} de la teva imatge...",
 | 
				
			||||||
      "es": "Subiendo {count} de tus fotos...",
 | 
					      "es": "Subiendo {count} de tus fotos...",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -218,7 +218,7 @@ async function createLandingPage(layout: LayoutConfig) {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let output = template
 | 
					    let output = template
 | 
				
			||||||
        .replace("./manifest.manifest", `${enc(layout.id)}.webmanifest`)
 | 
					        .replace("./index.webmanifest", `${enc(layout.id)}.webmanifest`)
 | 
				
			||||||
        .replace("<!-- $$$OG-META -->", og)
 | 
					        .replace("<!-- $$$OG-META -->", og)
 | 
				
			||||||
        .replace(/<title>.+?<\/title>/, `<title>${ogTitle}</title>`)
 | 
					        .replace(/<title>.+?<\/title>/, `<title>${ogTitle}</title>`)
 | 
				
			||||||
        .replace("Loading MapComplete, hang on...", `Loading MapComplete theme <i>${ogTitle}</i>...`)
 | 
					        .replace("Loading MapComplete, hang on...", `Loading MapComplete theme <i>${ogTitle}</i>...`)
 | 
				
			||||||
| 
						 | 
					@ -263,7 +263,7 @@ for (const layoutName in all) {
 | 
				
			||||||
    const layout = all[layoutName];
 | 
					    const layout = all[layoutName];
 | 
				
			||||||
    validate(layout)
 | 
					    validate(layout)
 | 
				
			||||||
    createManifest(layout, "").then(manifObj => {
 | 
					    createManifest(layout, "").then(manifObj => {
 | 
				
			||||||
        const manif = JSON.stringify(manifObj);
 | 
					        const manif = JSON.stringify(manifObj, undefined, 2);
 | 
				
			||||||
        const manifestLocation = encodeURIComponent(layout.id.toLowerCase()) + ".webmanifest";
 | 
					        const manifestLocation = encodeURIComponent(layout.id.toLowerCase()) + ".webmanifest";
 | 
				
			||||||
        writeFile(manifestLocation, manif, err);
 | 
					        writeFile(manifestLocation, manif, err);
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
| 
						 | 
					@ -292,8 +292,8 @@ writeFile(generatedDir + "/wikiIndex", wikiPage, (err) => {
 | 
				
			||||||
    title: "MapComplete",
 | 
					    title: "MapComplete",
 | 
				
			||||||
    version: Constants.vNumber,
 | 
					    version: Constants.vNumber,
 | 
				
			||||||
    description:"MapComplete as a map viewer and editor which show thematic POI based on OpenStreetMap"
 | 
					    description:"MapComplete as a map viewer and editor which show thematic POI based on OpenStreetMap"
 | 
				
			||||||
}),"index").then(manifObj => {
 | 
					}),"").then(manifObj => {
 | 
				
			||||||
     const manif = JSON.stringify(manifObj);
 | 
					     const manif = JSON.stringify(manifObj, undefined, 2);
 | 
				
			||||||
     writeFileSync("index.webmanifest",manif)
 | 
					     writeFileSync("index.webmanifest",manif)
 | 
				
			||||||
 })
 | 
					 })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue