Fix itemtype issue
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				FarmMaps.Develop/FarmMapsLib/develop This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	FarmMaps.Develop/FarmMapsLib/develop This commit looks good
				
			This commit is contained in:
		
							
								
								
									
										43
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										43
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,13 +1,50 @@ | |||||||
| # FarmmapsLibApp | # Farmmaps viewer | ||||||
|  |  | ||||||
| This is a sample FarmMaps viewer. | This is a sample FarmMaps client in Angular 7.x. | ||||||
|  |  | ||||||
| ## Dependencies | ## Dependencies | ||||||
|  |  | ||||||
|  | * docker desktop | ||||||
|  |  | ||||||
|  | or | ||||||
|  |  | ||||||
| * npm 6.9.0 | * npm 6.9.0 | ||||||
| * nodejs 10.16.0 | * nodejs 10.16.0 | ||||||
|  | * git | ||||||
|  |  | ||||||
| ## Build |  | ||||||
|  | ## Quick start | ||||||
|  |  | ||||||
|  | ### Using docker | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | docker run -t -i --entrypoint /bin/bash -p 4200:4200 node:10.16.0 | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | Inside the running container  | ||||||
|  | ``` | ||||||
|  | git clone ... | ||||||
|  | cd FarmMapslib | ||||||
|  | npm config set @farmmaps:registry https://repository.akkerweb.nl/repository/npm-group/ | ||||||
|  | npm install -g @angular/cli | ||||||
|  | npm install | ||||||
|  | ng serve --host 0.0.0.0 | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | Point youre browser to http://localhost:4200 | ||||||
|  |  | ||||||
|  | ### On youre local machine | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | git clone ... | ||||||
|  | cd FarmMapslib | ||||||
|  | npm config set @farmmaps:registry https://repository.akkerweb.nl/repository/npm-group/ | ||||||
|  | npm install -g @angular/cli | ||||||
|  | npm install | ||||||
|  | ng serve | ||||||
|  | ``` | ||||||
|  | Point youre browser to http://localhost:4200 | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										3328
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3328
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -33,7 +33,6 @@ | |||||||
|     "resumablejs": "^1.1.0", |     "resumablejs": "^1.1.0", | ||||||
|     "rxjs": "~6.3.3", |     "rxjs": "~6.3.3", | ||||||
|     "tassign": "^1.0.0", |     "tassign": "^1.0.0", | ||||||
|     "tslib": "^1.9.0", |  | ||||||
|     "zone.js": "~0.8.26" |     "zone.js": "~0.8.26" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|   | |||||||
| @@ -1,8 +1,7 @@ | |||||||
| import { Component, Injectable } from '@angular/core'; | import { Injectable } from '@angular/core'; | ||||||
| import { Store } from '@ngrx/store'; |  | ||||||
| import * as appCommonReducer from '../reducers/app-common.reducer' |  | ||||||
| import {IItemTypes} from '../models/item.types' | import {IItemTypes} from '../models/item.types' | ||||||
| import {IItem} from '../models/item' | import {IItem} from '../models/item' | ||||||
|  | import {ItemService} from '../services/item.service'; | ||||||
|  |  | ||||||
| @Injectable({ | @Injectable({ | ||||||
|   providedIn: 'root', |   providedIn: 'root', | ||||||
| @@ -10,10 +9,10 @@ import {IItem} from '../models/item' | |||||||
| export class ItemTypeService { | export class ItemTypeService { | ||||||
|     public itemTypes: IItemTypes; |     public itemTypes: IItemTypes; | ||||||
|  |  | ||||||
|     constructor(private store: Store<appCommonReducer.State> ) {  |     constructor(itemService:ItemService) {           | ||||||
|          this.store.select(appCommonReducer.selectGetItemTypes).subscribe((itemTypes) => { |       itemService.getItemTypes().subscribe((itemTypes) => { | ||||||
|             this.itemTypes = itemTypes; |         this.itemTypes = itemTypes; | ||||||
|          }); |      }); | ||||||
|     }  |     }  | ||||||
|  |  | ||||||
|      getIcon(itemType: string) { |      getIcon(itemType: string) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user