forked from MapComplete/MapComplete
		
	Full code cleanup
This commit is contained in:
		
							parent
							
								
									3a4a2a2016
								
							
						
					
					
						commit
						fa971ffbbf
					
				
					 300 changed files with 16352 additions and 19284 deletions
				
			
		|  | @ -2,17 +2,17 @@ import {writeFile} from "fs"; | |||
| import Translations from "../UI/i18n/Translations"; | ||||
| import * as themeOverview from "../assets/generated/theme_overview.json" | ||||
| 
 | ||||
| function generateWikiEntry(layout: {hideFromOverview: boolean, id: string, shortDescription: any}) { | ||||
| function generateWikiEntry(layout: { hideFromOverview: boolean, id: string, shortDescription: any }) { | ||||
|     if (layout.hideFromOverview) { | ||||
|         return ""; | ||||
|     } | ||||
|      | ||||
| 
 | ||||
|     const languagesInDescr = [] | ||||
|     for (const shortDescriptionKey in layout.shortDescription) { | ||||
|         languagesInDescr.push(shortDescriptionKey) | ||||
|     } | ||||
|      | ||||
|     const languages = languagesInDescr .map(ln => `{{#language:${ln}|en}}`).join(", ") | ||||
| 
 | ||||
|     const languages = languagesInDescr.map(ln => `{{#language:${ln}|en}}`).join(", ") | ||||
|     let auth = "Yes"; | ||||
|     return `{{service_item
 | ||||
| |name= [https://mapcomplete.osm.be/${layout.id} ${layout.id}]
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue