forked from MapComplete/MapComplete
		
	Refactoring: convert qr_code to Svelte, deprecate Img.ts
This commit is contained in:
		
							parent
							
								
									a7c7064636
								
							
						
					
					
						commit
						c892022073
					
				
					 5 changed files with 64 additions and 46 deletions
				
			
		|  | @ -11,12 +11,8 @@ | |||
|   import Tr from "../Base/Tr.svelte" | ||||
|   import Translations from "../i18n/Translations" | ||||
|   import { Utils } from "../../Utils" | ||||
|   import { DocumentDuplicateIcon } from "@rgossiaux/svelte-heroicons/outline" | ||||
|   import ToSvelte from "../Base/ToSvelte.svelte" | ||||
|   import Img from "../Base/Img" | ||||
|   import Qr from "../../Utils/Qr" | ||||
|   import AccordionSingle from "../Flowbite/AccordionSingle.svelte" | ||||
|   import Share from "@babeard/svelte-heroicons/solid/Share" | ||||
|   import Constants from "../../Models/Constants" | ||||
|   import Copyable from "../Base/Copyable.svelte" | ||||
| 
 | ||||
|  | @ -127,9 +123,7 @@ | |||
|     <Copyable {state} text={linkToShare} /> | ||||
|   </div> | ||||
|   <div class="flex justify-center"> | ||||
|     <ToSvelte | ||||
|       construct={() => new Img(new Qr(linkToShare).toImageElement(125)).SetStyle("width: 125px")} | ||||
|     /> | ||||
|     <img src={new Qr(linkToShare).toImageElement(125)} style="width: 125px"/> | ||||
|   </div> | ||||
| 
 | ||||
|   <Tr t={tr.embedIntro} /> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue