forked from MapComplete/MapComplete
		
	Chore: formatting
This commit is contained in:
		
							parent
							
								
									45f3aadef3
								
							
						
					
					
						commit
						badfbb60e4
					
				
					 120 changed files with 3330 additions and 1759 deletions
				
			
		|  | @ -1,22 +1,18 @@ | |||
| <script lang="ts"> | ||||
|    | ||||
|   import type { OsmTags } from "../../Models/OsmFeature"; | ||||
|   import Svg from "../../Svg"; | ||||
|   import ToSvelte from "../Base/ToSvelte.svelte"; | ||||
|   import { Utils } from "../../Utils"; | ||||
|   import type { OsmTags } from "../../Models/OsmFeature" | ||||
|   import Svg from "../../Svg" | ||||
|   import ToSvelte from "../Base/ToSvelte.svelte" | ||||
|   import { Utils } from "../../Utils" | ||||
| 
 | ||||
|   export let tags: Store<OsmTags> | ||||
|   export let args: string[] | ||||
| 
 | ||||
|   let [to, subject, body, button_text] = args.map(a => Utils.SubstituteKeys(a, $tags)) | ||||
|   let url = "mailto:" + | ||||
|     to + | ||||
|     "?subject=" + | ||||
|     encodeURIComponent(subject) + | ||||
|     "&body=" + | ||||
|     encodeURIComponent(body) | ||||
|   let [to, subject, body, button_text] = args.map((a) => Utils.SubstituteKeys(a, $tags)) | ||||
|   let url = | ||||
|     "mailto:" + to + "?subject=" + encodeURIComponent(subject) + "&body=" + encodeURIComponent(body) | ||||
| </script> | ||||
| <a class="button flex items-center w-full" href={url}> | ||||
|   <ToSvelte construct={Svg.envelope_svg().SetClass("w-8 h-8 mr-4 shrink-0")}/> | ||||
| 
 | ||||
| <a class="button flex w-full items-center" href={url}> | ||||
|   <ToSvelte construct={Svg.envelope_svg().SetClass("w-8 h-8 mr-4 shrink-0")} /> | ||||
|   {button_text} | ||||
| </a> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue