forked from MapComplete/MapComplete
		
	UX+Refactoring: use side-drawer for menu, reorder menu structure
This commit is contained in:
		
							parent
							
								
									8465b59c7f
								
							
						
					
					
						commit
						124e816abe
					
				
					 25 changed files with 645 additions and 1059 deletions
				
			
		
							
								
								
									
										22
									
								
								src/UI/BigComponents/CopyrightAllIcons.svelte
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								src/UI/BigComponents/CopyrightAllIcons.svelte
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| <script lang="ts"> | ||||
|   import type { SpecialVisualizationState } from "../SpecialVisualization" | ||||
|   import IconCopyrightPanel from "./CopyrightSingleIcon.svelte" | ||||
|   import licenses from "../../assets/generated/license_info.json" | ||||
|   import type SmallLicense from "../../Models/smallLicense" | ||||
| 
 | ||||
|   export let state: SpecialVisualizationState | ||||
| 
 | ||||
|   let layoutToUse = state.layout | ||||
|   let iconAttributions: string[] = layoutToUse.getUsedImages() | ||||
| 
 | ||||
|   const allLicenses = {} | ||||
|   for (const key in licenses) { | ||||
|     const license: SmallLicense = licenses[key] | ||||
|     allLicenses[license.path] = license | ||||
|   } | ||||
| 
 | ||||
| </script> | ||||
| 
 | ||||
| {#each iconAttributions as iconAttribution} | ||||
|   <IconCopyrightPanel iconPath={iconAttribution} license={allLicenses[iconAttribution]} /> | ||||
| {/each} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue