diff --git a/web/angular/.angular-cli.json b/web/angular/.angular-cli.json index 50b6e38..507531d 100644 --- a/web/angular/.angular-cli.json +++ b/web/angular/.angular-cli.json @@ -22,11 +22,14 @@ "../node_modules/font-awesome/css/font-awesome.css", "../node_modules/simple-line-icons/css/simple-line-icons.css", "../src/scss/style.scss", - "../node_modules/ngx-toastr/toastr.css" + "../node_modules/leaflet/dist/leaflet.css", + "../node_modules/ngx-toastr/toastr.css", + "../node_modules/ngx-bootstrap/datepicker/bs-datepicker.css" ], "scripts": [ "../node_modules/chart.js/dist/Chart.bundle.min.js", - "../node_modules/chart.js/dist/Chart.min.js" + "../node_modules/chart.js/dist/Chart.min.js", + "../node_modules/leaflet/dist/leaflet.js" ], "environmentSource": "environments/environment.ts", "environments": { diff --git a/web/angular/package.json b/web/angular/package.json index c8cecbd..2ac2f0c 100644 --- a/web/angular/package.json +++ b/web/angular/package.json @@ -32,7 +32,7 @@ "leaflet-easybutton": "^2.2.4", "moment": "2.19.1", "ng2-charts": "1.6.0", - "ngx-bootstrap": "1.9.3", + "ngx-bootstrap": "^2.0.0-rc.0", "ngx-toastr": "^8.0.0", "rxjs": "5.5.2", "simple-line-icons": "^2.4.1", diff --git a/web/angular/src/app/app.module.ts b/web/angular/src/app/app.module.ts index 26384df..c23740c 100755 --- a/web/angular/src/app/app.module.ts +++ b/web/angular/src/app/app.module.ts @@ -1,6 +1,6 @@ import { BrowserModule } from '@angular/platform-browser'; import {FormsModule} from "@angular/forms"; -import { NgModule } from '@angular/core'; +import {NgModule, LOCALE_ID} from '@angular/core'; import {LocationStrategy, HashLocationStrategy, PathLocationStrategy} from '@angular/common'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @@ -32,6 +32,7 @@ import {ResetPasswordComponent} from "./views/pages/reset-password/reset-passwor import {ResetPasswordEmailComponent} from "./views/pages/reset-password-email/reset-password-email.component"; import {AdminComponent} from "./views/components/admin/admin.component"; import {UserManagementComponent} from "./views/components/user-management/user-management.component"; +import {PlaceComponent} from "./views/components/place/place.component"; // Import containers import { @@ -90,7 +91,8 @@ const APP_COMPONENTS = [ ResetPasswordComponent, ResetPasswordEmailComponent, AdminComponent, - UserManagementComponent + UserManagementComponent, + PlaceComponent ]; // Import directives @@ -118,6 +120,7 @@ import { PaginationModule } from 'ngx-bootstrap/pagination'; import { ModalModule } from 'ngx-bootstrap/modal'; import { ChartsModule } from 'ng2-charts/ng2-charts'; import { ToastrModule } from 'ngx-toastr'; +import { DatepickerModule, BsDatepickerModule } from 'ngx-bootstrap/datepicker'; @NgModule({ imports: [ @@ -133,7 +136,9 @@ import { ToastrModule } from 'ngx-toastr'; ChartsModule, ToastrModule.forRoot({ newestOnTop:true - }) + }), + BsDatepickerModule.forRoot(), + DatepickerModule.forRoot() ], declarations: [ AppComponent, @@ -149,6 +154,7 @@ import { ToastrModule } from 'ngx-toastr'; // add two global interceptors (one two slow down the server and one for authentication) {provide: HTTP_INTERCEPTORS, useClass: DelayInterceptor, multi: true}, {provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}, + { provide: LOCALE_ID, useValue: 'de' }, // add our application services (api access, logging, authentication) ApiClientService, ConsoleService, AuthGuard, NotAuthGuard, ParentAuthGuard, AuthService, LocationService ], diff --git a/web/angular/src/app/views/components/map/map.component.ts b/web/angular/src/app/views/components/map/map.component.ts index dbce31d..5a52454 100755 --- a/web/angular/src/app/views/components/map/map.component.ts +++ b/web/angular/src/app/views/components/map/map.component.ts @@ -20,7 +20,7 @@ import { OnDestroy } from '@angular/core/src/metadata/lifecycle_hooks'; @Component({ selector: 'app-map', templateUrl: './map.component.html', - styleUrls: ['./map.component.scss', '../../../../../node_modules/leaflet/dist/leaflet.css'], + styleUrls: ['./map.component.scss'], encapsulation: ViewEncapsulation.None }) export class MapComponent implements OnInit, OnDestroy { diff --git a/web/angular/src/app/views/components/place/place.component.html b/web/angular/src/app/views/components/place/place.component.html new file mode 100644 index 0000000..ec6f5c3 --- /dev/null +++ b/web/angular/src/app/views/components/place/place.component.html @@ -0,0 +1,32 @@ +