forked from nestjs/nest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to Angular 9 and Nebular 5 (nestjs#5628)
BREAKING CHANGE: Angular updated to version 9. Nebular updated to version 5. `@agm/core` replaced with `@angular/google-maps`. `ng2-completer` replaced with `@akveo/ng2-completer`, read details [here](akveo/ng2-smart-table#1140 (comment)).
- Loading branch information
Showing
22 changed files
with
16,086 additions
and
13,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<nb-card> | ||
<nb-card-header>Google Maps</nb-card-header> | ||
<nb-card-body> | ||
<google-map [center]="position" [zoom]="8" width="100%" height="36.5625rem"> | ||
<map-marker [position]="position"></map-marker> | ||
</google-map> | ||
</nb-card-body> | ||
</nb-card> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export class PositionModel { | ||
constructor( | ||
public lat = 53.9, | ||
public lng = 27.5667, | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
<agm-map [latitude]="latitude" | ||
[longitude]="longitude" | ||
[scrollwheel]="false" | ||
[zoom]="zoom"> | ||
<agm-marker [latitude]="latitude" | ||
[longitude]="longitude"></agm-marker> | ||
</agm-map> | ||
<google-map [center]="position" [zoom]="zoom" width="100%" height="36.5625rem"> | ||
<map-marker [position]="position"></map-marker> | ||
</google-map> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<nb-card> | ||
<nb-card-header>Google Maps with search</nb-card-header> | ||
<nb-card-body> | ||
<ngx-search (positionChanged)="updateLocation($event)"></ngx-search> | ||
<ngx-map [searchedLocation]="searchedLocation"></ngx-map> | ||
<ngx-search (positionChanged)="setPosition($event)"></ngx-search> | ||
<ngx-map [searchedPosition]="searchedPosition"></ngx-map> | ||
</nb-card-body> | ||
</nb-card> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { Component } from '@angular/core'; | ||
import { Location } from './entity/Location'; | ||
import { PositionModel } from './entity/position.model'; | ||
|
||
@Component({ | ||
selector: 'ngx-search-map', | ||
templateUrl: './search-map.component.html', | ||
}) | ||
export class SearchMapComponent { | ||
searchedPosition: PositionModel = new PositionModel(); | ||
|
||
searchedLocation: Location = new Location(); | ||
|
||
updateLocation(event: Location) { | ||
this.searchedLocation = new Location(event.latitude, event.longitude); | ||
setPosition(position: PositionModel) { | ||
this.searchedPosition = position; | ||
} | ||
} |
Oops, something went wrong.