([]);
+ readonly page = new BehaviorSubject({ offset: 0, size: 20, total: 0, elements: []} as P);
+ private subscriptions = 0;
+ readonly loading = new BehaviorSubject(false);
+
+ constructor(protected apiClientService:ApiClientService) {
+ super();
+ this.page.subscribe((page)=>{
+ this.elements.next(page.elements);
+ })
+ }
+
+
+ getPage(offset: number, size: number) {
+ if (this.loading.getValue()) return;
+ this.loading.next(true);
+ this.loadPage(offset, size).subscribe((result)=>{
+ this.loading.next(false);
+ let page = result.body;
+ this.page.next(page);
+ }, (error) => {
+ this.loading.next(false);
+ this.page.next(this.emptyPage());
+ });
+ }
+
+ protected abstract loadPage(offset: number, size: number): Observable>;
+
+ reload() {
+ this.getPage(this.page.getValue().offset, this.page.getValue().size);
+ }
+
+ connect(collectionViewer: CollectionViewer): Observable {
+ this.subscriptions += 1;
+ return this.elements;
+ }
+
+ disconnect(collectionViewer: CollectionViewer): void {
+ this.subscriptions -= 1;
+ }
+
+ protected emptyPage(): P {
+ return { offset: 0, size: this.page.getValue().size, total: 0, elements: []} as P;
+ }
+
+}
diff --git a/web/angular/src/app/utils/snackbars.ts b/web/angular/src/app/utils/snackbars.ts
new file mode 100644
index 0000000..c386bef
--- /dev/null
+++ b/web/angular/src/app/utils/snackbars.ts
@@ -0,0 +1,30 @@
+import { MatSnackBar } from '@angular/material';
+
+export class Snackbars {
+
+ public static readonly DURATION_SHORT = 5000;
+
+ public static readonly DURATION_LONG = 10000;
+
+ /**
+ * Shows an error message that disappears after a short period of time.
+ *
+ * @param snackbar The snackbar service.
+ * @param message The message.
+ */
+ public static showError(snackbar: MatSnackBar, message: string, duration?:number) {
+ if (duration == null) snackbar.open(message, null, { extraClasses: ["snackbar-accent"], duration: Snackbars.DURATION_SHORT});
+ else snackbar.open(message, null, { extraClasses: ["snackbar-accent"], duration: duration});
+ }
+
+ /**
+ * Shows a permanent information message that does not disapper automatically.
+ *
+ * @param snackbar The snackbar service.
+ * @param message The message.
+ */
+ public static showMessage(snackbar: MatSnackBar, message: string, duration?:number) {
+ if (duration != null)snackbar.open(message, null, { extraClasses: ["snackbar-primary"], duration: duration});
+ else snackbar.open(message, null, { extraClasses: ["snackbar-primary"]});
+ }
+}
\ No newline at end of file
diff --git a/web/angular/src/app/views/activate.component.html b/web/angular/src/app/views/activate.component.html
new file mode 100644
index 0000000..60f42c9
--- /dev/null
+++ b/web/angular/src/app/views/activate.component.html
@@ -0,0 +1,11 @@
+
+
+
+ Aktivierung
+ Die Aktivierung wird abgeschlossen.
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/activate.component.ts b/web/angular/src/app/views/activate.component.ts
new file mode 100644
index 0000000..45dfabf
--- /dev/null
+++ b/web/angular/src/app/views/activate.component.ts
@@ -0,0 +1,54 @@
+import { Component, OnInit } from "@angular/core";
+import { ApiClientService } from "../../api";
+import { MatDialog } from "@angular/material";
+import { ActivatedRoute, Router } from "@angular/router";
+import { MessageDialogComponent } from "../widgets/message-dialog.component";
+import { HttpErrorResponse } from "@angular/common/http";
+import { HttpStatusCode } from "../utils/httpcodes";
+
+@Component({
+ selector: 'activate',
+ templateUrl: './activate.component.html',
+ host: { class:'match-parent' },
+ })
+ export class ActivateComponent implements OnInit {
+
+ showMessage: boolean = true;
+
+ constructor(private apiClientService: ApiClientService, private dialog: MatDialog, private router: Router, private route: ActivatedRoute) { }
+
+ ngOnInit(): void {
+ let token = this.route.snapshot.paramMap.get('token');
+ if (!token) {
+ this.router.navigate(["/"]);
+ } else {
+ this.apiClientService.verifyUserEmail(token).subscribe((result)=>{
+ this.showMessage = false;
+ MessageDialogComponent.open(this.dialog, { title:"Aktivierung erfolgreich", message:"Die Emailadresse wurde für Dein Konto aktiviert. Falls das die Emailadresse mit einem neuen Konto verbunden wurde, kannst du das Konto ab sofort nutzen. Falls du eine weitere Emailadresse für dein Konto freigeschaltet hast, kannst Du sie jetzt in den Kontoeinstellungen als Kontaktemailadresse setzen.", button:"Weiter"}).subscribe((close)=>{
+ this.router.navigate(["/"]);
+ })
+ }, (error)=> {
+ this.showMessage = false;
+ var message: string = "Die Aktivierung konnte nicht abeschlossen werden.";
+ if (error instanceof HttpErrorResponse) {
+ switch (error.status) {
+ case HttpStatusCode.BAD_REQUEST:
+ message = "Der Aktivierungslink ist ungültig. Falls Du ihn aus deinem Emailprogramm in die Adressleiste Deines Browsers kopiert hast, stell sicher, dass der Link vollständig ist.";
+ break;
+ case HttpStatusCode.FORBIDDEN:
+ message = "Der Aktivierungslink ist nicht mehr gültig. Entweder wurder er schon benutzt oder er ist abgelaufen."
+ break;
+ default:
+ message = "Die Aktivierung konnte nicht abgeschlossen werden (" + error.status + "). Hast Du gerade kein Netz?";
+ break;
+ }
+ }
+ MessageDialogComponent.open(this.dialog, { title:"Aktivierung fehlgeschlagen", message:message, button:"Verstanden" }).subscribe((close)=>{
+ this.router.navigate(["/"]);
+ })
+ })
+ }
+ }
+
+ }
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/change.component.html b/web/angular/src/app/views/change.component.html
new file mode 100644
index 0000000..fdc6dcc
--- /dev/null
+++ b/web/angular/src/app/views/change.component.html
@@ -0,0 +1,24 @@
+
+
+
+ Passwort ändern
+ Gib einfach Dein neues Passwort ein.
+
+
+
+
+
+
+
+ lock_open
+ Ändern
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/change.component.ts b/web/angular/src/app/views/change.component.ts
new file mode 100644
index 0000000..987e8eb
--- /dev/null
+++ b/web/angular/src/app/views/change.component.ts
@@ -0,0 +1,85 @@
+import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router, ActivatedRoute } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+import { LoginFieldComponent } from '../widgets/login-field.component';
+import { PasswordFieldComponent } from '../widgets/password-field.component';
+import { HttpStatusCode } from '../utils/httpcodes';
+import { MatSnackBar, MatDialog } from '@angular/material';
+import { NgForm } from '@angular/forms';
+import { Snackbars } from '../utils/snackbars';
+import { ApiClientService } from '../../api';
+import { HttpErrorResponse } from '@angular/common/http';
+import { MessageDialogComponent } from '../widgets/message-dialog.component';
+
+@Component({
+ selector: 'reset',
+ templateUrl: './change.component.html',
+ host: { class: 'match-parent' }
+})
+export class ChangeComponent implements OnInit, OnDestroy {
+
+ @ViewChild(PasswordFieldComponent) passwordField: PasswordFieldComponent;
+ @ViewChild("changeForm") resetForm: NgForm;
+
+ readonly idle = new BehaviorSubject(true);
+
+ private changeSubscription: Subscription;
+ private token: string;
+
+ constructor(
+ private apiClientService: ApiClientService,
+ private snackbar: MatSnackBar,
+ private dialog: MatDialog,
+ private router: Router,
+ private route: ActivatedRoute
+ ) { }
+
+ ngOnInit() {
+ this.token = this.route.snapshot.paramMap.get("token");
+ }
+
+ onChange(): void {
+ this.snackbar.dismiss();
+ if (!this.idle || !this.resetForm.valid) return;
+ this.setIdle(false);
+ this.changeSubscription = this.apiClientService.resetUserPassword(this.token, { password: this.passwordField.password }).subscribe((result) => {
+ this.setIdle(true);
+ MessageDialogComponent.open(this.dialog, { title: "Änderung erfolgreich", message: "Dein Passwort wurde erfolgreich geändert. Du musst ab sofort immer Dein neues Passwort zur Anmeldung verwenden.", button: "Verstanden" }).subscribe((close) => {
+ this.router.navigate(["/"]);
+ });
+ }, (error) => {
+ this.setIdle(true);
+ var message: string = "Die Passwortänderung konnte nicht abeschlossen werden.";
+ if (error instanceof HttpErrorResponse) {
+ switch (error.status) {
+ case HttpStatusCode.BAD_REQUEST:
+ message = "Der Link zum Zurücksetzen ist ungültig. Falls Du ihn aus deinem Emailprogramm in die Adressleiste Deines Browsers kopiert hast, stell sicher, dass der Link vollständig ist.";
+ break;
+ case HttpStatusCode.FORBIDDEN:
+ message = "Der Link zum Zurücksetzen ist nicht mehr gültig. Entweder wurder er schon benutzt oder er ist abgelaufen."
+ break;
+ default:
+ message = "Die Passwortänderung konnte nicht abgeschlossen werden (" + error.status + "). Hast Du gerade kein Netz?";
+ break;
+ }
+ }
+ MessageDialogComponent.open(this.dialog, { title: "Änderung fehlgeschlagen", message: message, button: "Verstanden" }).subscribe((close) => {
+ this.router.navigate(["/"]);
+ });
+ });
+ }
+
+ private setIdle(value: boolean) {
+ this.passwordField.disabled = !value;
+ this.idle.next(value);
+ }
+
+ ngOnDestroy(): void {
+ this.snackbar.dismiss();
+ if (this.changeSubscription) this.changeSubscription.unsubscribe();
+ }
+
+
+}
diff --git a/web/angular/src/app/views/components/admin-statistic/admin-statistic.component.html b/web/angular/src/app/views/components/admin-statistic/admin-statistic.component.html
deleted file mode 100644
index 0c5e269..0000000
--- a/web/angular/src/app/views/components/admin-statistic/admin-statistic.component.html
+++ /dev/null
@@ -1 +0,0 @@
-Admin Statistic!
diff --git a/web/angular/src/app/views/components/admin-statistic/admin-statistic.component.ts b/web/angular/src/app/views/components/admin-statistic/admin-statistic.component.ts
deleted file mode 100644
index 060b64d..0000000
--- a/web/angular/src/app/views/components/admin-statistic/admin-statistic.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector:'app-admin-statistic',
- templateUrl: './admin-statistic.component.html'
-})
-export class AdminStatisticComponent {
-
- constructor( ) { }
-
-}
diff --git a/web/angular/src/app/views/components/admin/admin.component.html b/web/angular/src/app/views/components/admin/admin.component.html
deleted file mode 100644
index b7d461a..0000000
--- a/web/angular/src/app/views/components/admin/admin.component.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/web/angular/src/app/views/components/admin/admin.component.ts b/web/angular/src/app/views/components/admin/admin.component.ts
deleted file mode 100644
index 06c9e90..0000000
--- a/web/angular/src/app/views/components/admin/admin.component.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- templateUrl: 'admin.component.html'
-})
-export class AdminComponent {
-
- constructor( ) { }
-
-}
diff --git a/web/angular/src/app/views/components/homepage/homepage.component.html b/web/angular/src/app/views/components/homepage/homepage.component.html
deleted file mode 100755
index e4bfccf..0000000
--- a/web/angular/src/app/views/components/homepage/homepage.component.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Hello World!
-
diff --git a/web/angular/src/app/views/components/homepage/homepage.component.ts b/web/angular/src/app/views/components/homepage/homepage.component.ts
deleted file mode 100755
index 6b4204b..0000000
--- a/web/angular/src/app/views/components/homepage/homepage.component.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- templateUrl: 'homepage.component.html'
-})
-export class HomepageComponent {
-
- constructor( ) { }
-
-}
diff --git a/web/angular/src/app/views/components/map/map.component.html b/web/angular/src/app/views/components/map/map.component.html
deleted file mode 100755
index 438d0b8..0000000
--- a/web/angular/src/app/views/components/map/map.component.html
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
- Diese Freigabe zum Account hinzufügen
-
-
-
-
-
-
-
-
-
-
-
Die angegebene Freigabe existiert nicht
-
-
-
-
-
-
-
-
-
-
diff --git a/web/angular/src/app/views/components/map/map.component.scss b/web/angular/src/app/views/components/map/map.component.scss
deleted file mode 100755
index 2da3ff2..0000000
--- a/web/angular/src/app/views/components/map/map.component.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-#map {
- height: calc(100vh - 100px);
- width: 100%;
- border: 1px solid black;
-}
-
-.map-addShare-button {
- height: 100px;
- width: 100%;
-}
diff --git a/web/angular/src/app/views/components/map/map.component.spec.ts b/web/angular/src/app/views/components/map/map.component.spec.ts
deleted file mode 100755
index 9c622ec..0000000
--- a/web/angular/src/app/views/components/map/map.component.spec.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MapComponent } from './map.component';
-import { MapInfoComponent } from '../map-info/map-info.component';
-
-import { ActivatedRoute } from '@angular/router';
-import { Observable } from 'rxjs/Observable';
-import { of } from 'rxjs/observable/of';
-
-describe('MapComponent', () => {
- let component: MapComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- imports: [
-
- ],
- declarations: [
- MapComponent,
- MapInfoComponent,
- ActivatedRoute
- ],
- providers: [
- ActivatedRoute
- ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(MapComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/web/angular/src/app/views/components/map/map.component.ts b/web/angular/src/app/views/components/map/map.component.ts
deleted file mode 100755
index b0804ba..0000000
--- a/web/angular/src/app/views/components/map/map.component.ts
+++ /dev/null
@@ -1,203 +0,0 @@
-import { Component, OnInit, ViewEncapsulation, ViewChild } from '@angular/core';
-import { ActivatedRoute, Router } from '@angular/router';
-import { BehaviorSubject } from 'rxjs/BehaviorSubject';
-import { Location as BrowserLocation } from '@angular/common';
-
-import * as L from 'leaflet';
-
-import { setInterval, clearInterval } from 'timers';
-import { LocationService } from '../../../location.service';
-import { ConsoleService } from '../../../console.service';
-import { AuthService, AuthState } from '../../../auth.service';
-import { PrivilegesService } from '../../../privileges.service';
-import { Location } from '../../../../api/models/location.model';
-
-import { error } from 'util';
-import { OnDestroy } from '@angular/core/src/metadata/lifecycle_hooks';
-import { ToastService } from '../../../toast.service';
-import { Marker } from 'leaflet';
-
-
-@Component({
- selector: 'app-map',
- templateUrl: './map.component.html',
- styleUrls: ['./map.component.scss'],
- encapsulation: ViewEncapsulation.None
-})
-export class MapComponent implements OnInit, OnDestroy {
- AuthState = AuthState;
-
- defaultLocation: L.LatLng = new L.LatLng(51.4556, 7.0116);
- defaultZoom = 13;
-
- currentLocation: L.LatLng;
- currentZoom: Number;
-
- zoomPanOptions: L.ZoomPanOptions = {
- animate: true,
- duration: 2,
- easeLinearity: 0.6,
- noMoveStart: true
- };
-
- currentShare: string;
- map: L.Map;
- tileLayer: L.TileLayer;
-
- defaultIcon = new L.Icon({
- iconUrl: require('../../../../assets/img/marker_normal.png'),
- iconSize: [50, 64], // size of the icon
- iconAnchor: [25, 63], // point of the icon which will correspond to marker's location
- popupAnchor: [0, -50]
- });
-
- marker: L.Marker;
- markerShown: boolean = true;
-
- refreshInterval;
- firstPositionUpdate = true;
-
- @ViewChild('shareNonExistentModal') shareNonExistentModal;
- @ViewChild('coordinateNullModal') coordinateNullModal;
-
- constructor(
- private route: ActivatedRoute,
- private locationService: LocationService,
- private consoleService: ConsoleService,
- private privilegesService: PrivilegesService,
- private toastService: ToastService,
- private authService: AuthService,
- private browser_location: BrowserLocation,
- private router: Router
- ) { }
-
- ngOnInit() {
- // Fetch share id from url
- this.currentShare = this.route.snapshot.paramMap.get('id');
-
- this.map = new L.Map('map');
- this.map.setView(this.defaultLocation, this.defaultZoom);
-
- this.tileLayer = new L.TileLayer('https://cloud.locoslab.com/carta/restful-services/tile/{z}/{x}/{y}.png', {
- attribution: 'Maptology',
- maxZoom: 18
- }).addTo(this.map);
-
- // Initialize marker
- this.marker = new L.Marker(this.defaultLocation, {
- icon: this.defaultIcon
- }).addTo(this.map);
- // this.setMapMarker(this.defaultLocation);
-
- // If there is a given shareId in the URL, fetch the location from the API and
- // start to update every x seconds
- if (this.currentShare) {
-
- // If there are errors display a modal dialog
- this.getError().subscribe(e => {
- if (e !== null) {
- setTimeout(() => this.shareNonExistentModal.show());
- clearInterval(this.refreshInterval);
- }
- });
-
- // Subscribe to location updates
- this.getLocation().subscribe(l => {
- if (l !== null) {
- if (l.coordinate !== null) {
- this.coordinateNullModal.hide();
- this.showMarker();
-
- if (this.firstPositionUpdate) {
- const latLang = new L.LatLng(l.coordinate.latitude, l.coordinate.longitude);
- this.map.setView(latLang, this.map.getZoom());
- this.setMapMarker(latLang);
- this.firstPositionUpdate = false;
- } else {
- this.setMapPosition(l, this.map.getZoom());
- }
- } else {
- this.coordinateNullModal.show();
- this.hideMarker();
- }
- }
- });
-
- // Query the API every 2 seconds
- this.refreshInterval = setInterval(() => {
- this.locationService.getLocation(this.currentShare);
- }, 2000);
- }
- }
-
- showMarker() {
- if (!this.markerShown) {
- this.marker.addTo(this.map);
- this.markerShown = true;
- }
- }
-
- hideMarker() {
- if (this.markerShown) {
- this.marker.removeFrom(this.map);
- this.markerShown = false;
- }
- }
-
- ngOnDestroy() {
- if (this.refreshInterval) {
- clearInterval(this.refreshInterval);
- }
- this.locationService.resetLocation();
- }
-
- setMapPosition(location: Location, zoom: number) {
- const latLang = new L.LatLng(location.coordinate.latitude, location.coordinate.longitude);
- this.map.panTo(latLang, this.zoomPanOptions);
- this.setMapMarker(latLang);
- }
-
- setMapMarker(latLang: L.LatLng) {
- this.marker.bindPopup(`${ this.currentShare } Latitude: ${latLang.lat} Longitude: ${latLang.lng}`);
- this.marker.setLatLng(latLang);
- }
-
- setMapCircle(latLang: L.LatLng, color: string = 'red', opacity: number = 0.5, radius: number) {
- const circle = new L.Circle(latLang, {
- color: color,
- fillColor: color,
- fillOpacity: opacity,
- radius: radius
- }).addTo(this.map);
- }
-
- onModalOkClick() {
- this.shareNonExistentModal.hide();
- this.browser_location.back();
- }
-
- onSidebarToggle() {
- alert('toggle');
- }
-
- getLocation(): BehaviorSubject {
- return this.locationService.location;
- }
-
- getError(): BehaviorSubject {
- return this.locationService.error;
- }
-
- isUserLoggedIn(): boolean {
- if (this.authService.state.getValue() === AuthState.Authorized) {
- return true;
- } else {
- return false;
- }
- }
-
- onAddShareToAccClick() {
- this.privilegesService.shareTokenToAddToPrivileges = this.currentShare;
- this.router.navigate(['/pages/login']);
- }
-}
diff --git a/web/angular/src/app/views/components/place/place.component.html b/web/angular/src/app/views/components/place/place.component.html
deleted file mode 100644
index 1e10536..0000000
--- a/web/angular/src/app/views/components/place/place.component.html
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- Besuchte Orte am {{datepickerModel | date:'fullDate'}}
-
-
-
-
-
-
-
-
-
diff --git a/web/angular/src/app/views/components/place/place.component.scss b/web/angular/src/app/views/components/place/place.component.scss
deleted file mode 100644
index 7378794..0000000
--- a/web/angular/src/app/views/components/place/place.component.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-#map {
- height: 50vh;
- width: 100%;
- border: 1px solid black;
-}
diff --git a/web/angular/src/app/views/components/place/place.component.ts b/web/angular/src/app/views/components/place/place.component.ts
deleted file mode 100644
index f1369b5..0000000
--- a/web/angular/src/app/views/components/place/place.component.ts
+++ /dev/null
@@ -1,185 +0,0 @@
-import {Component, OnInit} from "@angular/core";
-import {ConsoleService} from "../../../console.service";
-import { registerLocaleData } from '@angular/common';
-import localeDe from '@angular/common/locales/de';
-import * as L from 'leaflet';
-import 'leaflet-easybutton';
-import { BsDatepickerConfig , BsLocaleService} from 'ngx-bootstrap/datepicker';
-import {ApiClientService} from "../../../../api/index";
-import {StatisticService} from "../../../statistic.service";
-import {Device} from "../../../../api/models/device.model";
-import {Visit} from "../../../../api/models/visit.model";
-import {Place} from "../../../../api/models/place.model";
-import {Subscription, Observable} from "rxjs";
-import {AuthService} from "../../../auth.service";
-import {User} from "../../../../api/models/user.model";
-import {ToastService} from "../../../toast.service";
-import {HelperService} from "../../../Utils/helper.service";
-import {HttpResponse} from "@angular/common/http";
-
-
-@Component({
- selector: 'app-place',
- templateUrl: './place.component.html',
- styleUrls: ['./place.component.scss']
-})
-export class PlaceComponent implements OnInit {
- visits:Visit[] = [];
- places:Place[] = [];
- currentUser:User;
-
- //date attributes
- datepickerModel: Date;
- minDate: Date;
- maxDate: Date;
- colorTheme = 'theme-orange';
- bsConfig: Partial;
- locale = 'de';
-
- //map attributes
- private map: L.Map;
- private tileLayer: L.TileLayer;
- private defaultIcon = new L.Icon({
- iconUrl: require('../../../../assets/img/marker_place.png'),
- iconAnchor: [25, 63], // point of the icon which will correspond to marker's location
- popupAnchor: [0, -50] // point from which the popup should open relative to the iconAnchor
- });
- private markersLayer:any;
-
- selectedDevice:Device;
- errorMessage: string = '';
- mySubscription:Subscription;
-
- constructor(
- private authService: AuthService,
- private consoleService: ConsoleService,
- private toastService: ToastService,
- private _localeService: BsLocaleService,
- private apiClientService:ApiClientService,
- private statisticService: StatisticService,
- private helperService:HelperService
- ) {
- registerLocaleData(localeDe, 'de'); // set german calendar
- this._localeService.use('de');
- }
-
- ngOnInit() {
- // calendar config
- this.bsConfig = Object.assign({}, { containerClass: this.colorTheme });
- this.datepickerModel = new Date(); // datepicker default value => current Date
- this.minDate = new Date();
- this.maxDate = new Date(); // user can't select dates in future
- this.getCurrentUser(); // minDate => day of users registration
-
- // Map config
- this.map = new L.Map('map', {
- 'center': [0, 0],
- 'zoom': 0
- });
- this.tileLayer = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
- attribution: 'Map data © OpenStreetMap contributors',
- maxZoom: 18
- }).addTo(this.map);
- this.markersLayer = new L.FeatureGroup().addTo(this.map);
-
- this.mySubscription=this.statisticService.selectedDevice.subscribe(device => {
- this.resetData();
- this.selectedDevice = device;
- if(device){
- this.getVisits();
- }
- });
- }
-
- setMarkersForPlaces(){
- for(let place of this.places){
- let marker:L.Marker;
- marker = new L.Marker(new L.LatLng(place.coordinate.latitude, place.coordinate.longitude),
- {
- icon: this.defaultIcon
- }).addTo(this.markersLayer).bindPopup(" "+place.nickname+""+place.address).openPopup();
- }
- this.map.fitBounds(this.markersLayer.getBounds());
- }
-
- getVisits(){
- var startDate = this.datepickerModel;
- startDate.setHours(0);
- startDate.setMinutes(0);
- var duration = (24*60*60*1000); // duration = milliseconds of one day
- this.apiClientService.getDeviceVisits(this.selectedDevice.id,
- startDate.getTime(), duration).subscribe(result => {
- this.visits = this.groupVisitsOnPlaceId(result.body);
- if(this.visits.length == 0){
- this.toastService.showWarning("Warnung","Keine Standortdaten für den ausgewählten Tag/Gerät gefunden");
- }else{
- this.getPlaces();
- }
- }, error=>{
- this.consoleService.log("Error during get visits.");
- this.helperService.handleError(error);
- });
- }
-
- getPlaces(){
- Observable.forkJoin(
- this.visits.map(visit => this.apiClientService.getPlace(visit.place))
- ).subscribe(responseList => {
- for(let response of responseList){
- this.places.push(response.body);
- }
- this.setMarkersForPlaces();
- }, error => {
- this.consoleService.log("Error during get places.");
- this.helperService.handleError(error);
- });
- }
-
- groupVisitsOnPlaceId(visits:Visit[]):Visit[]{
- let contain = false;
- let result:Visit[] = [];
- visits.forEach(visit => {
- for(let resultVisit of result){
- if(resultVisit.place == visit.place){
- contain = true;
- break;
- }
- }
- if(!contain){
- result.push(visit);
- }
- contain = false;
- });
- return result;
- }
-
- resetData(){
- this.places = [];
- this.visits = [];
- this.markersLayer.clearLayers();
- this.map.setZoom(0);
- }
-
- // user methods
-
- getCurrentUser(){
- this.apiClientService.getCurrentUser().subscribe(result=> {
- this.currentUser = result.body;
- this.minDate = new Date(this.currentUser.creationTime)
- }, error=>{
- this.consoleService.log("Error during get current user.");
- this.helperService.handleError(error);
- });
- }
-
- // date methods
- // day changed
- onDateChange() {
- this.resetData();
- setTimeout(()=>{
- if(this.selectedDevice) {
- this.getVisits();
- }
- }, 100);
- }
-}
diff --git a/web/angular/src/app/views/components/profile/profile.component.html b/web/angular/src/app/views/components/profile/profile.component.html
deleted file mode 100755
index 6764b23..0000000
--- a/web/angular/src/app/views/components/profile/profile.component.html
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
- Profildaten
-
-
- Angemeldet als: {{user.login}}
-
-
- Name:
-
-
- Email-Adresse: {{getCorrespondenceMail().address}}
-
-
- Ändern
-
-
-
-
-
-
-
-
Passwort ändern
-
-
-
-
Passwort ändern
-
-
-
-
-
-
-
- Email-Adresse ändern
-
-
-
-
-
-
-
-
-
diff --git a/web/angular/src/app/views/components/profile/profile.component.ts b/web/angular/src/app/views/components/profile/profile.component.ts
deleted file mode 100755
index f9e0ff0..0000000
--- a/web/angular/src/app/views/components/profile/profile.component.ts
+++ /dev/null
@@ -1,140 +0,0 @@
-import { Component, Input, ViewChild } from '@angular/core';
-import { AuthService } from '../../../auth.service';
-import { User } from '../../../../api/models/user.model';
-import { BehaviorSubject } from 'rxjs/BehaviorSubject';
-import { Email } from '../../../../api/models/email.model';
-import { ConsoleService } from '../../../console.service';
-import { ApiClientService } from '../../../../api';
-import {ToastService} from "../../../toast.service";
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- templateUrl: 'profile.component.html'
-})
-export class ProfileComponent {
-
- oldPassword: string;
- newPassword1: string;
- newPassword2: string;
-
- name: string = "";
-
- newEmail: string = "";
-
- nameChanged: boolean = false;
- emailChanged: boolean = false;
- errorMessage: string = '';
-
- newCorrespondenceMail: Email;
-
- constructor(private authService: AuthService,
- private toastService: ToastService,
- private consoleService: ConsoleService,
- private apiClientService: ApiClientService,
- private helperService:HelperService) {
- this.name=this.getUser().getValue().name;
- }
-
-
- getUser(): BehaviorSubject {
- return this.authService.user;
- }
-
- onNameChanged() {
- this.nameChanged=true;
- }
-
- getCorrespondenceMail(): Email {
- let emails: Email[] = this.getUser().getValue().emails;
- for (let email of emails) {
- if (email.correspondence)
- return email;
- }
- }
-
- requestChangeName() {
- let currentUser: User = this.getUser().getValue();
- currentUser.name=this.name;
- this.updateUser(currentUser);
- this.nameChanged=false;
- }
-
- requestPasswordReset() {
- //check old PW
- if (this.authService.verifyPassword(this.oldPassword)) {
- //check new PW === new PW2
- if (this.newPassword1.length < 6) {
- this.toastService.showError("Neues Passwort zu kurz", "Das neue Passwort ist zu kurz. (min 6 Zeichen)");
- } else {
- if (this.newPassword1 === this.newPassword2) {
- this.authService.requestPasswordReset(this.newPassword2);
- this.toastService.showSuccess("Passwort aktualisiert.", "Herzlichen Glückwunsch!");
- } else {
- this.toastService.showError("Fehler", "Die neuen Passwörter sind nicht identisch.");
- }
- }
- } else {
- this.toastService.showError("Fehler", "Das alte Passwort ist nicht korrekt.");
- }
- }
-
- changeCorrespondenceEmail(email: Email) {
- this.emailChanged = true;
- this.newCorrespondenceMail = email;
- }
-
- requestChangeCorrespondenceEmail() {
-
- let currentUser: User = this.getUser().getValue();
-
- for (let email of currentUser.emails) {
- if (email === this.newCorrespondenceMail) {
- email.correspondence = true;
- } else {
- email.correspondence = false;
- }
- }
- this.updateUser(currentUser);
- this.emailChanged=false;
- }
-
- updateUser(user: User) {
- console.log(user);
- this.consoleService.log("Put User requested.");
- this.apiClientService.setCurrentUser(user).subscribe(result => {
- this.consoleService.log("Put user received.");
- this.toastService.showSuccess("Erfolg", "Profil erfolgreich aktualisiert!");
- this.authService.user.next(result.body);
- }, error => {
- this.consoleService.log("Error during update user.");
- this.helperService.handleError(error);
- });
- }
-
-//TODO: Check if mail is valid
- addNewEmail() {
- let newMail: Email = {
- "id": 0,
- "creationTime": 0,
- "modificationTime": 0,
- "deleted": false,
- "correspondence": false,
- "verified": false,
- "address": this.newEmail
- };
- let currentUser: User = this.getUser().getValue();
- currentUser.emails.push(newMail);
- this.toastService.showWarning("Emails","Bitte überprüfe deine Emails und klicke auf den Aktivierungslink");
- this.updateUser(currentUser);
- }
-
- deleteEmail(email: Email) {
- let currentUser: User = this.getUser().getValue();
- for (let mail of currentUser.emails) {
- if (mail.address === email.address) {
- mail.deleted = true;
- }
- }
- this.updateUser(currentUser);
- }
-}
diff --git a/web/angular/src/app/views/components/shares/shares.component.html b/web/angular/src/app/views/components/shares/shares.component.html
deleted file mode 100644
index 27f1cbb..0000000
--- a/web/angular/src/app/views/components/shares/shares.component.html
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
Seite: {{currentPage}} / {{numPages}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
0">
-
Möchtest du den Share {{privileges[selectedPrivilegeId].token}} löschen?
-
-
-
-
-
diff --git a/web/angular/src/app/views/components/shares/shares.component.ts b/web/angular/src/app/views/components/shares/shares.component.ts
deleted file mode 100644
index b7269fb..0000000
--- a/web/angular/src/app/views/components/shares/shares.component.ts
+++ /dev/null
@@ -1,124 +0,0 @@
-import { Component, OnInit, Input, ViewChild } from '@angular/core';
-import { User } from '../../../../api/models/user.model';
-import { Privilege } from '../../../../api/models/privilege.model';
-import { PrivilegePage } from '../../../../api/models/privilegepage.model';
-
-import { BehaviorSubject } from 'rxjs/BehaviorSubject';
-
-import { AuthService } from '../../../auth.service';
-import { PrivilegesService } from '../../../privileges.service';
-import { ToastService } from '../../../toast.service';
-import { ConsoleService } from '../../../console.service';
-import { ApiClientService } from '../../../../api/index';
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- selector: 'app-shares',
- templateUrl: 'shares.component.html'
-})
-export class SharesComponent implements OnInit {
-
- privileges: Privilege[] = [];
- totalItems: number;
- currentPage: number = 1;
- pageSize: number = 10;
- maxSize: number = 5;
- numPages: number = 0;
-
- selectedPrivilegeId: number = 0;
-
- errorMessage: string;
-
- refreshInterval;
-
- @ViewChild('deletePrivilegeModal') deletePrivilegeModal;
-
- constructor(
- private authService: AuthService,
- private privilegesService: PrivilegesService,
- private toastService: ToastService,
- private consoleService: ConsoleService,
- private apiClientService: ApiClientService,
- private helperService:HelperService
- ) { }
-
- ngOnInit() {
- this.getPrivileges(this.getPageOffset(this.currentPage));
- }
-
- pageChanged(event: any): void {
- if (event) {
- this.getPrivileges(this.getPageOffset(event.page));
- } else {
- this.getPrivileges(this.getPageOffset(this.currentPage));
- }
- }
-
- getPageOffset(currentPage: number): number {
- return (currentPage - 1) * 10;
- }
-
- getPrivileges(pageOffset: number) {
- this.privileges = [];
-
- this.apiClientService.getCurrentUserPrivileges(pageOffset, this.pageSize).subscribe(result => {
- this.consoleService.log('The request was successful.');
- // console.log(result.body.elements);
- this.privileges = result.body.elements;
- this.totalItems = result.body.total;
-
- if (this.privilegesService.getShareTokenToAdd() !== '') {
- this.addShareToPrivileges();
- }
- }, error => {
- this.consoleService.log("Error during get priviliges.");
- this.helperService.handleError(error);
- });
- }
-
- showDeletePrivilegeModal(index: number) {
- // this.isModalShown = true;
- this.selectedPrivilegeId = index;
- this.deletePrivilegeModal.show();
- }
-
- hideDeletePrivilegeModal() {
- this.deletePrivilegeModal.hide();
- }
-
- addShareToPrivileges() {
- if (this.privilegesService.getShareTokenToAdd() !== '') {
- const duplicateShares = this.privileges.filter((priv) => priv.token === this.privilegesService.getShareTokenToAdd());
-
- // If the share is not already in the users privileges add, if not show warning
- if (duplicateShares.length === 0) {
- this.apiClientService.addCurrentUserPrivilege(this.privilegesService.getShareTokenToAdd()).subscribe(result => {
- this.consoleService.log(`Share with token ${this.privilegesService.getShareTokenToAdd()} has been added to users privileges`);
- this.toastService.showSuccess('Erfolg', `Share mit Token ${this.privilegesService.getShareTokenToAdd()} erfolgreich hinzugefügt.`);
- this.privilegesService.setShareTokenToAdd('');
-
- this.getPrivileges(this.getPageOffset(this.currentPage));
- }, error => {
- this.consoleService.log("Error during add share to priviliges.");
- this.helperService.handleError(error);
- });
- } else {
- this.toastService.showWarning('Doppelter Share', `Diesem Account wurde schon der Share mit dem Token ${this.privilegesService.getShareTokenToAdd()} hinzugefügt.`);
- this.privilegesService.setShareTokenToAdd('');
- }
- }
- }
-
- deletePrivilege(selectedPrivilegeId: number) {
- const selectedPrivilege = this.privileges[selectedPrivilegeId];
- this.consoleService.log(`Delete privilege with id ${selectedPrivilege.id}`);
- this.apiClientService.deletePrivilege(selectedPrivilege.id).subscribe(result => {
- this.consoleService.log('Deletion of privilege was successful');
- this.hideDeletePrivilegeModal();
- this.getPrivileges(this.getPageOffset(this.currentPage));
- }, error => {
- this.consoleService.log("Error during delete privilige.");
- this.helperService.handleError(error);
- });
- }
-}
diff --git a/web/angular/src/app/views/components/statistic/statistic.component.html b/web/angular/src/app/views/components/statistic/statistic.component.html
deleted file mode 100755
index e8bf8fd..0000000
--- a/web/angular/src/app/views/components/statistic/statistic.component.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/web/angular/src/app/views/components/statistic/statistic.component.ts b/web/angular/src/app/views/components/statistic/statistic.component.ts
deleted file mode 100755
index 26dad09..0000000
--- a/web/angular/src/app/views/components/statistic/statistic.component.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import {Component, OnInit} from '@angular/core';
-import {AuthService} from "../../../auth.service";
-
-@Component({
- templateUrl: './statistic.component.html'
-})
-export class StatisticComponent implements OnInit{
- isAdmin:boolean = false;
-
- constructor(private authService:AuthService) {
- }
-
- ngOnInit(){
- this.authService.user.subscribe(result=>{
- if(result){
- this.isAdmin = this.authService.isAdmin();
- }
- });
- }
-}
diff --git a/web/angular/src/app/views/components/system-status/system-status.component.html b/web/angular/src/app/views/components/system-status/system-status.component.html
deleted file mode 100644
index 9cb5f78..0000000
--- a/web/angular/src/app/views/components/system-status/system-status.component.html
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
-
-
-
-
-
-
-
- Server
- OS
- OS-Version
- Anbieter
- Version
-
-
-
-
- {{vmName}}
- {{osName}}
- {{osVersion}}
- {{vmVendor}}
- {{vmVendorVersion}}
-
-
-
-
-
-
-
-
-
-
-
-
-
Betriebszeit
-
-
-
{{uptime.day}} Tage
-
-
{{uptime.hour}} Stunden, {{uptime.minute}} Minuten, {{uptime.second}} Sek
-
-
-
-
-
-
-
-
-
-
-
CPU Auslastung
-
- {{cpuLoad}}
-
-
Durchschnittliche CPU Auslastung/Minute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{log.time | date:'medium'}}
-
-
- {{log.level}} {{log.className}} "{{log.methodName}}"
-
- {{log.message}} {{log.trace}}
-
-
-
-
- Lade weitere
-
-
-
-
-
-
-
diff --git a/web/angular/src/app/views/components/system-status/system-status.component.scss b/web/angular/src/app/views/components/system-status/system-status.component.scss
deleted file mode 100644
index 8d9c3fd..0000000
--- a/web/angular/src/app/views/components/system-status/system-status.component.scss
+++ /dev/null
@@ -1,42 +0,0 @@
-
-.modal-dialog.full-screen {
- position:fixed;
- width:auto; // uncomment to make the width based on the left/right attributes.
- margin:auto;
- left:0px;
- right:0px;
- top:0px;
- bottom:0px;
- max-width:1100px;
-}
-
-.modal-dialog.full-screen .modal-content {
- position:absolute;
- left:10px;
- right:10px;
- top:10px;
- bottom:10px;
-}
-
-.modal-dialog.full-screen .modal-content .modal-header {
- height:55px; // adjust as needed.
-}
-
-.modal-dialog.full-screen .modal-content .modal-body {
- overflow-y: auto;
- position: absolute;
- top: 0;
- bottom: 0;
- left:0;
- right:0;
- margin-top: 55px; // .modal-header height
- margin-bottom: 80px; // .modal-footer height
-}
-
-.modal-dialog.full-screen .modal-content .modal-footer {
- height:80px; // adjust as needed.
- position:absolute;
- bottom:0;
- left:0;
- right:0;
-}
diff --git a/web/angular/src/app/views/components/system-status/system-status.component.ts b/web/angular/src/app/views/components/system-status/system-status.component.ts
deleted file mode 100644
index 48d3d0f..0000000
--- a/web/angular/src/app/views/components/system-status/system-status.component.ts
+++ /dev/null
@@ -1,182 +0,0 @@
-import {Component, OnInit, OnDestroy, ViewChild, TemplateRef} from '@angular/core';
-import {LoadStatistic} from "../../../../api/models/loadstatistic.model";
-import {ApiClientService} from "../../../../api/index";
-import {ConsoleService} from "../../../console.service";
-import { registerLocaleData } from '@angular/common';
-import localeDe from '@angular/common/locales/de';
-import {SystemStatistic} from "../../../../api/models/systemstatistic.model";
-import {LogMessage} from "../../../../api/models/logmessage.model";
-import {ToastService} from "../../../toast.service";
-import { BsModalService } from 'ngx-bootstrap/modal';
-import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service';
-import {ModalOptions, ModalDirective} from "ngx-bootstrap";
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- selector:'app-system-status',
- templateUrl: './system-status.component.html',
- styleUrls: ['./system-status.component.scss']
-})
-export class SystemStatusComponent implements OnInit, OnDestroy{
- errorMessage: string = '';
- intervalId:any;
- isLoading = false;
-
- serverSystemInfo:SystemStatistic;
- serverLoadStatistic:LoadStatistic;
-
- // server system attributes
- osName:string = ' ';
- osVersion:string = ' ';
- vmName:string = ' ';
- vmVendor:string = ' ';
- vmVendorVersion:string = ' ';
-
- // uptime attributes
- uptime = {
- 'day':0,
- 'hour':0,
- 'minute':0,
- 'second':0,
- 'date': new Date()
- };
-
- // gauge attributes
- gaugeType = "arch";
- gaugeValue = 0;
- gaugeLabel = "Verbrauch";
- gaugeAppendText = "MB";
- gaugeCap = "flat";
- gaugeThick = 6;
- gaugeMin = 0;
- gaugeMax = 0;
- gaugeSize=150;
- gaugeDuration=500;
- forderground = "#004c93";
-
- // cpu load attributes
- cpuLoad:number = 0;
-
- // modal attributes
- @ViewChild('logTemplate') logTemplate: ModalDirective;
-
- // log message attribute
- logMessages:LogMessage[] = [];
-
- constructor(private apiClientService:ApiClientService,
- private consoleService:ConsoleService,
- private toastService:ToastService,
- private modalService: BsModalService,
- private helperService:HelperService) {
- this.intervalId = 1;
- registerLocaleData(localeDe, 'de'); // set german calendar
- this.getLoadStatistic();
- }
-
- ngOnInit() {
- this.getServerInfo();
- this.intervalId = setInterval(() => {
- this.getLoadStatistic();
- }, 3000);
- }
-
- ngOnDestroy() {
- if (this.intervalId) {
- clearInterval(this.intervalId);
- }
- this.logMessages = [];
- }
-
- getServerInfo(){
- this.apiClientService.getSystemStatistic().subscribe(result=>{
- this.serverSystemInfo = result.body;
- this.osName = this.serverSystemInfo.osName;
- this.osVersion = this.serverSystemInfo.osVersion;
- this.vmName = this.serverSystemInfo.vmName;
- this.vmVendor = this.serverSystemInfo.vmVendor;
- this.vmVendorVersion = this.serverSystemInfo.vmVersion;
- }, error=>{
- this.consoleService.log("Error during get system statistics.");
- this.helperService.handleError(error);
- });
- }
-
- getLoadStatistic(){
- if(this.intervalId){
- this.apiClientService.getLoadStatistic().subscribe(result=>{
- this.serverLoadStatistic = result.body;
- // init gauge chart
- if(this.gaugeMax <= 0){
- this.gaugeMax = Math.round(this.serverLoadStatistic.maxHeapSize/1000000);
- }
- this.gaugeValue = Math.round(this.serverLoadStatistic.usedHeapSize/1000000);
- // init uptime
- const convertedUptime = this.convertMS(this.serverLoadStatistic.uptime);
- this.uptime.day = convertedUptime.d;
- this.uptime.hour = convertedUptime.h;
- this.uptime.minute = convertedUptime.m;
- this.uptime.second = convertedUptime.s;
- this.uptime.date = new Date(Date.now()-this.serverLoadStatistic.uptime);
- // init cpu load
- this.cpuLoad = +result.body.cpuLoad.toFixed(2);
- }, error=>{
- this.consoleService.log("Error during get load statistics.");
- this.helperService.handleError(error);
- });
- }
- }
-
- getLogMessages(){
- this.isLoading = true;
- var tempMessageId=0;
- if(this.logMessages.length != 0){
- tempMessageId = this.logMessages[this.logMessages.length-1].id+1;
- }
- this.apiClientService.getLogMessages(tempMessageId).subscribe(result =>{
- if(result.body.length != 0){
- this.logMessages = this.logMessages.concat(result.body);
- } else {
- // no more log messages
- this.toastService.showWarning("Warning","There are no more messages!");
- }
- this.isLoading = false;
- }, error => {
- this.consoleService.log("Error during get log messages.");
- this.helperService.handleError(error);
- this.isLoading = false;
- });
- }
-
- // Modal methods
- hideLogModal(){
- this.logTemplate.hide();
- this.logMessages = [];
- }
-
- openLogModal() {
- this.getLogMessages();
- this.logTemplate.show();
- }
-
- // helper method
- convertMS(ms) {
- var d, h, m, s;
- s = Math.floor(ms / 1000);
- m = Math.floor(s / 60);
- s = s % 60;
- h = Math.floor(m / 60);
- m = m % 60;
- d = Math.floor(h / 24);
- h = h % 24;
- return { d: d, h: h, m: m, s: s };
- }
-
- getColor(logLevel) {
- switch (logLevel) {
- case 'ERROR':
- return 'red';
- default:
- return 'black';
- }
- }
-}
diff --git a/web/angular/src/app/views/components/user-devices/user-devices.component.html b/web/angular/src/app/views/components/user-devices/user-devices.component.html
deleted file mode 100644
index a8a4cc9..0000000
--- a/web/angular/src/app/views/components/user-devices/user-devices.component.html
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
-
-
-
- Das aktuell ausgewählte Gerät:
- {{selectedDevice.device}}
- Kein Gerät ausgewählt
-
-
-
-
-
Seite: {{bigCurrentPage}} / {{numPages}}
-
-
-
-
-
-
-
-
-
diff --git a/web/angular/src/app/views/components/user-devices/user-devices.component.ts b/web/angular/src/app/views/components/user-devices/user-devices.component.ts
deleted file mode 100644
index e859d2e..0000000
--- a/web/angular/src/app/views/components/user-devices/user-devices.component.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import {ConsoleService} from "../../../console.service";
-import {ApiClientService} from "../../../../api/index";
-import {OnInit, Component} from "@angular/core";
-import {Device} from "../../../../api/models/device.model";
-import {StatisticService} from "../../../statistic.service";
-import {ToastService} from "../../../toast.service";
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- selector: 'app-user-devices',
- templateUrl: './user-devices.component.html'
-})
-export class UserDevicesComponent implements OnInit {
- maxSize: number = 5; // load
- bigTotalItems: number = 0; // device count
- bigCurrentPage: number = 1; // pageOffset currentPage -1
- numPages: number = 0; // all pages count
- pageSize: number = 5; // device count in table
-
- deviceList: Device[]; // device list for table
- selectedDevice:Device;
- errorMessage: string = '';
-
- constructor(private consoleService: ConsoleService,
- private apiClientService: ApiClientService,
- private toastService: ToastService,
- private statisticService:StatisticService,
- private helperService:HelperService) {
- }
-
- ngOnInit() {
- this.getDevice(this.getPageOffset(this.bigCurrentPage));
- }
-
- // Pagination Methods
- pageChanged(event: any): void {
- this.getDevice(event);
- }
-
- getPageOffset(currentPage: number): number {
- return (currentPage - 1) * 10;
- }
-
- // update selected device
- selectDevice(selectedNr:number){
- this.selectedDevice = this.deviceList[selectedNr];
- this.statisticService.setDevice(this.selectedDevice);
- }
-
- getDevice(pageOffset:number){
- this.apiClientService.getCurrentUserDevices(pageOffset, this.pageSize).subscribe(result => {
- this.consoleService.log("Load devices received.");
- this.deviceList = result.body.elements;
- this.bigTotalItems = result.body.total;
- // the first load of this page
- if(!this.selectedDevice && this.deviceList){
- this.selectedDevice = this.deviceList[0];
- this.statisticService.setDevice(this.selectedDevice);
- }
- }, error => {
- this.consoleService.log("Error during get device.");
- this.helperService.handleError(error);
- });
- }
-
-}
diff --git a/web/angular/src/app/views/components/user-management/user-management.component.html b/web/angular/src/app/views/components/user-management/user-management.component.html
deleted file mode 100644
index 03104be..0000000
--- a/web/angular/src/app/views/components/user-management/user-management.component.html
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
Seite: {{bigCurrentPage}} / {{numPages}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Willst du den Nutzer {{userList[selectedUserId].name}} löschen?
-
-
-
-
-
-
-
-
-
-
-
-
-
Möchtest du den Nutzer {{userList[selectedUserId].name}} reaktivieren?
-
-
-
-
-
diff --git a/web/angular/src/app/views/components/user-management/user-management.component.ts b/web/angular/src/app/views/components/user-management/user-management.component.ts
deleted file mode 100644
index 0b42b34..0000000
--- a/web/angular/src/app/views/components/user-management/user-management.component.ts
+++ /dev/null
@@ -1,148 +0,0 @@
-import {Component, OnInit, ViewChild} from '@angular/core';
-import {ConsoleService} from "../../../console.service";
-import {ApiClientService} from "../../../../api/index";
-import {User} from "../../../../api/models/user.model";
-import {ToastService} from "../../../toast.service";
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- selector: 'app-user-management',
- templateUrl: 'user-management.component.html'
-})
-export class UserManagementComponent implements OnInit{
-
- maxSize: number = 5; // load
- bigTotalItems: number = 0; // user count
- bigCurrentPage: number = 1; // pageOffset currentPage -1
- numPages: number = 0; // all pages count
-
- pageSize:number = 10; // user count in table
-
- userList:User[]; // user list for table
- searchString:string='';
- isSearch:boolean = false;
-
- selectedUserId:number = 0; // Id to delete user
- errorMessage:string = '';
-
- @ViewChild('deleteUserModal') deleteUserModal;
- @ViewChild('reactiveUserModal') reactiveUserModal;
- isModalShown: boolean = false;
-
- constructor(private consoleService: ConsoleService,
- private apiClientService:ApiClientService,
- private toastService: ToastService,
- private helperService:HelperService) {}
-
- ngOnInit(){
- this.getUser(this.getPageOffset(this.bigCurrentPage));
- }
-
- // Pagination Methods
- pageChanged(event: any): void {
- this.loadUsers(event);
- }
-
- getPageOffset(currentPage:number):number{
- return (currentPage-1)*10;
- }
-
- loadUsers(event?: any){
- if(this.searchString == ''){
- if(this.isSearch){
- this.isSearch = false;
- this.bigCurrentPage = 1;
- this.getUser(this.getPageOffset(this.bigCurrentPage));
- }else{
- if(event){
- this.getUser(this.getPageOffset(event.page));
- }else{
- this.getUser(this.getPageOffset(this.bigCurrentPage));
- }
- }
- }else{
- if(this.isSearch){
- if(event){
- this.searchUser(this.searchString, this.getPageOffset(event.page));
- }else{
- this.searchUser(this.searchString, this.getPageOffset(this.bigCurrentPage));
- }
- }else{
- this.isSearch = true;
- this.bigCurrentPage = 1;
- this.searchUser(this.searchString, this.getPageOffset(this.bigCurrentPage));
- }
- }
- }
-
- //Modal Methods
- showDeleteUserModal(index:number){
- this.isModalShown = true;
- this.selectedUserId = index;
- this.deleteUserModal.show();
- }
-
- showReactiveUserModal(index:number){
- this.isModalShown = true;
- this.selectedUserId = index;
- this.reactiveUserModal.show();
- }
-
- hideModal(){
- this.reactiveUserModal.hide();
- this.deleteUserModal.hide();
- this.isModalShown=false;
- }
-
- // Request Methods
- reactiveOrDeleteUser(){
- console.log("reactive or delete user");
- const tempUser:User = this.userList[this.selectedUserId];
- tempUser.deleted = !tempUser.deleted;
- this.updateUser(tempUser);
- }
-
- addOrDeleteRole(){
- this.consoleService.log("updated role");
- this.toastService.showWarning("Warning","The change role function is not implemented yet 😃");
- }
-
- searchUser(searchString:string, pageOffset:number){
- this.consoleService.log("searched for username= "+searchString);
- this.apiClientService.searchUsers(pageOffset, this.pageSize, searchString).subscribe(result => {
- this.consoleService.log("Load user received.");
- this.userList = result.body.elements;
- this.bigTotalItems = result.body.total;
- if(this.userList.length ==0){
- this.toastService.showWarning("Warning", "No users found!");
- }
- }, error => {
- this.consoleService.log("Error during search user.");
- this.helperService.handleError(error);
- });
- }
-
- getUser(pageOffset:number){
- this.apiClientService.getUsers(pageOffset, this.pageSize).subscribe(result => {
- this.consoleService.log("Load user received.");
- this.userList = result.body.elements;
- this.bigTotalItems = result.body.total;
- }, error => {
- this.consoleService.log("Error during get user.");
- this.helperService.handleError(error);
- });
- }
-
- updateUser(user:User){
- this.consoleService.log("Put User requested.");
- this.apiClientService.setUser(user.id, user).subscribe(result => {
- this.consoleService.log("Put user received.");
- this.loadUsers();
- this.toastService.showSuccess("Success", "User "+result.body.name +" changed successful!");
- }, error => {
- this.consoleService.log("Error during update user.");
- this.helperService.handleError(error);
- });
- this.hideModal();
- }
-}
diff --git a/web/angular/src/app/views/device-location.component.html b/web/angular/src/app/views/device-location.component.html
new file mode 100644
index 0000000..20a617c
--- /dev/null
+++ b/web/angular/src/app/views/device-location.component.html
@@ -0,0 +1,84 @@
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/device-location.component.ts b/web/angular/src/app/views/device-location.component.ts
new file mode 100644
index 0000000..1547abd
--- /dev/null
+++ b/web/angular/src/app/views/device-location.component.ts
@@ -0,0 +1,83 @@
+import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from "@angular/core";
+import { ApiClientService } from "../../api";
+import { MatDialog, MatSnackBar } from "@angular/material";
+import { ActivatedRoute, Router } from "@angular/router";
+import { MessageDialogComponent } from "../widgets/message-dialog.component";
+import { HttpErrorResponse } from "@angular/common/http";
+import { HttpStatusCode } from "../utils/httpcodes";
+import { Subscription, BehaviorSubject } from "rxjs";
+import { Device, Location } from "../../api/models";
+import { Snackbars } from "../utils/snackbars";
+import * as L from 'leaflet';
+import { TileMapComponent } from "../widgets/tile-map.component";
+import { MarkerMapComponent } from "../widgets/marker-map.component";
+
+@Component({
+ selector: 'device-location',
+ templateUrl: './device-location.component.html',
+ host: { class:'match-parent' },
+ })
+ export class DeviceLocationComponent implements OnInit, OnDestroy {
+
+ @ViewChild(MarkerMapComponent) map: MarkerMapComponent;
+
+ id: string;
+
+ device = new BehaviorSubject(null);
+ location = new BehaviorSubject(null);
+
+ private deviceSubscription: Subscription;
+ private locationSubscription: Subscription;
+
+ constructor(
+ private snackbar: MatSnackBar,
+ private apiClientService: ApiClientService,
+ private route: ActivatedRoute
+ ) { }
+
+ ngOnInit() {
+ this.id = this.route.snapshot.paramMap.get("id");
+ this.updateDevice();
+ this.updateLocation();
+ }
+
+ isUpdatingDevice():boolean {
+ return this.deviceSubscription != null;
+ }
+
+ isUpdatingLocation():boolean {
+ return this.locationSubscription != null;
+ }
+
+ updateDevice():void {
+ if (this.deviceSubscription) return;
+ this.deviceSubscription = this.apiClientService.getDevice(parseInt(this.id, 10)).subscribe((result)=>{
+ this.device.next(result.body);
+ this.deviceSubscription = null;
+ }, (error)=>{
+ Snackbars.showError(this.snackbar, "Die Geräteinformationen konnten nicht geladen werden.");
+ this.deviceSubscription = null;
+ });
+ }
+
+ updateLocation():void {
+ if (this.locationSubscription) return;
+ this.locationSubscription = this.apiClientService.getDeviceLocation(parseInt(this.id, 10)).subscribe((result)=>{
+ this.location.next(result.body);
+ this.map.setMarkerPosition(result.body.coordinate);
+ this.locationSubscription = null;
+ }, (error)=>{
+ Snackbars.showError(this.snackbar, "Der Standort konte nicht abgerufen werden.");
+ this.locationSubscription = null;
+ this.map.setMarkerPosition(null);
+ });
+ }
+
+
+ ngOnDestroy() {
+ if (this.deviceSubscription) this.deviceSubscription.unsubscribe();
+ if (this.locationSubscription) this.locationSubscription.unsubscribe();
+ }
+
+ }
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/device-visits.component.html b/web/angular/src/app/views/device-visits.component.html
new file mode 100644
index 0000000..f80120d
--- /dev/null
+++ b/web/angular/src/app/views/device-visits.component.html
@@ -0,0 +1,116 @@
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/device-visits.component.ts b/web/angular/src/app/views/device-visits.component.ts
new file mode 100644
index 0000000..189995a
--- /dev/null
+++ b/web/angular/src/app/views/device-visits.component.ts
@@ -0,0 +1,236 @@
+import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from "@angular/core";
+import { ApiClientService } from "../../api";
+import { MatDialog, MatSnackBar, MatDatepicker, MatDatepickerInputEvent } from "@angular/material";
+import { ActivatedRoute, Router } from "@angular/router";
+import { MessageDialogComponent } from "../widgets/message-dialog.component";
+import { HttpErrorResponse } from "@angular/common/http";
+import { HttpStatusCode } from "../utils/httpcodes";
+import { Subscription, BehaviorSubject } from "rxjs";
+import { Device, Location, Visit } from "../../api/models";
+import { Snackbars } from "../utils/snackbars";
+import * as L from 'leaflet';
+import { TileMapComponent } from "../widgets/tile-map.component";
+import { MarkerMapComponent } from "../widgets/marker-map.component";
+import { DeviceVisitService } from "../services/device-visit.service";
+import { DataSource } from "@angular/cdk/table";
+import { ConfirmationDialogComponent } from "../widgets/confirmation-dialog.component";
+import { FormControl } from "@angular/forms";
+
+@Component({
+ selector: 'device-visits',
+ templateUrl: './device-visits.component.html',
+ host: { class:'match-parent' },
+ })
+ export class DeviceVisitsComponent implements OnInit, AfterViewInit, OnDestroy {
+
+ private static readonly COLORS: string[] = [ "#ffebee", "#ffcdd2", "#ef9a9a", "#e57373", "#ef5350", "#f44336", "#e53935", "#d32f2f", "#c62828", "#b71c1c" ]
+ private static readonly DAY = 24 * 60 * 60 * 1000;
+
+ @ViewChild(MarkerMapComponent) map: MarkerMapComponent;
+
+ displayedColumns = [ 'place', 'time', 'actions'];
+
+ id: string;
+
+ maxDate = new Date();
+ minDate = new Date();
+ selectedDate = new Date();
+ device: BehaviorSubject;
+ dataSource: DataSource;
+ loading: BehaviorSubject
+ date: BehaviorSubject
+ deleting = new BehaviorSubject(false);
+
+ private places: L.CircleMarker[] = [];
+
+ private dateSubscription: Subscription;
+ private deviceSubscription: Subscription;
+ private loadingSubscription: Subscription;
+
+ constructor(
+ private snackbar: MatSnackBar,
+ private dialog: MatDialog,
+ private apiClientService: ApiClientService,
+ private deviceVisitSerivce: DeviceVisitService,
+ private route: ActivatedRoute
+ ) {
+ this.dataSource = deviceVisitSerivce;
+ this.device = deviceVisitSerivce.device;
+ this.loading = deviceVisitSerivce.loading;
+ this.date = deviceVisitSerivce.date;
+ }
+
+ reload() {
+ this.deviceVisitSerivce.setDevice(+this.id);
+ }
+
+ setDate(date: Date) {
+ this.deviceVisitSerivce.setDate(date);
+ }
+
+ onNextDay() {
+ this.setDate(new Date(this.selectedDate.getTime() + DeviceVisitsComponent.DAY));
+ }
+
+ hasNextDay():boolean {
+ let next = this.selectedDate.getTime() + DeviceVisitsComponent.DAY;
+ return this.maxDate.getTime() >= next;
+ }
+
+ onPreviousDay() {
+ this.setDate(new Date(this.selectedDate.getTime() - DeviceVisitsComponent.DAY));
+ }
+
+
+ hasPreviousDay(): boolean {
+ let next = this.selectedDate.getTime() - DeviceVisitsComponent.DAY;
+ return this.minDate.getTime() <= next;
+ }
+
+ onDateChange(event: MatDatepickerInputEvent) {
+ this.setDate(event.value);
+ }
+
+ ngOnInit() {
+ this.id = this.route.snapshot.paramMap.get("id");
+ this.deviceVisitSerivce.setDevice(+this.id);
+ this.dateSubscription = this.date.subscribe((date)=> {
+ this.selectedDate = date;
+ });
+ this.deviceSubscription = this.device.subscribe((device)=> {
+ if (device == null) {
+ this.minDate = new Date();
+ this.maxDate = new Date();
+ } else {
+ this.minDate = new Date(device.creationTime);
+ this.maxDate = new Date();
+ }
+ this.minDate.setHours(0, 0, 0, 0);
+ this.maxDate.setHours(23, 59, 59, 999);
+ });
+ }
+
+ ngAfterViewInit() {
+ this.loadingSubscription = this.loading.subscribe((load)=>{
+ if (load) this.clearPlaces();
+ else this.createPlaces();
+ });
+ }
+
+
+ ngOnDestroy() {
+ this.dateSubscription.unsubscribe();
+ this.deviceSubscription.unsubscribe();
+ this.loadingSubscription.unsubscribe();
+ }
+
+ getPlaceName(id:number):string {
+ let place = this.deviceVisitSerivce.getPlace(id);
+ if (!place) {
+ return "" + id;
+ } else if (place.nickname) {
+ return place.nickname;
+ } else if (place.address) {
+ return place.address;
+ } else {
+ return "" + place.id;
+ }
+ }
+
+ onDelete(id:number):void {
+ ConfirmationDialogComponent.open(this.dialog, {
+ title:"Besuch löschen?",
+ message:"Möchtest Du den Besuch wirklich löschen? Diesen Vorgang kannst Du nicht mehr rückgängig machen.",
+ positive: "Ja",
+ negative: "Nein"
+ }).subscribe((result) => {
+ if (result != null && result.confirmed) {
+ this.doDelete(id);
+ }
+ });
+ }
+
+ private doDelete(id:number):void {
+ this.deleting.next(true);
+ this.apiClientService.deleteVisit(id).subscribe((result) => {
+ this.deleting.next(false);
+ this.deviceVisitSerivce.setDevice(+this.id);
+ Snackbars.showMessage(this.snackbar, "Der Besuch wurde erfolgreich gelöscht.", Snackbars.DURATION_SHORT);
+ }, (error) => {
+ this.deleting.next(false);
+ this.deviceVisitSerivce.setDevice(+this.id);
+ Snackbars.showError(this.snackbar, "Der Besuch konnte nicht gelöscht werden. Hast Du gerade kein Netz?");
+ })
+ }
+
+ onSelectPlace(id: number):void {
+ let place = this.deviceVisitSerivce.getPlace(id);
+ if (!place) {
+ Snackbars.showError(this.snackbar, "Der Ort konnte nicht geladen werden.");
+ this.map.setPinPosition(null);
+ } else {
+ this.map.setPinPosition(place.coordinate);
+ }
+ }
+
+
+ private createPlaces():void {
+ // compute the total and individual stay duration
+ let sel = new Date(this.selectedDate);
+ sel.setHours(0, 0, 0, 0);
+ let min = sel.getTime();
+ sel.setHours(23, 59, 59, 999);
+ let max = sel.getTime();
+ let placeDurations = new Map();
+ var totalDuration = 0;
+ for (let v of this.deviceVisitSerivce.getVisits()) {
+ let begin = Math.min(max, Math.max(min, v.beginTime));
+ let end = Math.min(max, Math.max(min, v.endTime));
+ var duration = end - begin;
+ totalDuration += duration;
+ if (placeDurations.has(v.place)) {
+ duration += placeDurations.get(v.place);
+ }
+ placeDurations.set(v.place, duration);
+ }
+ var latlngs:([number, number])[] = new Array();
+ // create circles for places
+ placeDurations.forEach((v, k)=> {
+ let place = this.deviceVisitSerivce.getPlace(k);
+ if (place != null) {
+ let pos = new L.LatLng(place.coordinate.latitude, place.coordinate.longitude);
+ latlngs.push([ place.coordinate.latitude, place.coordinate.longitude]);
+ let circle = L.circleMarker(pos, {
+ radius: 36,
+ fillColor: this.getColor(v, totalDuration),
+ fill: true,
+ stroke: true,
+ weight: 4,
+ color: "#d50000"
+ })
+ this.places.push(circle);
+ circle.addTo(this.map.map.map);
+ }
+ });
+ if (latlngs.length > 0) {
+ let bounds = new L.LatLngBounds(latlngs);
+ this.map.map.map.fitBounds(bounds);
+ }
+ }
+
+ private getColor(duration:number, total:number) {
+ if (total == 0) return DeviceVisitsComponent.COLORS[5];
+ let fraction = Math.round((duration * 10) / total);
+ let index = Math.max(0, Math.min(DeviceVisitsComponent.COLORS.length, fraction));
+ return DeviceVisitsComponent.COLORS[index];
+ }
+
+ private clearPlaces(): void {
+ for (let c of this.places) {
+ c.remove();
+ }
+ this.places = [];
+ }
+
+ }
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/devices.component.html b/web/angular/src/app/views/devices.component.html
new file mode 100644
index 0000000..d3b4125
--- /dev/null
+++ b/web/angular/src/app/views/devices.component.html
@@ -0,0 +1,67 @@
+
+
+ devices
+ Geräte
+
+
+
+
+
+
+
+
+ ID
+ {{element.id}}
+
+
+
+ Betriebssystem
+
+ {{getOsIcon(element.os)}}
+
+
+
+
+ Hersteller
+ {{element.manufacturer}}
+
+
+
+ Model
+ {{element.model}}
+
+
+
+ Registrierung
+ {{element.creationTime | date:'short' }}
+
+
+
+ Aktualisierung
+ {{element.modificationTime | date:'short' }}
+
+
+ Aktionen
+
+
+ my_location
+
+
+ linear_scale
+
+
+ delete
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/devices.component.ts b/web/angular/src/app/views/devices.component.ts
new file mode 100644
index 0000000..1e37932
--- /dev/null
+++ b/web/angular/src/app/views/devices.component.ts
@@ -0,0 +1,76 @@
+import {Component, ViewChild, OnInit, OnDestroy} from '@angular/core';
+import {MatPaginator, MatTableDataSource, PageEvent, MatPaginatorIntl, MatDialog, MatSnackBar} from '@angular/material';
+import { DeviceService } from '../services/device.service';
+import { Device, DevicePage } from '../../api/models';
+import { DataSource } from '@angular/cdk/table';
+import { Subscription, BehaviorSubject } from 'rxjs';
+import { PaginationHandler } from '../utils/pagination';
+import { ConfirmationDialogComponent, ConfirmationDialogResult } from '../widgets/confirmation-dialog.component';
+import { ApiClientService } from '../../api';
+import { Snackbars } from '../utils/snackbars';
+
+@Component({
+ selector: 'devices',
+ templateUrl: 'devices.component.html',
+ host: { class:'match-parent' }
+})
+export class DevicesComponent implements OnInit, OnDestroy{
+
+ displayedColumns = ['id', 'os', 'manufacturer', 'model', "creationTime", "modificationTime", "actions"];
+ dataSource: DataSource;
+ private pageHandler: PaginationHandler;
+ readonly loading:BehaviorSubject;
+ readonly deleting = new BehaviorSubject(true);
+
+ @ViewChild(MatPaginator) paginator: MatPaginator;
+
+ constructor(
+ private apiClientService: ApiClientService,
+ private deviceSerivce: DeviceService,
+ private snackbar: MatSnackBar,
+ private dialog:MatDialog) {
+ this.dataSource = deviceSerivce;
+ this.loading = deviceSerivce.loading;
+ }
+
+ ngOnInit() {
+ this.pageHandler = new PaginationHandler(this.paginator, this.deviceSerivce);
+ this.deviceSerivce.reload();
+ }
+
+ ngOnDestroy() {
+ this.pageHandler.destroy();
+ }
+
+ getOsIcon(os: string): string {
+ if (os === "ANDROID") return "android";
+ else return "smartphone";
+ }
+
+ onDelete(id:number):void {
+ ConfirmationDialogComponent.open(this.dialog, {
+ title:"Gerät löschen?",
+ message:"Möchtest Du das Gerät wirklich löschen? Dieser Vorgang löscht auch die Besuche des Geräts und Du kannst ihn nicht mehr rückgängig machen.",
+ positive: "Ja",
+ negative: "Nein"
+ }).subscribe((result) => {
+ if (result != null && result.confirmed) {
+ this.doDelete(id);
+ }
+ });
+ }
+
+ private doDelete(id:number):void {
+ this.deleting.next(true);
+ this.apiClientService.deleteDevice(id).subscribe((result) => {
+ this.deleting.next(false);
+ this.deviceSerivce.reload();
+ Snackbars.showMessage(this.snackbar, "Das Gerät wurde erfolgreich gelöscht.", Snackbars.DURATION_SHORT);
+ }, (error) => {
+ this.deleting.next(false);
+ this.deviceSerivce.reload();
+ Snackbars.showError(this.snackbar, "Das Gerät konnte nicht gelöscht werden. Hast Du gerade kein Netz?");
+ })
+ }
+
+}
\ No newline at end of file
diff --git a/web/angular/src/app/views/edit-notice.component.html b/web/angular/src/app/views/edit-notice.component.html
new file mode 100644
index 0000000..a12399d
--- /dev/null
+++ b/web/angular/src/app/views/edit-notice.component.html
@@ -0,0 +1,130 @@
+
+
+ message
+ Hinweis {{ isNew()?"erstellen":"bearbeiten" }}
+
+
+ save
+
+
+ close
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inhalt
+ Hier kannst Du den Inhalt des Hinweises ändern.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete
+
+
+
+
+
+
+
+
+
+
+
+
+ add_circle_outline
+
+
+
+
+ playlist_add
+ Hinzufügen
+
+
+
+
+
+
+
+
+ Einstellungen
+ Hier kannst Du die Art der Veröffentlichung einstellen.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Veröffentlichen
+
+
+ Ankündigen
+
+
+
+
+
+
+
+
+
+
+
+
Erstellung
+
{{ notice.creationTime | date:'short' }}
+
+
+
Änderung
+
{{ notice.modificationTime | date:'short' }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/edit-notice.component.ts b/web/angular/src/app/views/edit-notice.component.ts
new file mode 100644
index 0000000..755d80e
--- /dev/null
+++ b/web/angular/src/app/views/edit-notice.component.ts
@@ -0,0 +1,180 @@
+import {Component, ViewChild, OnInit, OnDestroy, ViewEncapsulation} from '@angular/core';
+import {MatPaginator, MatTableDataSource, PageEvent, MatPaginatorIntl, MatDialog, MatSnackBar} from '@angular/material';
+import { DeviceService } from '../services/device.service';
+import { Notice, NoticePage, Message } from '../../api/models';
+import { DataSource } from '@angular/cdk/table';
+import { Subscription, BehaviorSubject } from 'rxjs';
+import { PaginationHandler } from '../utils/pagination';
+import { ConfirmationDialogComponent, ConfirmationDialogResult } from '../widgets/confirmation-dialog.component';
+import { ApiClientService } from '../../api';
+import { Snackbars } from '../utils/snackbars';
+import { ManageUserService } from '../services/manage-user.service';
+import { FormErrorEncoder } from '../utils/formcodes';
+import { NgForm } from '@angular/forms';
+import { ManageNoticeService } from '../services/manage-notice.service';
+import { ActivatedRoute, Router } from '@angular/router';
+import { Languages, Language } from '../utils/languages';
+
+@Component({
+ selector: 'edit-notice',
+ templateUrl: 'edit-notice.component.html',
+ host: { class:'match-parent' },
+ encapsulation: ViewEncapsulation.None,
+ styles: [ ".mat-tab-label { width: 65px !important; min-width: 0px !important } "]
+})
+export class EditNoticeComponent extends FormErrorEncoder implements OnInit, OnDestroy {
+
+ readonly languages = Languages.getLanguages();
+
+ readonly loading:BehaviorSubject;
+ id: string;
+ notice:Notice;
+ private loadSubscription:Subscription;
+ messages:Map = new Map();
+ expirationDate: Date;
+ expirationTime: string;
+
+ constructor(
+ private mangeNoticeService: ManageNoticeService,
+ private router: Router,
+ private route: ActivatedRoute,
+ private snackbar: MatSnackBar,
+ private dialog:MatDialog) {
+ super();
+ this.loading = mangeNoticeService.loading;
+ }
+
+ ngOnInit() {
+ this.id = this.route.snapshot.paramMap.get("id");
+ if (!this.isNew()) {
+ this.loadSubscription = this.mangeNoticeService.getNotice(+this.id).subscribe((notice)=> {
+ if (notice == null) {
+ Snackbars.showError(this.snackbar, "Der Hinweis konnte nicht geladen werden.");
+ this.router.navigate(["/manage/notices"]);
+ } else {
+ this.setNotice(notice);
+ }
+ });
+ } else {
+ let date = new Date();
+ date.setHours(0);
+ date.setMinutes(0);
+ date.setSeconds(0);
+ date.setMilliseconds(0);
+ date.setMonth(date.getMonth() + 12);
+ this.setNotice({
+ announced:false,
+ creationTime: 0,
+ deleted: false,
+ expirationTime: date.getTime(),
+ id: 0,
+ maximumVersion: 0,
+ minimumVersion: 0,
+ messages: [],
+ modificationTime: 0,
+ published: false
+ });
+ }
+ }
+
+ isNew():boolean {
+ return +this.id == 0;
+ }
+
+ ngOnDestroy() {
+ if (this.loadSubscription != null) this.loadSubscription.unsubscribe();
+ }
+
+
+ setNotice(notice: Notice):void {
+ if (notice.id != +this.id) {
+ this.router.navigate(["/manage/notices/" + notice.id]);
+ } else {
+ this.notice = notice;
+ this.messages = new Map();
+ for (let m of notice.messages) {
+ this.messages.set(m.language, m);
+ }
+ let date = new Date(notice.expirationTime);
+ this.expirationDate = date;
+ let min = date.getMinutes();
+ this.expirationTime = ((min<10)?"0":"") + date.getHours() + ":" + ((min<10)?"0":"") + min;
+ console.log("Expt: " + this.expirationTime);
+ }
+ }
+
+ getOtherLanguages(): Language[] {
+ var missing: Language[] = [];
+ for (let lang of this.languages) {
+ if (!this.messages.has(lang.value)) {
+ missing.push(lang);
+ }
+ }
+ return missing;
+ }
+
+ hasAllLanguages():boolean {
+ for (let lang of this.languages) {
+ if (! this.messages.has(lang.value)) return false;
+ }
+ return true;
+ }
+
+ onAddLanguage(lang: string):void {
+ var message:Message = { language:lang, title:"", body:""} as Message;
+ for (let m of this.notice.messages) {
+ if (m.language == lang) {
+ message = m;
+ }
+ }
+ this.messages.set(lang, message);
+ }
+
+ onDeleteLanguage(lang: string):void {
+ this.messages.delete(lang);
+ }
+
+
+
+ onSave():void {
+ this.notice.messages = [];
+ this.messages.forEach((m:Message,k:string)=> {
+ this.notice.messages.push(m);
+ });
+ if (this.notice.minimumVersion == null) this.notice.minimumVersion = 0;
+ if (this.notice.maximumVersion == null) this.notice.maximumVersion = 0;
+ let exp = new Date(this.expirationDate);
+ let time = this.getExpirationTime();
+ exp.setHours(time.h);
+ exp.setMinutes(time.m);
+ exp.setSeconds(0);
+ exp.setMilliseconds(0);
+ this.notice.expirationTime = exp.getTime();
+ this.updateNotice(this.notice);
+ }
+
+ private getExpirationTime(): {h:number, m:number} {
+ var result = { h: 0, m: 0};
+ if (this.expirationTime == null || this.expirationTime.indexOf(":") == -1) {
+ this.expirationTime = "0:00";
+ }
+ let idx = this.expirationTime.indexOf(":");
+ result.h = +this.expirationTime.substring(0, idx);
+ result.m = +this.expirationTime.substring(idx + 1);
+ return result;
+ }
+
+
+ private updateNotice(notice:Notice) {
+ this.mangeNoticeService.setNotice(notice).subscribe((result)=> {
+ if (result != null) {
+ Snackbars.showMessage(this.snackbar, "Der Hinweis wurde erfolgreich gespeichert.", Snackbars.DURATION_SHORT);
+ this.setNotice(result);
+ } else {
+ Snackbars.showError(this.snackbar, "Der Hinweis konnte nicht gespeicher werden.")
+ }
+ });
+
+ }
+
+}
\ No newline at end of file
diff --git a/web/angular/src/app/views/login.component.html b/web/angular/src/app/views/login.component.html
new file mode 100644
index 0000000..d90c9ec
--- /dev/null
+++ b/web/angular/src/app/views/login.component.html
@@ -0,0 +1,41 @@
+
+
+
+ Anmelden
+ Mit Deinem Konto kannst Du hier auf Deine Daten zugreifen.
+
+
+
+
+
+
+
+
+ lock_open
+ Anmelden
+
+
+
+
+
+ Passwort vergessen?
+
+
+
+ Noch kein Konto?
+ Kein Problem!
+
+ Hol Dir einfach ein Konto und registriere Dein Gerät. Dann kannst Du von überall aus auf Deinen Standort und Deine besuchten
+ Orte zugreifen!
+
+
+
+ mode_edit
+ Registrieren
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/login.component.ts b/web/angular/src/app/views/login.component.ts
new file mode 100644
index 0000000..7cffe52
--- /dev/null
+++ b/web/angular/src/app/views/login.component.ts
@@ -0,0 +1,80 @@
+import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+import { LoginFieldComponent } from '../widgets/login-field.component';
+import { PasswordFieldComponent } from '../widgets/password-field.component';
+import { HttpStatusCode } from '../utils/httpcodes';
+import { MatSnackBar } from '@angular/material';
+import { NgForm } from '@angular/forms';
+import { Snackbars } from '../utils/snackbars';
+
+@Component({
+ selector: 'login',
+ templateUrl: './login.component.html',
+ host: { class:'match-parent' },
+})
+export class LoginComponent implements OnInit, OnDestroy {
+
+ UserState = UserState;
+
+ @ViewChild(LoginFieldComponent) loginField: LoginFieldComponent;
+ @ViewChild(PasswordFieldComponent) passwordField: PasswordFieldComponent;
+ @ViewChild("loginForm") loginForm: NgForm;
+
+ login:string;
+ password:string;
+
+ readonly idle = new BehaviorSubject(false);
+
+ private stateSubscription: Subscription;
+ private errorSubscription: Subscription;
+
+ constructor(private userService: UserService, private snackbar: MatSnackBar, private router: Router) {
+ this.login = userService.getLogin();
+ }
+
+ ngOnInit(): void {
+ this.stateSubscription = this.userService.state.subscribe((state)=> {
+ if (state === UserState.Available) {
+ this.idle.next(false);
+ var url = "/notices";
+ if (this.userService.redirectUrl != null) {
+ url = this.userService.redirectUrl;
+ this.userService.redirectUrl = null;
+ }
+ this.router.navigateByUrl(url);
+ } else {
+ this.idle.next(state !== UserState.Changing);
+ this.loginField.disabled=! this.idle.getValue();
+ this.loginField.disabled=! this.idle.getValue();
+ }
+ });
+ this.errorSubscription = this.userService.error.subscribe((error)=> {
+ this.password = "";
+ if (error.status === HttpStatusCode.FORBIDDEN) {
+ Snackbars.showError(this.snackbar, "Zugriff verweigert. Prüf Deine Eingaben und versuchs nochmal.");
+ } else {
+ Snackbars.showError(this.snackbar, "Fehler bei der Anmeldung (" + error.status + "). Hast Du gerade kein Netz?");
+ }
+ });
+ }
+
+ onLogin():void {
+ this.snackbar.dismiss();
+ if (!this.idle || !this.loginForm.valid) return;
+ this.login = this.loginField.login;
+ this.password = this.passwordField.password;
+ this.userService.setUser(this.login, this.password);
+ this.userService.login();
+ }
+
+ ngOnDestroy():void {
+ this.snackbar.dismiss();
+ this.stateSubscription.unsubscribe();
+ this.errorSubscription.unsubscribe();
+ }
+
+
+}
diff --git a/web/angular/src/app/views/manage-log.component.html b/web/angular/src/app/views/manage-log.component.html
new file mode 100644
index 0000000..dc29c41
--- /dev/null
+++ b/web/angular/src/app/views/manage-log.component.html
@@ -0,0 +1,71 @@
+
+ subject
+ Logs
+
+
+ play_circle_outline
+
+
+ pause_circle_outline
+
+
+ not_interested
+
+
+
+
+
+
+
+
+
+
+ ID
+ {{element.id}}
+
+
+ Zeit
+ {{ element.time | date:'shortDate' }} {{ element.time | date:'H:mm:ss.SSS' }}
+
+
+ Thread
+ {{element.thread}}
+
+
+ Level
+ {{ getLevel(element.level) }}
+
+
+ Class
+ {{ getClassName(element.className) }}
+
+
+ Method
+ {{ element.methodName }}
+
+
+ Message
+ {{element.message}}
+
+
+ Trace
+
+
+ error
+
+
+
+
+ Aktionen
+
+
+ open_in_browser
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/manage-log.component.ts b/web/angular/src/app/views/manage-log.component.ts
new file mode 100644
index 0000000..56d67e0
--- /dev/null
+++ b/web/angular/src/app/views/manage-log.component.ts
@@ -0,0 +1,83 @@
+import { Component, OnInit, OnDestroy } from "@angular/core";
+import { BehaviorSubject, Observable } from "rxjs";
+import { DataSource } from "@angular/cdk/table";
+import { LogMessage } from "../../api/models";
+import { CollectionViewer } from "@angular/cdk/collections";
+import { ManageLogService } from "../services/manage-log.service";
+import { LogDialogComponent } from "../widgets/log-dialog.component";
+import { MatDialog } from "@angular/material";
+
+@Component({
+ selector: 'manage-log',
+ templateUrl: './manage-log.component.html',
+ host: { class: 'match-parent' },
+})
+export class ManageLogComponent implements OnInit, OnDestroy {
+
+ displayedColumns = [ 'id', 'time', 'level', 'thread', 'className', 'message', 'trace', 'actions'];
+
+ readonly connecting: BehaviorSubject;
+ readonly dataSource: DataSource;
+ connected: boolean;
+
+ constructor(private logService: ManageLogService, private dialog: MatDialog) {
+ this.connecting = logService.connecting;
+ this.dataSource = logService;
+ }
+
+ ngOnInit():void {
+ this.logService.open();
+ this.connected = true;
+ }
+
+ ngOnDestroy():void {
+ this.connected = false;
+ this.logService.close();
+ }
+
+ onConnect():void {
+ this.connected = true;
+ this.logService.close();
+ this.logService.open();
+ }
+
+ onDisconnect():void {
+ this.connected = false;
+ this.logService.close();
+ }
+
+ onClear():void {
+ this.logService.clear();
+ }
+
+ getClassName(name: string) {
+ let idx = name.lastIndexOf(".");
+ if (idx == -1) return name;
+ else return name.substring(idx + 1);
+ }
+
+ getLevel(level: string) {
+ if (level == 'ERROR') {
+ return "error"
+ } else if (level == 'SEVERE') {
+ return "error_outline"
+ } else if (level == 'INFO') {
+ return "info_outline";
+ } else {
+ return "panorama_fish_eye";
+ }
+ }
+
+ getColor(level: string):string {
+ if (level == 'ERROR' || level == 'SEVERE') {
+ return "accent";
+ } else {
+ return null;
+ }
+ }
+
+ onShow(message: LogMessage): void {
+ LogDialogComponent.open(this.dialog, message);
+ }
+
+}
diff --git a/web/angular/src/app/views/manage-notices.component.html b/web/angular/src/app/views/manage-notices.component.html
new file mode 100644
index 0000000..b9651ce
--- /dev/null
+++ b/web/angular/src/app/views/manage-notices.component.html
@@ -0,0 +1,98 @@
+
+
+ forum
+ Hinweise
+
+
+
+ add_circle_outline
+
+
+
+
+
+
+
+
+
+
+ ID
+ {{element.id}}
+
+
+
+ Sprachen
+
+
+
+
+
+
+
+
+
+
+ Erstellung
+ {{element.creationTime | date:'short' }}
+
+
+
+ Aktualisierung
+ {{element.modificationTime | date:'short' }}
+
+
+
+ Ablauf
+ {{element.expirationTime | date:'short' }}
+
+
+
+ Titel
+ {{ getTitle(element) }}
+
+
+
+ Veröffentlicht
+
+ {{ element.published?"check_box":"check_box_outline_blank" }}
+
+
+
+
+ Push (Min/Max)
+
+ {{ element.announced?"notifications_active":"notifications_none" }}
+ ({{ element.minimumVersion}}/{{element.maximumVersion}})
+
+
+
+
+
+
+
+ Aktionen
+
+
+
+ undo
+
+
+
+
+ delete
+
+
+
+ edit
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/manage-notices.component.ts b/web/angular/src/app/views/manage-notices.component.ts
new file mode 100644
index 0000000..2ca4444
--- /dev/null
+++ b/web/angular/src/app/views/manage-notices.component.ts
@@ -0,0 +1,97 @@
+import {Component, ViewChild, OnInit, OnDestroy} from '@angular/core';
+import {MatPaginator, MatTableDataSource, PageEvent, MatPaginatorIntl, MatDialog, MatSnackBar} from '@angular/material';
+import { DeviceService } from '../services/device.service';
+import { Notice, NoticePage } from '../../api/models';
+import { DataSource } from '@angular/cdk/table';
+import { Subscription, BehaviorSubject } from 'rxjs';
+import { PaginationHandler } from '../utils/pagination';
+import { ConfirmationDialogComponent, ConfirmationDialogResult } from '../widgets/confirmation-dialog.component';
+import { ApiClientService } from '../../api';
+import { Snackbars } from '../utils/snackbars';
+import { ManageUserService } from '../services/manage-user.service';
+import { FormErrorEncoder } from '../utils/formcodes';
+import { NgForm } from '@angular/forms';
+import { ManageNoticeService } from '../services/manage-notice.service';
+
+@Component({
+ selector: 'manage-notices',
+ templateUrl: 'manage-notices.component.html',
+ host: { class:'match-parent' }
+})
+export class ManageNoticesComponent extends FormErrorEncoder implements OnInit, OnDestroy {
+
+ readonly languages:{ value:string, title:string}[] = [
+ {value:"de", title:"Deutsch"},
+ {value:"en", title:"English"},
+ {value:"fr", title:"Französisch"},
+ {value:"it", title:"Italienisch"},
+ {value:"es", title:"Spanisch"}];
+
+ language: string = "de";
+
+ displayedColumns = ['id', 'published', 'announced', 'languages', 'title', "creationTime", "expirationTime", "modificationTime", "actions"];
+ dataSource: DataSource;
+ private pageHandler: PaginationHandler;
+ readonly loading:BehaviorSubject;
+
+ @ViewChild(MatPaginator) paginator: MatPaginator;
+
+ constructor(
+ private mangeNoticeService: ManageNoticeService,
+ private snackbar: MatSnackBar,
+ private dialog:MatDialog) {
+ super();
+ this.dataSource = mangeNoticeService;
+ this.loading = mangeNoticeService.loading;
+ }
+
+ ngOnInit() {
+ this.pageHandler = new PaginationHandler(this.paginator, this.mangeNoticeService);
+ this.mangeNoticeService.reload();
+ }
+
+ ngOnDestroy() {
+ this.pageHandler.destroy();
+ }
+
+ getTitle(notice: Notice): string {
+ for (let m of notice.messages) {
+ if (m.language == this.language) {
+ return m.title;
+ }
+ }
+ return "";
+ }
+
+ hasLanguage(notice:Notice, lang:string) {
+ for (let m of notice.messages) {
+ if (m.language == lang) return true;
+ }
+ return false;
+ }
+
+
+ onDelete(notice: Notice):void {
+ if (this.loading.getValue()) return;
+ notice.deleted = true;
+ this.updateNotice(notice);
+ }
+
+ onRestore(notice: Notice):void {
+ if (this.loading.getValue()) return;
+ notice.deleted = false;
+ this.updateNotice(notice);
+ }
+
+ private updateNotice(notice:Notice) {
+ this.mangeNoticeService.setNotice(notice).subscribe((result)=> {
+ if (result != null) {
+ Snackbars.showMessage(this.snackbar, "Die Änderung wurde erfolgreich durchgeführt.", Snackbars.DURATION_SHORT);
+ } else {
+ Snackbars.showError(this.snackbar, "Die Änderung konnte nicht durchgeführt werden.")
+ }
+ });
+
+ }
+
+}
\ No newline at end of file
diff --git a/web/angular/src/app/views/manage-system.component.html b/web/angular/src/app/views/manage-system.component.html
new file mode 100644
index 0000000..8ba97db
--- /dev/null
+++ b/web/angular/src/app/views/manage-system.component.html
@@ -0,0 +1,176 @@
+
+
+ equalizer
+ System
+
+
+
+
+ Auslastung
+ Zeigt die durchschnittliche CPU-Auslastung der letzten Minute an.
+
+
+
+
+
+
+
+
+
+
+ Betriebszeit
+ {{ getUptime(load.uptime) }}
+
+
+
+
+
+
+ Speicher
+ Zeigt den genutzen Haldenspeicher zum Zeitpunkt der Anfrage an.
+
+
+
+
+
+
+
+
+
+ Maximale Haldengröße
+ {{ getMemory(load.maxHeapSize) }}
+
+
+
+
+
+
+
+
+
+ Ausstattung
+ Zeigt die Hardware- und Softwareausstattung des Rechners an.
+
+
+
+
+
+ computer Betriebssystem
+
+ Name
+ {{ system.osName }}
+
+
+
+ Architektur
+ {{ system.osArchitecture }}
+
+
+
+ Version
+ {{ system.osVersion }}
+
+
+ widgets Java Virtual Machine
+
+ Name
+ {{ system.vmName }}
+
+
+
+ Spezifikation
+ {{ system.vmSpecification }}
+
+
+
+ Hersteller
+ {{ system.vmVendor }}
+
+
+
+ Version
+ {{ system.vmVersion }}
+
+
+
+ delete Garbage Collector
+
+ Ausführungen
+ {{ load.gcCount }}
+
+
+
+ Dauer
+ {{ load.gcDuration }} ms
+
+
+
+ power_settings_new Rechenleistung
+
+ Prozessoren
+ {{ system.processors }}
+
+
+
+
+
+
+
+ Datenbestand
+ Zeigt die vorhandenen Datenbankeinträge für alle Entitäten an.
+
+
+
+
+
+
+
+ Entität
+ {{element.name}}
+
+
+
+
+ Summe
+
+
+ {{ element.total }}
+
+
+
+
+
+ Aktiv
+
+
+ {{ element.total - element.deleted }}
+
+
+
+
+
+
+ Gelöscht
+
+
+ {{ element.deleted }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/manage-system.component.ts b/web/angular/src/app/views/manage-system.component.ts
new file mode 100644
index 0000000..9897076
--- /dev/null
+++ b/web/angular/src/app/views/manage-system.component.ts
@@ -0,0 +1,140 @@
+import { Component, OnInit, OnDestroy } from "@angular/core";
+import { SystemStatistic, EntityStatistic, LoadStatistic } from "../../api/models";
+import { ApiClientService } from "../../api";
+import { Subscription, Observable, BehaviorSubject } from "rxjs";
+import { DataSource } from "@angular/cdk/table";
+import { CollectionViewer } from "@angular/cdk/collections";
+
+@Component({
+ selector: 'manage-system',
+ templateUrl: './manage-system.component.html',
+ host: { class: 'match-parent' },
+})
+export class ManageSystemComponent implements OnInit, OnDestroy {
+
+ private static readonly TIMEOUT_ERROR = 10000;
+ private static readonly TIMEOUT_LOAD = 5000;
+ private static readonly TIMEOUT_ENTITY = 60000;
+
+ system: SystemStatistic;
+ readonly entities = new EntityDataSource();
+ load: LoadStatistic;
+
+ private loadSubscription: Subscription;
+ private entitySubscription: Subscription;
+ private systemSubscription: Subscription;
+
+ private loadTimer:any = null;
+ private entityTimer: any = null;
+ private systemTimer: any = null;
+
+ constructor(private apiClientService: ApiClientService) { }
+
+ ngOnInit() {
+ this.loadSubscription = this.updateLoad();
+ this.entitySubscription = this.updateEntities();
+ this.systemSubscription = this.updateSystem();
+ }
+
+ ngOnDestroy() {
+ this.loadSubscription.unsubscribe();
+ this.entitySubscription.unsubscribe();
+ this.systemSubscription.unsubscribe();
+ if (this.loadTimer != null) clearTimeout(this.loadTimer);
+ if (this.entityTimer != null) clearTimeout(this.entityTimer);
+ if (this.systemTimer != null) clearTimeout(this.systemTimer);
+ }
+
+ hasEntities():boolean {
+ return this.entities.entities.getValue().length == 0;
+ }
+
+ private updateLoad(): Subscription {
+ return this.apiClientService.getLoadStatistic().subscribe((result)=>{
+ this.load = result.body;
+ this.loadTimer = setTimeout(()=>this.loadSubscription = this.updateLoad(),ManageSystemComponent.TIMEOUT_LOAD);
+ },(error)=>{
+ this.loadTimer = setTimeout(()=>this.loadSubscription = this.updateLoad(),ManageSystemComponent.TIMEOUT_ERROR);
+ });
+ }
+
+ private updateEntities(): Subscription {
+ return this.apiClientService.getEntityStatistics().subscribe((result)=>{
+ this.entities.entities.next(result.body);
+ this.entityTimer = setTimeout(()=>this.entitySubscription = this.updateEntities(), ManageSystemComponent.TIMEOUT_ENTITY);
+ }, (error)=>{
+ this.entityTimer = setTimeout(()=>this.entitySubscription = this.updateEntities(), ManageSystemComponent.TIMEOUT_ERROR);
+ });
+ }
+
+ private updateSystem(): Subscription {
+ return this.apiClientService.getSystemStatistic().subscribe((result)=>{
+ this.system = result.body;
+ }, (error)=> {
+ this.systemTimer = setTimeout(()=>this.systemSubscription = this.updateSystem(), ManageSystemComponent.TIMEOUT_ERROR);
+ });
+ }
+
+ canGetCpuLoad(): boolean {
+ return this.system != null && this.load != null;
+ }
+
+ getCpuLoad():number {
+ return (this.load.cpuLoad / Math.max(1, this.system.processors) * 100)
+ }
+
+ getMemory(bytes: number):string {
+ let megabytes = Math.floor(bytes / (1024*1024));
+ let gb = Math.floor(megabytes / 1000);
+ let mb = megabytes - (gb * 1000);
+ var memory = "";
+ if (gb > 0) {
+ memory += gb + (gb==1?" Gigabyte ":" Gigabytes ");
+ }
+ memory += mb + (mb==1?" Megabyte":" Megabytes");
+ return memory;
+ }
+
+ getUptime(uptime:number):string {
+ let time = this.getTime(uptime);
+ var result = "";
+ if (time.d > 0) {
+ result += time.d + (time.d>1?" Tage ":" Tag ");
+ }
+ if (time.d > 0 || time.h > 0) {
+ result += time.h + (time.h==1?" Stunde ":" Stunden ");
+ }
+ if (time.d > 0 || time.h > 0 || time.m > 0) {
+ result += time.m + (time.m==1?" Minute ":" Minuten ");
+ }
+ result += time.s + (time.s==1?" Sekunde":" Sekunden");
+ return result;
+ }
+
+ private getTime(ms:number): {d:number, h:number, m: number, s: number} {
+ var d, h, m, s;
+ s = Math.floor(ms / 1000);
+ m = Math.floor(s / 60);
+ s = s % 60;
+ h = Math.floor(m / 60);
+ m = m % 60;
+ d = Math.floor(h / 24);
+ h = h % 24;
+ return { d: d, h: h, m: m, s: s };
+ }
+
+
+}
+
+class EntityDataSource implements DataSource {
+
+ entities = new BehaviorSubject([]);
+
+ connect(collectionViewer: CollectionViewer): Observable {
+ return this.entities;
+ }
+ disconnect(collectionViewer: CollectionViewer): void {
+ // do nothing
+ }
+
+}
\ No newline at end of file
diff --git a/web/angular/src/app/views/manage-users.component.html b/web/angular/src/app/views/manage-users.component.html
new file mode 100644
index 0000000..c39c266
--- /dev/null
+++ b/web/angular/src/app/views/manage-users.component.html
@@ -0,0 +1,108 @@
+
+
+ people
+ Nutzer
+
+
+
+
+
+
+
+
+
+
+ ID
+ {{element.id}}
+
+
+
+ Typ
+
+
+ security
+
+
+ face
+
+
+
+
+
+ Kontonname
+ {{ element.login }}
+
+
+
+ Emailadresse
+ {{ getCorrespondence(element) }}
+
+
+
+ Nutzername
+ {{element.name}}
+
+
+
+ Registrierung
+ {{element.creationTime | date:'short' }}
+
+
+
+ Aktualisierung
+ {{element.modificationTime | date:'short' }}
+
+
+ Aktionen
+
+
+
+
+ undo
+
+
+
+
+ delete
+
+
+
+ face
+
+
+
+
+ security
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/manage-users.component.ts b/web/angular/src/app/views/manage-users.component.ts
new file mode 100644
index 0000000..cab9d6c
--- /dev/null
+++ b/web/angular/src/app/views/manage-users.component.ts
@@ -0,0 +1,118 @@
+import {Component, ViewChild, OnInit, OnDestroy} from '@angular/core';
+import {MatPaginator, MatTableDataSource, PageEvent, MatPaginatorIntl, MatDialog, MatSnackBar} from '@angular/material';
+import { DeviceService } from '../services/device.service';
+import { Device, DevicePage, User, UserPage } from '../../api/models';
+import { DataSource } from '@angular/cdk/table';
+import { Subscription, BehaviorSubject } from 'rxjs';
+import { PaginationHandler } from '../utils/pagination';
+import { ConfirmationDialogComponent, ConfirmationDialogResult } from '../widgets/confirmation-dialog.component';
+import { ApiClientService } from '../../api';
+import { Snackbars } from '../utils/snackbars';
+import { ManageUserService } from '../services/manage-user.service';
+import { FormErrorEncoder } from '../utils/formcodes';
+import { NgForm } from '@angular/forms';
+import { UserRole, UserService } from '../services/user.service';
+
+@Component({
+ selector: 'manage-users',
+ templateUrl: 'manage-users.component.html',
+ host: { class:'match-parent' }
+})
+export class ManageUsersComponent extends FormErrorEncoder implements OnInit, OnDestroy{
+
+ @ViewChild('searchForm') searchForm:NgForm;
+
+ displayedColumns = ['type', 'id', 'login', 'name', 'email', "creationTime", "modificationTime", "actions"];
+ dataSource: DataSource;
+ private pageHandler: PaginationHandler;
+ readonly loading:BehaviorSubject;
+ term: string;
+
+
+ @ViewChild(MatPaginator) paginator: MatPaginator;
+
+ constructor(
+ private apiClientService: ApiClientService,
+ private userService: UserService,
+ private manageUserService: ManageUserService,
+ private snackbar: MatSnackBar,
+ private dialog:MatDialog) {
+ super();
+ this.dataSource = manageUserService;
+ this.loading = manageUserService.loading;
+ this.term = manageUserService.getTerm();
+ }
+
+ ngOnInit() {
+ this.pageHandler = new PaginationHandler(this.paginator, this.manageUserService);
+ this.manageUserService.reload();
+ }
+
+ ngOnDestroy() {
+ this.pageHandler.destroy();
+ }
+
+ getCorrespondence(user: User):string {
+ for (let email of user.emails) {
+ if (email.correspondence) return email.address;
+ }
+ return null;
+ }
+
+ onSearch():void {
+ if (this.searchForm.invalid || this.loading.getValue()) return;
+ this.manageUserService.setTerm(this.term);
+ }
+
+ isAdmin(user: User):boolean {
+ for (let r of user.roles) {
+ if (r == UserRole.Admin) return true;
+ }
+ return false;
+ }
+
+ isSelf(user: User):boolean {
+ return user.id === this.userService.user.getValue().id;
+ }
+
+ onDelete(user: User):void {
+ if (this.loading.getValue()) return;
+ user.deleted = true;
+ this.updateUser(user);
+ }
+
+ onRestore(user: User):void {
+ if (this.loading.getValue()) return;
+ user.deleted = false;
+ this.updateUser(user);
+ }
+
+ makeAdmin(user: User):void {
+ if (this.loading.getValue()) return;
+ let i = user.roles.indexOf(UserRole.Admin);
+ if (i != -1) return;
+ user.roles.push(UserRole.Admin);
+ this.updateUser(user);
+ }
+
+ makeUser(user: User): void {
+ if (this.loading.getValue()) return;
+ let i = user.roles.indexOf(UserRole.Admin);
+ if (i == -1) return;
+ user.roles.splice(i, 1);
+ this.updateUser(user);
+ }
+
+
+ private updateUser(user:User) {
+ this.manageUserService.setUser(user).subscribe((result)=> {
+ if (result) {
+ Snackbars.showMessage(this.snackbar, "Die Kontoänderung wurde erfolgreich durchgeführt.", Snackbars.DURATION_SHORT);
+ } else {
+ Snackbars.showError(this.snackbar, "Die Kontoänderung konnte nicht durchgeführt werden.")
+ }
+ });
+
+ }
+
+}
\ No newline at end of file
diff --git a/web/angular/src/app/views/notices.component.html b/web/angular/src/app/views/notices.component.html
new file mode 100644
index 0000000..4990f4c
--- /dev/null
+++ b/web/angular/src/app/views/notices.component.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+ message
+ Neues
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/notices.component.ts b/web/angular/src/app/views/notices.component.ts
new file mode 100644
index 0000000..8a8d12e
--- /dev/null
+++ b/web/angular/src/app/views/notices.component.ts
@@ -0,0 +1,43 @@
+import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+import { LoginFieldComponent } from '../widgets/login-field.component';
+import { PasswordFieldComponent } from '../widgets/password-field.component';
+import { HttpStatusCode } from '../utils/httpcodes';
+import { MatSnackBar } from '@angular/material';
+import { NgForm } from '@angular/forms';
+import { Snackbars } from '../utils/snackbars';
+import { NoticeService } from '../services/notice.service';
+import { NoticePage, Notice } from '../../api/models';
+
+@Component({
+ selector: 'notices',
+ templateUrl: './notices.component.html',
+ host: { class: 'match-parent' },
+})
+export class NoticesComponent implements OnInit {
+
+ loading: BehaviorSubject = new BehaviorSubject(true);
+ page: BehaviorSubject;
+ language: string = "de";
+
+ constructor(private noticeService: NoticeService) {
+ this.page = noticeService.page;
+ this.loading = noticeService.loading;
+ }
+
+ ngOnInit() {
+ this.noticeService.reload();
+ }
+
+ canShow(notice: Notice, language: String) {
+ for (let m of notice.messages) {
+ if (m.language === language) return true;
+ }
+ console.dir(notice);
+ return false;
+ }
+
+}
diff --git a/web/angular/src/app/views/pages/login/login.component.html b/web/angular/src/app/views/pages/login/login.component.html
deleted file mode 100755
index 8efb671..0000000
--- a/web/angular/src/app/views/pages/login/login.component.html
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
-
-
-
-
-
Registrieren
-
Wenn du deine Statistiken oder die von dir besuchten Orte sehen möchtest registriere dich
-
Registrieren
-
-
-
-
-
-
-
-
diff --git a/web/angular/src/app/views/pages/login/login.component.ts b/web/angular/src/app/views/pages/login/login.component.ts
deleted file mode 100755
index 95cef65..0000000
--- a/web/angular/src/app/views/pages/login/login.component.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { Component, OnInit, ViewEncapsulation } from '@angular/core';
-import { ConsoleService } from '../../../console.service';
-import { AuthService, AuthState } from '../../../auth.service';
-import { BehaviorSubject } from 'rxjs/BehaviorSubject';
-import {User} from "../../../../api/models/user.model";
-import { Router } from '@angular/router';
-
-@Component({
- templateUrl: 'login.component.html'
-})
-export class LoginComponent implements OnInit {
- /**
- * This is dumb but since the template does not know AuthState, we cannot use it in html,
- * e.g. to select upon the enum's value in an ngSwitch directive. As a workaround, we can
- * define a field pointing to the enum. Thus, we can reference the enum through the field.
- * If we use the same name, it looks even somewhat ok in html.
- *
- * See https://www.gurustop.net/blog/2016/05/24/how-to-use-typescript-enum-with-angular2/
- */
- AuthState = AuthState;
-
- login: string;
- password: string;
-
- constructor(private consoleService: ConsoleService, private authService: AuthService, private router: Router) { }
-
- ngOnInit() {
- this.login = this.authService.getLogin();
- }
-
-
- getUser(): BehaviorSubject {
- return this.authService.user;
- }
-
- getAuthState(): BehaviorSubject {
- return this.authService.state;
- }
-
- getError(): BehaviorSubject {
- return this.authService.error;
- }
-
- requestLogin(): void {
- this.authService.setCredential(this.login, this.password);
- this.authService.requestLogin();
- }
-
- requestLogout(): void {
- this.authService.requestLogout();
- this.login = null;
- this.password = null;
- }
-
- registerButton() {
- this.router.navigate(['/pages/register']);
- }
-
- forgotPassword() {
- this.router.navigate(['/pages/reset']);
- }
-
- loginOnEnter($event: KeyboardEvent): void {
- if($event.keyCode===13){
- this.requestLogin();
- }
- }
-}
-
diff --git a/web/angular/src/app/views/pages/register/register.component.html b/web/angular/src/app/views/pages/register/register.component.html
deleted file mode 100755
index 4b7233c..0000000
--- a/web/angular/src/app/views/pages/register/register.component.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
diff --git a/web/angular/src/app/views/pages/register/register.component.ts b/web/angular/src/app/views/pages/register/register.component.ts
deleted file mode 100755
index 485ac66..0000000
--- a/web/angular/src/app/views/pages/register/register.component.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-import { Component } from '@angular/core';
-import {ConsoleService} from "../../../console.service";
-import {ApiClientService} from "../../../../api/index";
-import {UserRegistration} from "../../../../api/models/userregistration.model";
-import { Router } from '@angular/router';
-import { Subject } from 'rxjs/Subject';
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- templateUrl: 'register.component.html'
-})
-export class RegisterComponent {
-
- public loading: boolean = false;
- public isRegistered: boolean = false;
-
- name: string;
- email: string;
- login: string;
- password: string;
-
- error: Subject = new Subject();
-
- constructor(private consoleService: ConsoleService,
- private apiClientService:ApiClientService,
- private router: Router,
- private helperService:HelperService) { }
-
- ngOnInit() {
- }
-
- getError(): Subject {
- return this.error;
- }
-
- hasReload(): boolean {
- return (!this.loading);
- }
-
- registerUser(): void {
- this.loading = true;
- const user:UserRegistration = {
- name: this.name,
- email: this.email,
- login: this.login,
- password: this.password
- };
-
- this.consoleService.log("User registration with name" + user.name + " requested.");
- this.error.next(null);
-
- this.apiClientService.registerUser(user).subscribe(result => {
- this.consoleService.log("User registration received.");
- this.loading = false;
- this.isRegistered = true;
- this.router.navigate(['/pages/login']);
- return user;
- }, error => {
- this.consoleService.log("Error during register user.");
- this.helperService.handleError(error);
- this.loading = false;
- });
- }
-
- loginButton() {
- this.router.navigate(['/pages/login']);
- }
-}
diff --git a/web/angular/src/app/views/pages/reset-password-email/reset-password-email.component.html b/web/angular/src/app/views/pages/reset-password-email/reset-password-email.component.html
deleted file mode 100644
index d6e5a2e..0000000
--- a/web/angular/src/app/views/pages/reset-password-email/reset-password-email.component.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
diff --git a/web/angular/src/app/views/pages/reset-password-email/reset-password-email.component.ts b/web/angular/src/app/views/pages/reset-password-email/reset-password-email.component.ts
deleted file mode 100644
index 4825f6a..0000000
--- a/web/angular/src/app/views/pages/reset-password-email/reset-password-email.component.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import { Component } from '@angular/core';
-import {ConsoleService} from "../../../console.service";
-import {ApiClientService} from "../../../../api/index";
-import { Router } from '@angular/router';
-import { Subject } from 'rxjs/Subject';
-import {HttpErrorResponse} from "@angular/common/http";
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- templateUrl: 'reset-password-email.component.html'
-})
-export class ResetPasswordEmailComponent {
-
- public loading: boolean = false;
- login: string;
-
- error: Subject = new Subject();
-
- constructor(private consoleService: ConsoleService,
- private apiClientService:ApiClientService,
- private router: Router,
- private helperService:HelperService) { }
-
- ngOnInit() {
- }
-
- getError(): Subject {
- return this.error;
- }
-
- hasReload(): boolean {
- return (!this.loading);
- }
-
- resetPassword(): void {
- this.loading = true;
- this.consoleService.log("Password reset from User '" + this.login + "' requested.");
- this.error.next(null);
-
- const text:string = this.login;
-
- this.apiClientService.resetUser(text).subscribe(result => {
- this.consoleService.log("Password reset received.");
- this.loading = false;
- this.router.navigate(['/pages/login']);
- }, error => {
- this.consoleService.log("Error during reset password.");
- this.helperService.handleError(error);
- this.loading = false;
- });
- }
-
- backToLogin() {
- this.router.navigate(['/pages/login']);
- }
-}
diff --git a/web/angular/src/app/views/pages/reset-password/reset-password.component.html b/web/angular/src/app/views/pages/reset-password/reset-password.component.html
deleted file mode 100644
index 535079a..0000000
--- a/web/angular/src/app/views/pages/reset-password/reset-password.component.html
+++ /dev/null
@@ -1,52 +0,0 @@
-
diff --git a/web/angular/src/app/views/pages/reset-password/reset-password.component.ts b/web/angular/src/app/views/pages/reset-password/reset-password.component.ts
deleted file mode 100644
index 5f79956..0000000
--- a/web/angular/src/app/views/pages/reset-password/reset-password.component.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-import { Component } from '@angular/core';
-import {ConsoleService} from "../../../console.service";
-import {ApiClientService} from "../../../../api/index";
-import {Router, ActivatedRoute} from '@angular/router';
-import { Subject } from 'rxjs/Subject';
-import {UserPassword} from "../../../../api/models/userpassword.model";
-import { ToastService } from '../../../toast.service';
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- templateUrl: 'reset-password.component.html'
-})
-export class ResetPasswordComponent {
-
- public loading: boolean = false;
- token:string;
- password: string;
- passwordConfirm: string;
-
- error: Subject = new Subject();
-
- constructor(private consoleService: ConsoleService,
- private apiClientService:ApiClientService,
- private router: Router,
- private route: ActivatedRoute,
- private toastService: ToastService,
- private helperService:HelperService) { }
-
- ngOnInit() {
- // Fetch token from url
- this.token = this.route.snapshot.paramMap.get('token');
- }
-
- getError(): Subject {
- return this.error;
- }
-
- hasReload(): boolean {
- return (!this.loading);
- }
-
- resetPassword(): void {
- this.loading = true;
- this.toastService.showSuccess("Passwort zurücksetzen", "Bitte schaue in deine Emails");
- this.error.next(null);
- const userPassword: UserPassword = { password : this.password };
- this.apiClientService.resetUserPassword(this.token, userPassword).subscribe(result => {
- this.consoleService.log("Password reset received.");
- this.loading = false;
- this.router.navigate(['/pages/login']);
- }, error => {
- this.consoleService.log("Error during reset password.");
- this.helperService.handleError(error);
- this.loading = false;
- });
- }
-}
-
diff --git a/web/angular/src/app/views/pages/verify-email/verify-email.component.html b/web/angular/src/app/views/pages/verify-email/verify-email.component.html
deleted file mode 100755
index 0723d93..0000000
--- a/web/angular/src/app/views/pages/verify-email/verify-email.component.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
Herzlich willkommen bei Maptology!
-
-
Deine Email wurde erfolgreich verifiziert!
-
Sie werden in Kürze zum Login weitergeleitet...
-
-
-
-
-
403
-
Oops! Token nicht gültig.
-
{{errorMessage}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/web/angular/src/app/views/pages/verify-email/verify-email.component.scss b/web/angular/src/app/views/pages/verify-email/verify-email.component.scss
deleted file mode 100755
index e69de29..0000000
diff --git a/web/angular/src/app/views/pages/verify-email/verify-email.component.spec.ts b/web/angular/src/app/views/pages/verify-email/verify-email.component.spec.ts
deleted file mode 100755
index 342dfb0..0000000
--- a/web/angular/src/app/views/pages/verify-email/verify-email.component.spec.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { VerifyEmailComponent } from './verify-email.component';
-
-import { AuthService } from '../auth.service';
-import { ConsoleService } from '../console.service';
-import { ApiClientService } from '../../api/index';
-
-import { HttpClientModule } from '@angular/common/http';
-
-
-describe('VerifyEmailComponent', () => {
- let component: VerifyEmailComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [
- VerifyEmailComponent
- ],
- imports: [
- HttpClientModule
- ],
- providers: [
- AuthService,
- ConsoleService,
- ApiClientService
- ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(VerifyEmailComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/web/angular/src/app/views/pages/verify-email/verify-email.component.ts b/web/angular/src/app/views/pages/verify-email/verify-email.component.ts
deleted file mode 100755
index 554f650..0000000
--- a/web/angular/src/app/views/pages/verify-email/verify-email.component.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import { Component, OnInit, ViewEncapsulation } from '@angular/core';
-import {ActivatedRoute, Router} from "@angular/router";
-import {ConsoleService} from "../../../console.service";
-import {ApiClientService} from "../../../../api/index";
-import {HelperService} from "../../../Utils/helper.service";
-
-@Component({
- selector: 'app-verify-email',
- templateUrl: 'verify-email.component.html',
- styleUrls: ['verify-email.component.scss'],
- encapsulation: ViewEncapsulation.None
-})
-export class VerifyEmailComponent implements OnInit {
- token:string;
- public loading: boolean = false;
- errorMessage: string;
- verified:boolean = false;
-
- constructor(private consoleService: ConsoleService,
- private route: ActivatedRoute,
- private apiClientService:ApiClientService,
- private router: Router) { }
-
- ngOnInit() {
- // Fetch token from url
- this.token = this.route.snapshot.paramMap.get('token');
- this.verifyEmail();
- }
-
- verifyEmail() {
- this.loading = true;
- this.apiClientService.verifyUserEmail(this.token).subscribe(result => {
- this.consoleService.log("Email verification received.");
- this.verified = true;
- this.loading = false;
- setTimeout(() => {
- this.router.navigate(['/pages/login']);
- }, 3000);
- }, error => {
- this.consoleService.log(error);
- this.loading = false;
- this.verified = false;
- this.errorMessage = "Entweder ist der Token falsch eingegeben oder der Token ist nicht mehr gütlig";
- });
- }
-}
diff --git a/web/angular/src/app/views/place-visits.component.html b/web/angular/src/app/views/place-visits.component.html
new file mode 100644
index 0000000..6d2de0a
--- /dev/null
+++ b/web/angular/src/app/views/place-visits.component.html
@@ -0,0 +1,92 @@
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/place-visits.component.ts b/web/angular/src/app/views/place-visits.component.ts
new file mode 100644
index 0000000..12b72e5
--- /dev/null
+++ b/web/angular/src/app/views/place-visits.component.ts
@@ -0,0 +1,104 @@
+import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from "@angular/core";
+import { ApiClientService } from "../../api";
+import { MatDialog, MatSnackBar, MatPaginator } from "@angular/material";
+import { ActivatedRoute, Router } from "@angular/router";
+import { MessageDialogComponent } from "../widgets/message-dialog.component";
+import { HttpErrorResponse } from "@angular/common/http";
+import { HttpStatusCode } from "../utils/httpcodes";
+import { Subscription, BehaviorSubject } from "rxjs";
+import { Device, Location, Place, VisitPage, Visit } from "../../api/models";
+import { Snackbars } from "../utils/snackbars";
+import * as L from 'leaflet';
+import { TileMapComponent } from "../widgets/tile-map.component";
+import { MarkerMapComponent } from "../widgets/marker-map.component";
+import { PlaceVisitService } from "../services/place-visit.service";
+import { Page, PaginationHandler } from "../utils/pagination";
+import { ConfirmationDialogComponent } from "../widgets/confirmation-dialog.component";
+
+@Component({
+ selector: 'place-visits',
+ templateUrl: './place-visits.component.html',
+ host: { class:'match-parent' },
+ })
+ export class PlaceVisitsComponent implements OnInit, AfterViewInit, OnDestroy {
+
+ @ViewChild(MarkerMapComponent) map: MarkerMapComponent;
+ @ViewChild(MatPaginator) paginator: MatPaginator;
+
+ displayedColumns = [ 'device', 'start', 'end', 'actions'];
+
+ id: string;
+ readonly loading: BehaviorSubject;
+ readonly place: BehaviorSubject;
+ readonly page: BehaviorSubject;
+ readonly deleting = new BehaviorSubject(false);
+ private paginationHandler: PaginationHandler;
+ private placeSubscription: Subscription;
+
+
+ constructor(
+ private apiClientService: ApiClientService,
+ private snackbar: MatSnackBar,
+ private dialog: MatDialog,
+ protected placeService: PlaceVisitService,
+ private route: ActivatedRoute
+ ) {
+ this.loading = placeService.loading;
+ this.page = placeService.page;
+ this.place = placeService.place;
+ }
+
+ reloadPlace() {
+ this.placeService.setPlace(null);
+ this.placeService.setPlace(+this.id);
+ }
+
+ ngOnInit() {
+ this.id = this.route.snapshot.paramMap.get("id");
+ this.placeService.setPlace(+this.id);
+ this.paginationHandler = new PaginationHandler(this.paginator, this.placeService);
+ }
+
+ ngAfterViewInit() {
+ this.placeSubscription = this.place.subscribe((place)=> {
+ if (place) {
+ this.map.setPinPosition(place.coordinate);
+ } else {
+ this.map.setPinPosition(null);
+ }
+ });
+ }
+
+ ngOnDestroy() {
+ this.paginationHandler.destroy();
+ this.placeSubscription.unsubscribe();
+ }
+
+ onDelete(id:number):void {
+ ConfirmationDialogComponent.open(this.dialog, {
+ title:"Besuch löschen?",
+ message:"Möchtest Du den Besuch wirklich löschen? Diesen Vorgang kannst Du nicht mehr rückgängig machen.",
+ positive: "Ja",
+ negative: "Nein"
+ }).subscribe((result) => {
+ if (result != null && result.confirmed) {
+ this.doDelete(id);
+ }
+ });
+ }
+
+ private doDelete(id:number):void {
+ this.deleting.next(true);
+ this.apiClientService.deleteVisit(id).subscribe((result) => {
+ this.deleting.next(false);
+ this.placeService.reload();
+ Snackbars.showMessage(this.snackbar, "Der Besuch wurde erfolgreich gelöscht.", Snackbars.DURATION_SHORT);
+ }, (error) => {
+ this.deleting.next(false);
+ this.placeService.reload();
+ Snackbars.showError(this.snackbar, "Der Besuch konnte nicht gelöscht werden. Hast Du gerade kein Netz?");
+ })
+ }
+
+ }
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/places.component.html b/web/angular/src/app/views/places.component.html
new file mode 100644
index 0000000..9495f05
--- /dev/null
+++ b/web/angular/src/app/views/places.component.html
@@ -0,0 +1,62 @@
+
+
+ pie_chart_outlined
+ Orte
+
+
+
+
+
+
+
+ ID
+ {{element.id}}
+
+
+ Adresse
+ {{element.address}}
+
+
+ Name
+ {{element.nickname}}
+
+
+ Längengrad
+ {{element.coordinate.longitude | number:'1.5-5' }}
+
+
+ Breitengrad
+ {{element.coordinate.latitude | number:'1.5-5' }}
+
+
+ Erstellung
+ {{element.creationTime | date:'short' }}
+
+
+ Änderung
+ {{element.modificationTime | date:'short'}}
+
+
+ Aktionen
+
+
+ edit
+
+
+ beenhere
+
+
+ delete
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/places.component.ts b/web/angular/src/app/views/places.component.ts
new file mode 100644
index 0000000..b35e51a
--- /dev/null
+++ b/web/angular/src/app/views/places.component.ts
@@ -0,0 +1,87 @@
+import {Component, ViewChild, OnInit, OnDestroy} from '@angular/core';
+import {MatPaginator, MatTableDataSource, PageEvent, MatPaginatorIntl, MatDialog, MatSnackBar} from '@angular/material';
+import { Privilege, PrivilegePage, PlacePage, Place } from '../../api/models';
+import { DataSource } from '@angular/cdk/table';
+import { Subscription, BehaviorSubject } from 'rxjs';
+import { PaginationHandler } from '../utils/pagination';
+import { PlaceService } from '../services/place.service';
+import { NicknameDialogComponent } from '../widgets/nickname-dialog.component';
+import { ConfirmationDialogComponent } from '../widgets/confirmation-dialog.component';
+import { ApiClientService } from '../../api';
+import { Snackbars } from '../utils/snackbars';
+
+@Component({
+ selector: 'places',
+ templateUrl: 'places.component.html',
+ host: { class:'match-parent' }
+})
+export class PlacesComponent implements OnInit, OnDestroy{
+
+ displayedColumns = ['id', 'address', 'nickname', 'longitude', 'latitude', 'creationTime', "modificationTime", "actions"];
+ dataSource: DataSource;
+ loading: BehaviorSubject;
+ deleting = new BehaviorSubject(false);
+ private pageHandler: PaginationHandler;
+
+ @ViewChild(MatPaginator) paginator: MatPaginator;
+
+ constructor(
+ private apiClientService: ApiClientService,
+ private placeService: PlaceService,
+ private snackbar: MatSnackBar,
+ private dialog: MatDialog) {
+ this.dataSource = placeService;
+ this.loading = placeService.loading;
+ }
+
+ ngOnInit() {
+ this.pageHandler = new PaginationHandler(this.paginator, this.placeService);
+ this.placeService.reload();
+ }
+
+ ngOnDestroy() {
+ this.pageHandler.destroy();
+ }
+
+ onRename(id: number) {
+ if (this.loading.getValue()) return;
+ let p = this.placeService.page.getValue();
+ for (let place of p.elements) {
+ if (place.id === id) {
+ NicknameDialogComponent.open(this.dialog, place).subscribe((result)=>{
+ if (result) this.placeService.reload();
+ });
+ break;
+ }
+ }
+ }
+
+ onDelete(id:number):void {
+ ConfirmationDialogComponent.open(this.dialog, {
+ title:"Ort löschen?",
+ message:"Möchtest Du den Ort wirklich löschen? Dieser Vorgang löscht auch alle Besuche an diesem Ort und Du kannst ihn nicht mehr rückgängig machen.",
+ positive: "Ja",
+ negative: "Nein"
+ }).subscribe((result) => {
+ if (result != null && result.confirmed) {
+ this.doDelete(id);
+ }
+ });
+ }
+
+ private doDelete(id:number):void {
+ this.deleting.next(true);
+ this.apiClientService.deletePlace(id).subscribe((result) => {
+ this.deleting.next(false);
+ this.placeService.reload();
+ Snackbars.showMessage(this.snackbar, "Der Ort wurde erfolgreich gelöscht.", Snackbars.DURATION_SHORT);
+ }, (error) => {
+ this.deleting.next(false);
+ this.placeService.reload();
+ Snackbars.showError(this.snackbar, "Der Ort konnte nicht gelöscht werden. Hast Du gerade kein Netz?");
+ })
+ }
+
+
+
+}
\ No newline at end of file
diff --git a/web/angular/src/app/views/privileges.component.html b/web/angular/src/app/views/privileges.component.html
new file mode 100644
index 0000000..53a6466
--- /dev/null
+++ b/web/angular/src/app/views/privileges.component.html
@@ -0,0 +1,68 @@
+
+
+ share
+ Freigaben
+
+
+ add_circle_outline
+
+
+
+
+
+
+
+
+
+
+
+ ID
+ {{element.id}}
+
+
+
+ Schlüssel
+ {{element.token}}
+
+
+
+ Erstellung
+ {{element.creationTime | date:'short' }}
+
+
+
+ Nachricht
+ {{element.shareInfo.message}}
+
+
+
+ Ziel
+ {{element.shareInfo.destination}}
+
+
+
+ Ablauf
+ {{element.shareInfo.expirationTime | date:'short'}}
+
+
+
+ Aktionen
+
+
+ my_location
+
+
+ delete
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/privileges.component.ts b/web/angular/src/app/views/privileges.component.ts
new file mode 100644
index 0000000..f4b195f
--- /dev/null
+++ b/web/angular/src/app/views/privileges.component.ts
@@ -0,0 +1,103 @@
+import { Component, ViewChild, OnInit, OnDestroy } from '@angular/core';
+import { MatPaginator, MatTableDataSource, PageEvent, MatPaginatorIntl, MatDialog, MatSnackBar } from '@angular/material';
+import { PrivilegeService } from '../services/privilege.service';
+import { Privilege, PrivilegePage } from '../../api/models';
+import { DataSource } from '@angular/cdk/table';
+import { Subscription, BehaviorSubject } from 'rxjs';
+import { PaginationHandler } from '../utils/pagination';
+import { ShareDialogComponent } from '../widgets/share-dialog.component';
+import { ConfirmationDialogComponent } from '../widgets/confirmation-dialog.component';
+import { ApiClientService } from '../../api';
+import { Snackbars } from '../utils/snackbars';
+import { ActivatedRoute, Route, Router } from '@angular/router';
+
+@Component({
+ selector: 'privileges',
+ templateUrl: 'privileges.component.html',
+ host: { class: 'match-parent' }
+})
+export class PrivilegesComponent implements OnInit, OnDestroy {
+
+ displayedColumns = ['id', 'token', 'creationTime', 'message', 'destination', "expirationTime", "actions"];
+ dataSource: DataSource;
+ private pageHandler: PaginationHandler;
+ readonly deleting = new BehaviorSubject(false);
+ readonly loading:BehaviorSubject;
+
+ private addSubscription: Subscription;
+
+ @ViewChild(MatPaginator) paginator: MatPaginator;
+
+ constructor(
+ private apiClientService: ApiClientService,
+ private privilegeService: PrivilegeService,
+ private router: Router,
+ private activatedRoute: ActivatedRoute,
+ private snackbar: MatSnackBar,
+ private dialog: MatDialog
+ ) {
+ this.loading = privilegeService.loading;
+ this.dataSource = privilegeService;
+ }
+
+ ngOnInit() {
+ console.log("init");
+ let token = this.activatedRoute.snapshot.paramMap.get("add");
+ this.pageHandler = new PaginationHandler(this.paginator, this.privilegeService);
+ this.privilegeService.reload();
+ if (token != null) {
+ this.router.navigate(["/privileges"], { replaceUrl: true });
+ this.addSubscription = this.privilegeService.loading.subscribe((value)=> {
+ if (!value) {
+ this.onAdd(token);
+ this.addSubscription.unsubscribe();
+ this.addSubscription = null;
+ }
+ });
+ }
+
+ }
+
+ ngOnDestroy() {
+ this.pageHandler.destroy();
+ if (this.addSubscription) this.addSubscription.unsubscribe();
+ }
+
+ onAdd(link?:string): void {
+ ShareDialogComponent.open(this.dialog, link).subscribe((result) => {
+ if (result) {
+ this.privilegeService.reload();
+ }
+ })
+ }
+
+ onDelete(id: number): void {
+ if (this.loading.getValue() || this.deleting.getValue()) return;
+ ConfirmationDialogComponent.open(this.dialog, {
+ title: "Freigabe löschen?",
+ message: "Möchtest Du die Freigabe wirklich löschen? Diesen Vorgang kannst Du nicht mehr rückgängig machen.",
+ positive: "Ja",
+ negative: "Nein"
+ }).subscribe((result) => {
+ if (result != null && result.confirmed) {
+ this.doDelete(id);
+ }
+ });
+ }
+
+ private doDelete(id: number) {
+ this.deleting.next(true);
+ this.apiClientService.deletePrivilege(id).subscribe((result) => {
+ this.deleting.next(false);
+ this.privilegeService.reload();
+ Snackbars.showMessage(this.snackbar, "Die Freigabe wurde erfolgreich gelöscht.", Snackbars.DURATION_SHORT);
+ }, (error) => {
+ this.deleting.next(false);
+ this.privilegeService.reload();
+ Snackbars.showError(this.snackbar, "Die Freigabe konnte nicht gelöscht werden. Hast Du gerade kein Netz?");
+ })
+ }
+
+
+
+}
\ No newline at end of file
diff --git a/web/angular/src/app/views/register.component.html b/web/angular/src/app/views/register.component.html
new file mode 100644
index 0000000..20f3d36
--- /dev/null
+++ b/web/angular/src/app/views/register.component.html
@@ -0,0 +1,27 @@
+
+
+
+ Registrieren
+ Gib Deine Daten ein und lege ein neues Konto an.
+
+
+
+
+
+
+
+ mode_edit
+ Registrieren
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/register.component.ts b/web/angular/src/app/views/register.component.ts
new file mode 100644
index 0000000..6e2ea29
--- /dev/null
+++ b/web/angular/src/app/views/register.component.ts
@@ -0,0 +1,88 @@
+import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+import { LoginFieldComponent } from '../widgets/login-field.component';
+import { PasswordFieldComponent } from '../widgets/password-field.component';
+import { HttpStatusCode } from '../utils/httpcodes';
+import { MatSnackBar, MatDialog } from '@angular/material';
+import { NgForm } from '@angular/forms';
+import { NameFieldComponent } from '../widgets/name-field.component';
+import { EmailFieldComponent } from '../widgets/email-field.component';
+import { UserRegistration } from '../../api/models';
+import { ApiClientService} from '../../api/index';
+import { HttpErrorResponse } from '@angular/common/http';
+import { Snackbars } from '../utils/snackbars';
+import { MessageDialogComponent } from '../widgets/message-dialog.component';
+
+@Component({
+ selector: 'register',
+ templateUrl: './register.component.html',
+ host: { class:'match-parent' },
+})
+export class RegisterComponent implements OnDestroy {
+
+ @ViewChild(LoginFieldComponent) loginField: LoginFieldComponent;
+ @ViewChild(PasswordFieldComponent) passwordField: PasswordFieldComponent;
+ @ViewChild(NameFieldComponent) nameField: NameFieldComponent;
+ @ViewChild(EmailFieldComponent) emailField: EmailFieldComponent;
+ @ViewChild("registerForm") registerForm: NgForm;
+
+ readonly idle = new BehaviorSubject(true);
+
+ registration: UserRegistration = { login:"", name:"", email:"", password:"" }
+
+ private registrationSubscription: Subscription;
+
+ constructor(private apiClientService:ApiClientService, private snackbar: MatSnackBar, private router: Router, private dialog: MatDialog) { }
+
+ onRegister():void {
+ this.snackbar.dismiss();
+ if (!this.idle || !this.registerForm.valid) return;
+ this.setIdle(false);
+ this.registration = {
+ login:this.loginField.login,
+ name:this.nameField.name,
+ password:this.passwordField.password,
+ email:this.emailField.email
+ }
+ this.registrationSubscription = this.apiClientService.registerUser(this.registration).subscribe((response)=>{
+ this.setIdle(true);
+ MessageDialogComponent.open(this.dialog, { title: "Einrichtung erfolgreich", message: "Das Konto wurde eingerichtet. Bevor Du Dein Konto nutzen kannst, musst Du es aktivieren. Wir haben Dir eine Email mit einem Aktivierungslink zugeschickt. Bitte sieh in Deinem Postfach nach. Falls die Email lange nicht ankommt, schau auch mal in Deinen Spamordner!", button: "Verstanden" }).subscribe((e) => {
+ this.router.navigate(["/"]);
+ });
+ this.registrationSubscription = null;
+ }, (error)=>{
+ this.registrationSubscription = null;
+ if (error instanceof HttpErrorResponse) {
+ var message = "";
+ switch (error.status) {
+ case HttpStatusCode.CONFLICT:
+ message = "Der Kontoname ist bereits vergeben. Such Dir bitte einen anderen aus.";
+ break;
+ default:
+ message = "Fehler bei der Registrierung (" + error.status + "). Hast du gerade kein Netz?";
+ break;
+ }
+ this.setIdle(true);
+ Snackbars.showError(this.snackbar, message);
+ }
+ });
+ }
+
+ private setIdle(idle: boolean):void {
+ this.loginField.disabled = !idle;
+ this.emailField.disabled = !idle;
+ this.passwordField.disabled = !idle;
+ this.nameField.disabled = !idle;
+ this.idle.next(idle);
+ }
+
+ ngOnDestroy():void {
+ if (this.registrationSubscription) this.registrationSubscription.unsubscribe();
+ this.snackbar.dismiss();
+ }
+
+
+}
diff --git a/web/angular/src/app/views/reset.component.html b/web/angular/src/app/views/reset.component.html
new file mode 100644
index 0000000..d936555
--- /dev/null
+++ b/web/angular/src/app/views/reset.component.html
@@ -0,0 +1,24 @@
+
+
+
+ Passwort zurücksetzen
+ Gib Deinen Kontonamen an um Dein Passwort zurückzusetzen.
+
+
+
+
+
+
+
+ lock_open
+ Zurücksetzen
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/reset.component.ts b/web/angular/src/app/views/reset.component.ts
new file mode 100644
index 0000000..7ef848a
--- /dev/null
+++ b/web/angular/src/app/views/reset.component.ts
@@ -0,0 +1,72 @@
+import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+import { LoginFieldComponent } from '../widgets/login-field.component';
+import { PasswordFieldComponent } from '../widgets/password-field.component';
+import { HttpStatusCode } from '../utils/httpcodes';
+import { MatSnackBar, MatDialog } from '@angular/material';
+import { NgForm } from '@angular/forms';
+import { Snackbars } from '../utils/snackbars';
+import { ApiClientService } from '../../api';
+import { HttpErrorResponse } from '@angular/common/http';
+import { MessageDialogComponent } from '../widgets/message-dialog.component';
+
+@Component({
+ selector: 'reset',
+ templateUrl: './reset.component.html',
+ host: { class: 'match-parent' },
+})
+export class ResetComponent implements OnInit, OnDestroy {
+
+ @ViewChild(LoginFieldComponent) loginField: LoginFieldComponent;
+ @ViewChild("resetForm") resetForm: NgForm;
+
+ readonly idle = new BehaviorSubject(true);
+
+ private resetSubscription: Subscription;
+
+ login: string;
+
+ constructor(private userService: UserService, private apiClientService: ApiClientService, private snackbar: MatSnackBar, private dialog: MatDialog, private router: Router) { }
+
+ ngOnInit(): void {
+ this.login = this.userService.getLogin();
+ }
+
+ onReset(): void {
+ this.snackbar.dismiss();
+ if (!this.idle || !this.resetForm.valid) return;
+ this.setIdle(false);
+ this.resetSubscription = this.apiClientService.resetUser(this.loginField.login).subscribe((result) => {
+ this.setIdle(true);
+ MessageDialogComponent.open(this.dialog, { title: "Passwort zurückgesetzt", message: "Wir haben Dir einen Link an Deine Kontaktemailadresse versandt, mit dem Du Dein Passwort ändern kannst. Falls Dir Dein Passwort wieder einfällt, kannst Du die Email einfach löschen.", button: "Verstanden" }).subscribe((close) => {
+ this.router.navigate(["/"]);
+ });
+ }, (error) => {
+ this.setIdle(true);
+ if (error instanceof HttpErrorResponse) {
+ if (error.status === HttpStatusCode.NOT_FOUND) {
+ Snackbars.showError(this.snackbar, "Konto nicht gefunden. Bitte prüfe Deinen Kontonamen und versuchs nochmal.");
+ } else {
+ Snackbars.showError(this.snackbar, "Fehler beim Zurücksetzen (" + error.status + "). Hast Du gerade kein Netz?");
+ }
+ } else {
+ Snackbars.showError(this.snackbar, "Fehler beim Zurücksetzen. Hast Du gerade kein Netz?");
+ }
+ });
+ }
+
+ private setIdle(value: boolean) {
+ this.loginField.disabled = !value;
+ this.idle.next(value);
+ }
+
+ ngOnDestroy(): void {
+ this.snackbar.dismiss();
+ if (this.resetSubscription) this.resetSubscription.unsubscribe();
+ }
+
+
+}
diff --git a/web/angular/src/app/views/share.component.html b/web/angular/src/app/views/share.component.html
new file mode 100644
index 0000000..bf80b20
--- /dev/null
+++ b/web/angular/src/app/views/share.component.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+ share Freigabe
+
+
+ Token
+ {{ token }}
+
+
+
+
+ Nachricht
+ {{ in.message }}
+
+
+
+
+ Ziel
+ {{ in.destination }}
+
+
+
+ Ablauf
+ {{ in.expirationTime | date:'short' }}
+
+
+
+
+
+ update
+ Aktualisieren
+
+
+
+
+
+
+
+
+
+
+ my_location Standort
+
+
+
+ Zeit
+ {{ l.timestamp | date:'short' }}
+
+
+ Status
+ {{ l.availability }}
+
+
+
+ Längengrad
+ {{ l.coordinate.longitude }}
+
+
+ Breitengrad
+ {{ l.coordinate.latitude }}
+
+
+
+
+
+
+ update
+ Aktualisieren
+
+
+
+
+
+
+
+
+
+
+ save
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/share.component.ts b/web/angular/src/app/views/share.component.ts
new file mode 100644
index 0000000..2b96ca8
--- /dev/null
+++ b/web/angular/src/app/views/share.component.ts
@@ -0,0 +1,97 @@
+import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from "@angular/core";
+import { ApiClientService } from "../../api";
+import { MatDialog, MatSnackBar } from "@angular/material";
+import { ActivatedRoute, Router } from "@angular/router";
+import { MessageDialogComponent } from "../widgets/message-dialog.component";
+import { HttpErrorResponse } from "@angular/common/http";
+import { HttpStatusCode } from "../utils/httpcodes";
+import { Subscription, BehaviorSubject } from "rxjs";
+import { Device, Location, ShareInfo } from "../../api/models";
+import { Snackbars } from "../utils/snackbars";
+import * as L from 'leaflet';
+import { TileMapComponent } from "../widgets/tile-map.component";
+import { MarkerMapComponent } from "../widgets/marker-map.component";
+
+@Component({
+ selector: 'share',
+ templateUrl: './share.component.html',
+ host: { class:'match-parent' },
+ })
+ export class ShareComponent implements AfterViewInit, OnDestroy {
+
+ @ViewChild(MarkerMapComponent) map: MarkerMapComponent;
+
+ token: string;
+
+ info = new BehaviorSubject(null);
+ location = new BehaviorSubject(null);
+
+ private infoSubscription: Subscription;
+ private locationSubscription: Subscription;
+
+ constructor(
+ private snackbar: MatSnackBar,
+ private apiClientService: ApiClientService,
+ private router: Router,
+ private route: ActivatedRoute
+ ) { }
+
+ ngOnInit() {
+ this.token = this.route.snapshot.paramMap.get("token");
+ this.updateInfo();
+ }
+
+ ngAfterViewInit() {
+ }
+
+ isUpdatingInfo():boolean {
+ return this.infoSubscription != null;
+ }
+
+ isUpdatingLocation():boolean {
+ return this.infoSubscription != null || this.locationSubscription != null;
+ }
+
+ isOutside():boolean {
+ if (this.route.parent != null) {
+ return this.route.parent.snapshot.url[0].path != "privileges";
+ }
+ return false;
+ }
+
+ addShare():void {
+ this.router.navigate(["/privileges", { add: this.token}]);
+ }
+
+ updateInfo():void {
+ if (this.infoSubscription) return;
+ this.infoSubscription = this.apiClientService.getShareInfo(this.token).subscribe((result)=>{
+ this.info.next(result.body);
+ this.infoSubscription = null;
+ this.updateLocation();
+ }, (error)=>{
+ Snackbars.showError(this.snackbar, "Die Freigabe konnte nicht abgerufen werden.");
+ this.infoSubscription = null;
+ });
+ }
+
+ updateLocation():void {
+ if (this.locationSubscription) return;
+ this.locationSubscription = this.apiClientService.getShareLocation(this.token).subscribe((result)=>{
+ this.location.next(result.body);
+ this.map.setMarkerPosition(result.body.coordinate);
+ this.locationSubscription = null;
+ }, (error)=>{
+ Snackbars.showError(this.snackbar, "Der Standort konte nicht abgerufen werden.");
+ this.map.setMarkerPosition(null);
+ this.locationSubscription = null;
+ });
+ }
+
+ ngOnDestroy() {
+ if (this.locationSubscription) this.locationSubscription.unsubscribe();
+ if (this.infoSubscription) this.infoSubscription.unsubscribe();
+ }
+
+ }
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/user.component.html b/web/angular/src/app/views/user.component.html
new file mode 100644
index 0000000..8f40792
--- /dev/null
+++ b/web/angular/src/app/views/user.component.html
@@ -0,0 +1,93 @@
+
+
+
+ perm_identity
+ Konto
+
+
+
+
+ Informationen ändern
+ Hier kannst Du Deine Kontaktinformationen ändern.
+
+
+
+
+
+
+ save
+ Speichern
+
+
+
+
+ Passwort ändern
+ Hier kannst Du Dein Passwort ändern.
+
+
+
+
+
+ lock_outline
+ Ändern
+
+
+
+
+
+
+ Emailadresse hinzufügen
+ Hier kannst Du eine neue Emailadresse registrieren.
+
+
+
+
+
+ add
+ Hinzufügen
+
+
+
+
+ Emailadresse löschen
+ Hier kannst Du ungenutze Emailadressen löschen.
+
+
+
+
+ delete {{ e.address }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/views/user.component.ts b/web/angular/src/app/views/user.component.ts
new file mode 100644
index 0000000..6fc9150
--- /dev/null
+++ b/web/angular/src/app/views/user.component.ts
@@ -0,0 +1,121 @@
+import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+import { LoginFieldComponent } from '../widgets/login-field.component';
+import { PasswordFieldComponent } from '../widgets/password-field.component';
+import { HttpStatusCode } from '../utils/httpcodes';
+import { MatSnackBar, MatDialog, MatSelect, MatOption } from '@angular/material';
+import { NgForm } from '@angular/forms';
+import { Snackbars } from '../utils/snackbars';
+import { User, Email } from '../../api/models';
+import { NameFieldComponent } from '../widgets/name-field.component';
+import { EmailFieldComponent } from '../widgets/email-field.component';
+import { Observable } from 'rxjs';
+import { MessageDialogComponent } from '../widgets/message-dialog.component';
+
+@Component({
+ selector: 'user',
+ templateUrl: './user.component.html',
+ host: { class:'match-parent' },
+})
+export class UserComponent implements OnInit, OnDestroy {
+
+ @ViewChild(NameFieldComponent) nameField: NameFieldComponent;
+ @ViewChild(MatSelect) emailSelect: MatSelect;
+
+ // add email
+ @ViewChild(EmailFieldComponent) emailField: EmailFieldComponent;
+
+ // change passwords
+ @ViewChild("oldPassword") oldPasswordField: PasswordFieldComponent;
+ @ViewChild("newPassword") newPasswordField: PasswordFieldComponent;
+
+ readonly idle = new BehaviorSubject(true);
+
+ correspondence: Email;
+ emails: Email[] = [];
+
+ user: BehaviorSubject;
+ private userSubscription: Subscription;
+
+ constructor(private userService: UserService, private snackbar: MatSnackBar, private dialog: MatDialog, private router: Router) {
+ this.user = userService.user;
+ }
+
+ ngOnInit(): void {
+ this.userSubscription = this.userService.user.subscribe((user)=>{
+ this.idle.next(user != null);
+ this.correspondence = this.getCorrespondence();
+ this.emails = this.getEmails();
+ });
+ }
+
+ ngOnDestroy():void {
+ this.userSubscription.unsubscribe();
+ }
+
+ private getEmails():Email[] {
+ if (this.user.getValue() == null) return [];
+ return this.user.getValue().emails.sort((a, b)=>{
+ return a.address.localeCompare(b.address);
+ });
+ }
+
+ private getCorrespondence():Email {
+ if (this.user.getValue() == null) return null;
+ for (let email of this.user.getValue().emails) {
+ if (email.correspondence) return email;
+ }
+ return null;
+ }
+
+ onAddEmail() {
+ if (this.user.getValue() == null) return;
+ let u = this.user.getValue();
+ let email = this.emailField.email;
+ for (var i = 0, s = u.emails.length; i < s; i++) {
+ if (u.emails[i].address === email) {
+ Snackbars.showError(this.snackbar, "Die Emailadresse ist bereits registriert.", Snackbars.DURATION_SHORT);
+ this.emailField.email = "";
+ return;
+ }
+ }
+ u.emails.push({address:email, id:0, correspondence: false, creationTime: 0, modificationTime: 0, deleted: false, verified: false});
+ this.userService.changeUser(u);
+ }
+
+ onChangePassword() {
+ if (this.user.getValue() == null) return;
+ if (!this.userService.changePassword(this.oldPasswordField.password, this.newPasswordField.password)) {
+ this.oldPasswordField.password = "";
+ this.newPasswordField.password = "";
+ MessageDialogComponent.open(this.dialog, {title:"Passwort falsch", message: "Dein derzeitiges Passwort stimmt nicht mit Deiner Eingabe überein. Bitte prüfe deine Eingabe und versuchs nochmal."});
+ }
+ }
+
+ onChangeUser() {
+ if (this.user.getValue() == null) return;
+ let u = this.user.getValue();
+ u.name = this.nameField.name;
+ let id = this.correspondence.id;
+ for (var i = 0, s = u.emails.length; i < s; i++) {
+ u.emails[i].correspondence = (u.emails[i].id === id);
+ }
+ this.userService.changeUser(u);
+ }
+
+ onDeleteEmail(id:number) {
+ if (this.user.getValue() == null) return;
+ let u = this.user.getValue();
+ for (var i = 0, s = u.emails.length; i < s; i++) {
+ if (u.emails[i].id === id) {
+ u.emails[i].deleted = true;
+ this.userService.changeUser(u);
+ return;
+ }
+ }
+ }
+
+}
diff --git a/web/angular/src/app/widgets/confirmation-dialog.component.html b/web/angular/src/app/widgets/confirmation-dialog.component.html
new file mode 100644
index 0000000..6b14841
--- /dev/null
+++ b/web/angular/src/app/widgets/confirmation-dialog.component.html
@@ -0,0 +1,14 @@
+
+ warning {{title}}
+ {{message}}
+
+
+ done
+ {{positive}}
+
+
+ close
+ {{negative}}
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/confirmation-dialog.component.ts b/web/angular/src/app/widgets/confirmation-dialog.component.ts
new file mode 100644
index 0000000..f88ffd6
--- /dev/null
+++ b/web/angular/src/app/widgets/confirmation-dialog.component.ts
@@ -0,0 +1,55 @@
+import { Component, Inject } from "@angular/core";
+import { MatDialogRef, MAT_DIALOG_DATA, MatDialog } from "@angular/material";
+import { Observable } from 'rxjs';
+
+export interface ConfirmationDialogData {
+ title:string;
+ message:string;
+ positive?:string;
+ negative?:string;
+}
+
+export interface ConfirmationDialogResult {
+ confirmed:boolean;
+}
+
+
+@Component({
+ selector: 'confirmation-dialog',
+ templateUrl: 'confirmation-dialog.component.html',
+ })
+ export class ConfirmationDialogComponent {
+
+ title: String;
+ message: String;
+ positive: String;
+ negative: String;
+
+ constructor(public dialog: MatDialogRef,
+ @Inject(MAT_DIALOG_DATA) public data: ConfirmationDialogData) {
+ this.title = data.title;
+ this.message = data.message;
+ this.positive = data.positive;
+ this.negative = data.negative;
+ if (!this.positive) this.positive = "OK";
+ if (!this.negative) this.negative = "Abbrechen";
+ }
+
+ onClose(): void {
+ this.dialog.close({ confirmed: false});
+ }
+
+ onAccept(): void {
+ this.dialog.close({confirmed: true});
+ }
+
+ public static open(dialog: MatDialog, d: ConfirmationDialogData, w?:string):Observable {
+ if (w == null) w = "450px";
+ let ref = dialog.open(ConfirmationDialogComponent, {
+ width: w,
+ data: d
+ });
+ return ref.afterClosed();
+ }
+
+ }
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/email-field.component.html b/web/angular/src/app/widgets/email-field.component.html
new file mode 100644
index 0000000..cc220af
--- /dev/null
+++ b/web/angular/src/app/widgets/email-field.component.html
@@ -0,0 +1,10 @@
+
+
+ {{emailField.value?.length || 0}}/90
+
+
+ Deine Emailadresse ist erforderlich.
+ Deine Emailadresse ist ungültig.
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/email-field.component.ts b/web/angular/src/app/widgets/email-field.component.ts
new file mode 100644
index 0000000..85579dd
--- /dev/null
+++ b/web/angular/src/app/widgets/email-field.component.ts
@@ -0,0 +1,26 @@
+import { Component, OnInit, OnDestroy, Input } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+
+/**
+ * A validated field that enables a user to enter the
+ * email. The email will be available through the
+ * components name which also acts as an input.
+ */
+@Component({
+ selector: 'email-field',
+ templateUrl: './email-field.component.html'
+})
+export class EmailFieldComponent extends FormErrorEncoder {
+
+ /**
+ * The email address.
+ */
+ @Input() email:string;
+ /**
+ * Disables the field.
+ */
+ @Input() disabled:boolean;
+}
diff --git a/web/angular/src/app/widgets/language-select.component.html b/web/angular/src/app/widgets/language-select.component.html
new file mode 100644
index 0000000..b869d8e
--- /dev/null
+++ b/web/angular/src/app/widgets/language-select.component.html
@@ -0,0 +1,10 @@
+
diff --git a/web/angular/src/app/widgets/language-select.component.ts b/web/angular/src/app/widgets/language-select.component.ts
new file mode 100644
index 0000000..96a17b4
--- /dev/null
+++ b/web/angular/src/app/widgets/language-select.component.ts
@@ -0,0 +1,15 @@
+import { Language, Languages } from "../utils/languages";
+import { Input, Component, Output, EventEmitter } from "@angular/core";
+
+@Component({
+ selector: 'language-select',
+ templateUrl: 'language-select.component.html',
+ })
+export class LanguageSelectComponent {
+
+ @Input() languages: Language[] = Languages.getLanguages();
+
+ @Input() value: string = "de";
+
+ @Output() change: EventEmitter = new EventEmitter();
+}
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/log-dialog.component.html b/web/angular/src/app/widgets/log-dialog.component.html
new file mode 100644
index 0000000..1afcbd5
--- /dev/null
+++ b/web/angular/src/app/widgets/log-dialog.component.html
@@ -0,0 +1,49 @@
+
+ subject Logeintrag
+
+
+ ID
+ {{ message.id }}
+
+
+ Thread
+ {{ message.thread }}
+
+
+ Zeit
+ {{ message.time | date:'shortDate' }} {{ message.time | date:'H:mm:ss.SSS' }}
+
+
+ Level
+ {{ message.level }}
+
+
+ Logger
+ {{ message.loggerName }}
+
+
+ Class
+ {{ message.className }}
+
+
+ Method
+ {{ message.methodName }}
+
+
+
+ Message
+ {{ message.message }}
+
+
+ Trace
+ {{ message.trace }}
+
+
+
+
+
+ done
+ Schließen
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/log-dialog.component.ts b/web/angular/src/app/widgets/log-dialog.component.ts
new file mode 100644
index 0000000..05341c5
--- /dev/null
+++ b/web/angular/src/app/widgets/log-dialog.component.ts
@@ -0,0 +1,31 @@
+import { Component, Inject } from "@angular/core";
+import { MatDialogRef, MAT_DIALOG_DATA, MatDialog } from "@angular/material";
+import { Observable } from 'rxjs';
+import { LogMessage } from "../../api/models";
+
+@Component({
+ selector: 'log-dialog',
+ templateUrl: 'log-dialog.component.html',
+ })
+ export class LogDialogComponent {
+
+ message: LogMessage;
+
+ constructor(public dialog: MatDialogRef,
+ @Inject(MAT_DIALOG_DATA) public data: LogMessage) {
+ this.message = data;
+ }
+
+ onClose(): void {
+ this.dialog.close();
+ }
+
+ public static open(dialog: MatDialog, d: LogMessage, w?:string):Observable {
+ let ref = dialog.open(LogDialogComponent, {
+ width: w,
+ data: d
+ });
+ return ref.afterClosed();
+ }
+
+ }
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/login-field.component.html b/web/angular/src/app/widgets/login-field.component.html
new file mode 100644
index 0000000..96a3771
--- /dev/null
+++ b/web/angular/src/app/widgets/login-field.component.html
@@ -0,0 +1,11 @@
+
+
+ {{loginField.value?.length || 0}}/32
+
+
+ Der Kontoname ist erforderlich.
+ Der Kontoname enthält ein ungültiges Zeichen.
+ Der Kontoname ist zu kurz.
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/login-field.component.ts b/web/angular/src/app/widgets/login-field.component.ts
new file mode 100644
index 0000000..6b91266
--- /dev/null
+++ b/web/angular/src/app/widgets/login-field.component.ts
@@ -0,0 +1,26 @@
+import { Component, OnInit, OnDestroy, Input } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+
+/**
+ * A validated field that enables a user to enter the
+ * login name. The name will be available through the
+ * components login which also acts as an input.
+ */
+@Component({
+ selector: 'login-field',
+ templateUrl: './login-field.component.html'
+})
+export class LoginFieldComponent extends FormErrorEncoder {
+
+ /**
+ * The login name
+ */
+ @Input() login:string;
+ /**
+ * Disables the field.
+ */
+ @Input() disabled:boolean;
+}
diff --git a/web/angular/src/app/widgets/marker-map.component.html b/web/angular/src/app/widgets/marker-map.component.html
new file mode 100644
index 0000000..069b3f6
--- /dev/null
+++ b/web/angular/src/app/widgets/marker-map.component.html
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/marker-map.component.ts b/web/angular/src/app/widgets/marker-map.component.ts
new file mode 100644
index 0000000..bbf22ea
--- /dev/null
+++ b/web/angular/src/app/widgets/marker-map.component.ts
@@ -0,0 +1,72 @@
+import { Component, OnInit, OnDestroy, ViewChild, AfterContentInit, AfterViewInit } from "@angular/core";
+import { ApiClientService } from "../../api";
+import { MatDialog, MatSnackBar } from "@angular/material";
+import { ActivatedRoute, Router } from "@angular/router";
+import { MessageDialogComponent } from "../widgets/message-dialog.component";
+import { HttpErrorResponse } from "@angular/common/http";
+import { HttpStatusCode } from "../utils/httpcodes";
+import { Subscription, BehaviorSubject } from "rxjs";
+import { Device, Location } from "../../api/models";
+import { Snackbars } from "../utils/snackbars";
+import * as L from 'leaflet';
+import { TileMapComponent } from "../widgets/tile-map.component";
+
+@Component({
+ selector: 'marker-map',
+ templateUrl: './marker-map.component.html',
+ host: { class: 'match-parent' },
+})
+export class MarkerMapComponent implements AfterViewInit {
+
+ @ViewChild(TileMapComponent) map: TileMapComponent;
+
+ private marker: L.Marker;
+ private markerPosition: { latitude: number, longitude: number };
+ private pin: L.Marker;
+ private pinPosition: { latitude: number, longitude: number};
+
+ constructor() { }
+
+ ngAfterViewInit() {
+ this.marker = new L.Marker(new L.LatLng(0, 0), { icon: this.map.iconNormal });
+ this.updateMarker();
+ this.pin = new L.Marker(new L.LatLng(0, 0), { icon: this.map.iconPin });
+ this.updatePin();
+ }
+
+ setMarkerPosition(position: { latitude: number, longitude: number }) {
+ this.markerPosition = position;
+ this.updateMarker();
+ }
+
+ private updateMarker() {
+ if (!this.marker) return;
+ if (this.markerPosition == null) {
+ this.marker.remove();
+ } else {
+ let c = new L.LatLng(this.markerPosition.latitude, this.markerPosition.longitude);
+ this.marker.setLatLng(c);
+ this.marker.addTo(this.map.map);
+ this.map.map.setView(c, 15);
+ }
+ }
+
+ setPinPosition(position: { latitude: number, longitude: number }) {
+ this.pinPosition = position;
+ this.updatePin();
+ }
+
+ private updatePin() {
+ if (!this.pin) return;
+ if (this.pinPosition == null) {
+ this.pin.remove();
+ } else {
+ let c = new L.LatLng(this.pinPosition.latitude, this.pinPosition.longitude);
+ this.pin.setLatLng(c);
+ this.pin.addTo(this.map.map);
+ this.map.map.setView(c, 15);
+ }
+ }
+
+
+}
diff --git a/web/angular/src/app/widgets/message-dialog.component.html b/web/angular/src/app/widgets/message-dialog.component.html
new file mode 100644
index 0000000..ded673f
--- /dev/null
+++ b/web/angular/src/app/widgets/message-dialog.component.html
@@ -0,0 +1,10 @@
+
+ {{title}}
+ {{message}}
+
+
+ done
+ {{button}}
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/message-dialog.component.ts b/web/angular/src/app/widgets/message-dialog.component.ts
new file mode 100644
index 0000000..d7815b0
--- /dev/null
+++ b/web/angular/src/app/widgets/message-dialog.component.ts
@@ -0,0 +1,42 @@
+import { Component, Inject } from "@angular/core";
+import { MatDialogRef, MAT_DIALOG_DATA, MatDialog } from "@angular/material";
+import { Observable } from 'rxjs';
+
+export interface MessageDialogData {
+ title:string;
+ message:string;
+ button?:string;
+}
+
+@Component({
+ selector: 'message-dialog',
+ templateUrl: 'message-dialog.component.html',
+ })
+ export class MessageDialogComponent {
+
+ title: String;
+ message: String;
+ button: String;
+
+ constructor(public dialog: MatDialogRef,
+ @Inject(MAT_DIALOG_DATA) public data: MessageDialogData) {
+ this.title = data.title;
+ this.message = data.message;
+ this.button = data.button;
+ if (!this.button) this.button = "OK";
+ }
+
+ onClose(): void {
+ this.dialog.close();
+ }
+
+ public static open(dialog: MatDialog, d: MessageDialogData, w?:string):Observable {
+ if (w == null) w = "450px";
+ let ref = dialog.open(MessageDialogComponent, {
+ width: w,
+ data: d
+ });
+ return ref.afterClosed();
+ }
+
+ }
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/name-field.component.html b/web/angular/src/app/widgets/name-field.component.html
new file mode 100644
index 0000000..2887460
--- /dev/null
+++ b/web/angular/src/app/widgets/name-field.component.html
@@ -0,0 +1,10 @@
+
+
+ {{nameField.value?.length || 0}}/64
+
+
+ Dein Name ist erforderlich.
+ Dein Name enthält ein ungültiges Zeichen.
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/name-field.component.ts b/web/angular/src/app/widgets/name-field.component.ts
new file mode 100644
index 0000000..7767a03
--- /dev/null
+++ b/web/angular/src/app/widgets/name-field.component.ts
@@ -0,0 +1,26 @@
+import { Component, OnInit, OnDestroy, Input } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+
+/**
+ * A validated field that enables a user to enter the
+ * human name. The name will be available through the
+ * components name which also acts as an input.
+ */
+@Component({
+ selector: 'name-field',
+ templateUrl: './name-field.component.html'
+})
+export class NameFieldComponent extends FormErrorEncoder {
+
+ /**
+ * The human name
+ */
+ @Input() name:string;
+ /**
+ * Disables the field.
+ */
+ @Input() disabled:boolean;
+}
diff --git a/web/angular/src/app/widgets/nickname-dialog.component.html b/web/angular/src/app/widgets/nickname-dialog.component.html
new file mode 100644
index 0000000..dfb3bb2
--- /dev/null
+++ b/web/angular/src/app/widgets/nickname-dialog.component.html
@@ -0,0 +1,35 @@
+
+
+ Ort benennen
+ Gib einen Namen für den Ort ein.
+
+
+
+
+
+
+
+ done
+ Speichern
+
+
+ close
+ Abbrechen
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/nickname-dialog.component.ts b/web/angular/src/app/widgets/nickname-dialog.component.ts
new file mode 100644
index 0000000..c152303
--- /dev/null
+++ b/web/angular/src/app/widgets/nickname-dialog.component.ts
@@ -0,0 +1,74 @@
+import { Component, Inject, ViewChild } from "@angular/core";
+import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatSnackBar } from "@angular/material";
+import { Observable, Subscription } from 'rxjs';
+import { NgForm } from "@angular/forms";
+import { ApiClientService } from "../../api";
+import { Snackbars } from "../utils/snackbars";
+import { FormErrorEncoder } from "../utils/formcodes";
+import { Place } from "../../api/models";
+import { HttpErrorResponse } from "@angular/common/http";
+import { HttpStatusCode } from "../utils/httpcodes";
+
+@Component({
+ selector: 'nickname-dialog',
+ templateUrl: 'nickname-dialog.component.html',
+ })
+ export class NicknameDialogComponent extends FormErrorEncoder {
+
+ @ViewChild("nameForm") nameForm: NgForm;
+
+ name: String;
+ private place: Place;
+ private subscription: Subscription;
+
+ constructor(
+ public snackbar: MatSnackBar,
+ public apiClientService: ApiClientService,
+ public dialog: MatDialogRef,
+ @Inject(MAT_DIALOG_DATA) data: Place
+ ) {
+ super();
+ this.place = data;
+ this.name = data.nickname;
+ }
+
+ isLoading():boolean{
+ return this.subscription != null;
+ }
+
+ onClose(): void {
+ this.dialog.close(false);
+ }
+
+ onAccept(): void {
+ if (this.nameForm.invalid || this.subscription) return;
+ this.place.nickname = this.name.trim();
+ this.subscription = this.apiClientService.setPlace(this.place.id, this.place).subscribe((result)=>{
+ this.subscription = null;
+ this.dialog.close(true);
+ Snackbars.showMessage(this.snackbar, "Der Ort wurde erfolgreich umbenannt.", Snackbars.DURATION_SHORT);
+ }, (error)=>{
+ this.subscription = null;
+ if (error instanceof HttpErrorResponse) {
+ if (error.status == HttpStatusCode.CONFLICT && error.error) {
+ this.place = JSON.parse(error.error) as Place;
+ this.name = this.place.nickname;
+ Snackbars.showError(this.snackbar, "Der Ort wurde bereits verändert. Falls du die Änderung überschreiben möchtest, gib den Namen nochmal ein.");
+ return;
+ }
+ }
+ Snackbars.showError(this.snackbar, "Der Ort konnte nicht umbennant werden.");
+ this.dialog.close(true);
+ });
+ }
+
+ public static open(dialog: MatDialog, data: Place, w?:string):Observable {
+ if (w == null) w = "450px";
+ let ref = dialog.open(NicknameDialogComponent, {
+ data: data,
+ width: w
+ });
+ return ref.afterClosed();
+ }
+
+ }
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/notice-card.component.html b/web/angular/src/app/widgets/notice-card.component.html
new file mode 100644
index 0000000..fcf7a85
--- /dev/null
+++ b/web/angular/src/app/widgets/notice-card.component.html
@@ -0,0 +1,10 @@
+
+
+
+ chat_bubble_outline {{ getTitle() }}
+ {{ getTimeLabel() }} {{ notice.modificationTime | date:'short' }}
+
+
+ {{ getBody() }}
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/notice-card.component.ts b/web/angular/src/app/widgets/notice-card.component.ts
new file mode 100644
index 0000000..4f9c574
--- /dev/null
+++ b/web/angular/src/app/widgets/notice-card.component.ts
@@ -0,0 +1,56 @@
+import { Notice, Message } from "../../api/models";
+import { Input, Component } from "@angular/core";
+
+@Component({
+ selector: 'notice-card',
+ templateUrl: './notice-card.component.html'
+ })
+ export class NoticeCardComponent {
+
+ /**
+ * The notice bound to the card.
+ */
+ @Input() notice:Notice;
+
+ /**
+ * The preferred language to display.
+ */
+ @Input() language: string;
+
+ /** The label for the modificatin time. */
+ @Input() modifiedLabel: string = "Aktualsiert am";
+
+ /** The label for the creation time. */
+ @Input() createdLabel: string = "Veröffentlicht am";
+
+ getTimeLabel(): string {
+ if (this.notice.modificationTime == this.notice.creationTime) {
+ return this.createdLabel;
+ } else {
+ return this.modifiedLabel;
+ }
+ }
+
+ getTitle(): string {
+ let m = this.getMessage();
+ if (m == null) return "";
+ else return m.title;
+ }
+
+ getBody(): string {
+ let m = this.getMessage();
+ if (m == null) return "";
+ else return m.body;
+ }
+
+ private getMessage(): Message {
+ for (let m of this.notice.messages) {
+ if (m.language == this.language) {
+ return m;
+ }
+ }
+ return null;
+ }
+
+}
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/password-field.component.html b/web/angular/src/app/widgets/password-field.component.html
new file mode 100644
index 0000000..bec8fb1
--- /dev/null
+++ b/web/angular/src/app/widgets/password-field.component.html
@@ -0,0 +1,11 @@
+
+
+ {{hide ? 'visibility' : 'visibility_off'}}
+ {{passwordField.value?.length || 0}}
+
+
+ Das Passwort ist erforderlich.
+ Das Passwort ist zu kurz.
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/password-field.component.ts b/web/angular/src/app/widgets/password-field.component.ts
new file mode 100644
index 0000000..fafed7a
--- /dev/null
+++ b/web/angular/src/app/widgets/password-field.component.ts
@@ -0,0 +1,46 @@
+import { Component, OnInit, OnDestroy, Input } from '@angular/core';
+import { UserState, UserService } from '../services/user.service';
+import { BehaviorSubject, Subscription } from 'rxjs';
+import { Router } from '@angular/router';
+import { FormErrorCode, FormErrorEncoder } from '../utils/formcodes';
+
+/**
+ * A validated field that enables a user to enter the
+ * login name. The name will be available through the
+ * components login which also acts as an input.
+ */
+@Component({
+ selector: 'password-field',
+ templateUrl: './password-field.component.html'
+})
+export class PasswordFieldComponent extends FormErrorEncoder {
+
+ /**
+ * Hide or show the password.
+ */
+ hide:boolean = true;
+
+ /**
+ * The password bound to the component.
+ */
+ @Input() password:string;
+ /**
+ * Disables the field.
+ */
+ @Input() disabled:boolean;
+
+ /**
+ * The name of the field
+ */
+ @Input() name:string = "password";
+
+ /**
+ * The label for the field.
+ */
+ @Input() label:string = "Passwort";
+
+ /**
+ * The hint for the field.
+ */
+ @Input() hint:string = "Passwort eingeben";
+}
diff --git a/web/angular/src/app/widgets/profile-button.component.html b/web/angular/src/app/widgets/profile-button.component.html
new file mode 100644
index 0000000..a786da3
--- /dev/null
+++ b/web/angular/src/app/widgets/profile-button.component.html
@@ -0,0 +1,9 @@
+
+
+ perm_identity
+ {{login}}
+
+
+ perm_identity
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/profile-button.component.ts b/web/angular/src/app/widgets/profile-button.component.ts
new file mode 100644
index 0000000..31065b4
--- /dev/null
+++ b/web/angular/src/app/widgets/profile-button.component.ts
@@ -0,0 +1,26 @@
+import { Component, Input, OnInit, OnDestroy } from '@angular/core';
+import { Router, RouterEvent, NavigationEnd } from '@angular/router';
+import { Subscription } from 'rxjs';
+import { UserService } from '../services/user.service';
+
+/**
+ * Implements a responsive profile button for the toolbar.
+ */
+@Component({
+ selector: 'profile-button',
+ templateUrl: './profile-button.component.html'
+})
+export class ProfileButtonComponent {
+
+ /**
+ * The login name.
+ */
+ login: string;
+
+ constructor(private userService: UserService) {
+ this.login = userService.getLogin();
+ }
+
+
+
+}
diff --git a/web/angular/src/app/widgets/share-dialog.component.html b/web/angular/src/app/widgets/share-dialog.component.html
new file mode 100644
index 0000000..fbbd8b7
--- /dev/null
+++ b/web/angular/src/app/widgets/share-dialog.component.html
@@ -0,0 +1,36 @@
+
+
+ Freigabe hinzufügen
+ Kopiere einen Freigabelink in das Feld um ihn zu speichern.
+
+
+
+
+
+
+
+ done
+ Speichern
+
+
+ close
+ Abbrechen
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/share-dialog.component.ts b/web/angular/src/app/widgets/share-dialog.component.ts
new file mode 100644
index 0000000..61cd41c
--- /dev/null
+++ b/web/angular/src/app/widgets/share-dialog.component.ts
@@ -0,0 +1,61 @@
+import { Component, Inject, ViewChild } from "@angular/core";
+import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatSnackBar } from "@angular/material";
+import { Observable, Subscription } from 'rxjs';
+import { NgForm } from "@angular/forms";
+import { ApiClientService } from "../../api";
+import { Snackbars } from "../utils/snackbars";
+import { FormErrorEncoder } from "../utils/formcodes";
+
+@Component({
+ selector: 'share-dialog',
+ templateUrl: 'share-dialog.component.html',
+ })
+ export class ShareDialogComponent extends FormErrorEncoder {
+
+ @ViewChild("shareForm") shareForm: NgForm;
+
+ link: String;
+ private subscription: Subscription;
+
+ constructor(
+ public snackbar: MatSnackBar,
+ public apiClientService: ApiClientService,
+ public dialog: MatDialogRef,
+ @Inject(MAT_DIALOG_DATA) data: string
+ ) {
+ super();
+ this.link = data;
+ }
+
+ isLoading():boolean{
+ return this.subscription != null;
+ }
+
+ onClose(): void {
+ this.dialog.close(false);
+ }
+
+ onAccept(): void {
+ if (this.shareForm.invalid || this.subscription) return;
+ var token = this.link.trim();
+ let idx = token.lastIndexOf("/");
+ if (idx != -1) token = token.substring(idx + 1);
+ this.subscription = this.apiClientService.addCurrentUserPrivilege(token).subscribe((result)=>{
+ this.subscription = null;
+ this.dialog.close(true);
+ Snackbars.showMessage(this.snackbar, "Die Freigabe wurde erfolgreich hinzugefügt.", Snackbars.DURATION_SHORT);
+ }, (error)=>{
+ this.subscription = null;
+ Snackbars.showError(this.snackbar, "Die Freigabe konnte nicht erstellt werden. Hast Du den Freigabelink vollständig eingegeben?");
+ });
+ }
+
+ public static open(dialog: MatDialog, link?:string, w?:string):Observable {
+ let ref = dialog.open(ShareDialogComponent, {
+ data: (link)?link:"",
+ width: w
+ });
+ return ref.afterClosed();
+ }
+
+ }
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/tile-map.component.html b/web/angular/src/app/widgets/tile-map.component.html
new file mode 100644
index 0000000..b8efc81
--- /dev/null
+++ b/web/angular/src/app/widgets/tile-map.component.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/tile-map.component.ts b/web/angular/src/app/widgets/tile-map.component.ts
new file mode 100644
index 0000000..391a0f5
--- /dev/null
+++ b/web/angular/src/app/widgets/tile-map.component.ts
@@ -0,0 +1,79 @@
+import { Component, OnInit } from "@angular/core";
+import * as L from 'leaflet';
+
+@Component({
+ selector: 'tile-map',
+ templateUrl: './tile-map.component.html'
+})
+export class TileMapComponent implements OnInit {
+
+ private static readonly DEFAULT_LOCATION = new L.LatLng(51.461663, 7.016645);
+ private static readonly DEFAULT_ZOOM = 13;
+ private static readonly DEFAULT_TILE_URL = 'https://cloud.locoslab.com/carta/restful-services/tile/{z}/{x}/{y}.png';
+ private static readonly DEFAULT_ICON_SCALE = 0.2;
+
+
+ private static readonly DEFAULT_PIN_URL = "assets/markers/marker_pin.png";
+ private static readonly DEFAULT_NORMAL_URL = "assets/markers/marker_normal.png";
+ private static readonly DEFAULT_SELECTED_URL = "assets/markers/marker_selected.png";
+ private static readonly DEFAULT_SHADOW_URL = "assets/markers/marker_shadow.png";
+
+ map: L.Map;
+ layer: L.TileLayer;
+
+ readonly iconNormal: L.Icon;
+ readonly iconSelected: L.Icon;
+ readonly iconPin: L.Icon;
+
+ constructor() {
+ this.iconNormal = this.createMarkerIcon(TileMapComponent.DEFAULT_NORMAL_URL);
+ this.iconSelected = this.createMarkerIcon(TileMapComponent.DEFAULT_NORMAL_URL);
+ this.iconPin = this.createPinIcon(TileMapComponent.DEFAULT_PIN_URL);
+
+ }
+
+ ngOnInit() {
+ this.map = new L.Map('map');
+ this.map.setView(TileMapComponent.DEFAULT_LOCATION, TileMapComponent.DEFAULT_ZOOM);
+ this.layer = new L.TileLayer(TileMapComponent.DEFAULT_TILE_URL, {
+ attribution: 'Maptology',
+ maxZoom: 18
+ }).addTo(this.map);
+ }
+
+ private createMarkerIcon(url: string):L.Icon {
+ let href = this.getBaseHref();
+ return new L.Icon({
+ iconUrl: href + url,
+ shadowUrl: href + TileMapComponent.DEFAULT_SHADOW_URL,
+ iconAnchor: [this.scale(100), this.scale(293)],
+ iconSize: [this.scale(200), this.scale(293)],
+ shadowAnchor: [this.scale(140), this.scale(330)],
+ shadowSize: [this.scale(280), this.scale(379)]
+ });
+ }
+
+ private createPinIcon(url: string):L.Icon {
+ let href = this.getBaseHref();
+ return new L.Icon({
+ iconUrl: href + url,
+ iconAnchor: [this.scale(100), this.scale(100)],
+ iconSize: [this.scale(200), this.scale(200)],
+ });
+ }
+
+ private getBaseHref():string{
+ let bases = document.getElementsByTagName('base');
+ let baseHref = null;
+ if (bases.length > 0) baseHref = bases[0].href;
+ if (baseHref == null) baseHref = "/";
+ return baseHref;
+ }
+
+ private scale(v:number):number {
+ return v * TileMapComponent.DEFAULT_ICON_SCALE;
+ }
+
+
+
+}
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/toolbar-button.component.html b/web/angular/src/app/widgets/toolbar-button.component.html
new file mode 100644
index 0000000..47bb5f8
--- /dev/null
+++ b/web/angular/src/app/widgets/toolbar-button.component.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+ {{icon}}
+ {{title}}
+
+
+ {{icon}}
+
+
+
+
+
+
+ {{icon}}
+ {{title}}
+
+
+ {{icon}}
+
+
+
+
\ No newline at end of file
diff --git a/web/angular/src/app/widgets/toolbar-button.component.ts b/web/angular/src/app/widgets/toolbar-button.component.ts
new file mode 100644
index 0000000..8d4ea22
--- /dev/null
+++ b/web/angular/src/app/widgets/toolbar-button.component.ts
@@ -0,0 +1,78 @@
+import { Component, Input, OnInit, OnDestroy } from '@angular/core';
+import { Router, RouterEvent, NavigationEnd } from '@angular/router';
+import { Subscription } from 'rxjs';
+
+/**
+ * Implements a responsive button for the toolbar
+ * that consists of an icon, text and a link.
+ * Optionally, it can be disabled and it is possible
+ * to set a color. If a color is used, the button
+ * will raise as well. If no color is provided, the
+ * button will be flat.
+ */
+@Component({
+ selector: 'toolbar-button',
+ templateUrl: './toolbar-button.component.html'
+})
+export class ToolbarButtonComponent implements OnInit, OnDestroy {
+
+ /**
+ * The title of the button.
+ */
+ @Input() title: string;
+ /**
+ * The icon of the button which should
+ * be a character or ligature of the material
+ * icon font.
+ */
+ @Input() icon: string;
+ /**
+ * The router link that is activated by the
+ * button.
+ */
+ @Input() link: string;
+ /**
+ * Enables or disables the button.
+ */
+ @Input() disabled: boolean;
+ /**
+ * The color (e.g. "accent") which will also
+ * raise the button, if set.
+ */
+ @Input() color: string;
+
+ /**
+ * Determines whether the button is shown.
+ */
+ visible: boolean;
+
+ /**
+ * The subscription to the router.
+ */
+ private routerSubscription: Subscription;
+
+ /**
+ * Creates a new button.
+ *
+ * @param router The router.
+ */
+ constructor(private router: Router) { }
+
+ ngOnInit() {
+ this.routerSubscription = this.router.events.subscribe((event) => {
+ if (event instanceof NavigationEnd) {
+ this.updateVisibility();
+ }
+ });
+ this.updateVisibility();
+ }
+
+ private updateVisibility():void {
+ this.visible = (this.router.url !== this.link);
+ }
+
+ ngOnDestroy() {
+ this.routerSubscription.unsubscribe();
+ }
+
+}
diff --git a/web/angular/src/assets/.npmignore b/web/angular/src/assets/.npmignore
deleted file mode 100755
index e69de29..0000000
diff --git a/web/angular/src/assets/flags/de.svg b/web/angular/src/assets/flags/de.svg
new file mode 100644
index 0000000..8bb7bc5
--- /dev/null
+++ b/web/angular/src/assets/flags/de.svg
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/web/angular/src/assets/flags/en.svg b/web/angular/src/assets/flags/en.svg
new file mode 100644
index 0000000..2eda612
--- /dev/null
+++ b/web/angular/src/assets/flags/en.svg
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web/angular/src/assets/flags/es.svg b/web/angular/src/assets/flags/es.svg
new file mode 100644
index 0000000..b9fb04b
--- /dev/null
+++ b/web/angular/src/assets/flags/es.svg
@@ -0,0 +1,581 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web/angular/src/assets/flags/fr.svg b/web/angular/src/assets/flags/fr.svg
new file mode 100644
index 0000000..de83a9f
--- /dev/null
+++ b/web/angular/src/assets/flags/fr.svg
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/web/angular/src/assets/flags/it.svg b/web/angular/src/assets/flags/it.svg
new file mode 100644
index 0000000..210983b
--- /dev/null
+++ b/web/angular/src/assets/flags/it.svg
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/web/angular/src/assets/fonts/MaterialIcons-Regular.eot b/web/angular/src/assets/fonts/MaterialIcons-Regular.eot
new file mode 100644
index 0000000..70508eb
Binary files /dev/null and b/web/angular/src/assets/fonts/MaterialIcons-Regular.eot differ
diff --git a/web/angular/src/assets/fonts/MaterialIcons-Regular.ttf b/web/angular/src/assets/fonts/MaterialIcons-Regular.ttf
new file mode 100644
index 0000000..7015564
Binary files /dev/null and b/web/angular/src/assets/fonts/MaterialIcons-Regular.ttf differ
diff --git a/web/angular/src/assets/fonts/MaterialIcons-Regular.woff b/web/angular/src/assets/fonts/MaterialIcons-Regular.woff
new file mode 100644
index 0000000..b648a3e
Binary files /dev/null and b/web/angular/src/assets/fonts/MaterialIcons-Regular.woff differ
diff --git a/web/angular/src/assets/fonts/MaterialIcons-Regular.woff2 b/web/angular/src/assets/fonts/MaterialIcons-Regular.woff2
new file mode 100644
index 0000000..9fa2112
Binary files /dev/null and b/web/angular/src/assets/fonts/MaterialIcons-Regular.woff2 differ
diff --git a/web/angular/src/assets/fonts/RobotoLatin-Regular.eot b/web/angular/src/assets/fonts/RobotoLatin-Regular.eot
new file mode 100644
index 0000000..a0780d6
Binary files /dev/null and b/web/angular/src/assets/fonts/RobotoLatin-Regular.eot differ
diff --git a/web/angular/src/assets/fonts/RobotoLatin-Regular.ttf b/web/angular/src/assets/fonts/RobotoLatin-Regular.ttf
new file mode 100644
index 0000000..b91bf3f
Binary files /dev/null and b/web/angular/src/assets/fonts/RobotoLatin-Regular.ttf differ
diff --git a/web/angular/src/assets/fonts/RobotoLatin-Regular.woff b/web/angular/src/assets/fonts/RobotoLatin-Regular.woff
new file mode 100644
index 0000000..92dfacc
Binary files /dev/null and b/web/angular/src/assets/fonts/RobotoLatin-Regular.woff differ
diff --git a/web/angular/src/assets/fonts/RobotoLatin-Regular.woff2 b/web/angular/src/assets/fonts/RobotoLatin-Regular.woff2
new file mode 100644
index 0000000..7e854e6
Binary files /dev/null and b/web/angular/src/assets/fonts/RobotoLatin-Regular.woff2 differ
diff --git a/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.eot b/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.eot
new file mode 100644
index 0000000..550df22
Binary files /dev/null and b/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.eot differ
diff --git a/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.ttf b/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.ttf
new file mode 100644
index 0000000..27363d1
Binary files /dev/null and b/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.ttf differ
diff --git a/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.woff b/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.woff
new file mode 100644
index 0000000..0ea5db8
Binary files /dev/null and b/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.woff differ
diff --git a/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.woff2 b/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.woff2
new file mode 100644
index 0000000..6163de7
Binary files /dev/null and b/web/angular/src/assets/fonts/RobotoMonoLatin-Regular.woff2 differ
diff --git a/web/angular/src/assets/icons/favicon-114x114.png b/web/angular/src/assets/icons/favicon-114x114.png
new file mode 100644
index 0000000..e04bab4
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-114x114.png differ
diff --git a/web/angular/src/assets/icons/favicon-120x120.png b/web/angular/src/assets/icons/favicon-120x120.png
new file mode 100644
index 0000000..62eeb52
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-120x120.png differ
diff --git a/web/angular/src/assets/icons/favicon-144x144.png b/web/angular/src/assets/icons/favicon-144x144.png
new file mode 100644
index 0000000..2248778
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-144x144.png differ
diff --git a/web/angular/src/assets/icons/favicon-152x152.png b/web/angular/src/assets/icons/favicon-152x152.png
new file mode 100644
index 0000000..99a7c69
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-152x152.png differ
diff --git a/web/angular/src/assets/icons/favicon-16x16.png b/web/angular/src/assets/icons/favicon-16x16.png
new file mode 100644
index 0000000..528122a
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-16x16.png differ
diff --git a/web/angular/src/assets/icons/favicon-180x180.png b/web/angular/src/assets/icons/favicon-180x180.png
new file mode 100644
index 0000000..bf8d033
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-180x180.png differ
diff --git a/web/angular/src/assets/icons/favicon-192x192.png b/web/angular/src/assets/icons/favicon-192x192.png
new file mode 100644
index 0000000..36c6bb9
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-192x192.png differ
diff --git a/web/angular/src/assets/icons/favicon-32x32.png b/web/angular/src/assets/icons/favicon-32x32.png
new file mode 100644
index 0000000..4206bea
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-32x32.png differ
diff --git a/web/angular/src/assets/icons/favicon-57x57.png b/web/angular/src/assets/icons/favicon-57x57.png
new file mode 100644
index 0000000..b843db4
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-57x57.png differ
diff --git a/web/angular/src/assets/icons/favicon-60x60.png b/web/angular/src/assets/icons/favicon-60x60.png
new file mode 100644
index 0000000..c7a7244
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-60x60.png differ
diff --git a/web/angular/src/assets/icons/favicon-72x72.png b/web/angular/src/assets/icons/favicon-72x72.png
new file mode 100644
index 0000000..a64db65
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-72x72.png differ
diff --git a/web/angular/src/assets/icons/favicon-76x76.png b/web/angular/src/assets/icons/favicon-76x76.png
new file mode 100644
index 0000000..c43019b
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-76x76.png differ
diff --git a/web/angular/src/assets/icons/favicon-96x96.png b/web/angular/src/assets/icons/favicon-96x96.png
new file mode 100644
index 0000000..a90d662
Binary files /dev/null and b/web/angular/src/assets/icons/favicon-96x96.png differ
diff --git a/web/angular/src/assets/icons/home.svg b/web/angular/src/assets/icons/home.svg
new file mode 100644
index 0000000..a0188d4
--- /dev/null
+++ b/web/angular/src/assets/icons/home.svg
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/web/angular/src/assets/img/avatars/1.jpg b/web/angular/src/assets/img/avatars/1.jpg
deleted file mode 100755
index 0b08703..0000000
Binary files a/web/angular/src/assets/img/avatars/1.jpg and /dev/null differ
diff --git a/web/angular/src/assets/img/avatars/2.jpg b/web/angular/src/assets/img/avatars/2.jpg
deleted file mode 100755
index e736709..0000000
Binary files a/web/angular/src/assets/img/avatars/2.jpg and /dev/null differ
diff --git a/web/angular/src/assets/img/avatars/3.jpg b/web/angular/src/assets/img/avatars/3.jpg
deleted file mode 100755
index caf9a7e..0000000
Binary files a/web/angular/src/assets/img/avatars/3.jpg and /dev/null differ
diff --git a/web/angular/src/assets/img/avatars/4.jpg b/web/angular/src/assets/img/avatars/4.jpg
deleted file mode 100755
index 97f6769..0000000
Binary files a/web/angular/src/assets/img/avatars/4.jpg and /dev/null differ
diff --git a/web/angular/src/assets/img/avatars/5.jpg b/web/angular/src/assets/img/avatars/5.jpg
deleted file mode 100755
index 82b025f..0000000
Binary files a/web/angular/src/assets/img/avatars/5.jpg and /dev/null differ
diff --git a/web/angular/src/assets/img/avatars/6.jpg b/web/angular/src/assets/img/avatars/6.jpg
deleted file mode 100755
index 1d2b884..0000000
Binary files a/web/angular/src/assets/img/avatars/6.jpg and /dev/null differ
diff --git a/web/angular/src/assets/img/avatars/7.jpg b/web/angular/src/assets/img/avatars/7.jpg
deleted file mode 100755
index 2903cd2..0000000
Binary files a/web/angular/src/assets/img/avatars/7.jpg and /dev/null differ
diff --git a/web/angular/src/assets/img/avatars/8.jpg b/web/angular/src/assets/img/avatars/8.jpg
deleted file mode 100755
index 3a5eba9..0000000
Binary files a/web/angular/src/assets/img/avatars/8.jpg and /dev/null differ
diff --git a/web/angular/src/assets/img/favicon.png b/web/angular/src/assets/img/favicon.png
deleted file mode 100755
index 7f62aff..0000000
Binary files a/web/angular/src/assets/img/favicon.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/ASEAN.png b/web/angular/src/assets/img/flags/ASEAN.png
deleted file mode 100755
index 1fb1b91..0000000
Binary files a/web/angular/src/assets/img/flags/ASEAN.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Afghanistan.png b/web/angular/src/assets/img/flags/Afghanistan.png
deleted file mode 100755
index 2575b8a..0000000
Binary files a/web/angular/src/assets/img/flags/Afghanistan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/African Union.png b/web/angular/src/assets/img/flags/African Union.png
deleted file mode 100755
index 85b268e..0000000
Binary files a/web/angular/src/assets/img/flags/African Union.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Albania.png b/web/angular/src/assets/img/flags/Albania.png
deleted file mode 100755
index 2e16c3b..0000000
Binary files a/web/angular/src/assets/img/flags/Albania.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Algeria.png b/web/angular/src/assets/img/flags/Algeria.png
deleted file mode 100755
index 69477f0..0000000
Binary files a/web/angular/src/assets/img/flags/Algeria.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/American Samoa.png b/web/angular/src/assets/img/flags/American Samoa.png
deleted file mode 100755
index b0d4cdc..0000000
Binary files a/web/angular/src/assets/img/flags/American Samoa.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Andorra.png b/web/angular/src/assets/img/flags/Andorra.png
deleted file mode 100755
index e753cd6..0000000
Binary files a/web/angular/src/assets/img/flags/Andorra.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Angola.png b/web/angular/src/assets/img/flags/Angola.png
deleted file mode 100755
index 97ae963..0000000
Binary files a/web/angular/src/assets/img/flags/Angola.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Anguilla.png b/web/angular/src/assets/img/flags/Anguilla.png
deleted file mode 100755
index 7a6ac04..0000000
Binary files a/web/angular/src/assets/img/flags/Anguilla.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Antarctica.png b/web/angular/src/assets/img/flags/Antarctica.png
deleted file mode 100755
index a97b355..0000000
Binary files a/web/angular/src/assets/img/flags/Antarctica.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Antigua & Barbuda.png b/web/angular/src/assets/img/flags/Antigua & Barbuda.png
deleted file mode 100755
index cfc157a..0000000
Binary files a/web/angular/src/assets/img/flags/Antigua & Barbuda.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Arab League.png b/web/angular/src/assets/img/flags/Arab League.png
deleted file mode 100755
index 646a3f7..0000000
Binary files a/web/angular/src/assets/img/flags/Arab League.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Argentina.png b/web/angular/src/assets/img/flags/Argentina.png
deleted file mode 100755
index 62d1518..0000000
Binary files a/web/angular/src/assets/img/flags/Argentina.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Armenia.png b/web/angular/src/assets/img/flags/Armenia.png
deleted file mode 100755
index f4f9bae..0000000
Binary files a/web/angular/src/assets/img/flags/Armenia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Aruba.png b/web/angular/src/assets/img/flags/Aruba.png
deleted file mode 100755
index 0083ef6..0000000
Binary files a/web/angular/src/assets/img/flags/Aruba.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Australia.png b/web/angular/src/assets/img/flags/Australia.png
deleted file mode 100755
index 8937404..0000000
Binary files a/web/angular/src/assets/img/flags/Australia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Austria.png b/web/angular/src/assets/img/flags/Austria.png
deleted file mode 100755
index fe66fef..0000000
Binary files a/web/angular/src/assets/img/flags/Austria.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Azerbaijan.png b/web/angular/src/assets/img/flags/Azerbaijan.png
deleted file mode 100755
index 1850abc..0000000
Binary files a/web/angular/src/assets/img/flags/Azerbaijan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Bahamas.png b/web/angular/src/assets/img/flags/Bahamas.png
deleted file mode 100755
index 753fc83..0000000
Binary files a/web/angular/src/assets/img/flags/Bahamas.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Bahrain.png b/web/angular/src/assets/img/flags/Bahrain.png
deleted file mode 100755
index c45c7b4..0000000
Binary files a/web/angular/src/assets/img/flags/Bahrain.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Bangladesh.png b/web/angular/src/assets/img/flags/Bangladesh.png
deleted file mode 100755
index 8ef2443..0000000
Binary files a/web/angular/src/assets/img/flags/Bangladesh.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Barbados.png b/web/angular/src/assets/img/flags/Barbados.png
deleted file mode 100755
index d440d41..0000000
Binary files a/web/angular/src/assets/img/flags/Barbados.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Belarus.png b/web/angular/src/assets/img/flags/Belarus.png
deleted file mode 100755
index ce75c73..0000000
Binary files a/web/angular/src/assets/img/flags/Belarus.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Belgium.png b/web/angular/src/assets/img/flags/Belgium.png
deleted file mode 100755
index 1d3df4c..0000000
Binary files a/web/angular/src/assets/img/flags/Belgium.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Belize.png b/web/angular/src/assets/img/flags/Belize.png
deleted file mode 100755
index 4a9aea0..0000000
Binary files a/web/angular/src/assets/img/flags/Belize.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Benin.png b/web/angular/src/assets/img/flags/Benin.png
deleted file mode 100755
index af46063..0000000
Binary files a/web/angular/src/assets/img/flags/Benin.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Bermuda.png b/web/angular/src/assets/img/flags/Bermuda.png
deleted file mode 100755
index 880d965..0000000
Binary files a/web/angular/src/assets/img/flags/Bermuda.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Bhutan.png b/web/angular/src/assets/img/flags/Bhutan.png
deleted file mode 100755
index db0372e..0000000
Binary files a/web/angular/src/assets/img/flags/Bhutan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Bolivia.png b/web/angular/src/assets/img/flags/Bolivia.png
deleted file mode 100755
index a28f060..0000000
Binary files a/web/angular/src/assets/img/flags/Bolivia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Bosnia & Herzegovina.png b/web/angular/src/assets/img/flags/Bosnia & Herzegovina.png
deleted file mode 100755
index 806d05d..0000000
Binary files a/web/angular/src/assets/img/flags/Bosnia & Herzegovina.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Botswana.png b/web/angular/src/assets/img/flags/Botswana.png
deleted file mode 100755
index 9a06843..0000000
Binary files a/web/angular/src/assets/img/flags/Botswana.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Brazil.png b/web/angular/src/assets/img/flags/Brazil.png
deleted file mode 100755
index 47a007f..0000000
Binary files a/web/angular/src/assets/img/flags/Brazil.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Brunei.png b/web/angular/src/assets/img/flags/Brunei.png
deleted file mode 100755
index 650cca6..0000000
Binary files a/web/angular/src/assets/img/flags/Brunei.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Bulgaria.png b/web/angular/src/assets/img/flags/Bulgaria.png
deleted file mode 100755
index c130192..0000000
Binary files a/web/angular/src/assets/img/flags/Bulgaria.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Burkina Faso.png b/web/angular/src/assets/img/flags/Burkina Faso.png
deleted file mode 100755
index 13ff132..0000000
Binary files a/web/angular/src/assets/img/flags/Burkina Faso.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Burundi.png b/web/angular/src/assets/img/flags/Burundi.png
deleted file mode 100755
index 15e76aa..0000000
Binary files a/web/angular/src/assets/img/flags/Burundi.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/CARICOM.png b/web/angular/src/assets/img/flags/CARICOM.png
deleted file mode 100755
index 19dfeae..0000000
Binary files a/web/angular/src/assets/img/flags/CARICOM.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/CIS.png b/web/angular/src/assets/img/flags/CIS.png
deleted file mode 100755
index 809c026..0000000
Binary files a/web/angular/src/assets/img/flags/CIS.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Cambodja.png b/web/angular/src/assets/img/flags/Cambodja.png
deleted file mode 100755
index 65b4c06..0000000
Binary files a/web/angular/src/assets/img/flags/Cambodja.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Cameroon.png b/web/angular/src/assets/img/flags/Cameroon.png
deleted file mode 100755
index 32eccee..0000000
Binary files a/web/angular/src/assets/img/flags/Cameroon.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Canada.png b/web/angular/src/assets/img/flags/Canada.png
deleted file mode 100755
index bfff414..0000000
Binary files a/web/angular/src/assets/img/flags/Canada.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Cape Verde.png b/web/angular/src/assets/img/flags/Cape Verde.png
deleted file mode 100755
index 103043c..0000000
Binary files a/web/angular/src/assets/img/flags/Cape Verde.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Cayman Islands.png b/web/angular/src/assets/img/flags/Cayman Islands.png
deleted file mode 100755
index f2a6b6c..0000000
Binary files a/web/angular/src/assets/img/flags/Cayman Islands.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Central African Republic.png b/web/angular/src/assets/img/flags/Central African Republic.png
deleted file mode 100755
index 3f0b501..0000000
Binary files a/web/angular/src/assets/img/flags/Central African Republic.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Chad.png b/web/angular/src/assets/img/flags/Chad.png
deleted file mode 100755
index c74a4a4..0000000
Binary files a/web/angular/src/assets/img/flags/Chad.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Chile.png b/web/angular/src/assets/img/flags/Chile.png
deleted file mode 100755
index 3e76462..0000000
Binary files a/web/angular/src/assets/img/flags/Chile.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/China.png b/web/angular/src/assets/img/flags/China.png
deleted file mode 100755
index d0da550..0000000
Binary files a/web/angular/src/assets/img/flags/China.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Colombia.png b/web/angular/src/assets/img/flags/Colombia.png
deleted file mode 100755
index da19e53..0000000
Binary files a/web/angular/src/assets/img/flags/Colombia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Commonwealth.png b/web/angular/src/assets/img/flags/Commonwealth.png
deleted file mode 100755
index aa0d8ab..0000000
Binary files a/web/angular/src/assets/img/flags/Commonwealth.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Comoros.png b/web/angular/src/assets/img/flags/Comoros.png
deleted file mode 100755
index 051fc5a..0000000
Binary files a/web/angular/src/assets/img/flags/Comoros.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Congo-Brazzaville.png b/web/angular/src/assets/img/flags/Congo-Brazzaville.png
deleted file mode 100755
index f8c0b25..0000000
Binary files a/web/angular/src/assets/img/flags/Congo-Brazzaville.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Congo-Kinshasa(Zaire).png b/web/angular/src/assets/img/flags/Congo-Kinshasa(Zaire).png
deleted file mode 100755
index be42ea0..0000000
Binary files a/web/angular/src/assets/img/flags/Congo-Kinshasa(Zaire).png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Cook Islands.png b/web/angular/src/assets/img/flags/Cook Islands.png
deleted file mode 100755
index 7c432c8..0000000
Binary files a/web/angular/src/assets/img/flags/Cook Islands.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Costa Rica.png b/web/angular/src/assets/img/flags/Costa Rica.png
deleted file mode 100755
index 44a3073..0000000
Binary files a/web/angular/src/assets/img/flags/Costa Rica.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Cote d'Ivoire.png b/web/angular/src/assets/img/flags/Cote d'Ivoire.png
deleted file mode 100755
index 1fee82c..0000000
Binary files a/web/angular/src/assets/img/flags/Cote d'Ivoire.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Croatia.png b/web/angular/src/assets/img/flags/Croatia.png
deleted file mode 100755
index 4cb4ea7..0000000
Binary files a/web/angular/src/assets/img/flags/Croatia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Cuba.png b/web/angular/src/assets/img/flags/Cuba.png
deleted file mode 100755
index 4e3cf29..0000000
Binary files a/web/angular/src/assets/img/flags/Cuba.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Cyprus.png b/web/angular/src/assets/img/flags/Cyprus.png
deleted file mode 100755
index df22c03..0000000
Binary files a/web/angular/src/assets/img/flags/Cyprus.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Czech Republic.png b/web/angular/src/assets/img/flags/Czech Republic.png
deleted file mode 100755
index 31f9ad9..0000000
Binary files a/web/angular/src/assets/img/flags/Czech Republic.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Denmark.png b/web/angular/src/assets/img/flags/Denmark.png
deleted file mode 100755
index 3f4dac3..0000000
Binary files a/web/angular/src/assets/img/flags/Denmark.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Djibouti.png b/web/angular/src/assets/img/flags/Djibouti.png
deleted file mode 100755
index 8f32f74..0000000
Binary files a/web/angular/src/assets/img/flags/Djibouti.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Dominica.png b/web/angular/src/assets/img/flags/Dominica.png
deleted file mode 100755
index e70b1a4..0000000
Binary files a/web/angular/src/assets/img/flags/Dominica.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Dominican Republic.png b/web/angular/src/assets/img/flags/Dominican Republic.png
deleted file mode 100755
index ca2d40a..0000000
Binary files a/web/angular/src/assets/img/flags/Dominican Republic.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Ecuador.png b/web/angular/src/assets/img/flags/Ecuador.png
deleted file mode 100755
index 4913cec..0000000
Binary files a/web/angular/src/assets/img/flags/Ecuador.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Egypt.png b/web/angular/src/assets/img/flags/Egypt.png
deleted file mode 100755
index ee9fef0..0000000
Binary files a/web/angular/src/assets/img/flags/Egypt.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/El Salvador.png b/web/angular/src/assets/img/flags/El Salvador.png
deleted file mode 100755
index adf8750..0000000
Binary files a/web/angular/src/assets/img/flags/El Salvador.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/England.png b/web/angular/src/assets/img/flags/England.png
deleted file mode 100755
index 22fb06b..0000000
Binary files a/web/angular/src/assets/img/flags/England.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Equatorial Guinea.png b/web/angular/src/assets/img/flags/Equatorial Guinea.png
deleted file mode 100755
index 13d3c92..0000000
Binary files a/web/angular/src/assets/img/flags/Equatorial Guinea.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Eritrea.png b/web/angular/src/assets/img/flags/Eritrea.png
deleted file mode 100755
index 5f38c52..0000000
Binary files a/web/angular/src/assets/img/flags/Eritrea.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Estonia.png b/web/angular/src/assets/img/flags/Estonia.png
deleted file mode 100755
index 3eadb29..0000000
Binary files a/web/angular/src/assets/img/flags/Estonia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Ethiopia.png b/web/angular/src/assets/img/flags/Ethiopia.png
deleted file mode 100755
index b29191f..0000000
Binary files a/web/angular/src/assets/img/flags/Ethiopia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/European Union.png b/web/angular/src/assets/img/flags/European Union.png
deleted file mode 100755
index 18c86da..0000000
Binary files a/web/angular/src/assets/img/flags/European Union.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Faroes.png b/web/angular/src/assets/img/flags/Faroes.png
deleted file mode 100755
index 1bfb68e..0000000
Binary files a/web/angular/src/assets/img/flags/Faroes.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Fiji.png b/web/angular/src/assets/img/flags/Fiji.png
deleted file mode 100755
index d96b232..0000000
Binary files a/web/angular/src/assets/img/flags/Fiji.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Finland.png b/web/angular/src/assets/img/flags/Finland.png
deleted file mode 100755
index 97d47a9..0000000
Binary files a/web/angular/src/assets/img/flags/Finland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/France.png b/web/angular/src/assets/img/flags/France.png
deleted file mode 100755
index 12318d4..0000000
Binary files a/web/angular/src/assets/img/flags/France.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Gabon.png b/web/angular/src/assets/img/flags/Gabon.png
deleted file mode 100755
index bb1f634..0000000
Binary files a/web/angular/src/assets/img/flags/Gabon.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Gambia.png b/web/angular/src/assets/img/flags/Gambia.png
deleted file mode 100755
index e4bee6c..0000000
Binary files a/web/angular/src/assets/img/flags/Gambia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Georgia.png b/web/angular/src/assets/img/flags/Georgia.png
deleted file mode 100755
index fb293a0..0000000
Binary files a/web/angular/src/assets/img/flags/Georgia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Germany.png b/web/angular/src/assets/img/flags/Germany.png
deleted file mode 100755
index 77e9338..0000000
Binary files a/web/angular/src/assets/img/flags/Germany.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Ghana.png b/web/angular/src/assets/img/flags/Ghana.png
deleted file mode 100755
index 16ddfb4..0000000
Binary files a/web/angular/src/assets/img/flags/Ghana.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Gibraltar.png b/web/angular/src/assets/img/flags/Gibraltar.png
deleted file mode 100755
index 3d3b66d..0000000
Binary files a/web/angular/src/assets/img/flags/Gibraltar.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Greece.png b/web/angular/src/assets/img/flags/Greece.png
deleted file mode 100755
index b00fd5a..0000000
Binary files a/web/angular/src/assets/img/flags/Greece.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Greenland.png b/web/angular/src/assets/img/flags/Greenland.png
deleted file mode 100755
index 8dc87f4..0000000
Binary files a/web/angular/src/assets/img/flags/Greenland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Grenada.png b/web/angular/src/assets/img/flags/Grenada.png
deleted file mode 100755
index 26be61e..0000000
Binary files a/web/angular/src/assets/img/flags/Grenada.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Guadeloupe.png b/web/angular/src/assets/img/flags/Guadeloupe.png
deleted file mode 100755
index 53dca17..0000000
Binary files a/web/angular/src/assets/img/flags/Guadeloupe.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Guam.png b/web/angular/src/assets/img/flags/Guam.png
deleted file mode 100755
index f1d6b7a..0000000
Binary files a/web/angular/src/assets/img/flags/Guam.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Guatemala.png b/web/angular/src/assets/img/flags/Guatemala.png
deleted file mode 100755
index e5580e9..0000000
Binary files a/web/angular/src/assets/img/flags/Guatemala.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Guernsey.png b/web/angular/src/assets/img/flags/Guernsey.png
deleted file mode 100755
index 0514cc9..0000000
Binary files a/web/angular/src/assets/img/flags/Guernsey.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Guinea-Bissau.png b/web/angular/src/assets/img/flags/Guinea-Bissau.png
deleted file mode 100755
index d097a28..0000000
Binary files a/web/angular/src/assets/img/flags/Guinea-Bissau.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Guinea.png b/web/angular/src/assets/img/flags/Guinea.png
deleted file mode 100755
index f71c621..0000000
Binary files a/web/angular/src/assets/img/flags/Guinea.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Guyana.png b/web/angular/src/assets/img/flags/Guyana.png
deleted file mode 100755
index 76eabd9..0000000
Binary files a/web/angular/src/assets/img/flags/Guyana.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Haiti.png b/web/angular/src/assets/img/flags/Haiti.png
deleted file mode 100755
index 325cef0..0000000
Binary files a/web/angular/src/assets/img/flags/Haiti.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Honduras.png b/web/angular/src/assets/img/flags/Honduras.png
deleted file mode 100755
index 1f327f1..0000000
Binary files a/web/angular/src/assets/img/flags/Honduras.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Hong Kong.png b/web/angular/src/assets/img/flags/Hong Kong.png
deleted file mode 100755
index 46208e0..0000000
Binary files a/web/angular/src/assets/img/flags/Hong Kong.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Hungary.png b/web/angular/src/assets/img/flags/Hungary.png
deleted file mode 100755
index af757c6..0000000
Binary files a/web/angular/src/assets/img/flags/Hungary.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Iceland.png b/web/angular/src/assets/img/flags/Iceland.png
deleted file mode 100755
index 33d68dd..0000000
Binary files a/web/angular/src/assets/img/flags/Iceland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/India.png b/web/angular/src/assets/img/flags/India.png
deleted file mode 100755
index e0a8865..0000000
Binary files a/web/angular/src/assets/img/flags/India.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Indonezia.png b/web/angular/src/assets/img/flags/Indonezia.png
deleted file mode 100755
index ed42d1f..0000000
Binary files a/web/angular/src/assets/img/flags/Indonezia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Iran.png b/web/angular/src/assets/img/flags/Iran.png
deleted file mode 100755
index 70da4fc..0000000
Binary files a/web/angular/src/assets/img/flags/Iran.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Iraq.png b/web/angular/src/assets/img/flags/Iraq.png
deleted file mode 100755
index cdd0c4f..0000000
Binary files a/web/angular/src/assets/img/flags/Iraq.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Ireland.png b/web/angular/src/assets/img/flags/Ireland.png
deleted file mode 100755
index 74219ab..0000000
Binary files a/web/angular/src/assets/img/flags/Ireland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Islamic Conference.png b/web/angular/src/assets/img/flags/Islamic Conference.png
deleted file mode 100755
index cc4aa3b..0000000
Binary files a/web/angular/src/assets/img/flags/Islamic Conference.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Isle of Man.png b/web/angular/src/assets/img/flags/Isle of Man.png
deleted file mode 100755
index 9478023..0000000
Binary files a/web/angular/src/assets/img/flags/Isle of Man.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Israel.png b/web/angular/src/assets/img/flags/Israel.png
deleted file mode 100755
index 3ba7553..0000000
Binary files a/web/angular/src/assets/img/flags/Israel.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Italy.png b/web/angular/src/assets/img/flags/Italy.png
deleted file mode 100755
index c31017e..0000000
Binary files a/web/angular/src/assets/img/flags/Italy.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Jamaica.png b/web/angular/src/assets/img/flags/Jamaica.png
deleted file mode 100755
index e79cf2a..0000000
Binary files a/web/angular/src/assets/img/flags/Jamaica.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Japan.png b/web/angular/src/assets/img/flags/Japan.png
deleted file mode 100755
index 29c45d5..0000000
Binary files a/web/angular/src/assets/img/flags/Japan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Jersey.png b/web/angular/src/assets/img/flags/Jersey.png
deleted file mode 100755
index b8f5ba6..0000000
Binary files a/web/angular/src/assets/img/flags/Jersey.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Jordan.png b/web/angular/src/assets/img/flags/Jordan.png
deleted file mode 100755
index b627a5c..0000000
Binary files a/web/angular/src/assets/img/flags/Jordan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Kazakhstan.png b/web/angular/src/assets/img/flags/Kazakhstan.png
deleted file mode 100755
index 8980ad9..0000000
Binary files a/web/angular/src/assets/img/flags/Kazakhstan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Kenya.png b/web/angular/src/assets/img/flags/Kenya.png
deleted file mode 100755
index e3d7f12..0000000
Binary files a/web/angular/src/assets/img/flags/Kenya.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Kiribati.png b/web/angular/src/assets/img/flags/Kiribati.png
deleted file mode 100755
index 5d286d2..0000000
Binary files a/web/angular/src/assets/img/flags/Kiribati.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Kosovo.png b/web/angular/src/assets/img/flags/Kosovo.png
deleted file mode 100755
index 1d46286..0000000
Binary files a/web/angular/src/assets/img/flags/Kosovo.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Kuwait.png b/web/angular/src/assets/img/flags/Kuwait.png
deleted file mode 100755
index 8d7adb1..0000000
Binary files a/web/angular/src/assets/img/flags/Kuwait.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Kyrgyzstan.png b/web/angular/src/assets/img/flags/Kyrgyzstan.png
deleted file mode 100755
index cf2d885..0000000
Binary files a/web/angular/src/assets/img/flags/Kyrgyzstan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Laos.png b/web/angular/src/assets/img/flags/Laos.png
deleted file mode 100755
index f3b2309..0000000
Binary files a/web/angular/src/assets/img/flags/Laos.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Latvia.png b/web/angular/src/assets/img/flags/Latvia.png
deleted file mode 100755
index 6ace36d..0000000
Binary files a/web/angular/src/assets/img/flags/Latvia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Lebanon.png b/web/angular/src/assets/img/flags/Lebanon.png
deleted file mode 100755
index 854717e..0000000
Binary files a/web/angular/src/assets/img/flags/Lebanon.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Lesotho.png b/web/angular/src/assets/img/flags/Lesotho.png
deleted file mode 100755
index 9af5c4a..0000000
Binary files a/web/angular/src/assets/img/flags/Lesotho.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Liberia.png b/web/angular/src/assets/img/flags/Liberia.png
deleted file mode 100755
index cadfec1..0000000
Binary files a/web/angular/src/assets/img/flags/Liberia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Libya.png b/web/angular/src/assets/img/flags/Libya.png
deleted file mode 100755
index 8176ad5..0000000
Binary files a/web/angular/src/assets/img/flags/Libya.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Liechtenshein.png b/web/angular/src/assets/img/flags/Liechtenshein.png
deleted file mode 100755
index 4661f3d..0000000
Binary files a/web/angular/src/assets/img/flags/Liechtenshein.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Lithuania.png b/web/angular/src/assets/img/flags/Lithuania.png
deleted file mode 100755
index 875dd3f..0000000
Binary files a/web/angular/src/assets/img/flags/Lithuania.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Luxembourg.png b/web/angular/src/assets/img/flags/Luxembourg.png
deleted file mode 100755
index cef746a..0000000
Binary files a/web/angular/src/assets/img/flags/Luxembourg.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Macao.png b/web/angular/src/assets/img/flags/Macao.png
deleted file mode 100755
index e413fa5..0000000
Binary files a/web/angular/src/assets/img/flags/Macao.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Macedonia.png b/web/angular/src/assets/img/flags/Macedonia.png
deleted file mode 100755
index 0bc9151..0000000
Binary files a/web/angular/src/assets/img/flags/Macedonia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Madagascar.png b/web/angular/src/assets/img/flags/Madagascar.png
deleted file mode 100755
index 31e6d84..0000000
Binary files a/web/angular/src/assets/img/flags/Madagascar.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Malawi.png b/web/angular/src/assets/img/flags/Malawi.png
deleted file mode 100755
index b96d0ad..0000000
Binary files a/web/angular/src/assets/img/flags/Malawi.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Malaysia.png b/web/angular/src/assets/img/flags/Malaysia.png
deleted file mode 100755
index 92686c2..0000000
Binary files a/web/angular/src/assets/img/flags/Malaysia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Maldives.png b/web/angular/src/assets/img/flags/Maldives.png
deleted file mode 100755
index 92472ec..0000000
Binary files a/web/angular/src/assets/img/flags/Maldives.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Mali.png b/web/angular/src/assets/img/flags/Mali.png
deleted file mode 100755
index 189bff7..0000000
Binary files a/web/angular/src/assets/img/flags/Mali.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Malta.png b/web/angular/src/assets/img/flags/Malta.png
deleted file mode 100755
index a93f9ee..0000000
Binary files a/web/angular/src/assets/img/flags/Malta.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Marshall Islands.png b/web/angular/src/assets/img/flags/Marshall Islands.png
deleted file mode 100755
index 1d15869..0000000
Binary files a/web/angular/src/assets/img/flags/Marshall Islands.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Martinique.png b/web/angular/src/assets/img/flags/Martinique.png
deleted file mode 100755
index f2b7be4..0000000
Binary files a/web/angular/src/assets/img/flags/Martinique.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Mauritania.png b/web/angular/src/assets/img/flags/Mauritania.png
deleted file mode 100755
index fcf1b44..0000000
Binary files a/web/angular/src/assets/img/flags/Mauritania.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Mauritius.png b/web/angular/src/assets/img/flags/Mauritius.png
deleted file mode 100755
index e4c0b7d..0000000
Binary files a/web/angular/src/assets/img/flags/Mauritius.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Mexico.png b/web/angular/src/assets/img/flags/Mexico.png
deleted file mode 100755
index f0557d0..0000000
Binary files a/web/angular/src/assets/img/flags/Mexico.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Micronesia.png b/web/angular/src/assets/img/flags/Micronesia.png
deleted file mode 100755
index 02cf424..0000000
Binary files a/web/angular/src/assets/img/flags/Micronesia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Moldova.png b/web/angular/src/assets/img/flags/Moldova.png
deleted file mode 100755
index 344855a..0000000
Binary files a/web/angular/src/assets/img/flags/Moldova.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Monaco.png b/web/angular/src/assets/img/flags/Monaco.png
deleted file mode 100755
index bda53b1..0000000
Binary files a/web/angular/src/assets/img/flags/Monaco.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Mongolia.png b/web/angular/src/assets/img/flags/Mongolia.png
deleted file mode 100755
index 83b7542..0000000
Binary files a/web/angular/src/assets/img/flags/Mongolia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Montenegro.png b/web/angular/src/assets/img/flags/Montenegro.png
deleted file mode 100755
index 5142918..0000000
Binary files a/web/angular/src/assets/img/flags/Montenegro.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Montserrat.png b/web/angular/src/assets/img/flags/Montserrat.png
deleted file mode 100755
index a799545..0000000
Binary files a/web/angular/src/assets/img/flags/Montserrat.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Morocco.png b/web/angular/src/assets/img/flags/Morocco.png
deleted file mode 100755
index c1bb970..0000000
Binary files a/web/angular/src/assets/img/flags/Morocco.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Mozambique.png b/web/angular/src/assets/img/flags/Mozambique.png
deleted file mode 100755
index 07c0a8a..0000000
Binary files a/web/angular/src/assets/img/flags/Mozambique.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Myanmar(Burma).png b/web/angular/src/assets/img/flags/Myanmar(Burma).png
deleted file mode 100755
index 2deafe1..0000000
Binary files a/web/angular/src/assets/img/flags/Myanmar(Burma).png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/NATO.png b/web/angular/src/assets/img/flags/NATO.png
deleted file mode 100755
index d651f06..0000000
Binary files a/web/angular/src/assets/img/flags/NATO.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Namibia.png b/web/angular/src/assets/img/flags/Namibia.png
deleted file mode 100755
index 9d14ed3..0000000
Binary files a/web/angular/src/assets/img/flags/Namibia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Nauru.png b/web/angular/src/assets/img/flags/Nauru.png
deleted file mode 100755
index f763397..0000000
Binary files a/web/angular/src/assets/img/flags/Nauru.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Nepal.png b/web/angular/src/assets/img/flags/Nepal.png
deleted file mode 100755
index f011adc..0000000
Binary files a/web/angular/src/assets/img/flags/Nepal.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Netherlands Antilles.png b/web/angular/src/assets/img/flags/Netherlands Antilles.png
deleted file mode 100755
index e4f171f..0000000
Binary files a/web/angular/src/assets/img/flags/Netherlands Antilles.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Netherlands.png b/web/angular/src/assets/img/flags/Netherlands.png
deleted file mode 100755
index d5ea768..0000000
Binary files a/web/angular/src/assets/img/flags/Netherlands.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/New Caledonia.png b/web/angular/src/assets/img/flags/New Caledonia.png
deleted file mode 100755
index dc3e9e1..0000000
Binary files a/web/angular/src/assets/img/flags/New Caledonia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/New Zealand.png b/web/angular/src/assets/img/flags/New Zealand.png
deleted file mode 100755
index ef474ad..0000000
Binary files a/web/angular/src/assets/img/flags/New Zealand.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Nicaragua.png b/web/angular/src/assets/img/flags/Nicaragua.png
deleted file mode 100755
index ad8ab44..0000000
Binary files a/web/angular/src/assets/img/flags/Nicaragua.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Niger.png b/web/angular/src/assets/img/flags/Niger.png
deleted file mode 100755
index 06a7c08..0000000
Binary files a/web/angular/src/assets/img/flags/Niger.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Nigeria.png b/web/angular/src/assets/img/flags/Nigeria.png
deleted file mode 100755
index 899e0be..0000000
Binary files a/web/angular/src/assets/img/flags/Nigeria.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/North Korea.png b/web/angular/src/assets/img/flags/North Korea.png
deleted file mode 100755
index f51a2bf..0000000
Binary files a/web/angular/src/assets/img/flags/North Korea.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Northern Cyprus.png b/web/angular/src/assets/img/flags/Northern Cyprus.png
deleted file mode 100755
index cb34657..0000000
Binary files a/web/angular/src/assets/img/flags/Northern Cyprus.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Northern Ireland.png b/web/angular/src/assets/img/flags/Northern Ireland.png
deleted file mode 100755
index c0eafdf..0000000
Binary files a/web/angular/src/assets/img/flags/Northern Ireland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Norway.png b/web/angular/src/assets/img/flags/Norway.png
deleted file mode 100755
index 2b03236..0000000
Binary files a/web/angular/src/assets/img/flags/Norway.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/OPEC.png b/web/angular/src/assets/img/flags/OPEC.png
deleted file mode 100755
index 5d9c242..0000000
Binary files a/web/angular/src/assets/img/flags/OPEC.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Olimpic Movement.png b/web/angular/src/assets/img/flags/Olimpic Movement.png
deleted file mode 100755
index 71d97ae..0000000
Binary files a/web/angular/src/assets/img/flags/Olimpic Movement.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Oman.png b/web/angular/src/assets/img/flags/Oman.png
deleted file mode 100755
index 111b114..0000000
Binary files a/web/angular/src/assets/img/flags/Oman.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Pakistan.png b/web/angular/src/assets/img/flags/Pakistan.png
deleted file mode 100755
index 1630f55..0000000
Binary files a/web/angular/src/assets/img/flags/Pakistan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Palau.png b/web/angular/src/assets/img/flags/Palau.png
deleted file mode 100755
index 21a45c4..0000000
Binary files a/web/angular/src/assets/img/flags/Palau.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Palestine.png b/web/angular/src/assets/img/flags/Palestine.png
deleted file mode 100755
index 6f654e3..0000000
Binary files a/web/angular/src/assets/img/flags/Palestine.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Panama.png b/web/angular/src/assets/img/flags/Panama.png
deleted file mode 100755
index e39849d..0000000
Binary files a/web/angular/src/assets/img/flags/Panama.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Papua New Guinea.png b/web/angular/src/assets/img/flags/Papua New Guinea.png
deleted file mode 100755
index 7b0d0ee..0000000
Binary files a/web/angular/src/assets/img/flags/Papua New Guinea.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Paraguay.png b/web/angular/src/assets/img/flags/Paraguay.png
deleted file mode 100755
index d8cc505..0000000
Binary files a/web/angular/src/assets/img/flags/Paraguay.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Peru.png b/web/angular/src/assets/img/flags/Peru.png
deleted file mode 100755
index f971a35..0000000
Binary files a/web/angular/src/assets/img/flags/Peru.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Philippines.png b/web/angular/src/assets/img/flags/Philippines.png
deleted file mode 100755
index d025d4d..0000000
Binary files a/web/angular/src/assets/img/flags/Philippines.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Poland.png b/web/angular/src/assets/img/flags/Poland.png
deleted file mode 100755
index 7a71804..0000000
Binary files a/web/angular/src/assets/img/flags/Poland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Portugal.png b/web/angular/src/assets/img/flags/Portugal.png
deleted file mode 100755
index 5b39073..0000000
Binary files a/web/angular/src/assets/img/flags/Portugal.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Puerto Rico.png b/web/angular/src/assets/img/flags/Puerto Rico.png
deleted file mode 100755
index 146ca81..0000000
Binary files a/web/angular/src/assets/img/flags/Puerto Rico.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Qatar.png b/web/angular/src/assets/img/flags/Qatar.png
deleted file mode 100755
index 1dd1183..0000000
Binary files a/web/angular/src/assets/img/flags/Qatar.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Red Cross.png b/web/angular/src/assets/img/flags/Red Cross.png
deleted file mode 100755
index fd79967..0000000
Binary files a/web/angular/src/assets/img/flags/Red Cross.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Reunion.png b/web/angular/src/assets/img/flags/Reunion.png
deleted file mode 100755
index 8087909..0000000
Binary files a/web/angular/src/assets/img/flags/Reunion.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Romania.png b/web/angular/src/assets/img/flags/Romania.png
deleted file mode 100755
index b8cdad8..0000000
Binary files a/web/angular/src/assets/img/flags/Romania.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Russia.png b/web/angular/src/assets/img/flags/Russia.png
deleted file mode 100755
index a5b9528..0000000
Binary files a/web/angular/src/assets/img/flags/Russia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Rwanda.png b/web/angular/src/assets/img/flags/Rwanda.png
deleted file mode 100755
index f6f5163..0000000
Binary files a/web/angular/src/assets/img/flags/Rwanda.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Saint Lucia.png b/web/angular/src/assets/img/flags/Saint Lucia.png
deleted file mode 100755
index 987e1f0..0000000
Binary files a/web/angular/src/assets/img/flags/Saint Lucia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Samoa.png b/web/angular/src/assets/img/flags/Samoa.png
deleted file mode 100755
index e671ebb..0000000
Binary files a/web/angular/src/assets/img/flags/Samoa.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/San Marino.png b/web/angular/src/assets/img/flags/San Marino.png
deleted file mode 100755
index 92bd72b..0000000
Binary files a/web/angular/src/assets/img/flags/San Marino.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Sao Tome & Principe.png b/web/angular/src/assets/img/flags/Sao Tome & Principe.png
deleted file mode 100755
index b5187c6..0000000
Binary files a/web/angular/src/assets/img/flags/Sao Tome & Principe.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Saudi Arabia.png b/web/angular/src/assets/img/flags/Saudi Arabia.png
deleted file mode 100755
index 9630e83..0000000
Binary files a/web/angular/src/assets/img/flags/Saudi Arabia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Scotland.png b/web/angular/src/assets/img/flags/Scotland.png
deleted file mode 100755
index 4ac5281..0000000
Binary files a/web/angular/src/assets/img/flags/Scotland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Senegal.png b/web/angular/src/assets/img/flags/Senegal.png
deleted file mode 100755
index 13c9365..0000000
Binary files a/web/angular/src/assets/img/flags/Senegal.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Serbia(Yugoslavia).png b/web/angular/src/assets/img/flags/Serbia(Yugoslavia).png
deleted file mode 100755
index b2afcf5..0000000
Binary files a/web/angular/src/assets/img/flags/Serbia(Yugoslavia).png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Seychelles.png b/web/angular/src/assets/img/flags/Seychelles.png
deleted file mode 100755
index de605e6..0000000
Binary files a/web/angular/src/assets/img/flags/Seychelles.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Sierra Leone.png b/web/angular/src/assets/img/flags/Sierra Leone.png
deleted file mode 100755
index 47b26eb..0000000
Binary files a/web/angular/src/assets/img/flags/Sierra Leone.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Singapore.png b/web/angular/src/assets/img/flags/Singapore.png
deleted file mode 100755
index 4b88785..0000000
Binary files a/web/angular/src/assets/img/flags/Singapore.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Slovakia.png b/web/angular/src/assets/img/flags/Slovakia.png
deleted file mode 100755
index 418c786..0000000
Binary files a/web/angular/src/assets/img/flags/Slovakia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Slovenia.png b/web/angular/src/assets/img/flags/Slovenia.png
deleted file mode 100755
index cfa83b5..0000000
Binary files a/web/angular/src/assets/img/flags/Slovenia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Solomon Islands.png b/web/angular/src/assets/img/flags/Solomon Islands.png
deleted file mode 100755
index f1ffebb..0000000
Binary files a/web/angular/src/assets/img/flags/Solomon Islands.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Somalia.png b/web/angular/src/assets/img/flags/Somalia.png
deleted file mode 100755
index 6a02c72..0000000
Binary files a/web/angular/src/assets/img/flags/Somalia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Somaliland.png b/web/angular/src/assets/img/flags/Somaliland.png
deleted file mode 100755
index d44f580..0000000
Binary files a/web/angular/src/assets/img/flags/Somaliland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/South Africa.png b/web/angular/src/assets/img/flags/South Africa.png
deleted file mode 100755
index d1920de..0000000
Binary files a/web/angular/src/assets/img/flags/South Africa.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/South Korea.png b/web/angular/src/assets/img/flags/South Korea.png
deleted file mode 100755
index 13e27e1..0000000
Binary files a/web/angular/src/assets/img/flags/South Korea.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Spain.png b/web/angular/src/assets/img/flags/Spain.png
deleted file mode 100755
index 38b66bc..0000000
Binary files a/web/angular/src/assets/img/flags/Spain.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Sri Lanka.png b/web/angular/src/assets/img/flags/Sri Lanka.png
deleted file mode 100755
index 2a7d925..0000000
Binary files a/web/angular/src/assets/img/flags/Sri Lanka.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/St Kitts & Nevis.png b/web/angular/src/assets/img/flags/St Kitts & Nevis.png
deleted file mode 100755
index 75f3ed2..0000000
Binary files a/web/angular/src/assets/img/flags/St Kitts & Nevis.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/St Vincent & the Grenadines.png b/web/angular/src/assets/img/flags/St Vincent & the Grenadines.png
deleted file mode 100755
index e633360..0000000
Binary files a/web/angular/src/assets/img/flags/St Vincent & the Grenadines.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Sudan.png b/web/angular/src/assets/img/flags/Sudan.png
deleted file mode 100755
index 3a37985..0000000
Binary files a/web/angular/src/assets/img/flags/Sudan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Suriname.png b/web/angular/src/assets/img/flags/Suriname.png
deleted file mode 100755
index cb4a87a..0000000
Binary files a/web/angular/src/assets/img/flags/Suriname.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Swaziland.png b/web/angular/src/assets/img/flags/Swaziland.png
deleted file mode 100755
index 3585ac0..0000000
Binary files a/web/angular/src/assets/img/flags/Swaziland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Sweden.png b/web/angular/src/assets/img/flags/Sweden.png
deleted file mode 100755
index 2c9bd9d..0000000
Binary files a/web/angular/src/assets/img/flags/Sweden.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Switzerland.png b/web/angular/src/assets/img/flags/Switzerland.png
deleted file mode 100755
index 223154d..0000000
Binary files a/web/angular/src/assets/img/flags/Switzerland.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Syria.png b/web/angular/src/assets/img/flags/Syria.png
deleted file mode 100755
index 0584c20..0000000
Binary files a/web/angular/src/assets/img/flags/Syria.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Tahiti(French Polinesia).png b/web/angular/src/assets/img/flags/Tahiti(French Polinesia).png
deleted file mode 100755
index cbc56d0..0000000
Binary files a/web/angular/src/assets/img/flags/Tahiti(French Polinesia).png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Taiwan.png b/web/angular/src/assets/img/flags/Taiwan.png
deleted file mode 100755
index 956d853..0000000
Binary files a/web/angular/src/assets/img/flags/Taiwan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Tajikistan.png b/web/angular/src/assets/img/flags/Tajikistan.png
deleted file mode 100755
index 09a7907..0000000
Binary files a/web/angular/src/assets/img/flags/Tajikistan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Tanzania.png b/web/angular/src/assets/img/flags/Tanzania.png
deleted file mode 100755
index f0e1f39..0000000
Binary files a/web/angular/src/assets/img/flags/Tanzania.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Thailand.png b/web/angular/src/assets/img/flags/Thailand.png
deleted file mode 100755
index 8f3b5e7..0000000
Binary files a/web/angular/src/assets/img/flags/Thailand.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Timor-Leste.png b/web/angular/src/assets/img/flags/Timor-Leste.png
deleted file mode 100755
index 296fba0..0000000
Binary files a/web/angular/src/assets/img/flags/Timor-Leste.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Togo.png b/web/angular/src/assets/img/flags/Togo.png
deleted file mode 100755
index 5a100b1..0000000
Binary files a/web/angular/src/assets/img/flags/Togo.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Tonga.png b/web/angular/src/assets/img/flags/Tonga.png
deleted file mode 100755
index f62ba37..0000000
Binary files a/web/angular/src/assets/img/flags/Tonga.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Trinidad & Tobago.png b/web/angular/src/assets/img/flags/Trinidad & Tobago.png
deleted file mode 100755
index cf85660..0000000
Binary files a/web/angular/src/assets/img/flags/Trinidad & Tobago.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Tunisia.png b/web/angular/src/assets/img/flags/Tunisia.png
deleted file mode 100755
index d867a5e..0000000
Binary files a/web/angular/src/assets/img/flags/Tunisia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Turkey.png b/web/angular/src/assets/img/flags/Turkey.png
deleted file mode 100755
index 0398e54..0000000
Binary files a/web/angular/src/assets/img/flags/Turkey.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Turkmenistan.png b/web/angular/src/assets/img/flags/Turkmenistan.png
deleted file mode 100755
index e3c50ed..0000000
Binary files a/web/angular/src/assets/img/flags/Turkmenistan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Turks and Caicos Islands.png b/web/angular/src/assets/img/flags/Turks and Caicos Islands.png
deleted file mode 100755
index fc66ef0..0000000
Binary files a/web/angular/src/assets/img/flags/Turks and Caicos Islands.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Tuvalu.png b/web/angular/src/assets/img/flags/Tuvalu.png
deleted file mode 100755
index 3a403a6..0000000
Binary files a/web/angular/src/assets/img/flags/Tuvalu.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/USA.png b/web/angular/src/assets/img/flags/USA.png
deleted file mode 100755
index 48c448f..0000000
Binary files a/web/angular/src/assets/img/flags/USA.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Uganda.png b/web/angular/src/assets/img/flags/Uganda.png
deleted file mode 100755
index 744d39d..0000000
Binary files a/web/angular/src/assets/img/flags/Uganda.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Ukraine.png b/web/angular/src/assets/img/flags/Ukraine.png
deleted file mode 100755
index 78e4945..0000000
Binary files a/web/angular/src/assets/img/flags/Ukraine.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/United Arab Emirates.png b/web/angular/src/assets/img/flags/United Arab Emirates.png
deleted file mode 100755
index 1161375..0000000
Binary files a/web/angular/src/assets/img/flags/United Arab Emirates.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/United Nations.png b/web/angular/src/assets/img/flags/United Nations.png
deleted file mode 100755
index 6b5f639..0000000
Binary files a/web/angular/src/assets/img/flags/United Nations.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/United-Kingdom.png b/web/angular/src/assets/img/flags/United-Kingdom.png
deleted file mode 100755
index 3853f5e..0000000
Binary files a/web/angular/src/assets/img/flags/United-Kingdom.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Uruguay.png b/web/angular/src/assets/img/flags/Uruguay.png
deleted file mode 100755
index 0eddedc..0000000
Binary files a/web/angular/src/assets/img/flags/Uruguay.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Uzbekistan.png b/web/angular/src/assets/img/flags/Uzbekistan.png
deleted file mode 100755
index 97ade3f..0000000
Binary files a/web/angular/src/assets/img/flags/Uzbekistan.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Vanutau.png b/web/angular/src/assets/img/flags/Vanutau.png
deleted file mode 100755
index ff6cbef..0000000
Binary files a/web/angular/src/assets/img/flags/Vanutau.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Vatican City.png b/web/angular/src/assets/img/flags/Vatican City.png
deleted file mode 100755
index c344e8b..0000000
Binary files a/web/angular/src/assets/img/flags/Vatican City.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Venezuela.png b/web/angular/src/assets/img/flags/Venezuela.png
deleted file mode 100755
index 8ba69c4..0000000
Binary files a/web/angular/src/assets/img/flags/Venezuela.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Viet Nam.png b/web/angular/src/assets/img/flags/Viet Nam.png
deleted file mode 100755
index c9368df..0000000
Binary files a/web/angular/src/assets/img/flags/Viet Nam.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Virgin Islands British.png b/web/angular/src/assets/img/flags/Virgin Islands British.png
deleted file mode 100755
index eb22e44..0000000
Binary files a/web/angular/src/assets/img/flags/Virgin Islands British.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Virgin Islands US.png b/web/angular/src/assets/img/flags/Virgin Islands US.png
deleted file mode 100755
index 13be807..0000000
Binary files a/web/angular/src/assets/img/flags/Virgin Islands US.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Wales.png b/web/angular/src/assets/img/flags/Wales.png
deleted file mode 100755
index 3c49345..0000000
Binary files a/web/angular/src/assets/img/flags/Wales.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Western Sahara.png b/web/angular/src/assets/img/flags/Western Sahara.png
deleted file mode 100755
index 5eb501c..0000000
Binary files a/web/angular/src/assets/img/flags/Western Sahara.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Yemen.png b/web/angular/src/assets/img/flags/Yemen.png
deleted file mode 100755
index 987a212..0000000
Binary files a/web/angular/src/assets/img/flags/Yemen.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Zambia.png b/web/angular/src/assets/img/flags/Zambia.png
deleted file mode 100755
index 639c3ac..0000000
Binary files a/web/angular/src/assets/img/flags/Zambia.png and /dev/null differ
diff --git a/web/angular/src/assets/img/flags/Zimbabwe.png b/web/angular/src/assets/img/flags/Zimbabwe.png
deleted file mode 100755
index 39106df..0000000
Binary files a/web/angular/src/assets/img/flags/Zimbabwe.png and /dev/null differ
diff --git a/web/angular/src/assets/img/icon_launcher.png b/web/angular/src/assets/img/icon_launcher.png
deleted file mode 100644
index c06b067..0000000
Binary files a/web/angular/src/assets/img/icon_launcher.png and /dev/null differ
diff --git a/web/angular/src/assets/img/logo-symbol.png b/web/angular/src/assets/img/logo-symbol.png
deleted file mode 100755
index 7f62aff..0000000
Binary files a/web/angular/src/assets/img/logo-symbol.png and /dev/null differ
diff --git a/web/angular/src/assets/img/logo.png b/web/angular/src/assets/img/logo.png
deleted file mode 100755
index 98a1946..0000000
Binary files a/web/angular/src/assets/img/logo.png and /dev/null differ
diff --git a/web/angular/src/assets/img/marker_normal.png b/web/angular/src/assets/img/marker_normal.png
deleted file mode 100644
index 01f2f91..0000000
Binary files a/web/angular/src/assets/img/marker_normal.png and /dev/null differ
diff --git a/web/angular/src/assets/img/marker_place.png b/web/angular/src/assets/img/marker_place.png
deleted file mode 100644
index 3bb06fa..0000000
Binary files a/web/angular/src/assets/img/marker_place.png and /dev/null differ
diff --git a/web/angular/src/assets/markers/marker_dark.png b/web/angular/src/assets/markers/marker_dark.png
new file mode 100644
index 0000000..67ac47e
Binary files /dev/null and b/web/angular/src/assets/markers/marker_dark.png differ
diff --git a/web/angular/src/assets/markers/marker_normal.png b/web/angular/src/assets/markers/marker_normal.png
new file mode 100644
index 0000000..8a181ad
Binary files /dev/null and b/web/angular/src/assets/markers/marker_normal.png differ
diff --git a/web/angular/src/assets/markers/marker_pin.png b/web/angular/src/assets/markers/marker_pin.png
new file mode 100644
index 0000000..3bf0be4
Binary files /dev/null and b/web/angular/src/assets/markers/marker_pin.png differ
diff --git a/web/angular/src/assets/markers/marker_shadow.png b/web/angular/src/assets/markers/marker_shadow.png
new file mode 100644
index 0000000..2a22586
Binary files /dev/null and b/web/angular/src/assets/markers/marker_shadow.png differ
diff --git a/web/angular/src/environments/environment.ts b/web/angular/src/environments/environment.ts
index 00313f1..b7f639a 100755
--- a/web/angular/src/environments/environment.ts
+++ b/web/angular/src/environments/environment.ts
@@ -1,7 +1,7 @@
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
-// The list of which env maps to which file can be found in `angular-cli.json`.
+// The list of which env maps to which file can be found in `.angular-cli.json`.
export const environment = {
production: false
diff --git a/web/angular/src/favicon.ico b/web/angular/src/favicon.ico
index 8081c7c..2ebfa0d 100644
Binary files a/web/angular/src/favicon.ico and b/web/angular/src/favicon.ico differ
diff --git a/web/angular/src/fonts.scss b/web/angular/src/fonts.scss
new file mode 100644
index 0000000..3a77091
--- /dev/null
+++ b/web/angular/src/fonts.scss
@@ -0,0 +1,69 @@
+/**
+ * Setup of self-hosted material icons font.
+ *
+ * http://google.github.io/material-design-icons/#icon-font-for-the-web
+ */
+@font-face {
+ font-family: 'Material Icons';
+ font-style: normal;
+ font-weight: 400;
+ src: url(assets/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
+ src: local('Material Icons'),
+ local('MaterialIcons-Regular'),
+ url(/assets/fonts/MaterialIcons-Regular.woff2) format('woff2'),
+ url(/assets/fonts/MaterialIcons-Regular.woff) format('woff'),
+ url(/assets/fonts/MaterialIcons-Regular.ttf) format('truetype');
+ }
+
+.material-icons {
+ font-family: 'Material Icons';
+ font-weight: normal;
+ font-style: normal;
+ font-size: 24px; /* Preferred icon size */
+ display: inline-block;
+ line-height: 1;
+ text-transform: none;
+ letter-spacing: normal;
+ word-wrap: normal;
+ white-space: nowrap;
+ direction: ltr;
+
+ /* Support for all WebKit browsers. */
+ -webkit-font-smoothing: antialiased;
+ /* Support for Safari and Chrome. */
+ text-rendering: optimizeLegibility;
+
+ /* Support for Firefox. */
+ -moz-osx-font-smoothing: grayscale;
+
+ /* Support for IE. */
+ font-feature-settings: 'liga';
+ }
+
+/**
+ * Setup of self-hosted roboto font.
+ *
+ * https://google-webfonts-helper.herokuapp.com/fonts/roboto?subsets=latin
+ */
+ @font-face {
+ font-family: 'Roboto';
+ font-style: normal;
+ font-weight: 400;
+ src: url('/assets/fonts/RobotoLatin-Regular.eot'); /* IE9 Compat Modes */
+ src: local('Roboto'), local('Roboto-Regular'),
+ url('/assets/fonts/RobotoLatin-Regular.woff2') format('woff2'), /* Super Modern Browsers */
+ url('/assets/fonts/RobotoLatin-Regular.woff') format('woff'), /* Modern Browsers */
+ url('/assets/fonts/RobotoLatin-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
+ }
+
+ /* roboto-mono-regular - latin */
+@font-face {
+ font-family: 'Roboto Mono';
+ font-style: normal;
+ font-weight: 400;
+ src: url('/assets/fonts/RobotoMonoLatin-Regular.eot'); /* IE9 Compat Modes */
+ src: local('Roboto Mono'), local('RobotoMono-Regular'),
+ url('/assets/fonts/RobotoMonoLatin-Regular.woff2') format('woff2'), /* Super Modern Browsers */
+ url('/assets/fonts/RobotoMonoLatin-Regular.woff') format('woff'), /* Modern Browsers */
+ url('/assets/fonts/RobotoMonoLatin-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
+}
\ No newline at end of file
diff --git a/web/angular/src/img/favicon.png b/web/angular/src/img/favicon.png
deleted file mode 100755
index 7f62aff..0000000
Binary files a/web/angular/src/img/favicon.png and /dev/null differ
diff --git a/web/angular/src/img/icon_launcher.png b/web/angular/src/img/icon_launcher.png
deleted file mode 100644
index c06b067..0000000
Binary files a/web/angular/src/img/icon_launcher.png and /dev/null differ
diff --git a/web/angular/src/img/logo-symbol.png b/web/angular/src/img/logo-symbol.png
deleted file mode 100755
index 7f62aff..0000000
Binary files a/web/angular/src/img/logo-symbol.png and /dev/null differ
diff --git a/web/angular/src/img/logo.png b/web/angular/src/img/logo.png
deleted file mode 100755
index 98a1946..0000000
Binary files a/web/angular/src/img/logo.png and /dev/null differ
diff --git a/web/angular/src/index.html b/web/angular/src/index.html
index 6cf706a..8fde556 100755
--- a/web/angular/src/index.html
+++ b/web/angular/src/index.html
@@ -1,46 +1,34 @@
-
+
+
-
-
-
- Maptology
+ Maptology
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
-
+
\ No newline at end of file
diff --git a/web/angular/src/main.ts b/web/angular/src/main.ts
index 91ec6da..a7ea96c 100644
--- a/web/angular/src/main.ts
+++ b/web/angular/src/main.ts
@@ -4,6 +4,8 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
+import 'hammerjs';
+
if (environment.production) {
enableProdMode();
}
diff --git a/web/angular/src/polyfills.ts b/web/angular/src/polyfills.ts
index 20d4075..af84770 100644
--- a/web/angular/src/polyfills.ts
+++ b/web/angular/src/polyfills.ts
@@ -52,10 +52,23 @@ import 'core-js/es7/reflect';
**/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
+/**
+ * By default, zone.js will patch all possible macroTask and DomEvents
+ * user can disable parts of macroTask/DomEvents patch by setting following flags
+ */
+ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
+ // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
+ // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
+
+ /*
+ * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
+ * with the following flag, it will bypass `zone.js` patch for IE/Edge
+ */
+// (window as any).__Zone_enable_cross_context_check = true;
/***************************************************************************************************
- * Zone JS is required by Angular itself.
+ * Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
@@ -64,13 +77,3 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/
-
-/**
- * Date, currency, decimal and percent pipes.
- * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
- */
-// import 'intl'; // Run `npm install --save intl`.
-/**
- * Need to import at least one locale-data with intl.
- */
-// import 'intl/locale-data/jsonp/en';
diff --git a/web/angular/src/scss/_bootstrap-variables.scss b/web/angular/src/scss/_bootstrap-variables.scss
deleted file mode 100755
index 954d343..0000000
--- a/web/angular/src/scss/_bootstrap-variables.scss
+++ /dev/null
@@ -1,121 +0,0 @@
-// Bootstrap overrides
-
-//
-// Color system
-//
-
-$white: #fff;
-$gray-100: #f0f3f5;
-$gray-200: #c2cfd6;
-$gray-300: #a4b7c1;
-$gray-400: #869fac;
-$gray-500: #678898;
-$gray-600: #536c79;
-$gray-700: #3e515b;
-$gray-800: #29363d;
-$gray-900: #151b1e;
-$black: #000 !default;
-
-$blue: #20a8d8;
-$indigo: #6610f2 !default;
-$purple: #6f42c1 !default;
-$pink: #e83e8c !default;
-$red: #f86c6b;
-$orange: #f8cb00;
-$yellow: #ffc107 !default;
-$green: #4dbd74;
-$teal: #20c997 !default;
-$cyan: #63c2de;
-
-$primary: #01579b;
-$primary-light: #4f83cc;
-$primary-dark: #002f6c;
-
-$secondary: #f9a825;
-$secondary-light: #ffd95a;
-$secondary-dark: #c17900;
-
-$colors: (
- blue: $blue,
- indigo: $indigo,
- purple: $purple,
- pink: $pink,
- red: $red,
- orange: $orange,
- yellow: $yellow,
- green: $green,
- teal: $teal,
- cyan: $cyan,
- white: $white,
- gray: $gray-600,
- gray-dark: $gray-800
-);
-
-$theme-colors: (
- primary: $primary, //$blue,
- primary-light: $primary-light, //did not exist
- primary-dark: $primary-dark, //did not exist
- secondary: $secondary, //$gray-300,
- secondary-light: $secondary-light,//did not exist
- secondary-dark: $secondary-dark,//did not exist
- success: $green,
- info: $cyan,
- warning: $secondary-dark,
- danger: $red,
- light: $gray-100,
- dark: $gray-800
-);
-
-// Options
-//
-// Quickly modify global styling by enabling or disabling optional features.
-
-$enable-transitions: true;
-$enable-rounded: false;
-
-// Body
-//
-// Settings for the `` element.
-
-$body-bg: #e4e5e6;
-
-// Typography
-//
-// Font, line-height, and color for body text, headings, and more.
-
-$font-size-base: 0.875rem;
-
-// Breadcrumbs
-
-$breadcrumb-bg: #fff;
-$breadcrumb-margin-bottom: 1.5rem;
-
-// Cards
-
-$card-border-color: $gray-200;
-$card-cap-bg: $gray-100;
-
-// Dropdowns
-
-$dropdown-padding-y: 0;
-$dropdown-border-color: $gray-200;
-$dropdown-divider-bg: $gray-100;
-
-// Buttons
-
-$btn-secondary-border: $gray-300;
-
-// Progress bars
-
-$progress-bg: $gray-100;
-
-// Tables
-
-$table-bg-accent: $gray-100;
-$table-bg-hover: $gray-100;
-
-// Forms
-
-$input-group-addon-bg: $gray-100;
-$input-border-color: $gray-200;
-$input-group-addon-border-color: $gray-200;
diff --git a/web/angular/src/scss/_core-variables.scss b/web/angular/src/scss/_core-variables.scss
deleted file mode 100755
index df3271d..0000000
--- a/web/angular/src/scss/_core-variables.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-// core overrides
-@import "node_modules/bootstrap/scss/functions";
-//CUSTOMCOLORS
-$sidebar-nav-link-active-icon-color: theme-color("secondary") !default;
-$sidebar-nav-link-icon-color: theme-color("secondary-dark") !default;
diff --git a/web/angular/src/scss/_custom.scss b/web/angular/src/scss/_custom.scss
deleted file mode 100755
index 15d367a..0000000
--- a/web/angular/src/scss/_custom.scss
+++ /dev/null
@@ -1 +0,0 @@
-// Here you can add other styles
diff --git a/web/angular/src/scss/core/_animate.scss b/web/angular/src/scss/core/_animate.scss
deleted file mode 100755
index c0a244b..0000000
--- a/web/angular/src/scss/core/_animate.scss
+++ /dev/null
@@ -1,27 +0,0 @@
-// scss-lint:disable all
-.animated {
- animation-duration: 1s;
- // animation-fill-mode: both;
-}
-
-.animated.infinite {
- animation-iteration-count: infinite;
-}
-
-.animated.hinge {
- animation-duration: 2s;
-}
-
-@keyframes fadeIn {
- from {
- opacity: 0;
- }
-
- to {
- opacity: 1;
- }
-}
-
-.fadeIn {
- animation-name: fadeIn;
-}
diff --git a/web/angular/src/scss/core/_aside.scss b/web/angular/src/scss/core/_aside.scss
deleted file mode 100755
index fc71e42..0000000
--- a/web/angular/src/scss/core/_aside.scss
+++ /dev/null
@@ -1,64 +0,0 @@
-.aside-menu {
- z-index: $zindex-sticky - 1;
- width: $aside-menu-width;
- color: $aside-menu-color;
- background: $aside-menu-bg;
- @include borders($aside-menu-borders);
-
- .nav-tabs {
- border-color: $border-color;
- .nav-link {
- padding: $aside-menu-nav-padding-y $aside-menu-nav-padding-x;
- color: $body-color;
- border-top: 0;
- &.active {
- color: theme-color("primary");
- border-right-color: $border-color;
- border-left-color: $border-color;
- }
- }
- .nav-item:first-child {
- .nav-link {
- border-left: 0;
- }
- }
- }
-
- .tab-content {
- position: relative;
- overflow-x: hidden;
- overflow-y: auto;
- border: 0;
- border-top: 1px solid $border-color;
- -ms-overflow-style: -ms-autohiding-scrollbar;
-
- &::-webkit-scrollbar {
- width: 10px;
- margin-left: -10px;
- -webkit-appearance: none;
- }
-
- // &::-webkit-scrollbar-button { }
-
- &::-webkit-scrollbar-track {
- background-color: lighten($aside-menu-bg, 5%);
- border-right: 1px solid darken($aside-menu-bg, 5%);
- border-left: 1px solid darken($aside-menu-bg, 5%);
- }
-
- // &::-webkit-scrollbar-track-piece { }
-
- &::-webkit-scrollbar-thumb {
- height: 50px;
- background-color: darken($aside-menu-bg, 10%);
- background-clip: content-box;
- border-color: transparent;
- border-style: solid;
- border-width: 1px 2px;
- }
-
- .tab-pane {
- padding: 0;
- }
- }
-}
diff --git a/web/angular/src/scss/core/_avatars.scss b/web/angular/src/scss/core/_avatars.scss
deleted file mode 100755
index 623016e..0000000
--- a/web/angular/src/scss/core/_avatars.scss
+++ /dev/null
@@ -1,51 +0,0 @@
-.img-avatar {
- border-radius: 50em;
-}
-
-.avatar {
- $width: 36px;
- $status-width: 10px;
- @include avatar($width,$status-width);
-}
-
-.avatar.avatar-xs {
- $width: 20px;
- $status-width: 8px;
- @include avatar($width,$status-width);
-}
-
-.avatar.avatar-sm {
- $width: 24px;
- $status-width: 8px;
- @include avatar($width,$status-width);
-}
-
-.avatar.avatar-lg {
- $width: 72px;
- $status-width: 12px;
- @include avatar($width,$status-width);
-}
-
-.avatars-stack {
- .avatar.avatar-xs {
- margin-right: -10px;
- }
-
- // .avatar.avatar-sm {
- //
- // }
-
- .avatar {
- margin-right: -15px;
- transition: margin-left $layout-transition-speed, margin-right $layout-transition-speed;
-
- &:hover {
- margin-right: 0 !important;
- }
- }
-
- // .avatar.avatar-lg {
- //
- // }
-
-}
diff --git a/web/angular/src/scss/core/_badge.scss b/web/angular/src/scss/core/_badge.scss
deleted file mode 100755
index 3104885..0000000
--- a/web/angular/src/scss/core/_badge.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.badge-pill {
- border-radius: $badge-pill-border-radius;
-}
diff --git a/web/angular/src/scss/core/_breadcrumb-menu.scss b/web/angular/src/scss/core/_breadcrumb-menu.scss
deleted file mode 100755
index dbbe07e..0000000
--- a/web/angular/src/scss/core/_breadcrumb-menu.scss
+++ /dev/null
@@ -1,35 +0,0 @@
-.breadcrumb-menu {
- margin-left: auto;
-
- &::before {
- display: none;
- }
-
- .btn-group {
- vertical-align: top;
- }
-
- .btn {
- padding: 0 $input-btn-padding-x;
- color: $text-muted;
- vertical-align: top;
- border: 0;
-
- &:hover, &.active {
- color: $body-color;
- background: transparent;
- }
- }
-
- .open {
- .btn {
- color: $body-color;
- background: transparent;
- }
- }
-
- .dropdown-menu {
- min-width: 180px;
- line-height: $line-height-base;
- }
-}
diff --git a/web/angular/src/scss/core/_breadcrumb.scss b/web/angular/src/scss/core/_breadcrumb.scss
deleted file mode 100755
index d8a003d..0000000
--- a/web/angular/src/scss/core/_breadcrumb.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-.breadcrumb {
- position: relative;
- @include borders($breadcrumb-borders);
-}
diff --git a/web/angular/src/scss/core/_buttons.scss b/web/angular/src/scss/core/_buttons.scss
deleted file mode 100755
index 7ab4953..0000000
--- a/web/angular/src/scss/core/_buttons.scss
+++ /dev/null
@@ -1,575 +0,0 @@
-button {
- cursor: pointer;
-}
-
-.btn {
- .badge {
- position: absolute;
- top: 2px;
- right: 6px;
- font-size: 9px;
- }
-}
-
-.btn-transparent {
- color: #fff;
- background-color: transparent;
- border-color: transparent;
-}
-
-.btn {
- [class^="icon-"], [class*=" icon-"] {
- display: inline-block;
- margin-top: -2px;
- vertical-align: middle;
- }
-}
-
-.btn-facebook,
-.btn-twitter,
-.btn-linkedin,
-.btn-flickr,
-.btn-tumblr,
-.btn-xing,
-.btn-github,
-.btn-html5,
-.btn-openid,
-.btn-stack-overflow,
-.btn-youtube,
-.btn-css3,
-.btn-dribbble,
-.btn-google-plus,
-.btn-instagram,
-.btn-pinterest,
-.btn-vk,
-.btn-yahoo,
-.btn-behance,
-.btn-dropbox,
-.btn-reddit,
-.btn-spotify,
-.btn-vine,
-.btn-foursquare,
-.btn-vimeo {
- position: relative;
- overflow: hidden;
- color: #fff !important;
- text-align: center;
-
- &::before {
- position: absolute;
- top: 0;
- left: 0;
- display: block;
- font-family: "FontAwesome";
- font-style: normal;
- font-weight: normal;
- -moz-osx-font-smoothing: grayscale;
- -webkit-font-smoothing: antialiased;
- }
-
- &:hover {
- color: #fff;
- }
-
- &.icon {
-
- span {
- display: none;
- }
- }
-
- &.text {
- &::before {
- display: none;
- }
-
- span {
- margin-left: 0 !important;
- }
- }
- @include button-social-size($input-btn-padding-y, $input-btn-padding-x, $font-size-base, $line-height-base, $btn-border-radius);
-
- &.btn-lg {
- @include button-social-size($input-btn-padding-y-lg, $input-btn-padding-x-lg, $font-size-lg, $line-height-lg, $btn-border-radius-lg);
- }
-
- &.btn-sm {
- @include button-social-size($input-btn-padding-y-sm, $input-btn-padding-x-sm, $font-size-sm, $line-height-sm, $btn-border-radius-sm);
- }
-
-}
-
-.btn-facebook {
- $color: $facebook;
-
- background: $color;
- &::before {
- content: "\f09a";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-twitter {
- $color: $twitter;
-
- background: $color;
- &::before {
- content: "\f099";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-linkedin {
- $color: $linkedin;
-
- background: $color;
- &::before {
- content: "\f0e1";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-flickr {
- $color: $flickr;
-
- background: $color;
- &::before {
- content: "\f16e";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-tumblr {
- $color: $tumblr;
-
- background: $color;
- &::before {
- content: "\f173";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-xing {
- $color: $xing;
-
- background: $color;
- &::before {
- content: "\f168";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-github {
- $color: $github;
-
- background: $color;
- &::before {
- content: "\f09b";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-html5 {
- $color: $html5;
-
- background: $color;
- &::before {
- content: "\f13b";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-openid {
- $color: $openid;
-
- background: $color;
- &::before {
- content: "\f19b";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-stack-overflow {
- $color: $stack-overflow;
-
- background: $color;
- &::before {
- content: "\f16c";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-css3 {
- $color: $css3;
-
- background: $color;
- &::before {
- content: "\f13c";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-youtube {
- $color: $youtube;
-
- background: $color;
- &::before {
- content: "\f167";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-dribbble {
- $color: $dribbble;
-
- background: $color;
- &::before {
- content: "\f17d";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-google-plus {
- $color: $google-plus;
-
- background: $color;
- &::before {
- content: "\f0d5";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-instagram {
- $color: $instagram;
-
- background: $color;
- &::before {
- content: "\f16d";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-pinterest {
- $color: $pinterest;
-
- background: $color;
- &::before {
- content: "\f0d2";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-vk {
- $color: $vk;
-
- background: $color;
- &::before {
- content: "\f189";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-yahoo {
- $color: $yahoo;
-
- background: $color;
- &::before {
- content: "\f19e";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-behance {
- $color: $behance;
-
- background: $color;
- &::before {
- content: "\f1b4";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-dropbox {
- $color: $dropbox;
-
- background: $color;
- &::before {
- content: "\f16b";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-reddit {
- $color: $reddit;
-
- background: $color;
- &::before {
- content: "\f1a1";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-spotify {
- $color: $spotify;
-
- background: $color;
- &::before {
- content: "\f1bc";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-vine {
- $color: $vine;
-
- background: $color;
- &::before {
- content: "\f1ca";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-foursquare {
- $color: $foursquare;
-
- background: $color;
- &::before {
- content: "\f180";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
-
-.btn-vimeo {
- $color: $vimeo;
-
- background: $color;
- &::before {
- content: "\f194";
- background: darken($color, 5%);
-
- }
-
- &:hover {
- background: darken($color, 5%);
-
- &::before {
- background: darken($color, 10%);
- }
- }
-}
diff --git a/web/angular/src/scss/core/_callout.scss b/web/angular/src/scss/core/_callout.scss
deleted file mode 100755
index b98ebac..0000000
--- a/web/angular/src/scss/core/_callout.scss
+++ /dev/null
@@ -1,55 +0,0 @@
-.callout {
- position: relative;
- padding: 0 $spacer;
- margin: $spacer 0;
- border: 0 solid $border-color;
- border-left-width: .25rem;
-
- @if $enable-rounded {
- border-radius: .25rem;
- }
-
- .chart-wrapper {
- position: absolute;
- top: 10px;
- left: 50%;
- float: right;
- width: 50%;
- }
-}
-
-.callout-bordered {
- border: 1px solid $border-color;
- border-left-width: .25rem;
-}
-.callout code {
- border-radius: .25rem;
-}
-.callout h4 {
- margin-top: 0;
- margin-bottom: .25rem;
-}
-.callout p:last-child {
- margin-bottom: 0;
-}
-.callout + .callout {
- margin-top: - .25rem;
-}
-
-.callout-default {
- border-left-color: $text-muted;
-
- h4 {
- color: $text-muted;
- }
-}
-
-@each $color, $value in $theme-colors {
- .callout-#{$color} {
- border-left-color: $value;
-
- h4 {
- color: $value;
- }
- }
-}
diff --git a/web/angular/src/scss/core/_card.scss b/web/angular/src/scss/core/_card.scss
deleted file mode 100755
index 20e57a8..0000000
--- a/web/angular/src/scss/core/_card.scss
+++ /dev/null
@@ -1,193 +0,0 @@
-.card {
- margin-bottom: 1.5 * $spacer;
-
- // Cards with color accent
- @each $color, $value in $theme-colors {
- &.bg-#{$color} {
- border-color: darken($value, 12.5%);
- .card-header {
- background-color: darken($value, 3%);
- border-color: darken($value, 12.5%);
- }
- }
- }
-}
-
-.text-white .text-muted {
- color: rgba(255,255,255,.6) !important;
-}
-
-.card-header {
-
- .icon-bg {
- display: inline-body;
- padding: $card-spacer-y $card-spacer-x !important;
- margin-top: -$card-spacer-y;
- margin-right: $card-spacer-x;
- margin-bottom: -$card-spacer-y;
- margin-left: -$card-spacer-x;
- line-height: inherit;
- color: $card-icon-color;
- vertical-align: bottom;
- background: $card-icon-bg;
- border-right: $card-border-width solid $card-border-color;
- }
-
- .nav.nav-tabs {
- margin-top: -$card-spacer-y;
- margin-bottom: -$card-spacer-y;
- border-bottom: 0;
-
- .nav-item {
- border-top: 0;
- }
-
- .nav-link {
- padding: $card-spacer-y $card-spacer-x / 2;
- color: $text-muted;
- border-top: 0;
-
- &.active {
- color: $body-color;
- background: #fff;
- }
- }
- }
-
- &.card-header-inverse {
- color: #fff;
- }
-
- .btn {
- margin-top: - $input-btn-padding-y;
- }
- .btn-sm {
- margin-top: - $input-btn-padding-y-sm;
- }
- .btn-lg {
- margin-top: - $input-btn-padding-y-lg;
- }
-}
-//
-.card-footer {
-
- ul {
- display: table;
- width: 100%;
- padding: 0;
- margin: 0;
- table-layout: fixed;
-
- li {
- display: table-cell;
- padding: 0 $card-spacer-x;
- text-align: center;
- }
- }
-}
-
-[class*="card-outline-"] {
- .card-body {
- background: #fff !important;
- }
-
- &.card-outline-top {
- border-top-width: 2px;
- border-right-color: $border-color;
- border-bottom-color: $border-color;
- border-left-color: $border-color;
- }
-}
-
-// Cards with color accent
-@each $color, $value in $theme-colors {
- .card-accent-#{$color} {
- @include card-accent-variant($value);
- }
-}
-
-// Card Actions
-.card-header {
- > i {
- margin-right: $spacer / 2;
- }
- .card-actions {
- position: absolute;
- top: 0;
- right: 0;
- //height: inherit;
-
- a, button {
- display: block;
- float: left;
- width: 50px;
- padding: $card-spacer-y 0;
- margin: 0 !important;
- color: $body-color;
- text-align: center;
- background: transparent;
- border: 0;
- border-left: 1px solid $border-color;
- box-shadow: 0;
-
- &:hover {
- text-decoration: none;
- }
-
- [class^="icon-"], [class*=" icon-"] {
- display: inline-body;
- vertical-align: middle;
- }
-
- i {
- display: inline-body;
- transition: .4s;
- }
-
- .r180 {
- transform: rotate(180deg);
- }
- }
-
- .input-group {
- width: 230px;
- margin: 6px;
-
- .input-group-addon {
- background: #fff;
- }
-
- input {
- border-left: 0;
- }
- }
- }
-}
-
-.card-full {
- margin-top: - $spacer;
- margin-right: - $grid-gutter-width / 2;
- margin-left: - $grid-gutter-width / 2;
- border: 0;
- border-bottom: $card-border-width solid $border-color;
-}
-
-@include media-breakpoint-up(sm) {
- .card-columns {
-
- &.cols-2 {
- column-count: 2;
- }
- }
-}
-
-.card {
- &.drag, .drag {
- cursor: move;
- }
-}
-
-.card-placeholder {
- background: rgba(0,0,0,.025);
- border: 1px dashed $gray-300;
-}
diff --git a/web/angular/src/scss/core/_charts.scss b/web/angular/src/scss/core/_charts.scss
deleted file mode 100755
index 0e7a3c2..0000000
--- a/web/angular/src/scss/core/_charts.scss
+++ /dev/null
@@ -1,9 +0,0 @@
-.chart-wrapper {
- canvas {
- width: 100% !important;
- }
-}
-// scss-lint:disable QualifyingElement
-base-chart.chart {
- display: block !important;
-}
diff --git a/web/angular/src/scss/core/_dropdown-menu-right.scss b/web/angular/src/scss/core/_dropdown-menu-right.scss
deleted file mode 100755
index 4f19546..0000000
--- a/web/angular/src/scss/core/_dropdown-menu-right.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-// Temp fix for reactstrap
-.app-header {
- .navbar-nav {
- .dropdown-menu-right {
- right: auto;
- }
- }
-}
diff --git a/web/angular/src/scss/core/_dropdown.scss b/web/angular/src/scss/core/_dropdown.scss
deleted file mode 100755
index 564e4df..0000000
--- a/web/angular/src/scss/core/_dropdown.scss
+++ /dev/null
@@ -1,69 +0,0 @@
-// Links, buttons, and more within the dropdown menu
-.dropdown-item {
- position: relative;
- padding: 10px 20px;
- border-bottom: 1px solid $dropdown-border-color;
-
- &:last-child {
- border-bottom: 0;
- }
-
- i {
- display: inline-block;
- width: 20px;
- margin-right: 10px;
- margin-left: -10px;
- color: $dropdown-border-color;
- text-align: center;
- }
-
- .badge {
- position: absolute;
- right: 10px;
- margin-top: 2px;
- }
-}
-
-// Dropdown section headers
-.dropdown-header {
- padding: 8px 20px;
- background: $dropdown-divider-bg;
- border-bottom: 1px solid $dropdown-border-color;
-
- .btn {
- margin-top: -7px;
- color: $dropdown-header-color;
-
- &:hover {
- color: $body-color;
- }
-
- &.pull-right {
- margin-right: -20px;
- }
- }
-}
-
-.dropdown-menu-lg {
- width: 250px;
-}
-.app-header {
- .navbar-nav {
- .dropdown-menu {
- position: absolute;
- }
- // Menu positioning
- //
- // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
- // menu with the parent.
- .dropdown-menu-right {
- right: 0;
- left: auto; // Reset the default from `.dropdown-menu`
- }
-
- .dropdown-menu-left {
- right: auto;
- left: 0;
- }
- }
-}
diff --git a/web/angular/src/scss/core/_footer.scss b/web/angular/src/scss/core/_footer.scss
deleted file mode 100755
index e01595a..0000000
--- a/web/angular/src/scss/core/_footer.scss
+++ /dev/null
@@ -1,9 +0,0 @@
-.app-footer {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- padding: 0 $spacer;
- color: $footer-color;
- background: $footer-bg;
- @include borders($footer-borders);
-}
diff --git a/web/angular/src/scss/core/_grid.scss b/web/angular/src/scss/core/_grid.scss
deleted file mode 100755
index 0d0963c..0000000
--- a/web/angular/src/scss/core/_grid.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-.row.row-equal {
- padding-right: ($grid-gutter-width / 4);
- padding-left: ($grid-gutter-width / 4);
- margin-right: ($grid-gutter-width / -2);
- margin-left: ($grid-gutter-width / -2);
-
- [class*="col-"] {
- padding-right: ($grid-gutter-width / 4);
- padding-left: ($grid-gutter-width / 4);
- }
-}
-
-.main .container-fluid {
- padding: 0 30px;
-}
diff --git a/web/angular/src/scss/core/_input-group.scss b/web/angular/src/scss/core/_input-group.scss
deleted file mode 100755
index 23b2512..0000000
--- a/web/angular/src/scss/core/_input-group.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-.input-group-addon,
-.input-group-btn {
- min-width: 40px;
- white-space: nowrap;
- vertical-align: middle; // Match the inputs
-}
diff --git a/web/angular/src/scss/core/_layout.scss b/web/angular/src/scss/core/_layout.scss
deleted file mode 100755
index 8a05003..0000000
--- a/web/angular/src/scss/core/_layout.scss
+++ /dev/null
@@ -1,384 +0,0 @@
-// IE10&11 Flexbox fix
-@media all and (-ms-high-contrast:none) {
- html {
- display: flex;
- flex-direction: column;
- }
-}
-
-// app-dashboard and app-root are Angular2+ selectors. You can add here your own selectors if you need.
-.app,
-app-dashboard,
-app-root {
- display: flex;
- flex-direction: column;
- min-height: 100vh;
-}
-
-.app-header {
- flex: 0 0 $navbar-height;
-}
-
-.app-footer {
- flex: 0 0 $footer-height;
-}
-
-.app-body {
- display: flex;
- flex-direction: row;
- flex-grow: 1;
- overflow-x: hidden;
-
- .main {
- flex: 1;
- min-width: 0;
- }
-
- .sidebar {
- // $sidebar-width is the width of the columns
- flex: 0 0 $sidebar-width;
- // put the nav on the left
- order: -1;
- }
-
- .aside-menu {
- // $aside-menu-width is the width of the columns
- flex: 0 0 $aside-menu-width;
- }
-}
-
-//
-// header
-//
-.header-fixed {
- .app-header {
- position: fixed;
- z-index: $zindex-sticky;
- width: 100%;
- }
- .app-body {
- margin-top: $navbar-height;
- }
-}
-
-//
-// Sidebar
-//
-.sidebar-hidden {
- .sidebar {
- margin-left: - $sidebar-width;
- }
-}
-
-.sidebar-fixed {
- .sidebar {
- position: fixed;
- z-index: $zindex-sticky - 1;
- width: $sidebar-width;
- height: calc(100vh - #{$navbar-height});
- // margin-top: - $navbar-height;
-
- // .sidebar-nav {
- // height: calc(100vh - #{$navbar-height});
- // }
- }
-
- .main, .app-footer {
- margin-left: $sidebar-width;
- }
-
- &.sidebar-hidden {
- .main, .app-footer {
- margin-left: 0;
- }
- }
-}
-
-.sidebar-off-canvas {
- .sidebar {
- position: fixed;
- z-index: $zindex-sticky - 1;
- height: calc(100vh - #{$navbar-height});
- }
-}
-
-@include media-breakpoint-up(lg) {
- .sidebar-compact {
- .sidebar {
- flex: 0 0 $sidebar-compact-width;
- }
-
- &.sidebar-hidden {
- .sidebar {
- margin-left: - $sidebar-compact-width;
- }
- }
-
- &.sidebar-fixed {
- .main, .app-footer {
- margin-left: $sidebar-compact-width;
- }
-
- .sidebar {
- width: $sidebar-compact-width;
- }
-
- &.sidebar-hidden {
- .main, .app-footer {
- margin-left: 0;
- }
- }
- }
- }
-
- .sidebar-minimized {
- .sidebar {
- flex: 0 0 $sidebar-minimized-width;
- }
-
- &.sidebar-hidden {
- .sidebar {
- margin-left: - $sidebar-minimized-width;
- }
- }
-
- &.sidebar-fixed {
- .main, .app-footer {
- margin-left: $sidebar-minimized-width;
- }
-
- .sidebar {
- width: $sidebar-minimized-width;
- }
-
- &.sidebar-hidden {
- .main, .app-footer {
- margin-left: 0;
- }
- }
- }
- }
-}
-
-//
-// Aside Menu
-//
-.aside-menu-hidden {
- .aside-menu {
- margin-right: - $aside-menu-width;
- }
-}
-
-.aside-menu-fixed {
- .aside-menu {
- position: fixed;
- right: 0;
- height: 100%;
-
- .tab-content {
- height: calc(100vh - #{$aside-menu-nav-padding-y * 2 + $font-size-base} - #{$navbar-height});
- }
- }
-
- .main, .app-footer {
- margin-right: $aside-menu-width;
- }
-
- &.aside-menu-hidden {
- .main, .app-footer {
- margin-right: 0;
- }
- }
-}
-
-.aside-menu-off-canvas {
- .aside-menu {
- position: fixed;
- right: 0;
- z-index: $zindex-sticky - 1;
- height: 100%;
-
- .tab-content {
- height: calc(100vh - #{$aside-menu-nav-padding-y * 2 + $font-size-base} - #{$navbar-height});
- }
- }
-}
-
-//
-// Breadcrumb
-//
-.breadcrumb-fixed {
- .main {
- $breadcrumb-height: 2 * $breadcrumb-padding-y + $font-size-base + 1.5 * $spacer;
- padding-top: $breadcrumb-height;
- }
-
- .breadcrumb {
- position: fixed;
- top: $navbar-height;
- right: 0;
- left: 0;
- z-index: $zindex-sticky - 2;
- }
-
- // if sidebar + main + aside
- .main:nth-child(2) {
- .breadcrumb {
- right: $aside-menu-width;
- left: $sidebar-width;
- }
- }
-
- // if sidebar + main
- .main:first-child {
- .breadcrumb {
- right: $aside-menu-width;
- left: 0;
- }
- }
-
- // if main + aside
- .main:last-child {
- .breadcrumb {
- right: 0;
- }
- }
-
- &.sidebar-minimized {
- .main .breadcrumb {
- left: $sidebar-minimized-width;
- }
- }
-
- &.sidebar-hidden, &.sidebar-off-canvas {
- .main .breadcrumb {
- left: 0;
- }
- }
-
- &.aside-menu-hidden, &.aside-menu-off-canvas {
- .main .breadcrumb {
- right: 0;
- }
- }
-}
-
-//
-// Footer
-//
-.footer-fixed {
- .app-footer {
- position: fixed;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: $zindex-sticky;
- height: $footer-height;
- }
-
- .app-body {
- margin-bottom: $footer-height;
- }
-}
-
-//
-// Animations
-//
-.app-header,
-.app-footer,
-.sidebar,
-.main,
-.aside-menu {
- transition: margin-left $layout-transition-speed, margin-right $layout-transition-speed, width $layout-transition-speed, flex $layout-transition-speed;
-}
-.sidebar-nav {
- transition: width $layout-transition-speed;
-}
-.breadcrumb {
- transition: left $layout-transition-speed, right $layout-transition-speed, width $layout-transition-speed;
-}
-
-//
-// Mobile layout
-//
-
-@include media-breakpoint-down(md) {
- .app-header.navbar {
- position: fixed !important;
- z-index: $zindex-sticky;
- width: 100%;
- text-align: center;
- background-color: $navbar-brand-bg;
- @include borders($navbar-brand-border);
-
- .navbar-toggler {
- @if (lightness( $navbar-brand-bg ) > 40) {
- color: $navbar-color;
- } @else {
- color: #fff;
- }
- }
-
- .navbar-brand {
- position: absolute;
- left: 50%;
- margin-left: - ($navbar-brand-width / 2);
- }
- }
-
- .app-body {
- margin-top: $navbar-height;
- }
-
- .breadcrumb-fixed {
- .main:nth-child(2) .breadcrumb {
- right: auto;
- left: auto;
- width: 100%;
- }
- }
-
- .sidebar {
- position: fixed;
- z-index: $zindex-sticky - 1;
- width: $mobile-sidebar-width;
- height: calc(100vh - #{$navbar-height});
- margin-left: - $mobile-sidebar-width;
-
- .sidebar-nav,
- .nav {
- width: $mobile-sidebar-width;
- min-height: calc(100vh - #{$navbar-height});
- }
-
- .sidebar-minimizer {
- display: none;
- }
- }
-
- .main, .app-footer {
- margin-left: 0 !important;
- }
-
- // .aside-menu {
- // margin-right: - $aside-menu-width;
- // }
-
- .sidebar-hidden {
- .sidebar {
- margin-left: - $mobile-sidebar-width;
- }
- }
-
- .sidebar-mobile-show {
- .sidebar {
- width: $mobile-sidebar-width;
- margin-left: 0;
- }
-
- .main {
- margin-right: - $mobile-sidebar-width !important;
- margin-left: $mobile-sidebar-width !important;
- }
- }
-}
diff --git a/web/angular/src/scss/core/_loading.scss b/web/angular/src/scss/core/_loading.scss
deleted file mode 100755
index 3e409fb..0000000
--- a/web/angular/src/scss/core/_loading.scss
+++ /dev/null
@@ -1,128 +0,0 @@
-// Angular Version
-// Make clicks pass-through
-// scss-lint:disable all
-#loading-bar,
-#loading-bar-spinner {
- -webkit-pointer-events: none;
- pointer-events: none;
- -moz-transition: 350ms linear all;
- -o-transition: 350ms linear all;
- -webkit-transition: 350ms linear all;
- transition: 350ms linear all;
-}
-
-#loading-bar.ng-enter,
-#loading-bar.ng-leave.ng-leave-active,
-#loading-bar-spinner.ng-enter,
-#loading-bar-spinner.ng-leave.ng-leave-active {
- opacity: 0;
-}
-
-#loading-bar.ng-enter.ng-enter-active,
-#loading-bar.ng-leave,
-#loading-bar-spinner.ng-enter.ng-enter-active,
-#loading-bar-spinner.ng-leave {
- opacity: 1;
-}
-
-#loading-bar .bar {
- position: fixed;
- top: 0;
- left: 0;
- z-index: 20002;
- width: 100%;
- height: 2px;
- background: theme-color("primary");
- border-top-right-radius: 1px;
- border-bottom-right-radius: 1px;
- -moz-transition: width 350ms;
- -o-transition: width 350ms;
- -webkit-transition: width 350ms;
- transition: width 350ms;
-}
-
-// Fancy blur effect
-#loading-bar .peg {
- position: absolute;
- top: 0;
- right: 0;
- width: 70px;
- height: 2px;
- -moz-border-radius: 100%;
- -webkit-border-radius: 100%;
- border-radius: 100%;
- -moz-box-shadow: #29d 1px 0 6px 1px;
- -ms-box-shadow: #29d 1px 0 6px 1px;
- -webkit-box-shadow: #29d 1px 0 6px 1px;
- box-shadow: #29d 1px 0 6px 1px;
- opacity: .45;
-}
-
-#loading-bar-spinner {
- position: fixed;
- top: 10px;
- left: 10px;
- z-index: 10002;
- display: block;
-}
-
-#loading-bar-spinner .spinner-icon {
- width: 14px;
- height: 14px;
-
- border: solid 2px transparent;
- border-top-color: #29d;
- border-left-color: #29d;
- border-radius: 50%;
-
- -moz-animation: loading-bar-spinner 400ms linear infinite;
- -ms-animation: loading-bar-spinner 400ms linear infinite;
- -o-animation: loading-bar-spinner 400ms linear infinite;
- -webkit-animation: loading-bar-spinner 400ms linear infinite;
- animation: loading-bar-spinner 400ms linear infinite;
-}
-
-@-webkit-keyframes loading-bar-spinner {
- 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
- 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
-}
-@-moz-keyframes loading-bar-spinner {
- 0% { -moz-transform: rotate(0deg); transform: rotate(0deg); }
- 100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
-}
-@-o-keyframes loading-bar-spinner {
- 0% { -o-transform: rotate(0deg); transform: rotate(0deg); }
- 100% { -o-transform: rotate(360deg); transform: rotate(360deg); }
-}
-@-ms-keyframes loading-bar-spinner {
- 0% { -ms-transform: rotate(0deg); transform: rotate(0deg); }
- 100% { -ms-transform: rotate(360deg); transform: rotate(360deg); }
-}
-@keyframes loading-bar-spinner {
- 0% { transform: rotate(0deg); transform: rotate(0deg); }
- 100% { transform: rotate(360deg); transform: rotate(360deg); }
-}
-
-//Ajax & Static Version
-.pace {
- -webkit-pointer-events: none;
- pointer-events: none;
-
- -moz-user-select: none;
- -webkit-user-select: none;
- user-select: none;
-}
-
-.pace-inactive {
- display: none;
-}
-
-.pace .pace-progress {
- position: fixed;
- top: 0;
- right: 100%;
- z-index: 2000;
- width: 100%;
- height: 2px;
- background: theme-color("primary");
-}
diff --git a/web/angular/src/scss/core/_mixins.scss b/web/angular/src/scss/core/_mixins.scss
deleted file mode 100755
index 153f1d3..0000000
--- a/web/angular/src/scss/core/_mixins.scss
+++ /dev/null
@@ -1,116 +0,0 @@
-@mixin button-social-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
- padding: $padding-y $padding-x;
- font-size: $font-size;
- line-height: $line-height;
- border: 0;
- @include border-radius($border-radius);
-
- &::before {
- width: ($padding-y * 2) + ($font-size * $line-height);
- height: ($padding-y * 2) + ($font-size * $line-height);
- padding: $padding-y 0;
- font-size: $font-size;
- line-height: $line-height;
- @include border-radius($border-radius);
- }
-
- span {
- margin-left: ($padding-y * 2) + ($font-size * $line-height);
- }
-
- &.icon {
- width: ($padding-y * 2) + ($font-size * $line-height);
- height: ($padding-y * 2) + ($font-size * $line-height);
- }
-}
-
-@mixin avatar($width, $status-width) {
- position: relative;
- display: inline-block;
- width: $width;
-
- .img-avatar {
- width: $width;
- height: $width;
- }
-
- .avatar-status {
- position: absolute;
- right: 0;
- bottom: 0;
- display: block;
- width: $status-width;
- height: $status-width;
- border: 1px solid #fff;
- border-radius: 50em;
- }
-}
-
-@mixin borders($borders) {
- @each $border in $borders {
- $direction: nth($border, 1);
- @if $direction == "all" {
- $size: map-get(map-get($borders, $direction), size);
- $style: map-get(map-get($borders, $direction), style);
- $color: map-get(map-get($borders, $direction), color);
- border: $size $style $color;
- } @else if $direction == "top" {
- $size: map-get(map-get($borders, $direction), size);
- $style: map-get(map-get($borders, $direction), style);
- $color: map-get(map-get($borders, $direction), color);
- border-top: $size $style $color;
- } @else if $direction == "right" {
- $size: map-get(map-get($borders, $direction), size);
- $style: map-get(map-get($borders, $direction), style);
- $color: map-get(map-get($borders, $direction), color);
- border-right: $size $style $color;
- } @else if $direction == "bottom" {
- $size: map-get(map-get($borders, $direction), size);
- $style: map-get(map-get($borders, $direction), style);
- $color: map-get(map-get($borders, $direction), color);
- border-bottom: $size $style $color;
- } @else if $direction == "left" {
- $size: map-get(map-get($borders, $direction), size);
- $style: map-get(map-get($borders, $direction), style);
- $color: map-get(map-get($borders, $direction), color);
- border-left: $size $style $color;
- }
- }
-}
-
-@mixin sidebar-width($borders, $width) {
- $sidebar-width: $width;
-
- @each $border in $borders {
- $direction: nth($border, 1);
- @if $direction == "all" {
- $size: map-get(map-get($borders, $direction), size);
- $sidebar-width: ($sidebar-width - (2 * $size));
- } @else if $direction == "right" {
- $size: map-get(map-get($borders, $direction), size);
- $sidebar-width: $sidebar-width - $size;
- } @else if $direction == "left" {
- $size: map-get(map-get($borders, $direction), size);
- $sidebar-width: $sidebar-width - $size;
- }
- width: $sidebar-width;
- }
-}
-
-@mixin bg-variant($parent, $color) {
- #{$parent} {
- @include border-radius($card-border-radius-inner $card-border-radius-inner $card-border-radius-inner $card-border-radius-inner);
- color: #fff !important;
- background-color: $color !important;
- }
- a#{$parent} {
- @include hover-focus {
- background-color: darken($color, 10%);
- }
- }
-}
-
-@mixin card-accent-variant($color) {
- border-top-width: 2px;
- border-top-color: $color;
-}
diff --git a/web/angular/src/scss/core/_mobile.scss b/web/angular/src/scss/core/_mobile.scss
deleted file mode 100755
index e69de29..0000000
diff --git a/web/angular/src/scss/core/_modal.scss b/web/angular/src/scss/core/_modal.scss
deleted file mode 100755
index 1c44ddd..0000000
--- a/web/angular/src/scss/core/_modal.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-@each $color, $value in $theme-colors {
- .modal-#{$color} {
-
- .modal-content {
- border-color: $value;
- }
-
- .modal-header {
- color: #fff;
- background-color: $value;
- }
- }
-}
diff --git a/web/angular/src/scss/core/_nav.scss b/web/angular/src/scss/core/_nav.scss
deleted file mode 100755
index ba1d64b..0000000
--- a/web/angular/src/scss/core/_nav.scss
+++ /dev/null
@@ -1,32 +0,0 @@
-.nav-tabs {
- .nav-link {
- color: $gray-600;
- &.active {
- color: $gray-800;
- background: #fff;
- border-color: $border-color;
- border-bottom-color: #fff;
- &:focus {
- background: #fff;
- border-color: $border-color;
- border-bottom-color: #fff;
- }
- }
- }
-}
-
-.tab-content {
- margin-top: -1px;
- background: #fff;
- border: 1px solid $border-color;
- .tab-pane {
- padding: $spacer;
- }
-}
-
-.card-block {
- .tab-content {
- margin-top: 0;
- border: 0;
- }
-}
diff --git a/web/angular/src/scss/core/_navbar.scss b/web/angular/src/scss/core/_navbar.scss
deleted file mode 100755
index 1f52222..0000000
--- a/web/angular/src/scss/core/_navbar.scss
+++ /dev/null
@@ -1,127 +0,0 @@
-.app-header.navbar {
- position: relative;
- flex-direction: row;
- height: $navbar-height;
- padding: 0;
- margin: 0;
- background-color: $navbar-bg;
- @include borders($navbar-border);
-
- .navbar-brand {
- display: inline-block;
- width: $navbar-brand-width;
- height: $navbar-height;
- padding: $navbar-padding-y $navbar-padding-x;
- margin-right: 0;
- background-color: $navbar-brand-bg;
- //background-image: $navbar-brand-logo;
- background-repeat: no-repeat;
- background-position: center center;
- background-size: $navbar-brand-logo-size;
- @include borders($navbar-brand-border);
- }
-
- .navbar-toggler {
- min-width: 50px;
- padding: $navbar-toggler-padding-y 0;
-
- &:hover .navbar-toggler-icon {
- background-image: $navbar-toggler-icon-hover;
- }
- }
-
- .navbar-toggler-icon {
- height: 23px;
- background-image: $navbar-toggler-icon;
- }
-
- .navbar-nav {
- flex-direction: row;
- align-items: center;
- }
-
- .nav-item {
- position: relative;
- min-width: 50px;
- margin: 0 !important;
- text-align: center;
-
- button {
- margin: 0 auto;
- }
-
- .nav-link {
- padding-top: 0;
- padding-bottom: 0;
- background: 0;
- border: 0;
-
- .badge {
- position: absolute;
- top: 50%;
- left: 50%;
- margin-top: -16px;
- margin-left: 0;
- }
-
- > .img-avatar {
- height: $navbar-height - 20px;
- margin: 0 10px;
- }
- }
- }
-
- .dropdown-menu {
- padding-bottom: 0;
- line-height: $line-height-base;
- }
-
- .dropdown-item {
- min-width: 180px;
- }
-}
-
-.navbar-brand {
- color: $navbar-active-color;
-
- @include hover-focus {
- color: $navbar-active-color;
- }
-}
-
-.navbar-nav {
- .nav-link {
- color: $navbar-color;
-
- @include hover-focus {
- color: $navbar-hover-color;
- }
- }
-
- .open > .nav-link,
- .active > .nav-link,
- .nav-link.open,
- .nav-link.active {
- @include plain-hover-focus {
- color: $navbar-active-color;
- }
- }
-}
-
-.navbar-divider {
- background-color: rgba(0,0,0,.075);
-}
-
-@include media-breakpoint-up(lg) {
- .brand-minimized {
- .app-header.navbar {
- .navbar-brand {
- width: $navbar-brand-minimized-width;
- background-color: $navbar-brand-minimized-bg;
- //background-image: $navbar-brand-minimized-logo;
- background-size: $navbar-brand-minimized-logo-size;
- @include borders($navbar-brand-minimized-border);
- }
- }
- }
-}
diff --git a/web/angular/src/scss/core/_others.scss b/web/angular/src/scss/core/_others.scss
deleted file mode 100755
index 381baab..0000000
--- a/web/angular/src/scss/core/_others.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-// scss-lint:disable QualifyingElement
-hr.transparent {
- border-top: 1px solid transparent;
-}
diff --git a/web/angular/src/scss/core/_progress.scss b/web/angular/src/scss/core/_progress.scss
deleted file mode 100755
index 65f56dd..0000000
--- a/web/angular/src/scss/core/_progress.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-.progress-xs {
- height: 4px;
-}
-
-.progress-sm {
- height: 8px;
-}
-
-// White progress bar
-.progress-white {
- background-color: rgba(255,255,255,.2) !important;
- .progress-bar {
- background-color: #fff;
- }
-}
diff --git a/web/angular/src/scss/core/_rtl.scss b/web/angular/src/scss/core/_rtl.scss
deleted file mode 100755
index 28db385..0000000
--- a/web/angular/src/scss/core/_rtl.scss
+++ /dev/null
@@ -1,281 +0,0 @@
-//
-// RTL Support
-//
-// scss-lint:disable NestingDepth, SelectorDepth
-*[dir="rtl"] {
- direction: rtl;
- unicode-bidi: embed;
-
- ul {
- -webkit-padding-start: 0;
- }
-
- table tr th {
- text-align: right;
- }
-
- // Breadcrumb
-
- .breadcrumb-item {
- float: right;
- }
-
- .breadcrumb-menu {
- right: auto;
- left: $breadcrumb-padding-x;
- }
-
- // Dropdown
- .dropdown-item {
- text-align: right;
-
- i {
- margin-right: -10px;
- margin-left: 10px;
- }
-
- .badge {
- right: auto;
- left: 10px;
- }
- }
-
- //
- // Sidebar
- //
- .sidebar-hidden {
- .sidebar {
- margin-right: - $sidebar-width;
- }
- }
-
- .sidebar-fixed {
- .main, .app-footer {
- margin-right: $sidebar-width;
- }
-
- &.sidebar-hidden {
- .main, .app-footer {
- margin-right: 0;
- }
- }
- }
-
- .sidebar-minimized {
- .sidebar {
- flex: 0 0 $sidebar-minimized-width;
- }
-
- &.sidebar-hidden {
- .sidebar {
- margin-right: - $sidebar-minimized-width;
- margin-left: 0;
- }
- }
-
- &.sidebar-fixed {
- .main, .app-footer {
- margin-right: $sidebar-minimized-width;
- }
-
- &.sidebar-hidden {
- .main, .app-footer {
- margin-left: 0;
- }
- }
- }
- }
-
- //
- // Aside Menu
- //
- .aside-menu-hidden {
- .aside-menu {
- margin-right: 0;
- margin-left: - $aside-menu-width;
- }
- }
-
- .aside-menu-fixed {
- .aside-menu {
- right: auto;
- left: 0;
- }
-
- .main, .app-footer {
- //margin-right: 0;
- margin-left: $aside-menu-width;
- }
-
- &.aside-menu-hidden {
- .main, .app-footer {
- margin-left: 0;
- }
- }
- }
-
- .aside-menu-off-canvas {
- .aside-menu {
- position: fixed;
- right: 0;
- z-index: $zindex-sticky - 1;
- height: 100%;
-
- .tab-content {
- height: calc(100vh - #{$aside-menu-nav-padding-y * 2 + $font-size-base} - #{$navbar-height});
- }
- }
- }
-
- // Sidebar Menu
- .sidebar {
- .sidebar-nav {
- .nav {
- .nav-item {
- .nav-link {
- direction: rtl;
- i {
- margin: 0 0 0 ($sidebar-nav-link-padding-x / 2);
- }
- .badge {
- float: left;
- margin-top: 2px;
- // margin-left: 10px;
- }
- &.nav-dropdown-toggle {
- &::before {
- position: absolute;
- right: auto !important;
- left: $sidebar-nav-link-padding-x;
- transform: rotate(180deg);
- }
- }
- }
- &.nav-dropdown {
- &.open {
- > .nav-link.nav-dropdown-toggle::before {
- transform: rotate(270deg);
- }
- }
- }
- }
- }
- }
- }
-
- .sidebar-minimized .sidebar {
- .nav-link {
- padding-right: 0;
- i {
- float: right;
- padding: 0;
- margin: 0;
- }
- .badge {
- right: auto;
- left: 15px;
- }
- }
- .nav > .nav-dropdown {
-
- &:hover {
- > .nav-dropdown-items {
- right: $sidebar-minimized-width;
- left: 0;
- }
- }
- }
- }
-
- // Horizontal bars
- .horizontal-bars {
-
- li {
-
- .bars {
- padding-right: 100px;
- padding-left: 0;
-
- .progress:first-child {
- margin-bottom: 2px;
- }
- }
- }
-
- &.type-2 {
-
- li {
-
- i {
- margin-right: 5px;
- margin-left: $spacer;
- }
-
- .value {
- float: left;
- font-weight: 600;
- }
-
- .bars {
- padding: 0;
- }
- }
- }
- }
-
- // Icon list
- .icons-list {
-
- li {
- position: relative;
- height: 40px;
- vertical-align: middle;
-
- i {
- float: right;
- }
-
- .desc {
- margin-right: 50px;
- margin-left: 0;
- }
-
- .value {
- right: auto;
- left: 45px;
- text-align: left;
-
- strong {
- display: block;
- margin-top: -3px;
- }
- }
-
- .actions {
- right: auto;
- left: 10px;
- }
- }
- }
-
- // Callouts
- .callout {
- border: 0 solid $border-color;
- border-right-width: .25rem;
-
- @each $color, $value in $theme-colors {
- &.callout-#{$color} {
- border-right-color: $value;
- }
- }
-
- .chart-wrapper {
- left: 0;
- float: left;
- }
- }
-
- .callout-default {
- border-right-color: $text-muted;
- }
-}
diff --git a/web/angular/src/scss/core/_sidebar.scss b/web/angular/src/scss/core/_sidebar.scss
deleted file mode 100755
index b77cd5f..0000000
--- a/web/angular/src/scss/core/_sidebar.scss
+++ /dev/null
@@ -1,454 +0,0 @@
-// scss-lint:disable NestingDepth, SelectorDepth
-.sidebar {
- display: flex;
- flex-direction: column;
- padding: $sidebar-padding;
- color: $sidebar-color;
- background: $sidebar-bg;
- @include borders($sidebar-borders);
-
- .sidebar-close {
- position: absolute;
- right: 0;
- display: none;
- padding: 0 $spacer;
- font-size: 24px;
- font-weight: 800;
- line-height: $navbar-height;
- color: $sidebar-color;
- background: 0;
- border: 0;
- opacity: .8;
-
- &:hover {
- opacity: 1;
- }
- }
-
- // Will be added soon
- // .sidebar-brand { }
-
- .sidebar-header {
- flex: 0 0 $sidebar-header-height;
- padding: $sidebar-header-padding-y $sidebar-header-padding-x;
- text-align: center;
- background: $sidebar-header-bg;
- }
-
- .sidebar-form .form-control {
- color: $sidebar-form-color;
- background: $sidebar-form-bg;
- border: $sidebar-form-border;
-
- &::placeholder {
- color: $sidebar-form-placeholder-color;
- }
- }
-
- .sidebar-nav {
- position: relative;
- flex: 1;
- overflow-x: hidden;
- overflow-y: auto;
- -ms-overflow-style: -ms-autohiding-scrollbar;
- @include sidebar-width($sidebar-borders, $sidebar-width);
-
- &::-webkit-scrollbar {
- position: absolute;
- width: 10px;
- margin-left: -10px;
- -webkit-appearance: none;
- }
-
- &::-webkit-scrollbar-track {
- background-color: lighten($sidebar-bg, 5%);
- border-right: 1px solid darken($sidebar-bg, 5%);
- border-left: 1px solid darken($sidebar-bg, 5%);
- }
-
- &::-webkit-scrollbar-thumb {
- height: 50px;
- background-color: darken($sidebar-bg, 10%);
- background-clip: content-box;
- border-color: transparent;
- border-style: solid;
- border-width: 1px 2px;
- }
- }
-
- .nav {
- @include sidebar-width($sidebar-borders, $sidebar-width);
- flex-direction: column;
- min-height: 100%;
- }
-
- .nav-title {
- padding: $sidebar-nav-title-padding-y $sidebar-nav-title-padding-x;
- font-size: 11px;
- font-weight: 600;
- color: $sidebar-nav-title-color;
- text-transform: uppercase;
- }
-
- .nav-divider, .divider {
- height: 10px;
- }
-
- .nav-item {
- position: relative;
- margin: 0;
- transition: background .3s ease-in-out;
- }
-
- .nav-dropdown-items {
- max-height: 0;
- padding: 0;
- margin: 0;
- overflow-y: hidden;
- transition: max-height .3s ease-in-out;
-
- .nav-item {
- padding: 0;
- list-style: none;
- }
- }
-
- .nav-link {
- display: block;
- padding: $sidebar-nav-link-padding-y $sidebar-nav-link-padding-x;
- color: $sidebar-nav-link-color;
- text-decoration: none;
- background: $sidebar-nav-link-bg;
- @include borders($sidebar-nav-link-borders);
- @if $enable-sidebar-nav-rounded {
- border-radius: $border-radius;
- }
-
- i {
- display: inline-block;
- width: 20px;
- margin: 0 ($sidebar-nav-link-padding-x / 2) 0 0;
- font-size: 14px;
- color: $sidebar-nav-link-icon-color;
- text-align: center;
- }
-
- .badge {
- float: right;
- margin-top: 2px;
- }
-
- &.active {
- color: $sidebar-nav-link-active-color;
- background: $sidebar-nav-link-active-bg;
- @include borders($sidebar-nav-link-active-borders);
-
- i {
- color: $sidebar-nav-link-active-icon-color;
- }
- }
-
- &:hover {
- color: $sidebar-nav-link-hover-color;
- background: $sidebar-nav-link-hover-bg;
- @include borders($sidebar-nav-link-hover-borders);
-
- i {
- color: $sidebar-nav-link-hover-icon-color;
- }
-
- &.nav-dropdown-toggle::before {
- background-image: $sidebar-nav-dropdown-indicator-hover;
- }
- }
-
- @each $color, $value in $theme-colors {
- &.nav-link-#{$color} {
- background: $value;
- i {
- color: rgba(255,255,255,.7);
- }
- &:hover {
- background: darken($value,5%) !important;
- i {
- color: #fff;
- }
- }
- }
- }
- }
-
- // ex. Components
- .nav-dropdown-toggle {
- position: relative;
-
- &::before {
- position: absolute;
- top: 50%;
- right: $sidebar-nav-link-padding-x;
- display: block;
- width: 8px;
- height: 8px;
- padding: 0;
- margin-top: -4px;
- content: "";
- background-image: $sidebar-nav-dropdown-indicator;
- background-repeat: no-repeat;
- background-position: center;
- transition: transform .3s;
- }
- }
-
- // ex.
- .nav-dropdown.open {
- background: $sidebar-nav-dropdown-bg;
- @include borders($sidebar-nav-dropdown-borders);
- @if $enable-sidebar-nav-rounded {
- border-radius: $border-radius;
- }
- > .nav-dropdown-items {
- max-height: 1000px;
- }
-
- .nav-link {
- color: $sidebar-nav-dropdown-color;
- border-left: 0 !important;
- }
-
- > .nav-link.nav-dropdown-toggle::before {
- transform: rotate(-90deg);
- }
-
- .nav-dropdown.open {
- border-left: 0;
- }
- }
-
- .nav-label {
- display: block;
- padding: ($sidebar-nav-link-padding-y / 8) $sidebar-nav-link-padding-x;
- color: $sidebar-nav-title-color;
-
- &:hover {
- color: $sidebar-color;
- text-decoration: none;
- }
-
- i {
- width: 20px;
- margin: -3px ($sidebar-nav-link-padding-x / 2) 0 0;
- font-size: 10px;
- color: $sidebar-nav-link-icon-color;
- text-align: center;
- vertical-align: middle;
- }
- }
-
- @if (lightness( $sidebar-bg ) < 40) {
- .progress {
- background-color: lighten($sidebar-bg, 15%) !important;
- }
- }
-
- .sidebar-footer {
- flex: 0 0 $sidebar-footer-height;
- padding: $sidebar-footer-padding-y $sidebar-footer-padding-x;
- background: $sidebar-footer-bg;
- @include borders($sidebar-footer-borders);
- }
-
- .sidebar-minimizer {
- position: relative;
- flex: 0 0 $sidebar-minimizer-height;
- background-color: $sidebar-minimizer-bg;
- border: 0;
- @include borders($sidebar-minimizer-borders);
-
- &::before {
- position: absolute;
- top: 0;
- right: 0;
- width: $sidebar-minimizer-height;
- height: $sidebar-minimizer-height;
- content: "";
- background-image: $sidebar-minimizer-indicator;
- background-repeat: no-repeat;
- background-position: center;
- background-size: $sidebar-minimizer-height / 4;
- transition: .3s;
- }
-
- &:focus,
- &.focus {
- outline: 0;
- }
-
- &:hover {
- background-color: $sidebar-minimizer-hover-bg;
- &::before {
- background-image: $sidebar-minimizer-hover-indicator;
- }
- }
- }
-}
-
-@include media-breakpoint-up(lg) {
- .sidebar-compact {
- .sidebar {
- .sidebar-nav {
- @include sidebar-width($sidebar-borders, $sidebar-compact-width);
- }
-
- .nav {
- @include sidebar-width($sidebar-borders, $sidebar-compact-width);
-
- .nav-title {
- text-align: center;
- }
-
- .nav-item {
- width: $sidebar-compact-width;
- border-left: 0 !important;
-
- .nav-link {
- text-align: center;
-
- i {
- display: block;
- width: 100%;
- margin: $spacer / 4 0;
- font-size: 24px;
- }
-
- .badge {
- position: absolute;
- top: 18px;
- right: 10px;
- }
-
- &.nav-dropdown-toggle {
-
- &::before {
- top: 30px;
- }
- }
- }
- }
- }
- }
- }
-
- // Minimized Sidebar
- .sidebar-minimized {
- .hidden-cn {
- display: none;
- }
- .sidebar {
- z-index: $zindex-sticky - 1;
-
- .sidebar-nav {
- overflow: visible;
- @include sidebar-width($sidebar-borders, $sidebar-minimized-width);
- }
-
- .nav {
- @include sidebar-width($sidebar-borders, $sidebar-minimized-width);
- }
-
- .nav-divider, .divider,
- .nav-title,
- .sidebar-footer,
- .sidebar-form,
- .sidebar-header {
- display: none;
- }
-
- .sidebar-minimizer::before {
- width: 100%;
- transform: rotate(-180deg);
- }
-
- .nav-item {
- width: $sidebar-minimized-width;
- overflow: hidden;
- border-left: 0 !important;
-
- &:hover {
- width: $sidebar-width + $sidebar-minimized-width;
- overflow: visible;
-
- > .nav-link {
- background: $sidebar-nav-link-hover-bg;
-
- i {
- color: $sidebar-nav-link-hover-color;
- }
- }
- }
- }
-
- .nav-link {
- position: relative;
- padding-left: 0;
- margin: 0;
- white-space: nowrap;
- border-left: 0 !important;
-
- i {
- display: block;
- float: left;
- width: $sidebar-minimized-height;
- // padding: 0;
- // margin: 0 !important;
- font-size: 18px;
- }
-
- .badge {
- position: absolute;
- right: 15px;
- display: none;
- }
-
- &:hover {
- width: $sidebar-width + $sidebar-minimized-width;
- background: $sidebar-nav-link-hover-bg;
-
- .badge {
- display: inline;
- }
- }
-
- &.nav-dropdown-toggle::before {
- display: none;
- }
- }
-
- .nav-dropdown-items {
- .nav-item {
- width: $sidebar-width;
-
- .nav-link {
- width: $sidebar-width;
- }
- }
- }
-
- .nav > .nav-dropdown {
- > .nav-dropdown-items {
- display: none;
- max-height: 1000px;
- background: $sidebar-bg;
- }
-
- &:hover {
- background: $sidebar-nav-link-hover-bg;
- > .nav-dropdown-items {
- position: absolute;
- left: $sidebar-minimized-width;
- display: inline;
- }
- }
- }
- }
- }
-}
diff --git a/web/angular/src/scss/core/_switches.scss b/web/angular/src/scss/core/_switches.scss
deleted file mode 100755
index fbc000b..0000000
--- a/web/angular/src/scss/core/_switches.scss
+++ /dev/null
@@ -1,301 +0,0 @@
-@mixin switch-size($width, $height, $font-size, $handle-margin) {
- width: $width;
- height: $height;
-
- .switch-label {
- font-size: $font-size;
- }
-
- .switch-handle {
- width: $height - $handle-margin * 2;
- height: $height - $handle-margin * 2;
- }
-
- .switch-input:checked ~ .switch-handle {
- left: $width - $height + $handle-margin;
- }
-}
-
-@mixin switch($type, $width, $height, $font-size, $handle-margin) {
- position: relative;
- display: inline-block;
- vertical-align: top;
- width: $width;
- height: $height;
- background-color: transparent;
- cursor: pointer;
-
- .switch-input {
- position: absolute;
- top: 0;
- left: 0;
- opacity: 0;
- }
-
- .switch-label {
- position: relative;
- display: block;
- height: inherit;
- @if $type == icon {
- font-family: FontAwesome;
- }
- font-size: $font-size;
- font-weight: 600;
- text-transform: uppercase;
- @if $type == ddd {
- background-color: $gray-100;
- } @else {
- background-color: #fff;
- }
- border: 1px solid $border-color;
- border-radius: 2px;
- transition: opacity background .15s ease-out;
- }
- @if $type == text or $type == icon {
- .switch-label::before,
- .switch-label::after {
- position: absolute;
- top: 50%;
- width: 50%;
- margin-top: -.5em;
- line-height: 1;
- text-align: center;
- transition: inherit;
- }
- .switch-label::before {
- right: 1px;
- color: $gray-200;
- content: attr(data-off);
- }
- .switch-label::after {
- left: 1px;
- color: #fff;
- content: attr(data-on);
- opacity: 0;
- }
- }
- .switch-input:checked ~ .switch-label {
- //background: $gray-lightest;
- }
- .switch-input:checked ~ .switch-label::before {
- opacity: 0;
- }
- .switch-input:checked ~ .switch-label::after {
- opacity: 1;
- }
-
- .switch-handle {
- position: absolute;
- top: $handle-margin;
- left: $handle-margin;
- width: $height - $handle-margin * 2;
- height: $height - $handle-margin * 2;
- background: #fff;
- border: 1px solid $border-color;
- border-radius: 1px;
- transition: left .15s ease-out;
- @if $type == ddd {
- border: 0;
- box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
- }
- }
-
- .switch-input:checked ~ .switch-handle {
- left: $width - $height + $handle-margin;
- }
-
-
- @if $type == ddd {
- @extend .switch-pill;
- }
-
- //size variations
- @if $type == default {
-
- &.switch-lg {
- @include switch-size($switch-lg-width, $switch-lg-height, $switch-lg-font-size, $handle-margin);
- }
- &.switch-sm {
- @include switch-size($switch-sm-width, $switch-sm-height, $switch-sm-font-size, $handle-margin);
- }
- &.switch-xs {
- @include switch-size($switch-xs-width, $switch-xs-height, $switch-xs-font-size, $handle-margin);
- }
-
- } @else if $type == text {
-
- &.switch-lg {
- @include switch-size($switch-text-lg-width, $switch-text-lg-height, $switch-text-lg-font-size, $handle-margin);
- }
- &.switch-sm {
- @include switch-size($switch-text-sm-width, $switch-text-sm-height, $switch-text-sm-font-size, $handle-margin);
- }
- &.switch-xs {
- @include switch-size($switch-text-xs-width, $switch-text-xs-height, $switch-text-xs-font-size, $handle-margin);
- }
-
- } @else if $type == icon {
-
- &.switch-lg {
- @include switch-size($switch-icon-lg-width, $switch-icon-lg-height, $switch-icon-lg-font-size, $handle-margin);
- }
- &.switch-sm {
- @include switch-size($switch-icon-sm-width, $switch-icon-sm-height, $switch-icon-sm-font-size, $handle-margin);
- }
- &.switch-xs {
- @include switch-size($switch-icon-xs-width, $switch-icon-xs-height, $switch-icon-xs-font-size, $handle-margin);
- }
-
- } @else if $type == ddd {
-
- &.switch-lg {
- @include switch-size($switch-lg-width, $switch-lg-height, $switch-lg-font-size, 0);
- }
- &.switch-sm {
- @include switch-size($switch-sm-width, $switch-sm-height, $switch-sm-font-size, 0);
- }
- &.switch-xs {
- @include switch-size($switch-xs-width, $switch-xs-height, $switch-xs-font-size, 0);
- }
- }
-}
-
-@mixin switch-variant($color) {
- > .switch-input:checked ~ .switch-label {
- background: $color !important;
- border-color: darken($color,10%);
- }
-
- > .switch-input:checked ~ .switch-handle {
- border-color: darken($color,10%);
- }
-}
-
-@mixin switch-outline-variant($color) {
- > .switch-input:checked ~ .switch-label {
- background: #fff !important;
- border-color: $color;
-
- &::after {
- color: $color;
- }
- }
-
- > .switch-input:checked ~ .switch-handle {
- border-color: $color;
- }
-}
-
-@mixin switch-outline-alt-variant($color) {
- > .switch-input:checked ~ .switch-label {
- background: #fff !important;
- border-color: $color;
-
- &::after {
- color: $color;
- }
- }
-
- > .switch-input:checked ~ .switch-handle {
- background: $color !important;
- border-color: $color;
- }
-}
-
-$switch-lg-width: 48px;
-$switch-lg-height: 28px;
-$switch-lg-font-size: 12px;
-
-$switch-width: 40px;
-$switch-height: 24px;
-$switch-font-size: 10px;
-
-$handle-margin: 2px;
-
-$switch-sm-width: 32px;
-$switch-sm-height: 20px;
-$switch-sm-font-size: 8px;
-
-$switch-xs-width: 24px;
-$switch-xs-height: 16px;
-$switch-xs-font-size: 7px;
-
-
-$switch-text-lg-width: 56px;
-$switch-text-lg-height: 28px;
-$switch-text-lg-font-size: 12px;
-
-$switch-text-width: 48px;
-$switch-text-height: 24px;
-$switch-text-font-size: 10px;
-
-$switch-text-sm-width: 40px;
-$switch-text-sm-height: 20px;
-$switch-text-sm-font-size: 8px;
-
-$switch-text-xs-width: 32px;
-$switch-text-xs-height: 16px;
-$switch-text-xs-font-size: 7px;
-
-
-$switch-icon-lg-width: 56px;
-$switch-icon-lg-height: 28px;
-$switch-icon-lg-font-size: 12px;
-
-$switch-icon-width: 48px;
-$switch-icon-height: 24px;
-$switch-icon-font-size: 10px;
-
-$switch-icon-sm-width: 40px;
-$switch-icon-sm-height: 20px;
-$switch-icon-sm-font-size: 8px;
-
-$switch-icon-xs-width: 32px;
-$switch-icon-xs-height: 16px;
-$switch-icon-xs-font-size: 7px;
-
-.switch.switch-default {
- @include switch('default', $switch-width, $switch-height, $switch-font-size, $handle-margin);
-}
-
-.switch.switch-text {
- @include switch('text', $switch-text-width, $switch-text-height, $switch-text-font-size, $handle-margin);
-}
-
-.switch.switch-icon {
- @include switch('icon', $switch-icon-width, $switch-icon-height, $switch-icon-font-size, $handle-margin);
-}
-
-.switch.switch-3d {
- @include switch('ddd', $switch-width, $switch-height, $switch-font-size, 0);
-}
-
-//pills style
-.switch-pill {
- .switch-label,
- .switch-handle {
- border-radius: 50em !important;
- }
-
- .switch-label::before {
- right: 2px !important;
- }
- .switch-label::after {
- left: 2px !important;
- }
-}
-
-@each $color, $value in $theme-colors {
- //normal style
- .switch-#{$color} {
- @include switch-variant($value);
- }
- //outline style
- .switch-#{$color}-outline {
- @include switch-outline-variant($value);
- }
- //outline alternative style
- .switch-#{$color}-outline-alt {
- @include switch-outline-alt-variant($value);
- }
-}
diff --git a/web/angular/src/scss/core/_tables.scss b/web/angular/src/scss/core/_tables.scss
deleted file mode 100755
index aabc023..0000000
--- a/web/angular/src/scss/core/_tables.scss
+++ /dev/null
@@ -1,20 +0,0 @@
-.table-outline {
- border: 1px solid $table-border-color;
-
- td {
- vertical-align: middle;
- }
-}
-
-.table-align-middle {
-
- td {
- vertical-align: middle;
- }
-}
-
-.table-clear {
- td {
- border: 0;
- }
-}
diff --git a/web/angular/src/scss/core/_temp.scss b/web/angular/src/scss/core/_temp.scss
deleted file mode 100755
index e409712..0000000
--- a/web/angular/src/scss/core/_temp.scss
+++ /dev/null
@@ -1,37 +0,0 @@
-.pagination-datatables, .pagination {
- li {
- @extend .page-item;
-
- a {
- @extend .page-link;
- }
- }
-}
-
-.label-pill {
- border-radius: 1rem !important;
-}
-
-// temp fix for Vue & React
-
-// Open state for the dropdown
-.open, .show {
- // Remove the outline when :focus is triggered
- > a {
- outline: 0;
- }
-}
-
-// navbar dropdown fix
-.navbar .dropdown-toggle {
- @extend .nav-link;
-
- .img-avatar {
- height: $navbar-height - 20px;
- margin: 0 10px;
- }
-}
-
-.card-block {
- @extend .card-body;
-}
diff --git a/web/angular/src/scss/core/_typography.scss b/web/angular/src/scss/core/_typography.scss
deleted file mode 100755
index be550c9..0000000
--- a/web/angular/src/scss/core/_typography.scss
+++ /dev/null
@@ -1,36 +0,0 @@
-body {
- -moz-osx-font-smoothing: grayscale;
- -webkit-font-smoothing: antialiased;
-}
-
-.font-xs {
- font-size: .75rem !important;
-}
-
-.font-sm {
- font-size: .85rem !important;
-}
-
-.font-lg {
- font-size: 1rem !important;
-}
-
-.font-xl {
- font-size: 1.25rem !important;
-}
-
-.font-2xl {
- font-size: 1.5rem !important;
-}
-
-.font-3xl {
- font-size: 1.75rem !important;
-}
-
-.font-4xl {
- font-size: 2rem !important;
-}
-
-.font-5xl {
- font-size: 2.5rem !important;
-}
diff --git a/web/angular/src/scss/core/_utilities.scss b/web/angular/src/scss/core/_utilities.scss
deleted file mode 100755
index 6398c9f..0000000
--- a/web/angular/src/scss/core/_utilities.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-@import "utilities/background";
-@import "utilities/borders";
-@import "utilities/display";
diff --git a/web/angular/src/scss/core/_variables.scss b/web/angular/src/scss/core/_variables.scss
deleted file mode 100755
index 1e2f3ef..0000000
--- a/web/angular/src/scss/core/_variables.scss
+++ /dev/null
@@ -1,219 +0,0 @@
-// scss-lint:disable all
-// Core Admin Variables
-
-$enable-sidebar-nav-rounded: false !default;
-
-$border-color: $gray-200 !default;
-$layout-transition-speed: .25s !default;
-
-// Social Colors
-
-$facebook: #3b5998 !default;
-$twitter: #00aced !default;
-$linkedin: #4875b4 !default;
-$google-plus: #d34836 !default;
-$flickr: #ff0084 !default;
-$tumblr: #32506d !default;
-$xing: #026466 !default;
-$github: #4183c4 !default;
-$html5: #e34f26 !default;
-$openid: #f78c40 !default;
-$stack-overflow: #fe7a15 !default;
-$youtube: #b00 !default;
-$css3: #0170ba !default;
-$dribbble: #ea4c89 !default;
-$google-plus: #bb4b39 !default;
-$instagram: #517fa4 !default;
-$pinterest: #cb2027 !default;
-$vk: #45668e !default;
-$yahoo: #400191 !default;
-$behance: #1769ff !default;
-$dropbox: #007ee5 !default;
-$reddit: #ff4500 !default;
-$spotify: #7ab800 !default;
-$vine: #00bf8f !default;
-$foursquare: #1073af !default;
-$vimeo: #aad450 !default;
-
-// Navbar
-
-$navbar-height: 55px !default;
-$navbar-bg: #fff !default;
-$navbar-border: (
- bottom: (
- size: 1px,
- style: solid,
- color: $border-color
- )
-) !default;
-$navbar-brand-width: 155px !default;
-$navbar-brand-bg: #fff !default;
-$navbar-brand-logo: url('../img/logo.png') !default;
-$navbar-brand-logo-size: 70px auto !default;
-$navbar-brand-border: (
- bottom: (
- size: 1px,
- style: solid,
- color: $border-color
- )
-) !default;
-
-$navbar-brand-minimized-width: 50px !default;
-$navbar-brand-minimized-bg: $navbar-brand-bg !default;
-$navbar-brand-minimized-logo: url('../img/logo-symbol.png') !default;
-$navbar-brand-minimized-logo-size: 24px !default;
-$navbar-brand-minimized-border: $navbar-brand-border !default;
-
-$navbar-color: $gray-600 !default;
-$navbar-hover-color: $gray-800 !default;
-$navbar-active-color: $gray-800 !default;
-$navbar-disabled-color: $gray-300 !default;
-
-$navbar-toggler-icon: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-color}' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"), "#", "%23") !default;
-$navbar-toggler-icon-hover: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-hover-color}' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"), "#", "%23") !default;
-
-// Sidebar
-
-$sidebar-width: 200px !default;
-$sidebar-padding: 0 !default;
-$sidebar-minimized-width: 50px !default;
-$sidebar-minimized-height: $sidebar-minimized-width !default;
-$sidebar-compact-width: 150px !default;
-$sidebar-compact-height: $sidebar-compact-width !default;
-$sidebar-color: #fff !default;
-$sidebar-bg: darken($primary-dark,10); //$gray-800 !default;
-$sidebar-borders: none !default;
-$mobile-sidebar-width: 220px !default;
-
-// Sidebar Header
-
-$sidebar-header-height: auto !default;
-$sidebar-header-bg: rgba(0,0,0,.2) !default;
-$sidebar-header-padding-y: .75rem !default;
-$sidebar-header-padding-x: 1rem !default;
-
-// Sidebar Form
-
-$sidebar-form-border: 0 !default;
-$sidebar-form-bg: darken($sidebar-bg,10%) !default;
-$sidebar-form-color: #fff !default;
-$sidebar-form-placeholder-color: rgba(255,255,255,.7) !default;
-
-// Sidebar Navigation
-
-$sidebar-nav-color: #fff !default;
-$sidebar-nav-title-padding-y: .75rem !default;
-$sidebar-nav-title-padding-x: 1rem !default;
-$sidebar-nav-title-color: $gray-200 !default;
-$sidebar-nav-link-padding-y: .75rem !default;
-$sidebar-nav-link-padding-x: 1rem !default;
-$sidebar-nav-link-color: #fff !default;
-$sidebar-nav-link-bg: transparent !default;
-$sidebar-nav-link-icon-color: $gray-600 !default;
-$sidebar-nav-link-borders: 0 !default;
-
-$sidebar-nav-link-hover-color: #fff !default;
-$sidebar-nav-link-hover-bg: theme-color("primary") !default;
-$sidebar-nav-link-hover-icon-color: #fff !default;
-$sidebar-nav-link-hover-borders: 0 !default;
-
-$sidebar-nav-link-active-color: #fff !default;
-$sidebar-nav-link-active-bg: lighten($sidebar-bg, 5%) !default;
-$sidebar-nav-link-active-icon-color: theme-color("primary") !default;
-$sidebar-nav-link-active-borders: 0 !default;
-
-$sidebar-nav-dropdown-color: #fff !default;
-$sidebar-nav-dropdown-bg: rgba(0,0,0,.2) !default;
-$sidebar-nav-dropdown-borders: 0 !default;
-$sidebar-nav-dropdown-indicator-color:$gray-600 !default;
-$sidebar-nav-dropdown-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-nav-dropdown-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
-$sidebar-nav-dropdown-indicator-hover-color:$sidebar-nav-link-hover-color;
-$sidebar-nav-dropdown-indicator-hover:str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-nav-dropdown-indicator-hover-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
-
-// Sidebar Footer
-
-$sidebar-footer-height: auto !default;
-$sidebar-footer-bg: rgba(0,0,0,.2) !default;
-$sidebar-footer-padding-y: .75rem !default;
-$sidebar-footer-padding-x: 1rem !default;
-$sidebar-footer-borders: 0 !default;
-
-// Sidebar Minimizer
-
-$sidebar-minimizer-height: 50px !default;
-$sidebar-minimizer-bg: rgba(0,0,0,.2) !default;
-$sidebar-minimizer-borders: 0 !default;
-$sidebar-minimizer-indicator-color: $gray-600 !default;
-$sidebar-minimizer-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-minimizer-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
-$sidebar-minimizer-hover-bg: rgba(0,0,0,.3) !default;
-$sidebar-minimizer-hover-indicator-color:$sidebar-nav-link-hover-color !default;
-$sidebar-minimizer-hover-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-minimizer-hover-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
-
-
-// Top Navigation
-
-$top-nav-bg: #fff !default;
-$top-nav-color: $body-color !default;
-$top-nav-borders: (
- bottom: (
- size: 1px,
- style: solid,
- color: $border-color
- )
-) !default;
-$top-nav-ul-borders: (
- all: (
- size: 1px,
- style: solid,
- color: $border-color
- )
-) !default;
-
-$top-nav-hover-color: #fff !default;
-$top-nav-hover-bg: theme-color("primary") !default;
-$top-nav-active-color: #fff !default;
-$top-nav-active-bg: theme-color("primary") !default;
-$top-nav-height: $navbar-height - 15px !default;
-
-// Breadcrumb
-$breadcrumb-borders: (
- bottom: (
- size: 1px,
- style: solid,
- color: $border-color
- )
-) !default;
-
-// Aside
-
-$aside-menu-width: 250px !default;
-$aside-menu-color: $gray-800 !default;
-$aside-menu-bg: #fff !default;
-$aside-menu-borders: (
- left: (
- size: 1px,
- style: solid,
- color: $border-color
- )
-) !default;
-
-$aside-menu-nav-padding-y: .75rem !default;
-$aside-menu-nav-padding-x: 1rem !default;
-
-// Footer
-
-$footer-height: 50px !default;
-$footer-bg: $gray-100 !default;
-$footer-color: $body-color !default;
-$footer-borders: (
- top: (
- size: 1px,
- style: solid,
- color: $border-color
- )
-) !default;
-
-// Cards
-
-$card-icon-bg: transparent !default;
-$card-icon-color: $body-color !default;
diff --git a/web/angular/src/scss/core/_widgets.scss b/web/angular/src/scss/core/_widgets.scss
deleted file mode 100755
index 2fa5f70..0000000
--- a/web/angular/src/scss/core/_widgets.scss
+++ /dev/null
@@ -1,253 +0,0 @@
-// .social-box
-.social-box {
- min-height: 160px;
- margin-bottom: 2 * $card-spacer-y;
- text-align: center;
- background: #fff;
- border: $card-border-width solid $card-border-color;
- @include border-radius($card-border-radius);
-
- i {
- display: block;
- margin: -1px -1px 0;
- font-size: 40px;
- line-height: 90px;
- background: $gray-200;
-
- @include border-radius($card-border-radius $card-border-radius 0 0);
- }
-
- .chart-wrapper {
- height: 90px;
- margin: -90px 0 0;
-
- canvas {
- width: 100% !important;
- height: 90px !important;
- }
- }
-
- ul {
- padding: 10px 0;
- list-style: none;
-
-
- li {
- display: block;
- float: left;
- width: 50%;
-
- &:first-child {
- border-right: 1px solid $border-color;
- }
-
- strong {
- display: block;
- font-size: 20px;
- }
-
- span {
- font-size: 10px;
- font-weight: 500;
- color: $border-color;
- text-transform: uppercase;
- }
- }
- }
-
- &.facebook {
- i {
- color: #fff;
- background: $facebook;
- }
- }
-
- &.twitter {
- i {
- color: #fff;
- background: $twitter;
- }
- }
-
- &.linkedin {
- i {
- color: #fff;
- background: $linkedin;
- }
- }
-
- &.google-plus {
- i {
- color: #fff;
- background: $google-plus;
- }
- }
-}
-
-.horizontal-bars {
- padding: 0;
- margin: 0;
- list-style: none;
-
- li {
- position: relative;
- height: 40px;
- line-height: 40px;
- vertical-align: middle;
-
- .title {
- width: 100px;
- font-size: 12px;
- font-weight: 600;
- color: $text-muted;
- vertical-align: middle;
- }
-
- .bars {
- position: absolute;
- top: 15px;
- width: 100%;
- padding-left: 100px;
-
- .progress:first-child {
- margin-bottom: 2px;
- }
- }
-
- &.legend {
- text-align: center;
-
- .badge {
- display: inline-block;
- width: 8px;
- height: 8px;
- padding: 0;
- }
- }
-
- &.divider {
- height: 40px;
-
- i {
- margin: 0 !important;
- }
- }
- }
-
- &.type-2 {
-
- li {
- overflow: hidden;
-
- i {
- display: inline-block;
- margin-right: $spacer;
- margin-left: 5px;
- font-size: 18px;
- line-height: 40px;
- }
-
- .title {
- display: inline-block;
- width: auto;
- margin-top: -9px;
- font-size: $font-size-base;
- font-weight: normal;
- line-height: 40px;
- color: $body-color;
- }
-
- .value {
- float: right;
- font-weight: 600;
- }
-
- .bars {
- position: absolute;
- top: auto;
- bottom: 0;
- padding: 0;
- }
- }
- }
-}
-
-.icons-list {
- padding: 0;
- margin: 0;
- list-style: none;
-
- li {
- position: relative;
- height: 40px;
- vertical-align: middle;
-
- i {
- display: block;
- float: left;
- width: 35px !important;
- height: 35px !important;
- margin: 2px;
- line-height: 35px !important;
- text-align: center;
- }
-
- .desc {
- height: 40px;
- margin-left: 50px;
- border-bottom: 1px solid $border-color;
-
- .title {
- padding: 2px 0 0;
- margin: 0;
- }
- small {
- display: block;
- margin-top: -4px;
- color: $text-muted;
- }
- }
-
- .value {
- position: absolute;
- top: 2px;
- right: 45px;
- text-align: right;
-
- strong {
- display: block;
- margin-top: -3px;
- }
- }
-
- .actions {
- position: absolute;
- top: -4px;
- right: 10px;
- width: 40px;
- height: 40px;
- line-height: 40px;
- text-align: center;
-
- i {
- float: none;
- width: auto;
- height: auto;
- padding: 0;
- margin: 0;
- line-height: normal;
- }
- }
-
- &.divider {
- height: 40px;
-
- i {
- width: auto;
- height: auto;
- margin: 2px 0 0;
- font-size: 18px;
- }
- }
- }
-}
diff --git a/web/angular/src/scss/core/core.scss b/web/angular/src/scss/core/core.scss
deleted file mode 100755
index 9f029c5..0000000
--- a/web/angular/src/scss/core/core.scss
+++ /dev/null
@@ -1,47 +0,0 @@
-// Import core styles
-@import "variables";
-@import "mixins";
-
-// Additional typography
-@import "typography";
-
-// Animations
-@import "animate";
-
-// Components
-@import "aside";
-@import "avatars";
-@import "badge";
-@import "breadcrumb-menu";
-@import "breadcrumb";
-@import "buttons";
-@import "callout";
-@import "card";
-@import "charts";
-@import "dropdown";
-@import "footer";
-@import "grid";
-@import "input-group";
-@import "loading";
-@import "modal";
-@import "nav";
-@import "navbar";
-@import "progress";
-@import "sidebar";
-@import "switches";
-@import "tables";
-@import "widgets";
-
-// Layout Options
-@import "layout";
-
-@import "others";
-
-// Utility classes
-@import "utilities";
-
-// Temporary fixes
-@import "temp";
-
-// Right-to-left
-@import "rtl";
diff --git a/web/angular/src/scss/core/utilities/_background.scss b/web/angular/src/scss/core/utilities/_background.scss
deleted file mode 100755
index 2260386..0000000
--- a/web/angular/src/scss/core/utilities/_background.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-.bg-primary,
-.bg-success,
-.bg-info,
-.bg-warning,
-.bg-danger,
-.bg-inverse {
- color: #fff;
-}
diff --git a/web/angular/src/scss/core/utilities/_borders.scss b/web/angular/src/scss/core/utilities/_borders.scss
deleted file mode 100755
index c840fd0..0000000
--- a/web/angular/src/scss/core/utilities/_borders.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-//border
-@each $prop, $abbrev in (border: b) {
- @each $size in (0,1,2) {
- @if $size == 0 {
- .#{$abbrev}-a-#{$size} { #{$prop}: 0 !important; } // a = All sides
- .#{$abbrev}-t-#{$size} { #{$prop}-top: 0 !important; }
- .#{$abbrev}-r-#{$size} { #{$prop}-right: 0 !important; }
- .#{$abbrev}-b-#{$size} { #{$prop}-bottom: 0 !important; }
- .#{$abbrev}-l-#{$size} { #{$prop}-left: 0 !important; }
- } @else {
- .#{$abbrev}-a-#{$size} { #{$prop}: $size * $border-width solid $border-color !important; } // a = All sides
- .#{$abbrev}-t-#{$size} { #{$prop}-top: $size * $border-width solid $border-color !important; }
- .#{$abbrev}-r-#{$size} { #{$prop}-right: $size * $border-width solid $border-color !important; }
- .#{$abbrev}-b-#{$size} { #{$prop}-bottom: $size * $border-width solid $border-color !important; }
- .#{$abbrev}-l-#{$size} { #{$prop}-left: $size * $border-width solid $border-color !important; }
- }
- }
-}
diff --git a/web/angular/src/scss/core/utilities/_display.scss b/web/angular/src/scss/core/utilities/_display.scss
deleted file mode 100755
index 0f0e58a..0000000
--- a/web/angular/src/scss/core/utilities/_display.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-//
-// Utilities for common `display` values
-//
-
-@each $breakpoint in map-keys($grid-breakpoints) {
- @include media-breakpoint-down($breakpoint) {
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
-
- .d#{$infix}-down-none { display: none !important; }
- // .d#{$infix}-inline { display: inline !important; }
- // .d#{$infix}-inline-block { display: inline-block !important; }
- // .d#{$infix}-block { display: block !important; }
- // .d#{$infix}-table { display: table !important; }
- // .d#{$infix}-table-cell { display: table-cell !important; }
- // .d#{$infix}-flex { display: flex !important; }
- // .d#{$infix}-inline-flex { display: inline-flex !important; }
- }
-}
diff --git a/web/angular/src/scss/style.scss b/web/angular/src/scss/style.scss
deleted file mode 100755
index 6b8a655..0000000
--- a/web/angular/src/scss/style.scss
+++ /dev/null
@@ -1,28 +0,0 @@
-/*!
- * CoreUI - Open Source Bootstrap Admin Template
- * @version v1.0.6
- * @link http://coreui.io
- * Copyright (c) 2017 creativeLabs Łukasz Holeczek
- * @license MIT
- */
-
-// Override Boostrap variables
-@import "bootstrap-variables";
-
-// Import Bootstrap source files
-@import "../../node_modules/bootstrap/scss/bootstrap";
-
-// Override core variables
-@import "core-variables";
-
-// Import core styles
-@import "core/core";
-
-// Custom styles
-@import "custom";
-
-@import '../../node_modules/material-design-icons/iconfont/material-icons.css';
-
-.material-icons {
- font-size: 16px;
-}
diff --git a/web/angular/src/scss/vendors/_variables.scss b/web/angular/src/scss/vendors/_variables.scss
deleted file mode 100755
index 988dfec..0000000
--- a/web/angular/src/scss/vendors/_variables.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@import "node_modules/bootstrap/scss/functions";
-@import "../bootstrap-variables";
-@import "node_modules/bootstrap/scss/variables";
-@import "node_modules/bootstrap/scss/mixins";
-@import "../core-variables";
-@import "../core/variables";
diff --git a/web/angular/src/scss/vendors/chart.js/chart.scss b/web/angular/src/scss/vendors/chart.js/chart.scss
deleted file mode 100755
index 7e99cca..0000000
--- a/web/angular/src/scss/vendors/chart.js/chart.scss
+++ /dev/null
@@ -1,48 +0,0 @@
-// Import variables
-@import '../variables';
-
-.chart-legend,
-.bar-legend,
-.line-legend,
-.pie-legend,
-.radar-legend,
-.polararea-legend,
-.doughnut-legend {
- list-style-type: none;
- margin-top: 5px;
- text-align: center;
- -webkit-padding-start: 0;
- -moz-padding-start: 0;
- padding-left: 0;
-}
-.chart-legend li,
-.bar-legend li,
-.line-legend li,
-.pie-legend li,
-.radar-legend li,
-.polararea-legend li,
-.doughnut-legend li {
- display: inline-block;
- white-space: nowrap;
- position: relative;
- margin-bottom: 4px;
- @include border-radius($border-radius);
- padding: 2px 8px 2px 28px;
- font-size: smaller;
- cursor: default;
-}
-.chart-legend li span,
-.bar-legend li span,
-.line-legend li span,
-.pie-legend li span,
-.radar-legend li span,
-.polararea-legend li span,
-.doughnut-legend li span {
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- width: 20px;
- height: 20px;
- @include border-radius($border-radius);
-}
diff --git a/web/angular/src/styles.scss b/web/angular/src/styles.scss
new file mode 100644
index 0000000..756e637
--- /dev/null
+++ b/web/angular/src/styles.scss
@@ -0,0 +1,102 @@
+// Import theming functions
+@import '~@angular/material/theming';
+@import 'theme.scss';
+@import 'fonts.scss';
+@import '~leaflet/dist/leaflet.css';
+
+// fix bug in paginator rendering on MS Edge
+.mat-paginator-container .mat-icon-button {
+ height: auto !important;
+}
+
+// debug view hierarch
+.debug {
+ border-style: dashed;
+ border-width: 2px;
+ border-color: black;
+}
+
+
+// remove spacing
+html {
+ margin:0px;
+ padding:0px;
+}
+
+// body must be 100vh for fxFlexFill to work
+body {
+ height:100vh;
+ margin:0px;
+ padding:0px;
+ font-family: Roboto, sans-serif
+}
+
+.app-bar {
+ @include mat-elevation(4);
+ z-index: 10;
+ position:relative;
+ min-height:56px;
+}
+
+// mat icon is too large for toolbar buttons
+.icon-button {
+ font-size: 18px;
+ height: auto !important;
+ vertical-align: text-bottom !important;
+}
+
+// removes the visited, etc. colors of links
+.link-white {
+ color: white;
+}
+
+.link-primary {
+ color: mat-color($app-primary);
+ text-decoration: none;
+}
+
+.spinner-small {
+ width: 36px;
+ height: 36px;
+}
+
+
+// applies a match parent size styling
+.match-parent {
+ flex: 1 1 100%;
+ min-width: 100%;
+ max-width: 100%;
+ min-height: 100%;
+ max-height: 100%;
+}
+
+.snackbar-accent {
+ background-color: mat-color($app-accent);
+ color: black;
+}
+
+.snackbar-primary {
+ background-color: mat-color($app-primary);
+ color: white;
+}
+
+.detail-row {
+ flex: 1;
+ display: flex;
+}
+
+.detail-label {
+ @extend .mat-caption;
+ min-width: 120px;
+}
+
+.detail-value {
+ flex: 1;
+}
+
+// add more space between form fields
+mat-form-field {
+ margin-bottom:10px;
+}
+
+
diff --git a/web/angular/src/test.ts b/web/angular/src/test.ts
index cd612ee..1631789 100644
--- a/web/angular/src/test.ts
+++ b/web/angular/src/test.ts
@@ -1,24 +1,14 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
-import 'zone.js/dist/long-stack-trace-zone';
-import 'zone.js/dist/proxy.js';
-import 'zone.js/dist/sync-test';
-import 'zone.js/dist/jasmine-patch';
-import 'zone.js/dist/async-test';
-import 'zone.js/dist/fake-async-test';
+import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
-// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
-declare const __karma__: any;
declare const require: any;
-// Prevent Karma from running prematurely.
-__karma__.loaded = function () {};
-
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
@@ -28,5 +18,3 @@ getTestBed().initTestEnvironment(
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
-// Finally, start Karma to run the tests.
-__karma__.start();
diff --git a/web/angular/src/theme.scss b/web/angular/src/theme.scss
new file mode 100644
index 0000000..f7d812c
--- /dev/null
+++ b/web/angular/src/theme.scss
@@ -0,0 +1,24 @@
+@import '~@angular/material/theming';
+// Plus imports for other components in your app.
+
+// Include the common styles for Angular Material. We include this here so that you only
+// have to load a single css file for Angular Material in your app.
+// Be sure that you only ever include this mixin once!
+@include mat-core();
+
+// Define the palettes for your theme using the Material Design palettes available in palette.scss
+// (imported above). For each palette, you can optionally specify a default, lighter, and darker
+// hue. Available color palettes: https://www.google.com/design/spec/style/color.html
+$app-primary: mat-palette($mat-light-blue, 900);
+$app-accent: mat-palette($mat-yellow, 800);
+
+// The warn palette is optional (defaults to red).
+$app-warn: mat-palette($mat-red);
+
+// Create the theme object (a Sass map containing all of the palettes).
+$app-theme: mat-light-theme($app-primary, $app-accent, $app-warn);
+
+// Include theme styles for core and each component used in your app.
+// Alternatively, you can import and @include the theme mixins for each component
+// that you are using.
+@include angular-material-theme($app-theme);
diff --git a/web/angular/src/tsconfig.app.json b/web/angular/src/tsconfig.app.json
index 74758ed..39ba8db 100644
--- a/web/angular/src/tsconfig.app.json
+++ b/web/angular/src/tsconfig.app.json
@@ -4,7 +4,7 @@
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
- "types": [ "node" ]
+ "types": []
},
"exclude": [
"test.ts",
diff --git a/web/angular/src/tsconfig.spec.json b/web/angular/src/tsconfig.spec.json
index 63d89ff..ac22a29 100644
--- a/web/angular/src/tsconfig.spec.json
+++ b/web/angular/src/tsconfig.spec.json
@@ -4,7 +4,6 @@
"outDir": "../out-tsc/spec",
"baseUrl": "./",
"module": "commonjs",
- "target": "es5",
"types": [
"jasmine",
"node"
diff --git a/web/angular/tslint.json b/web/angular/tslint.json
index c24dc29..9963d6c 100644
--- a/web/angular/tslint.json
+++ b/web/angular/tslint.json
@@ -11,6 +11,9 @@
"check-space"
],
"curly": true,
+ "deprecation": {
+ "severity": "warn"
+ },
"eofline": true,
"forin": true,
"import-blacklist": [
@@ -104,7 +107,6 @@
"variable-declaration": "nospace"
}
],
- "typeof-compare": true,
"unified-signatures": true,
"variable-name": false,
"whitespace": [
@@ -127,6 +129,7 @@
"app",
"kebab-case"
],
+ "no-output-on-prefix": true,
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
@@ -135,7 +138,6 @@
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
- "directive-class-suffix": true,
- "invoke-injectable": true
+ "directive-class-suffix": true
}
}