forked from MapComplete/MapComplete
		
	Add slick-carousel instead of homemade one
This commit is contained in:
		
							parent
							
								
									5192ece1ed
								
							
						
					
					
						commit
						1979aadb49
					
				
					 15 changed files with 164 additions and 186 deletions
				
			
		
							
								
								
									
										47
									
								
								test.ts
									
										
									
									
									
								
							
							
						
						
									
										47
									
								
								test.ts
									
										
									
									
									
								
							|  | @ -1,44 +1,19 @@ | |||
| //*
 | ||||
| import MangroveReviews from "./Logic/Web/MangroveReviews"; | ||||
| import ReviewElement from "./UI/Reviews/ReviewElement"; | ||||
| 
 | ||||
| import {ImageCarousel} from "./UI/Image/ImageCarousel"; | ||||
| import {UIEventSource} from "./Logic/UIEventSource"; | ||||
| import ReviewForm from "./UI/Reviews/ReviewForm"; | ||||
| import Combine from "./UI/Base/Combine"; | ||||
| import {FixedUiElement} from "./UI/Base/FixedUiElement"; | ||||
| 
 | ||||
| /* | ||||
| window.setTimeout( | ||||
|     () => { | ||||
| mangroveReviews.AddReview({ | ||||
|     comment: "These are liars - not even an island here!", | ||||
|     author: "Lost Tourist", | ||||
|     date: new Date(), | ||||
|     affiliated: false, | ||||
|     rating: 10 | ||||
| }, (() => {alert("Review added");return undefined;})); | ||||
|          | ||||
|     }, 1000 | ||||
| ) | ||||
| const images = new UIEventSource<{ url: string, key: string }[]>( | ||||
|     [{url: "https://2.bp.blogspot.com/-fQiZkz9Zlzg/T_xe2X2Ia3I/AAAAAAAAA0Q/VPS8Mb8xtIQ/s1600/cat+15.jpg", key: "image:1"}, | ||||
|         { | ||||
|             url: "https://www.mapillary.com/map/im/VEOhKqPcJMuT4F2olz_wHQ", | ||||
|             key: "mapillary" | ||||
|         }, | ||||
|         {url: "https://i.imgur.com/mWlghx0.jpg", key: "image:1"}]) | ||||
| new ImageCarousel(images, new UIEventSource<any>({"image:1":"https://2.bp.blogspot.com/-fQiZkz9Zlzg/T_xe2X2Ia3I/AAAAAAAAA0Q/VPS8Mb8xtIQ/s1600/cat+15.jpg"})) | ||||
|     .AttachTo("maindiv")     | ||||
| 
 | ||||
| window.setTimeout( | ||||
|     () => { | ||||
|         mangroveReviews.AddReview({ | ||||
|             comment: "Excellent conditions to measure weather!!", | ||||
|             author: "Weather-Boy", | ||||
|             date: new Date(), | ||||
|             affiliated: true, | ||||
|             rating: 90 | ||||
|         }, (() => { | ||||
|             alert("Review added"); | ||||
|             return undefined; | ||||
|         })); | ||||
| 
 | ||||
|     }, 1000 | ||||
| ) | ||||
| */ | ||||
| /*/ | ||||
| 
 | ||||
| 
 | ||||
| import {Utils} from "./Utils"; | ||||
| import {FixedUiElement} from "./UI/Base/FixedUiElement"; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue