forked from MapComplete/MapComplete
		
	Merge master
This commit is contained in:
		
						commit
						e8d1d5422e
					
				
					 2 changed files with 8 additions and 6 deletions
				
			
		|  | @ -2,7 +2,7 @@ import {Utils} from "../Utils"; | ||||||
| 
 | 
 | ||||||
| export default class Constants { | export default class Constants { | ||||||
| 
 | 
 | ||||||
|     public static vNumber = "0.14.0-alpha-1"; |     public static vNumber = "0.14.0-alpha-2"; | ||||||
|     public static ImgurApiKey = '7070e7167f0a25a' |     public static ImgurApiKey = '7070e7167f0a25a' | ||||||
|     public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85" |     public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -54,12 +54,14 @@ export default class LayoutConfig { | ||||||
|     constructor(json: LayoutConfigJson, official = true, context?: string) { |     constructor(json: LayoutConfigJson, official = true, context?: string) { | ||||||
|         this.official = official; |         this.official = official; | ||||||
|         this.id = json.id; |         this.id = json.id; | ||||||
|  |         if(official){ | ||||||
|             if(json.id.toLowerCase() !== json.id){ |             if(json.id.toLowerCase() !== json.id){ | ||||||
|                 throw "The id of a theme should be lowercase: "+json.id |                 throw "The id of a theme should be lowercase: "+json.id | ||||||
|             } |             } | ||||||
|             if(json.id.match(/[a-z0-9-_]/) == null){ |             if(json.id.match(/[a-z0-9-_]/) == null){ | ||||||
|                 throw "The id of a theme should match [a-z0-9-_]*: "+json.id |                 throw "The id of a theme should match [a-z0-9-_]*: "+json.id | ||||||
|             } |             } | ||||||
|  |         } | ||||||
|         context = (context ?? "") + "." + this.id; |         context = (context ?? "") + "." + this.id; | ||||||
|         this.maintainer = json.maintainer; |         this.maintainer = json.maintainer; | ||||||
|         this.credits = json.credits; |         this.credits = json.credits; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue