diff --git a/service/swarm/src/main/java/com/maptology/service/swarm/MaptologySwarm.java b/service/swarm/src/main/java/com/maptology/service/swarm/MaptologySwarm.java index c8025b2..a9b7405 100644 --- a/service/swarm/src/main/java/com/maptology/service/swarm/MaptologySwarm.java +++ b/service/swarm/src/main/java/com/maptology/service/swarm/MaptologySwarm.java @@ -55,8 +55,7 @@ public class MaptologySwarm { deployment.addPackages(true, "org.reflections"); deployment.addPackages(true, "io.swagger"); // add swagger ui from webapp folder - deployment.merge(ShrinkWrap.create(ExplodedImporter.class) - .importDirectory("src/main/webapp/").as(GenericArchive.class),"/"); + //deployment.merge(ShrinkWrap.create(ExplodedImporter.class).importDirectory("src/main/webapp/").as(GenericArchive.class),"/"); // add manifest deployment.addAsManifestResource(new StringAsset(getManifest()), "MANIFEST.MF"); // add code diff --git a/web/angular/.angular-cli.json b/web/angular/.angular-cli.json index 928ef18..605f9ab 100644 --- a/web/angular/.angular-cli.json +++ b/web/angular/.angular-cli.json @@ -1,5 +1,5 @@ { - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "$schema": "../node_modules/@angular/cli/lib/config/schema.json", "project": { "name": "maptology" }, @@ -19,14 +19,13 @@ "testTsconfig": "tsconfig.spec.json", "prefix": "app", "styles": [ - "../node_modules/bootstrap/dist/css/bootstrap.min.css", - "../node_modules/ionicons/dist/css/ionicons.css", - "styles.scss" + "../node_modules/font-awesome/css/font-awesome.css", + "../node_modules/simple-line-icons/css/simple-line-icons.css", + "../src/scss/style.scss" ], "scripts": [ - "../node_modules/jquery/dist/jquery.slim.min.js", - "../node_modules/popper.js/dist/umd/popper.min.js", - "../node_modules/bootstrap/dist/js/bootstrap.min.js" + "../node_modules/chart.js/dist/Chart.bundle.min.js", + "../node_modules/chart.js/dist/Chart.min.js" ], "environmentSource": "environments/environment.ts", "environments": { @@ -61,6 +60,7 @@ }, "defaults": { "styleExt": "scss", + "prefixInterfaces": false, "component": {} } } diff --git a/web/angular/package-lock.json b/web/angular/package-lock.json index 68ff003..8ed2350 100644 --- a/web/angular/package-lock.json +++ b/web/angular/package-lock.json @@ -37,19 +37,6 @@ "rxjs": "5.5.2" } }, - "@angular-redux/store": { - "version": "6.5.7", - "resolved": "https://developer.locoslab.com/sinopia/@angular-redux%2fstore/-/store-6.5.7.tgz", - "integrity": "sha1-IsO0gVyJ1sygrJPd23yr7Dlm8fw=" - }, - "@angular/animations": { - "version": "5.0.1", - "resolved": "https://developer.locoslab.com/sinopia/@angular%2fanimations/-/animations-5.0.1.tgz", - "integrity": "sha1-qSsrGGpuWjGp8VhJEd1qp+FsXeE=", - "requires": { - "tslib": "1.8.0" - } - }, "@angular/cli": { "version": "1.5.0", "resolved": "https://developer.locoslab.com/sinopia/@angular%2fcli/-/cli-1.5.0.tgz", @@ -197,10 +184,13 @@ "tslib": "1.8.0" } }, - "@ng-bootstrap/ng-bootstrap": { - "version": "1.0.0-beta.5", - "resolved": "https://developer.locoslab.com/sinopia/@ng-bootstrap%2fng-bootstrap/-/ng-bootstrap-1.0.0-beta.5.tgz", - "integrity": "sha1-2iuQZrNwGihMrFoWFop33vlHtKs=" + "@angular/upgrade": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/upgrade/-/upgrade-5.0.1.tgz", + "integrity": "sha1-HEVVGJu4iBQwb5c1IIQj3b1Y6o8=", + "requires": { + "tslib": "1.8.0" + } }, "@ngtools/json-schema": { "version": "1.1.0", @@ -1242,6 +1232,46 @@ "integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=", "dev": true }, + "chart.js": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-2.7.1.tgz", + "integrity": "sha512-pX1oQAY86MiuyZ2hY593Acbl4MLHKrBBhhmZ1YqSadzQbbsBE2rnd6WISoHjIsdf0WDeC0hbePYCz2ZxkV8L+g==", + "requires": { + "chartjs-color": "2.2.0", + "moment": "2.18.1" + }, + "dependencies": { + "moment": { + "version": "2.18.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.18.1.tgz", + "integrity": "sha1-w2GT3Tzhwu7SrbfIAtu8d6gbHA8=" + } + } + }, + "chartjs-color": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/chartjs-color/-/chartjs-color-2.2.0.tgz", + "integrity": "sha1-hKL7dVeH7YXDndbdjHsdiEKbrq4=", + "requires": { + "chartjs-color-string": "0.5.0", + "color-convert": "0.5.3" + }, + "dependencies": { + "color-convert": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-0.5.3.tgz", + "integrity": "sha1-vbbGnOZg+t/+CwAHzER+G59ygr0=" + } + } + }, + "chartjs-color-string": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/chartjs-color-string/-/chartjs-color-string-0.5.0.tgz", + "integrity": "sha512-amWNvCOXlOUYxZVDSa0YOab5K/lmEhbFNKI55PWc4mlv28BDzA7zaoQTGxSBgJMHIW+hGX8YUrvw/FH4LyhwSQ==", + "requires": { + "color-name": "1.1.3" + } + }, "chokidar": { "version": "1.7.0", "resolved": "https://developer.locoslab.com/sinopia/chokidar/-/chokidar-1.7.0.tgz", @@ -1436,8 +1466,7 @@ "color-name": { "version": "1.1.3", "resolved": "https://developer.locoslab.com/sinopia/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "color-string": { "version": "0.3.0", @@ -3238,6 +3267,11 @@ "readable-stream": "2.3.3" } }, + "font-awesome": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz", + "integrity": "sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM=" + }, "for-in": { "version": "1.0.2", "resolved": "https://developer.locoslab.com/sinopia/for-in/-/for-in-1.0.2.tgz", @@ -5353,11 +5387,6 @@ "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, - "ionicons": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ionicons/-/ionicons-3.0.0.tgz", - "integrity": "sha1-QLja9P16MRUL0AIWD2ZJbiKpjDw=" - }, "ip": { "version": "1.1.5", "resolved": "https://developer.locoslab.com/sinopia/ip/-/ip-1.1.5.tgz", @@ -5954,11 +5983,6 @@ "integrity": "sha1-43zwsX8ZnM4jvqcbIDk5Uka07E4=", "dev": true }, - "jquery": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.2.1.tgz", - "integrity": "sha1-XE2d5lKvbNCncBVKYxu6ErAVx4c=" - }, "js-base64": { "version": "2.3.2", "resolved": "https://developer.locoslab.com/sinopia/js-base64/-/js-base64-2.3.2.tgz", @@ -5991,7 +6015,8 @@ "js-tokens": { "version": "3.0.2", "resolved": "https://developer.locoslab.com/sinopia/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true }, "js-yaml": { "version": "3.7.0", @@ -6362,12 +6387,8 @@ "lodash": { "version": "4.17.4", "resolved": "https://developer.locoslab.com/sinopia/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" - }, - "lodash-es": { - "version": "4.17.4", - "resolved": "https://developer.locoslab.com/sinopia/lodash-es/-/lodash-es-4.17.4.tgz", - "integrity": "sha1-3MHXVS4VCgZABzupyzHXDwMpUOc=" + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true }, "lodash._basecopy": { "version": "3.0.1", @@ -6608,6 +6629,7 @@ "version": "1.3.1", "resolved": "https://developer.locoslab.com/sinopia/loose-envify/-/loose-envify-1.3.1.tgz", "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "dev": true, "requires": { "js-tokens": "3.0.2" } @@ -6937,6 +6959,11 @@ } } }, + "moment": { + "version": "2.19.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.19.1.tgz", + "integrity": "sha1-VtoaLRy/AdOLfhr8McELz6GSkWc=" + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://developer.locoslab.com/sinopia/move-concurrently/-/move-concurrently-1.0.1.tgz", @@ -7016,10 +7043,18 @@ "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", "dev": true }, - "ng-sidebar": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/ng-sidebar/-/ng-sidebar-6.0.4.tgz", - "integrity": "sha1-QtxRdV6FPBiBs7iFg1T0yEWpbzM=" + "ng2-charts": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ng2-charts/-/ng2-charts-1.6.0.tgz", + "integrity": "sha512-9w0WH69x5/nuqC1og2WaY39NbaBqTGIP1+5gZaH7/KPN6UEPonNg/pYnsIVklLj1DWPWXKa8+XXIJZ1jy5nLxg==", + "requires": { + "chart.js": "2.7.1" + } + }, + "ngx-bootstrap": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/ngx-bootstrap/-/ngx-bootstrap-1.9.3.tgz", + "integrity": "sha512-beoKQGJEFwdg0ctIpGb+vx4PTPkyqHrA5tBAEbnUn7ZlTjjfA6533QYGv3qVoKPDNkkHmLA3lRjWKxEMYepCdg==" }, "no-case": { "version": "2.3.2", @@ -7854,11 +7889,6 @@ } } }, - "popper.js": { - "version": "1.12.9", - "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.12.9.tgz", - "integrity": "sha1-DfvC3/lsRRuzMu3Pz6r1ZtMx1bM=" - }, "portfinder": { "version": "1.0.13", "resolved": "https://developer.locoslab.com/sinopia/portfinder/-/portfinder-1.0.13.tgz", @@ -8961,17 +8991,6 @@ } } }, - "redux": { - "version": "3.7.2", - "resolved": "https://developer.locoslab.com/sinopia/redux/-/redux-3.7.2.tgz", - "integrity": "sha512-pNqnf9q1hI5HHZRBkj3bAngGZW/JMCmexDlOxw4XagXY2o1327nHH54LoTjiPJ0gizoqPDRqWyX/00g0hD6w+A==", - "requires": { - "lodash": "4.17.4", - "lodash-es": "4.17.4", - "loose-envify": "1.3.1", - "symbol-observable": "1.0.4" - } - }, "reflect-metadata": { "version": "0.1.10", "resolved": "https://developer.locoslab.com/sinopia/reflect-metadata/-/reflect-metadata-0.1.10.tgz", @@ -9505,6 +9524,11 @@ "debug": "2.6.9" } }, + "simple-line-icons": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/simple-line-icons/-/simple-line-icons-2.4.1.tgz", + "integrity": "sha1-t1vFoNh+UwkowszaVzUnS7JW8jQ=" + }, "sntp": { "version": "1.0.9", "resolved": "https://developer.locoslab.com/sinopia/sntp/-/sntp-1.0.9.tgz", @@ -10231,6 +10255,11 @@ } } }, + "ts-helpers": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/ts-helpers/-/ts-helpers-1.1.2.tgz", + "integrity": "sha1-/Gm+nx87rtAfsaDvjUz+dIgU2DU=" + }, "ts-node": { "version": "3.2.2", "resolved": "https://developer.locoslab.com/sinopia/ts-node/-/ts-node-3.2.2.tgz", diff --git a/web/angular/package.json b/web/angular/package.json index 177688a..dad5415 100644 --- a/web/angular/package.json +++ b/web/angular/package.json @@ -14,27 +14,27 @@ }, "private": true, "dependencies": { - "@angular-redux/store": "^6.5.7", - "@angular/animations": "^5.0.0", - "@angular/common": "^5.0.0", - "@angular/compiler": "^5.0.0", - "@angular/core": "^5.0.0", - "@angular/forms": "^5.0.0", - "@angular/http": "^5.0.0", - "@angular/platform-browser": "^5.0.0", - "@angular/platform-browser-dynamic": "^5.0.0", - "@angular/router": "^5.0.0", - "@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5", - "bootstrap": "^4.0.0-beta.2", - "core-js": "^2.4.1", - "ionicons": "^3.0.0", - "jquery": "^3.2.1", - "leaflet": "^1.2.0", - "ng-sidebar": "^6.0.4", - "popper.js": "^1.12.9", - "redux": "^3.7.2", - "rxjs": "^5.5.2", - "zone.js": "^0.8.14" + "@angular/common": "5.0.1", + "@angular/compiler": "5.0.1", + "@angular/core": "5.0.1", + "@angular/forms": "5.0.1", + "@angular/http": "5.0.1", + "@angular/platform-browser": "5.0.1", + "@angular/platform-browser-dynamic": "5.0.1", + "@angular/router": "5.0.1", + "@angular/upgrade": "5.0.1", + "bootstrap": "4.0.0-beta.2", + "chart.js": "2.7.1", + "core-js": "2.5.1", + "font-awesome": "^4.7.0", + "moment": "2.19.1", + "ng2-charts": "1.6.0", + "ngx-bootstrap": "1.9.3", + "rxjs": "5.5.2", + "simple-line-icons": "^2.4.1", + "ts-helpers": "1.1.2", + "zone.js": "0.8.18", + "leaflet": "^1.2.0" }, "devDependencies": { "@angular/cli": "1.5.0", diff --git a/web/angular/src/app/_nav.ts b/web/angular/src/app/_nav.ts new file mode 100755 index 0000000..f4e114a --- /dev/null +++ b/web/angular/src/app/_nav.ts @@ -0,0 +1,17 @@ +export const navigation = [ + { + name: 'Homepage', + url: '/maptology/homepage', + icon: 'icon-speedometer' + }, + { + name: 'Profile', + url: '/maptology/profile', + icon: 'icon-user' + }, + { + name: 'Statistic', + url: '/maptology/statistic', + icon: 'icon-chart' + } +]; diff --git a/web/angular/src/app/app.component.html b/web/angular/src/app/app.component.html old mode 100644 new mode 100755 index eb84d1b..e69de29 --- a/web/angular/src/app/app.component.html +++ b/web/angular/src/app/app.component.html @@ -1,5 +0,0 @@ -
- - - -
diff --git a/web/angular/src/app/app.component.spec.ts b/web/angular/src/app/app.component.spec.ts old mode 100644 new mode 100755 index 43d441a..13c632d --- a/web/angular/src/app/app.component.spec.ts +++ b/web/angular/src/app/app.component.spec.ts @@ -1,36 +1,15 @@ import { TestBed, async } from '@angular/core/testing'; -import { RouterTestingModule } from '@angular/router/testing'; - -// Component imports import { AppComponent } from './app.component'; -import { HeaderComponent } from './header/header.component'; - -// Service imports -import { AuthService } from './auth.service'; -import { ConsoleService } from './console.service'; -import { ApiClientService } from '../api/index'; - -import { HttpClientModule } from '@angular/common/http'; describe('AppComponent', () => { - - beforeEach(async(() => { + beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - RouterTestingModule, - HttpClientModule - ], declarations: [ - AppComponent, - HeaderComponent + AppComponent ], - providers: [ - AuthService, - ConsoleService, - ApiClientService, - ] - }).compileComponents(); - })); + }); + TestBed.compileComponents(); + }); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); @@ -38,10 +17,16 @@ describe('AppComponent', () => { expect(app).toBeTruthy(); })); - it(`should have as title 'Maptology'`, async(() => { + it(`should have as title 'app works!'`, async(() => { const fixture = TestBed.createComponent(AppComponent); const app = fixture.debugElement.componentInstance; - expect(app.title).toEqual('Maptology'); + expect(app.title).toEqual('app works!'); })); + it('should render title in a h1 tag', async(() => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.debugElement.nativeElement; + expect(compiled.querySelector('h1').textContent).toContain('app works!'); + })); }); diff --git a/web/angular/src/app/app.component.ts b/web/angular/src/app/app.component.ts old mode 100644 new mode 100755 index 6b44997..5095d21 --- a/web/angular/src/app/app.component.ts +++ b/web/angular/src/app/app.component.ts @@ -1,19 +1,8 @@ import { Component } from '@angular/core'; -import { OnInit } from '@angular/core/src/metadata/lifecycle_hooks'; -import { ConsoleService } from './console.service'; @Component({ - selector: 'app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.scss'] + // tslint:disable-next-line + selector: 'body', + template: '' }) -export class AppComponent implements OnInit { - title = 'Maptology'; - - constructor(private consoleService: ConsoleService) { } - - ngOnInit() { - this.consoleService.log("App component initialized.") - } - -} +export class AppComponent { } diff --git a/web/angular/src/app/app.module.ts b/web/angular/src/app/app.module.ts old mode 100644 new mode 100755 index 9958928..11b7a89 --- a/web/angular/src/app/app.module.ts +++ b/web/angular/src/app/app.module.ts @@ -1,43 +1,33 @@ -// browser stuff and polyfills import { BrowserModule } from '@angular/platform-browser'; -// core module and dependency injection -import { NgModule, InjectionToken } from '@angular/core'; -// forms (ngModel) and two way data binding with templates -import { FormsModule } from '@angular/forms'; -// bootstrap 4 for angular -import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; +import {FormsModule} from "@angular/forms"; +import { NgModule } from '@angular/core'; +import { LocationStrategy, HashLocationStrategy } from '@angular/common'; + +import { AppComponent } from './app.component'; + // http client and http client interceptors import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; -// angular in-app routing -import { RouterModule, Routes } from '@angular/router'; -// sidebar module -import { SidebarModule } from 'ng-sidebar'; +import { DelayInterceptor } from "./delay.interceptor"; +import { AuthInterceptor } from "./auth.interceptor"; +import { ConsoleService } from "./console.service"; +import {AuthService} from "./auth.service"; +import {AuthGuard} from "./auth.guard"; -// application code -import { AppComponent } from './app.component'; -import { ConsoleComponent } from './console/console.component'; -import { NoticesComponent } from './notices/notices.component'; -import { LoginComponent } from './login/login.component'; -import { ApiClientService } from '../api/index'; -import { AuthService } from './auth.service'; -import { ConsoleService } from './console.service'; -import { LocationService } from './location.service'; -import { AuthInterceptor } from './auth.interceptor'; -import { DelayInterceptor } from './delay.interceptor'; -import { MapComponent } from './map/map.component'; -import { RegisterComponent } from './register/register.component'; -import { MapInfoComponent } from './map-info/map-info.component'; -import { VerifyEmailComponent } from './verify-email/verify-email.component'; -import { SidebarComponent } from './sidebar/sidebar.component'; +// Import custom pages +import { LoginComponent } from './views/pages/login/login.component'; +import { RegisterComponent } from './views/pages/register/register.component'; + +// Import custom components +import { HomepageComponent } from './views/components/homepage/homepage.component'; +import { ProfileComponent } from './views/components/profile/profile.component'; +import { StatisticComponent } from './views/components/statistic/statistic.component'; + +// Import containers +import { + FullLayoutComponent, + SimpleLayoutComponent +} from './containers'; -const routes: Routes = [ - { path: 'notices', component: NoticesComponent }, - { path: 'login', component: LoginComponent }, - { path: 'register', component: RegisterComponent }, - { path: 'map/:id', component: MapComponent }, - { path: 'verifyEmail/:token', component: VerifyEmailComponent }, - { path: '', redirectTo: 'login', pathMatch: 'full' } -]; /** * Computes the api domain from the browser location. @@ -53,57 +43,95 @@ const apidomain: ()=>string = ()=>{ } }; -/** - * Computes the api socket domain from the browser location. - */ -const apisocket: ()=>string = ()=>{ - let host = document.location.hostname; - let port = document.location.port; - var protocol = ""; - if (document.location.protocol.startsWith("https")) { - protocol = "wss:" - } else { - protocol = "ws:" - } - if (port.length > 0) { - return protocol + "//" + host + ":" + port + "/api"; - } else { - return protocol + "//" + host + "/api" - } -}; +const APP_CONTAINERS = [ + FullLayoutComponent, + SimpleLayoutComponent +]; +// Import components +import { + AppFooterComponent, + AppHeaderComponent, + AppSidebarComponent, + AppSidebarFooterComponent, + AppSidebarFormComponent, + AppSidebarHeaderComponent, + AppSidebarMinimizerComponent, + APP_SIDEBAR_NAV +} from './components'; + +const APP_COMPONENTS = [ + AppFooterComponent, + AppHeaderComponent, + AppSidebarComponent, + AppSidebarFooterComponent, + AppSidebarFormComponent, + AppSidebarHeaderComponent, + AppSidebarMinimizerComponent, + APP_SIDEBAR_NAV, + LoginComponent, + RegisterComponent, + HomepageComponent, + ProfileComponent, + StatisticComponent, + MapComponent +]; + +// Import directives +import { + AsideToggleDirective, + NAV_DROPDOWN_DIRECTIVES, + ReplaceDirective, + SIDEBAR_TOGGLE_DIRECTIVES +} from './directives'; + +const APP_DIRECTIVES = [ + AsideToggleDirective, + NAV_DROPDOWN_DIRECTIVES, + ReplaceDirective, + SIDEBAR_TOGGLE_DIRECTIVES +]; + +// Import routing module +import { AppRoutingModule } from './app.routing'; + +// Import 3rd party components +import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; +import { TabsModule } from 'ngx-bootstrap/tabs'; +import { ChartsModule } from 'ng2-charts/ng2-charts'; +import {NotAuthGuard} from "./notAuth.guard"; +import {ParentAuthGuard} from "./parentAuth.guard"; +import {ApiClientService} from "../api/index"; +import {MapComponent} from "./views/components/map/map.component"; +import {LocationService} from "./location.service"; @NgModule({ - declarations: [ - AppComponent, - ConsoleComponent, - NoticesComponent, - LoginComponent, - MapComponent, - RegisterComponent, - MapInfoComponent, - VerifyEmailComponent, - SidebarComponent, - ], imports: [ - RouterModule.forRoot(routes, { enableTracing: true }), - NgbModule.forRoot(), BrowserModule, FormsModule, HttpClientModule, - SidebarModule.forRoot() + AppRoutingModule, + BsDropdownModule.forRoot(), + TabsModule.forRoot(), + ChartsModule ], - - providers: [ - // define the domain in ApiClientService see https://angular.io/guide/dependency-injection - {provide: "domain", useValue: apidomain()}, - {provide: "socket", useValue: apisocket()}, - // add two global interceptors (one two slow down the server and one for authentication) - {provide: HTTP_INTERCEPTORS, useClass: DelayInterceptor, multi: true}, - {provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}, - // add our application services (api access, logging, authentication) - ApiClientService, ConsoleService, AuthService, LocationService - ], - bootstrap: [AppComponent] + declarations: [ + AppComponent, + ...APP_CONTAINERS, + ...APP_COMPONENTS, + ...APP_DIRECTIVES + ], + providers: [{ + provide: LocationStrategy, + useClass: HashLocationStrategy + }, + {provide: "domain", useValue: apidomain()}, + // add two global interceptors (one two slow down the server and one for authentication) + {provide: HTTP_INTERCEPTORS, useClass: DelayInterceptor, multi: true}, + {provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}, + // add our application services (api access, logging, authentication) + ApiClientService, ConsoleService, AuthGuard, NotAuthGuard, ParentAuthGuard, AuthService, LocationService + ], + bootstrap: [ AppComponent ] }) export class AppModule { } diff --git a/web/angular/src/app/app.routing.ts b/web/angular/src/app/app.routing.ts new file mode 100755 index 0000000..142776f --- /dev/null +++ b/web/angular/src/app/app.routing.ts @@ -0,0 +1,94 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +// Import Containers +import { + FullLayoutComponent, + SimpleLayoutComponent +} from './containers'; + +// Import custom pages +import { LoginComponent } from './views/pages/login/login.component'; +import { RegisterComponent } from './views/pages/register/register.component'; + +// Import custom components +import { HomepageComponent } from './views/components/homepage/homepage.component'; +import { ProfileComponent } from './views/components/profile/profile.component'; +import { StatisticComponent } from './views/components/statistic/statistic.component'; + +import {AuthGuard} from "./auth.guard"; +import {NotAuthGuard} from "./notAuth.guard"; +import {ParentAuthGuard} from "./parentAuth.guard"; +import {MapComponent} from "./views/components/map/map.component"; + + +export const routes: Routes = [ + { path: '', redirectTo: '/maptology/homepage', pathMatch: 'full' }, + { + path: 'maptology', + component: FullLayoutComponent, + data: { + title: 'Home' + }, canActivate: [ParentAuthGuard] ,canActivateChild: [AuthGuard] + , + children: [ + {path: '', redirectTo: 'homepage', pathMatch: 'full'}, + { + path: 'homepage', + component: HomepageComponent, + data: { + title: 'Homepage' + } + }, + { + path: 'profile', + component: ProfileComponent, + data: { + title: 'Profile' + } + }, + { + path: 'statistic', + component: StatisticComponent, + data: { + title: 'statistic' + } + }, + { + path: 'map', + component: MapComponent + } + ] + }, + { + path: 'pages', + component: SimpleLayoutComponent, + data: { + title: 'Pages' + }, canActivateChild: [NotAuthGuard] + , children: [ + { path: '', redirectTo: '/pages/login', pathMatch: 'full'}, + { + path: 'login', + component: LoginComponent, + data: { + title: 'Login Page' + } + }, + { + path: 'register', + component: RegisterComponent, + data: { + title: 'Register Page' + } + } + ] + }, + { path: '**', redirectTo: '/pages/login' } // "Catch-All" Route +]; + +@NgModule({ + imports: [ RouterModule.forRoot(routes) ], + exports: [ RouterModule ] +}) +export class AppRoutingModule {} diff --git a/web/angular/src/app/auth.guard.ts b/web/angular/src/app/auth.guard.ts new file mode 100644 index 0000000..895b745 --- /dev/null +++ b/web/angular/src/app/auth.guard.ts @@ -0,0 +1,24 @@ +import { Injectable } from '@angular/core'; +import {Router, CanActivate, CanActivateChild} from '@angular/router'; +import {AuthService, AuthState} from "./auth.service"; + +@Injectable() +export class AuthGuard implements CanActivateChild { + + constructor(private router: Router, private authService:AuthService) { } + + canActivateChild() { + if (this.authService.getHeader()) { + // logged in so return true + console.log("asdasdasd----------"+232); + + return true; + } + + console.log("asdasdasd22----------"+232); + + // not logged in so redirect to login page + this.router.navigate(['/pages/login']); + return false; + } +} diff --git a/web/angular/src/app/auth.service.spec.ts b/web/angular/src/app/auth.service.spec.ts index d1bc750..bd98634 100644 --- a/web/angular/src/app/auth.service.spec.ts +++ b/web/angular/src/app/auth.service.spec.ts @@ -1,23 +1,11 @@ import { TestBed, inject } from '@angular/core/testing'; import { AuthService } from './auth.service'; -import { ConsoleService } from './console.service'; -import { ApiClientService } from '../api/index'; - -import { HttpClientModule } from '@angular/common/http'; - describe('AuthService', () => { beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule - ], - providers: [ - AuthService, - ConsoleService, - ApiClientService - ] + providers: [AuthService] }); }); diff --git a/web/angular/src/app/auth.service.ts b/web/angular/src/app/auth.service.ts index 9fc2ea6..73c0c89 100644 --- a/web/angular/src/app/auth.service.ts +++ b/web/angular/src/app/auth.service.ts @@ -1,11 +1,12 @@ import { Injectable } from '@angular/core'; import { ConsoleService } from './console.service'; -import { ApiClientService } from '../api/index'; import { OnInit } from '@angular/core/src/metadata/lifecycle_hooks'; -import { User } from '../api/models/user.model'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { HttpErrorResponse } from '@angular/common/http'; -import { UserRegistration } from '../api/models/userregistration.model'; +import { Router } from '@angular/router'; +import {User} from "../api/models/user.model"; +import {ApiClientService} from "../api/index"; +import {UserRegistration} from "../api/models/userregistration.model"; /** * The possible states of the auth service. @@ -54,7 +55,7 @@ export class AuthService { state: BehaviorSubject = new BehaviorSubject(AuthState.Unauthorized); error: BehaviorSubject = new BehaviorSubject(null); - constructor(private consoleService: ConsoleService, private apiClientService: ApiClientService) { + constructor(private consoleService: ConsoleService, private apiClientService: ApiClientService, private router: Router) { // get the username from the session storage, if it is there if (window.sessionStorage) { this.login = window.sessionStorage.getItem(AuthService.KEY_LOGIN); @@ -105,6 +106,7 @@ export class AuthService { window.sessionStorage.setItem(AuthService.KEY_LOGIN, this.login); window.sessionStorage.setItem(AuthService.KEY_PASSWORD, this.password); } + this.router.navigate(['/maptology/homepage']); }, error => { this.consoleService.log("Error during login."); if (error instanceof HttpErrorResponse) { diff --git a/web/angular/src/app/components/app-footer/app-footer.component.html b/web/angular/src/app/components/app-footer/app-footer.component.html new file mode 100755 index 0000000..4b53b71 --- /dev/null +++ b/web/angular/src/app/components/app-footer/app-footer.component.html @@ -0,0 +1,4 @@ + diff --git a/web/angular/src/app/components/app-footer/app-footer.component.ts b/web/angular/src/app/components/app-footer/app-footer.component.ts new file mode 100755 index 0000000..1e8f1ae --- /dev/null +++ b/web/angular/src/app/components/app-footer/app-footer.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-footer', + templateUrl: './app-footer.component.html' +}) +export class AppFooterComponent { } diff --git a/web/angular/src/app/components/app-footer/index.ts b/web/angular/src/app/components/app-footer/index.ts new file mode 100755 index 0000000..f029f14 --- /dev/null +++ b/web/angular/src/app/components/app-footer/index.ts @@ -0,0 +1 @@ +export * from './app-footer.component'; diff --git a/web/angular/src/app/components/app-header/app-header.component.html b/web/angular/src/app/components/app-header/app-header.component.html new file mode 100755 index 0000000..4003c34 --- /dev/null +++ b/web/angular/src/app/components/app-header/app-header.component.html @@ -0,0 +1,22 @@ + diff --git a/web/angular/src/app/components/app-header/app-header.component.ts b/web/angular/src/app/components/app-header/app-header.component.ts new file mode 100755 index 0000000..ee30134 --- /dev/null +++ b/web/angular/src/app/components/app-header/app-header.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-header', + templateUrl: './app-header.component.html' +}) +export class AppHeaderComponent { } diff --git a/web/angular/src/app/components/app-header/index.ts b/web/angular/src/app/components/app-header/index.ts new file mode 100755 index 0000000..dcfab51 --- /dev/null +++ b/web/angular/src/app/components/app-header/index.ts @@ -0,0 +1 @@ +export * from './app-header.component'; diff --git a/web/angular/src/app/components/app-sidebar-footer/app-sidebar-footer.component.html b/web/angular/src/app/components/app-sidebar-footer/app-sidebar-footer.component.html new file mode 100755 index 0000000..63d421d --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-footer/app-sidebar-footer.component.html @@ -0,0 +1 @@ + diff --git a/web/angular/src/app/components/app-sidebar-footer/app-sidebar-footer.component.ts b/web/angular/src/app/components/app-sidebar-footer/app-sidebar-footer.component.ts new file mode 100755 index 0000000..9b2e92e --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-footer/app-sidebar-footer.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-sidebar-footer', + templateUrl: './app-sidebar-footer.component.html' +}) +export class AppSidebarFooterComponent { } diff --git a/web/angular/src/app/components/app-sidebar-footer/index.ts b/web/angular/src/app/components/app-sidebar-footer/index.ts new file mode 100755 index 0000000..5c8e33e --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-footer/index.ts @@ -0,0 +1 @@ +export * from './app-sidebar-footer.component'; diff --git a/web/angular/src/app/components/app-sidebar-form/app-sidebar-form.component.html b/web/angular/src/app/components/app-sidebar-form/app-sidebar-form.component.html new file mode 100755 index 0000000..b5f736b --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-form/app-sidebar-form.component.html @@ -0,0 +1 @@ + diff --git a/web/angular/src/app/components/app-sidebar-form/app-sidebar-form.component.ts b/web/angular/src/app/components/app-sidebar-form/app-sidebar-form.component.ts new file mode 100755 index 0000000..e1a39dc --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-form/app-sidebar-form.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-sidebar-form', + templateUrl: './app-sidebar-form.component.html' +}) +export class AppSidebarFormComponent { } diff --git a/web/angular/src/app/components/app-sidebar-form/index.ts b/web/angular/src/app/components/app-sidebar-form/index.ts new file mode 100755 index 0000000..63300f6 --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-form/index.ts @@ -0,0 +1 @@ +export * from './app-sidebar-form.component'; diff --git a/web/angular/src/app/components/app-sidebar-header/app-sidebar-header.component.html b/web/angular/src/app/components/app-sidebar-header/app-sidebar-header.component.html new file mode 100755 index 0000000..807585c --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-header/app-sidebar-header.component.html @@ -0,0 +1 @@ + diff --git a/web/angular/src/app/components/app-sidebar-header/app-sidebar-header.component.ts b/web/angular/src/app/components/app-sidebar-header/app-sidebar-header.component.ts new file mode 100755 index 0000000..db1182a --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-header/app-sidebar-header.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-sidebar-header', + templateUrl: './app-sidebar-header.component.html' +}) +export class AppSidebarHeaderComponent { } diff --git a/web/angular/src/app/components/app-sidebar-header/index.ts b/web/angular/src/app/components/app-sidebar-header/index.ts new file mode 100755 index 0000000..6b1403e --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-header/index.ts @@ -0,0 +1 @@ +export * from './app-sidebar-header.component'; diff --git a/web/angular/src/app/components/app-sidebar-minimizer/app-sidebar-minimizer.component.html b/web/angular/src/app/components/app-sidebar-minimizer/app-sidebar-minimizer.component.html new file mode 100755 index 0000000..462b3db --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-minimizer/app-sidebar-minimizer.component.html @@ -0,0 +1 @@ + diff --git a/web/angular/src/app/components/app-sidebar-minimizer/app-sidebar-minimizer.component.ts b/web/angular/src/app/components/app-sidebar-minimizer/app-sidebar-minimizer.component.ts new file mode 100755 index 0000000..5378fbf --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-minimizer/app-sidebar-minimizer.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-sidebar-minimizer', + templateUrl: './app-sidebar-minimizer.component.html' +}) +export class AppSidebarMinimizerComponent { } diff --git a/web/angular/src/app/components/app-sidebar-minimizer/index.ts b/web/angular/src/app/components/app-sidebar-minimizer/index.ts new file mode 100755 index 0000000..5b646bd --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-minimizer/index.ts @@ -0,0 +1 @@ +export * from './app-sidebar-minimizer.component'; diff --git a/web/angular/src/app/components/app-sidebar-nav/app-sidebar-nav.component.ts b/web/angular/src/app/components/app-sidebar-nav/app-sidebar-nav.component.ts new file mode 100755 index 0000000..1e7baa0 --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-nav/app-sidebar-nav.component.ts @@ -0,0 +1,189 @@ +import { Component, ElementRef, Input, OnInit, Renderer2 } from '@angular/core'; + +// Import navigation elements +import { navigation } from './../../_nav'; + +@Component({ + selector: 'app-sidebar-nav', + template: ` + ` +}) +export class AppSidebarNavComponent { + + public navigation = navigation; + + public isDivider(item) { + return item.divider ? true : false + } + + public isTitle(item) { + return item.title ? true : false + } + + constructor() { } +} + +import { Router } from '@angular/router'; + +@Component({ + selector: 'app-sidebar-nav-item', + template: ` +
  • + +
  • + +
  • + +
  • +
    + ` +}) +export class AppSidebarNavItemComponent { + @Input() item: any; + + public hasClass() { + return this.item.class ? true : false + } + + public isDropdown() { + return this.item.children ? true : false + } + + public thisUrl() { + return this.item.url + } + + public isActive() { + return this.router.isActive(this.thisUrl(), false) + } + + constructor( private router: Router ) { } + +} + +@Component({ + selector: 'app-sidebar-nav-link', + template: ` + + + {{ link.name }} + {{ link.badge.text }} + + + + + {{ link.name }} + {{ link.badge.text }} + + + ` +}) +export class AppSidebarNavLinkComponent { + @Input() link: any; + + public hasVariant() { + return this.link.variant ? true : false + } + + public isBadge() { + return this.link.badge ? true : false + } + + public isExternalLink() { + return this.link.url.substring(0, 4) === 'http' ? true : false + } + + public isIcon() { + return this.link.icon ? true : false + } + + constructor() { } +} + +@Component({ + selector: 'app-sidebar-nav-dropdown', + template: ` + + + {{ link.name }} + {{ link.badge.text }} + + + ` +}) +export class AppSidebarNavDropdownComponent { + @Input() link: any; + + public isBadge() { + return this.link.badge ? true : false + } + + public isIcon() { + return this.link.icon ? true : false + } + + constructor() { } +} + +@Component({ + selector: 'app-sidebar-nav-title', + template: '' +}) +export class AppSidebarNavTitleComponent implements OnInit { + @Input() title: any; + + constructor(private el: ElementRef, private renderer: Renderer2) { } + + ngOnInit() { + const nativeElement: HTMLElement = this.el.nativeElement; + const li = this.renderer.createElement('li'); + const name = this.renderer.createText(this.title.name); + + this.renderer.addClass(li, 'nav-title'); + + if ( this.title.class ) { + const classes = this.title.class; + this.renderer.addClass(li, classes); + } + + if ( this.title.wrapper ) { + const wrapper = this.renderer.createElement(this.title.wrapper.element); + + this.renderer.appendChild(wrapper, name); + this.renderer.appendChild(li, wrapper); + } else { + this.renderer.appendChild(li, name); + } + this.renderer.appendChild(nativeElement, li) + } +} + +export const APP_SIDEBAR_NAV = [ + AppSidebarNavComponent, + AppSidebarNavDropdownComponent, + AppSidebarNavItemComponent, + AppSidebarNavLinkComponent, + AppSidebarNavTitleComponent +]; diff --git a/web/angular/src/app/components/app-sidebar-nav/index.ts b/web/angular/src/app/components/app-sidebar-nav/index.ts new file mode 100755 index 0000000..958932a --- /dev/null +++ b/web/angular/src/app/components/app-sidebar-nav/index.ts @@ -0,0 +1 @@ +export * from './app-sidebar-nav.component'; diff --git a/web/angular/src/app/components/app-sidebar/app-sidebar.component.html b/web/angular/src/app/components/app-sidebar/app-sidebar.component.html new file mode 100755 index 0000000..ac0dda4 --- /dev/null +++ b/web/angular/src/app/components/app-sidebar/app-sidebar.component.html @@ -0,0 +1,7 @@ + diff --git a/web/angular/src/app/components/app-sidebar/app-sidebar.component.ts b/web/angular/src/app/components/app-sidebar/app-sidebar.component.ts new file mode 100755 index 0000000..7f5065c --- /dev/null +++ b/web/angular/src/app/components/app-sidebar/app-sidebar.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-sidebar', + templateUrl: './app-sidebar.component.html' +}) +export class AppSidebarComponent { } diff --git a/web/angular/src/app/components/app-sidebar/index.ts b/web/angular/src/app/components/app-sidebar/index.ts new file mode 100755 index 0000000..173dc43 --- /dev/null +++ b/web/angular/src/app/components/app-sidebar/index.ts @@ -0,0 +1 @@ +export * from './app-sidebar.component'; diff --git a/web/angular/src/app/components/index.ts b/web/angular/src/app/components/index.ts new file mode 100755 index 0000000..f63d6b1 --- /dev/null +++ b/web/angular/src/app/components/index.ts @@ -0,0 +1,8 @@ +export * from './app-footer'; +export * from './app-header'; +export * from './app-sidebar'; +export * from './app-sidebar-footer'; +export * from './app-sidebar-form'; +export * from './app-sidebar-header'; +export * from './app-sidebar-minimizer'; +export * from './app-sidebar-nav'; diff --git a/web/angular/src/app/console/console.component.html b/web/angular/src/app/console/console.component.html deleted file mode 100644 index e05e67a..0000000 --- a/web/angular/src/app/console/console.component.html +++ /dev/null @@ -1,31 +0,0 @@ -
    -
    -
    -
    -
    Console
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    -
      -
    • {{message}}
    • -
    -
    -
    -
    \ No newline at end of file diff --git a/web/angular/src/app/console/console.component.spec.ts b/web/angular/src/app/console/console.component.spec.ts deleted file mode 100644 index 32b3e28..0000000 --- a/web/angular/src/app/console/console.component.spec.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ConsoleComponent } from './console.component'; - -import { NgbTooltip, NgbCollapse, NgbTooltipConfig, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; -import { HttpClientModule } from '@angular/common/http'; - -import { AuthService } from '../auth.service'; -import { ConsoleService } from '../console.service'; -import { ApiClientService } from '../../api/index'; - -describe('ConsoleComponent', () => { - let component: ConsoleComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - imports: [ - HttpClientModule - ], - declarations: [ - ConsoleComponent, - NgbTooltip, - NgbCollapse - ], - providers: [ - AuthService, - ConsoleService, - ApiClientService, - NgbTooltipConfig - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ConsoleComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/web/angular/src/app/console/console.component.ts b/web/angular/src/app/console/console.component.ts deleted file mode 100644 index 33f9fd2..0000000 --- a/web/angular/src/app/console/console.component.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Component, OnInit, ViewEncapsulation, Optional, Inject } from '@angular/core'; -import { ConsoleService } from '../console.service'; -import { Observable } from 'rxjs/Observable'; -import { AuthService, AuthState } from '../auth.service'; -import { OnDestroy } from '@angular/core/src/metadata/lifecycle_hooks'; -import { Subscription } from 'rxjs/Subscription'; -import { User } from '../../api/models/user.model'; -import { LogMessage } from '../../api/models/logmessage.model'; - -@Component({ - selector: 'app-console', - templateUrl: './console.component.html', - styleUrls: ['./console.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class ConsoleComponent implements OnInit, OnDestroy { - - public isCollapsed:boolean = true; - private authSubscription: Subscription = null; - private logStreamWebsocket: WebSocket = null; - private socketPrefix: string = "ws://localhost/api"; - - constructor(private consoleService: ConsoleService, private authService: AuthService, @Optional() @Inject('socket') socket: string ) { - if (socket) { - this.socketPrefix = socket; - } - } - - ngOnInit() { - this.consoleService.log("Console component initialized."); - this.authSubscription = this.authService.user.subscribe((user:User) => { - if (user != null && user.roles.includes("admin")) { - this.connectLogStream(); - } else { - this.disconnectLogStream(); - } - }) - } - - ngOnDestroy() { - this.authSubscription.unsubscribe(); - this.disconnectLogStream(); - } - - private connectLogStream(): void { - this.consoleService.log("Connecting to server."); - this.logStreamWebsocket = new WebSocket(this.socketPrefix + "/log/stream"); - this.logStreamWebsocket.addEventListener<"open">("open", (event) => { - this.logStreamWebsocket.send(this.authService.getHeader()); - }); - this.logStreamWebsocket.addEventListener<"message">("message", (message) => { - let logMessage: LogMessage = JSON.parse(message.data); - var text = "[" + logMessage.id + "@" + logMessage.time + " (TRD-" + logMessage.thread + ") " + logMessage.className + "." + logMessage.methodName + "] " + logMessage.message; - if (logMessage.trace != null) { - text += "\n" + logMessage.trace; - } - this.consoleService.log(text); - }); - } - - private disconnectLogStream(): void { - if (this.logStreamWebsocket != null) { - this.consoleService.log("Disconnecting from server."); - this.logStreamWebsocket.close(); - this.logStreamWebsocket = null; - } - } - - getMessages(): Observable { - return this.consoleService.messages; - } - - hasMessages(): boolean { - return this.consoleService.size() > 0; - } - - clearMessages(): void { - this.consoleService.clear(); - } - -} diff --git a/web/angular/src/app/containers/full-layout/full-layout.component.html b/web/angular/src/app/containers/full-layout/full-layout.component.html new file mode 100755 index 0000000..9107317 --- /dev/null +++ b/web/angular/src/app/containers/full-layout/full-layout.component.html @@ -0,0 +1,12 @@ + +
    + + +
    +
    + +
    +
    + +
    + diff --git a/web/angular/src/app/containers/full-layout/full-layout.component.ts b/web/angular/src/app/containers/full-layout/full-layout.component.ts new file mode 100755 index 0000000..753518c --- /dev/null +++ b/web/angular/src/app/containers/full-layout/full-layout.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-dashboard', + templateUrl: './full-layout.component.html' +}) +export class FullLayoutComponent { } diff --git a/web/angular/src/app/containers/full-layout/index.ts b/web/angular/src/app/containers/full-layout/index.ts new file mode 100755 index 0000000..315223d --- /dev/null +++ b/web/angular/src/app/containers/full-layout/index.ts @@ -0,0 +1 @@ +export * from './full-layout.component'; diff --git a/web/angular/src/app/containers/index.ts b/web/angular/src/app/containers/index.ts new file mode 100755 index 0000000..b917dd1 --- /dev/null +++ b/web/angular/src/app/containers/index.ts @@ -0,0 +1,2 @@ +export * from './full-layout'; +export * from './simple-layout'; diff --git a/web/angular/src/app/containers/simple-layout/index.ts b/web/angular/src/app/containers/simple-layout/index.ts new file mode 100755 index 0000000..6510703 --- /dev/null +++ b/web/angular/src/app/containers/simple-layout/index.ts @@ -0,0 +1 @@ +export * from './simple-layout.component'; diff --git a/web/angular/src/app/app.component.scss b/web/angular/src/app/containers/simple-layout/simple-layout.component.html old mode 100644 new mode 100755 similarity index 100% rename from web/angular/src/app/app.component.scss rename to web/angular/src/app/containers/simple-layout/simple-layout.component.html diff --git a/web/angular/src/app/containers/simple-layout/simple-layout.component.ts b/web/angular/src/app/containers/simple-layout/simple-layout.component.ts new file mode 100755 index 0000000..90cca2e --- /dev/null +++ b/web/angular/src/app/containers/simple-layout/simple-layout.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-dashboard', + template: '', +}) +export class SimpleLayoutComponent { } diff --git a/web/angular/src/app/directives/aside/aside.directive.ts b/web/angular/src/app/directives/aside/aside.directive.ts new file mode 100755 index 0000000..b3cc471 --- /dev/null +++ b/web/angular/src/app/directives/aside/aside.directive.ts @@ -0,0 +1,17 @@ +import { Directive, HostListener } from '@angular/core'; + +/** +* Allows the aside to be toggled via click. +*/ +@Directive({ + selector: '[appAsideMenuToggler]', +}) +export class AsideToggleDirective { + constructor() { } + + @HostListener('click', ['$event']) + toggleOpen($event: any) { + $event.preventDefault(); + document.querySelector('body').classList.toggle('aside-menu-hidden'); + } +} diff --git a/web/angular/src/app/directives/aside/index.ts b/web/angular/src/app/directives/aside/index.ts new file mode 100755 index 0000000..3b84b70 --- /dev/null +++ b/web/angular/src/app/directives/aside/index.ts @@ -0,0 +1 @@ +export * from './aside.directive'; diff --git a/web/angular/src/app/directives/index.ts b/web/angular/src/app/directives/index.ts new file mode 100755 index 0000000..cd971e8 --- /dev/null +++ b/web/angular/src/app/directives/index.ts @@ -0,0 +1,4 @@ +export * from './aside'; +export * from './nav-dropdown'; +export * from './replace'; +export * from './sidebar'; diff --git a/web/angular/src/app/directives/nav-dropdown/index.ts b/web/angular/src/app/directives/nav-dropdown/index.ts new file mode 100755 index 0000000..3eb0787 --- /dev/null +++ b/web/angular/src/app/directives/nav-dropdown/index.ts @@ -0,0 +1 @@ +export * from './nav-dropdown.directive'; diff --git a/web/angular/src/app/directives/nav-dropdown/nav-dropdown.directive.ts b/web/angular/src/app/directives/nav-dropdown/nav-dropdown.directive.ts new file mode 100755 index 0000000..98c827d --- /dev/null +++ b/web/angular/src/app/directives/nav-dropdown/nav-dropdown.directive.ts @@ -0,0 +1,31 @@ +import { Directive, HostListener, ElementRef } from '@angular/core'; + +@Directive({ + selector: '[appNavDropdown]' +}) +export class NavDropdownDirective { + + constructor(private el: ElementRef) { } + + toggle() { + this.el.nativeElement.classList.toggle('open'); + } +} + +/** +* Allows the dropdown to be toggled via click. +*/ +@Directive({ + selector: '[appNavDropdownToggle]' +}) +export class NavDropdownToggleDirective { + constructor(private dropdown: NavDropdownDirective) {} + + @HostListener('click', ['$event']) + toggleOpen($event: any) { + $event.preventDefault(); + this.dropdown.toggle(); + } +} + +export const NAV_DROPDOWN_DIRECTIVES = [NavDropdownDirective, NavDropdownToggleDirective]; diff --git a/web/angular/src/app/directives/replace/index.ts b/web/angular/src/app/directives/replace/index.ts new file mode 100755 index 0000000..8720adf --- /dev/null +++ b/web/angular/src/app/directives/replace/index.ts @@ -0,0 +1 @@ +export * from './replace.directive'; diff --git a/web/angular/src/app/directives/replace/replace.directive.ts b/web/angular/src/app/directives/replace/replace.directive.ts new file mode 100755 index 0000000..d5ca81e --- /dev/null +++ b/web/angular/src/app/directives/replace/replace.directive.ts @@ -0,0 +1,22 @@ +import { Directive, ElementRef, OnInit } from '@angular/core'; + +@Directive({ + // tslint:disable-next-line:max-line-length + selector: '[appHostReplace], app-aside, app-breadcrumbs, app-footer, app-header, app-sidebar, app-sidebar-footer, app-sidebar-form, app-sidebar-header, app-sidebar-minimizer, app-sidebar-nav, app-sidebar-nav-dropdown, app-sidebar-nav-item, app-sidebar-nav-link, app-sidebar-nav-title' +}) +export class ReplaceDirective implements OnInit { + + constructor(private el: ElementRef) { } + + // wait for the component to render completely + ngOnInit() { + const nativeElement: HTMLElement = this.el.nativeElement; + const parentElement: HTMLElement = nativeElement.parentElement; + // move all children out of the element + while (nativeElement.firstChild) { + parentElement.insertBefore(nativeElement.firstChild, nativeElement); + } + // remove the empty element(the host) + parentElement.removeChild(nativeElement); + } +} diff --git a/web/angular/src/app/directives/sidebar/index.ts b/web/angular/src/app/directives/sidebar/index.ts new file mode 100755 index 0000000..aeb5775 --- /dev/null +++ b/web/angular/src/app/directives/sidebar/index.ts @@ -0,0 +1 @@ +export * from './sidebar.directive'; diff --git a/web/angular/src/app/directives/sidebar/sidebar.directive.ts b/web/angular/src/app/directives/sidebar/sidebar.directive.ts new file mode 100755 index 0000000..956465b --- /dev/null +++ b/web/angular/src/app/directives/sidebar/sidebar.directive.ts @@ -0,0 +1,106 @@ +import { Directive, HostListener } from '@angular/core'; + +/** +* Allows the sidebar to be toggled via click. +*/ +@Directive({ + selector: '[appSidebarToggler]' +}) +export class SidebarToggleDirective { + constructor() { } + + @HostListener('click', ['$event']) + toggleOpen($event: any) { + $event.preventDefault(); + document.querySelector('body').classList.toggle('sidebar-hidden'); + } +} + +@Directive({ + selector: '[appSidebarMinimizer]' +}) +export class SidebarMinimizeDirective { + constructor() { } + + @HostListener('click', ['$event']) + toggleOpen($event: any) { + $event.preventDefault(); + document.querySelector('body').classList.toggle('sidebar-minimized'); + } +} + +@Directive({ + selector: '[appBrandMinimizer]' +}) +export class BrandMinimizeDirective { + constructor() { } + + @HostListener('click', ['$event']) + toggleOpen($event: any) { + $event.preventDefault(); + document.querySelector('body').classList.toggle('brand-minimized'); + } +} + +@Directive({ + selector: '[appMobileSidebarToggler]' +}) +export class MobileSidebarToggleDirective { + constructor() { } + + // Check if element has class + private hasClass(target: any, elementClassName: string) { + return new RegExp('(\\s|^)' + elementClassName + '(\\s|$)').test(target.className); + } + + @HostListener('click', ['$event']) + toggleOpen($event: any) { + $event.preventDefault(); + document.querySelector('body').classList.toggle('sidebar-mobile-show'); + } +} + +/** +* Allows the off-canvas sidebar to be closed via click. +*/ +@Directive({ + selector: '[appSidebarClose]' +}) +export class SidebarOffCanvasCloseDirective { + constructor() { } + + // Check if element has class + private hasClass(target: any, elementClassName: string) { + return new RegExp('(\\s|^)' + elementClassName + '(\\s|$)').test(target.className); + } + + // Toggle element class + private toggleClass(elem: any, elementClassName: string) { + let newClass = ' ' + elem.className.replace( /[\t\r\n]/g, ' ' ) + ' '; + if (this.hasClass(elem, elementClassName)) { + while (newClass.indexOf(' ' + elementClassName + ' ') >= 0 ) { + newClass = newClass.replace( ' ' + elementClassName + ' ' , ' ' ); + } + elem.className = newClass.replace(/^\s+|\s+$/g, ''); + } else { + elem.className += ' ' + elementClassName; + } + } + + @HostListener('click', ['$event']) + toggleOpen($event: any) { + $event.preventDefault(); + + if (this.hasClass(document.querySelector('body'), 'sidebar-off-canvas')) { + this.toggleClass(document.querySelector('body'), 'sidebar-opened'); + } + } +} + +export const SIDEBAR_TOGGLE_DIRECTIVES = [ + SidebarToggleDirective, + SidebarMinimizeDirective, + BrandMinimizeDirective, + SidebarOffCanvasCloseDirective, + MobileSidebarToggleDirective +]; diff --git a/web/angular/src/app/location.service.spec.ts b/web/angular/src/app/location.service.spec.ts old mode 100644 new mode 100755 diff --git a/web/angular/src/app/location.service.ts b/web/angular/src/app/location.service.ts old mode 100644 new mode 100755 diff --git a/web/angular/src/app/login/login.component.html b/web/angular/src/app/login/login.component.html deleted file mode 100644 index e4a2d66..0000000 --- a/web/angular/src/app/login/login.component.html +++ /dev/null @@ -1,30 +0,0 @@ -
    - -
    diff --git a/web/angular/src/app/login/login.component.scss b/web/angular/src/app/login/login.component.scss deleted file mode 100644 index 67ad130..0000000 --- a/web/angular/src/app/login/login.component.scss +++ /dev/null @@ -1,7 +0,0 @@ -.ng-valid[required], .ng-valid.required { - border-left: 5px solid #42A948; /* green */ -} - -.ng-invalid:not(form) { - border-left: 5px solid #a94442; /* red */ -} diff --git a/web/angular/src/app/login/login.component.spec.ts b/web/angular/src/app/login/login.component.spec.ts deleted file mode 100644 index 46a9c1a..0000000 --- a/web/angular/src/app/login/login.component.spec.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { LoginComponent } from './login.component'; - -import { AuthService } from '../auth.service'; -import { ConsoleService } from '../console.service'; -import { ApiClientService } from '../../api/index'; - -import { HttpClientModule } from '@angular/common/http'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; - -describe('LoginComponent', () => { - let component: LoginComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - imports: [ - FormsModule, - ReactiveFormsModule, - HttpClientModule - ], - declarations: [ - LoginComponent - ], - providers: [ - AuthService, - ConsoleService, - ApiClientService - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(LoginComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/web/angular/src/app/map-info/map-info.component.html b/web/angular/src/app/map-info/map-info.component.html deleted file mode 100644 index 6c9b9ec..0000000 --- a/web/angular/src/app/map-info/map-info.component.html +++ /dev/null @@ -1,29 +0,0 @@ - diff --git a/web/angular/src/app/map-info/map-info.component.scss b/web/angular/src/app/map-info/map-info.component.scss deleted file mode 100644 index d21db56..0000000 --- a/web/angular/src/app/map-info/map-info.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -#sidebar { - min-width: 250px; - max-width: 250px; - margin: 10px; -} diff --git a/web/angular/src/app/map-info/map-info.component.spec.ts b/web/angular/src/app/map-info/map-info.component.spec.ts deleted file mode 100644 index 062c24c..0000000 --- a/web/angular/src/app/map-info/map-info.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { MapInfoComponent } from './map-info.component'; - -describe('MapInfoComponent', () => { - let component: MapInfoComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ MapInfoComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MapInfoComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/web/angular/src/app/map-info/map-info.component.ts b/web/angular/src/app/map-info/map-info.component.ts deleted file mode 100644 index 88c5e14..0000000 --- a/web/angular/src/app/map-info/map-info.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Component, OnInit, ViewEncapsulation } from '@angular/core'; - -@Component({ - selector: 'app-map-info', - templateUrl: './map-info.component.html', - styleUrls: ['./map-info.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class MapInfoComponent implements OnInit { - - constructor() { } - - ngOnInit() { - } - -} diff --git a/web/angular/src/app/notAuth.guard.ts b/web/angular/src/app/notAuth.guard.ts new file mode 100644 index 0000000..8026b9f --- /dev/null +++ b/web/angular/src/app/notAuth.guard.ts @@ -0,0 +1,22 @@ +import { Injectable } from '@angular/core'; +import {CanActivate, Router, CanActivateChild} from '@angular/router'; +import {AuthService} from "./auth.service"; + +@Injectable() +export class NotAuthGuard implements CanActivateChild { + constructor( + private authService: AuthService, + private router: Router + ) { } + + // Function to determine whether user is authorized to view route + canActivateChild() { + // Check if user is logged in + if (this.authService.getHeader()) { + this.router.navigate(['/maptology']); // Return error, route to home + return false; // Return false: user not allowed to view route + } else { + return true; // Return true: user is allowed to view route + } + } +} diff --git a/web/angular/src/app/notices/notices.component.html b/web/angular/src/app/notices/notices.component.html deleted file mode 100644 index 92d8eb2..0000000 --- a/web/angular/src/app/notices/notices.component.html +++ /dev/null @@ -1,37 +0,0 @@ -
    -
    -

    - - Loading... -

    -
    -
    -
    -
    -
    -

    {{ getNoticeTitle(notice) }}

    -
    -
    {{ getNoticeBody(notice) }}
    -
    Updated on: {{ getNoticeTime(notice.modificationTime) }}
    -
    Created on: {{ getNoticeTime(notice.creationTime) }}
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    \ No newline at end of file diff --git a/web/angular/src/app/notices/notices.component.spec.ts b/web/angular/src/app/notices/notices.component.spec.ts deleted file mode 100644 index cc18a12..0000000 --- a/web/angular/src/app/notices/notices.component.spec.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { NoticesComponent } from './notices.component'; - -import { AuthService } from '../auth.service'; -import { ConsoleService } from '../console.service'; -import { ApiClientService } from '../../api/index'; - -import { HttpClientModule } from '@angular/common/http'; - -describe('NoticesComponent', () => { - let component: NoticesComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ - NoticesComponent - ], - imports: [ - HttpClientModule - ], - providers: [ - AuthService, - ConsoleService, - ApiClientService - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(NoticesComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/web/angular/src/app/notices/notices.component.ts b/web/angular/src/app/notices/notices.component.ts deleted file mode 100644 index 0bb1c8a..0000000 --- a/web/angular/src/app/notices/notices.component.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { Component, OnInit, ViewEncapsulation } from '@angular/core'; -import { ConsoleService } from '../console.service'; -import { ApiClientService } from '../../api/index'; -import { NoticePage } from '../../api/models/noticepage.model'; -import { Notice } from '../../api/models/notice.model'; -import { Observable } from 'rxjs/Observable'; -import { Subject } from 'rxjs/Subject'; -import { HttpErrorResponse } from '@angular/common/http'; - -@Component({ - selector: 'app-notices', - templateUrl: './notices.component.html', - styleUrls: ['./notices.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class NoticesComponent implements OnInit { - - public loading: boolean = false; - public notices: Subject = new Subject(); - public error: Subject = new Subject(); - - private page: NoticePage; - private offset: number = 0; - private size: number = 6; - - constructor(private consoleService: ConsoleService, private apiClientService: ApiClientService) { } - - ngOnInit() { - this.reloadPage(); - } - - getNoticeTitle(notice: Notice): string { - var message = notice.messages.find(msg => msg.language === "en"); - if (message == null) return ""; - else return message.title; - } - - getNoticeBody(notice: Notice): string { - var message = notice.messages.find(msg => msg.language === "en"); - if (message == null) return ""; - else return message.body; - } - - getNoticeTime(time: number): string { - var d = new Date(time); - return d.toLocaleString(); - } - - - hasReload(): boolean { - return (!this.loading); - } - - hasNext(): boolean { - if (this.page == null) return false; - else return this.offset + this.size < this.page.total; - } - - hasPrevious(): boolean { - if (this.page == null) return false; - else return this.offset > 0; - } - - nextPage(): void { - this.consoleService.log("Next page requested.") - this.offset = this.offset + this.size; - this.loadPage(this.offset, this.size); - } - - previousPage(): void { - this.consoleService.log("Previous page requested.") - this.offset = Math.max(0, this.offset - this.size); - this.loadPage(this.offset, this.size); - } - - reloadPage(): void { - this.consoleService.log("Reload page requested.") - this.loadPage(this.offset, this.size); - } - - loadPage(offset: number, size: number): void { - this.consoleService.log("Notice page with offset " + offset + " and size " + size + " requested."); - this.loading = true; - this.page = null; - this.error.next(null); - this.notices.next([]); - this.apiClientService.getActiveNotices(offset, size).subscribe(data => { - this.consoleService.log("Notice page received."); - this.loading = false; - this.page = data.body; - this.notices.next(data.body.elements); - }, error => { - this.loading = false; - if (error instanceof HttpErrorResponse) { - let message = error.status + ": " + error.statusText; - this.consoleService.log("HttpError: " + message) - this.error.next(message); - } else { - this.consoleService.log("Unknown error."); - console.dir(error); // print it to the console - } - this.notices.next([]); - }); - - } - -} diff --git a/web/angular/src/app/parentAuth.guard.ts b/web/angular/src/app/parentAuth.guard.ts new file mode 100644 index 0000000..f8b7682 --- /dev/null +++ b/web/angular/src/app/parentAuth.guard.ts @@ -0,0 +1,24 @@ +import { Injectable } from '@angular/core'; +import {Router, CanActivate, CanActivateChild} from '@angular/router'; +import {AuthService, AuthState} from "./auth.service"; + +@Injectable() +export class ParentAuthGuard implements CanActivate { + + constructor(private router: Router, private authService:AuthService) { } + + canActivate() { + if (this.authService.getHeader()) { + // logged in so return true + console.log("asdasdasd----------"+1111); + + return true; + } + + console.log("asdasdasd22----------"+111); + + // not logged in so redirect to login page + this.router.navigate(['/pages/login']); + return false; + } +} diff --git a/web/angular/src/app/register/register.component.html b/web/angular/src/app/register/register.component.html deleted file mode 100644 index 4232e5d..0000000 --- a/web/angular/src/app/register/register.component.html +++ /dev/null @@ -1,56 +0,0 @@ -
    -
    -
    -

    Register Page

    -
    -

    Please Login

    -
    - -
    - Please specify your name. -
    -
    - Minimum 5, maximu 32 characters (only letters and numbers). -
    -
    -
    - -
    - Please specify your email. -
    -
    -
    - -
    - Please specify your login. -
    -
    - Minimum 5, maximu 32 characters (only letters and numbers). -
    -
    -
    - -
    - Please provide your password. -
    -
    -
    - - -
    -
    -
    -

    - - Loading... -

    -
    -
    -
    -
    -
    -
    - - -

    Erfolgreich registriert!

    -
    diff --git a/web/angular/src/app/register/register.component.scss b/web/angular/src/app/register/register.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/web/angular/src/app/register/register.component.spec.ts b/web/angular/src/app/register/register.component.spec.ts deleted file mode 100644 index 6c19551..0000000 --- a/web/angular/src/app/register/register.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { RegisterComponent } from './register.component'; - -describe('RegisterComponent', () => { - let component: RegisterComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ RegisterComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(RegisterComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/web/angular/src/app/sidebar/sidebar.component.html b/web/angular/src/app/sidebar/sidebar.component.html deleted file mode 100644 index 7454e8d..0000000 --- a/web/angular/src/app/sidebar/sidebar.component.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - -
    - - - - - -
    - -
    - -
    - - - -
    - - -
    - - - - - -
    -
    -
    diff --git a/web/angular/src/app/sidebar/sidebar.component.scss b/web/angular/src/app/sidebar/sidebar.component.scss deleted file mode 100644 index 61826c8..0000000 --- a/web/angular/src/app/sidebar/sidebar.component.scss +++ /dev/null @@ -1,70 +0,0 @@ -@charset "utf-8"; - - -// change some colors to UDE schema at -// https://www.uni-due.de/offen-im-denken/farben.php -$primary: #004c93; // UDE PrimÀr (buttons will be darker now) -$secondary: #efe4bf; // UDE SekundÀr (probably not a good idea) -$body-color: #1a171b; // UDE Schwarz - - -.loading { - padding: 1em; -} - -demo { - height: 100%; - width: 100%; -} -.demo-header{ - background: #004c93; -} -.demo-header__toggle { - background: transparent; - border: 0.15rem solid white; - border-left: 0; - border-right: 0; - cursor: pointer; - font-size: 0; - height: 1.5rem; - margin-right: 1rem; - position: relative; - width: 2rem; - - &::after { - background: white; - content: ''; - height: 0.15rem; - left: 0; - margin-top: -0.075rem; - position: absolute; - top: 50%; - width: 100%; - } -} - -.demo-sidebar { - background-color: #536c79; - padding: 2em 1em; - - &.ng-sidebar--opened.ng-sidebar--over { - box-shadow: 0 0 2.5em rgba(85, 85, 85, 0.5); - } -} - -.demo-contents { - padding: 0 2em; -} - - -.sidebar-item{ - color:white; -} - -.navbar-brand{ - color: white; -} - -.nav-link{ - color: white; -} diff --git a/web/angular/src/app/sidebar/sidebar.component.spec.ts b/web/angular/src/app/sidebar/sidebar.component.spec.ts deleted file mode 100644 index f29709f..0000000 --- a/web/angular/src/app/sidebar/sidebar.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { SidebarComponent } from './sidebar.component'; - -describe('SidebarComponent', () => { - let component: SidebarComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ SidebarComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SidebarComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/web/angular/src/app/sidebar/sidebar.component.ts b/web/angular/src/app/sidebar/sidebar.component.ts deleted file mode 100644 index c5c52c3..0000000 --- a/web/angular/src/app/sidebar/sidebar.component.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { Component, OnInit, ViewEncapsulation } from '@angular/core'; -import {BehaviorSubject} from "rxjs"; -import {User} from "../../api/models/user.model"; -import {AuthState, AuthService} from "../auth.service"; -import {ConsoleService} from "../console.service"; - -@Component({ - selector: 'app-sidebar', - templateUrl: './sidebar.component.html', - styleUrls: ['./sidebar.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class SidebarComponent implements OnInit { - - AuthState = AuthState; - private _opened: boolean = false; - - constructor(private consoleService: ConsoleService, private authService: AuthService) { } - - ngOnInit() { - } - - private _toggleOpened(): void { - this._opened = !this._opened; - } - - private _onOpenStart(): void { - console.info('Sidebar opening'); - } - - private _onOpened(): void { - console.info('Sidebar opened'); - } - - private _onCloseStart(): void { - console.info('Sidebar closing'); - } - - private _onClosed(): void { - console.info('Sidebar closed'); - } - - getUser(): BehaviorSubject { - return this.authService.user; - } - - getAuthState(): BehaviorSubject { - return this.authService.state; - } - - getError(): BehaviorSubject { - return this.authService.error; - } - - requestLogout(): void { - this.authService.requestLogout(); - } -} diff --git a/web/angular/src/app/views/components/homepage/homepage.component.html b/web/angular/src/app/views/components/homepage/homepage.component.html new file mode 100755 index 0000000..e4bfccf --- /dev/null +++ b/web/angular/src/app/views/components/homepage/homepage.component.html @@ -0,0 +1,3 @@ +
    + 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 new file mode 100755 index 0000000..6b4204b --- /dev/null +++ b/web/angular/src/app/views/components/homepage/homepage.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + templateUrl: 'homepage.component.html' +}) +export class HomepageComponent { + + constructor( ) { } + +} diff --git a/web/angular/src/app/map/map.component.html b/web/angular/src/app/views/components/map/map.component.html old mode 100644 new mode 100755 similarity index 86% rename from web/angular/src/app/map/map.component.html rename to web/angular/src/app/views/components/map/map.component.html index 74065f3..c935fa4 --- a/web/angular/src/app/map/map.component.html +++ b/web/angular/src/app/views/components/map/map.component.html @@ -5,6 +5,4 @@ - - diff --git a/web/angular/src/app/map/map.component.scss b/web/angular/src/app/views/components/map/map.component.scss old mode 100644 new mode 100755 similarity index 100% rename from web/angular/src/app/map/map.component.scss rename to web/angular/src/app/views/components/map/map.component.scss diff --git a/web/angular/src/app/map/map.component.spec.ts b/web/angular/src/app/views/components/map/map.component.spec.ts old mode 100644 new mode 100755 similarity index 100% rename from web/angular/src/app/map/map.component.spec.ts rename to web/angular/src/app/views/components/map/map.component.spec.ts diff --git a/web/angular/src/app/map/map.component.ts b/web/angular/src/app/views/components/map/map.component.ts old mode 100644 new mode 100755 similarity index 92% rename from web/angular/src/app/map/map.component.ts rename to web/angular/src/app/views/components/map/map.component.ts index 4c2b764..b1d397e --- a/web/angular/src/app/map/map.component.ts +++ b/web/angular/src/app/views/components/map/map.component.ts @@ -2,17 +2,16 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; -import { AuthService, AuthState } from '../auth.service'; -import { LocationService } from '../location.service'; import { Map, TileLayer, LatLng, Marker, Circle, Icon, ZoomPanOptions } from 'leaflet'; import { setInterval } from 'timers'; +import {LocationService} from "../../../location.service"; @Component({ selector: 'app-map', templateUrl: './map.component.html', - styleUrls: ['./map.component.scss', '../../../node_modules/leaflet/dist/leaflet.css'], + styleUrls: ['./map.component.scss', '../../../../../node_modules/leaflet/dist/leaflet.css'], encapsulation: ViewEncapsulation.None }) export class MapComponent implements OnInit { diff --git a/web/angular/src/app/views/components/profile/profile.component.html b/web/angular/src/app/views/components/profile/profile.component.html new file mode 100755 index 0000000..71091c2 --- /dev/null +++ b/web/angular/src/app/views/components/profile/profile.component.html @@ -0,0 +1,4 @@ +
    + Profile Component! +
    + \ No newline at end of file diff --git a/web/angular/src/app/views/components/profile/profile.component.ts b/web/angular/src/app/views/components/profile/profile.component.ts new file mode 100755 index 0000000..182c928 --- /dev/null +++ b/web/angular/src/app/views/components/profile/profile.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + templateUrl: 'profile.component.html' +}) +export class ProfileComponent { + + constructor( ) { } + +} diff --git a/web/angular/src/app/views/components/statistic/statistic.component.html b/web/angular/src/app/views/components/statistic/statistic.component.html new file mode 100755 index 0000000..918bac4 --- /dev/null +++ b/web/angular/src/app/views/components/statistic/statistic.component.html @@ -0,0 +1,4 @@ +
    + Statistic Component! +
    + \ No newline at end of file diff --git a/web/angular/src/app/views/components/statistic/statistic.component.ts b/web/angular/src/app/views/components/statistic/statistic.component.ts new file mode 100755 index 0000000..2caac29 --- /dev/null +++ b/web/angular/src/app/views/components/statistic/statistic.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + templateUrl: 'statistic.component.html' +}) +export class StatisticComponent { + + constructor( ) { } + +} diff --git a/web/angular/src/app/verify-email/verify-email.component.html b/web/angular/src/app/views/components/verify-email/verify-email.component.html old mode 100644 new mode 100755 similarity index 100% rename from web/angular/src/app/verify-email/verify-email.component.html rename to web/angular/src/app/views/components/verify-email/verify-email.component.html diff --git a/web/angular/src/app/verify-email/verify-email.component.scss b/web/angular/src/app/views/components/verify-email/verify-email.component.scss old mode 100644 new mode 100755 similarity index 100% rename from web/angular/src/app/verify-email/verify-email.component.scss rename to web/angular/src/app/views/components/verify-email/verify-email.component.scss diff --git a/web/angular/src/app/verify-email/verify-email.component.spec.ts b/web/angular/src/app/views/components/verify-email/verify-email.component.spec.ts old mode 100644 new mode 100755 similarity index 100% rename from web/angular/src/app/verify-email/verify-email.component.spec.ts rename to web/angular/src/app/views/components/verify-email/verify-email.component.spec.ts diff --git a/web/angular/src/app/verify-email/verify-email.component.ts b/web/angular/src/app/views/components/verify-email/verify-email.component.ts old mode 100644 new mode 100755 similarity index 93% rename from web/angular/src/app/verify-email/verify-email.component.ts rename to web/angular/src/app/views/components/verify-email/verify-email.component.ts index 7a9bf0f..3952c16 --- a/web/angular/src/app/verify-email/verify-email.component.ts +++ b/web/angular/src/app/views/components/verify-email/verify-email.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import {ActivatedRoute} from "@angular/router"; -import {ApiClientService} from "../../api/index"; -import {ConsoleService} from "../console.service"; +import {ConsoleService} from "../../../console.service"; +import {ApiClientService} from "../../../../api/index"; @Component({ selector: 'app-verify-email', diff --git a/web/angular/src/app/views/pages/login/login.component.html b/web/angular/src/app/views/pages/login/login.component.html new file mode 100755 index 0000000..e5f7bf9 --- /dev/null +++ b/web/angular/src/app/views/pages/login/login.component.html @@ -0,0 +1,41 @@ +
    +
    +
    +
    +
    +
    +
    +

    Login

    +

    Sign In to your account

    +
    + + +
    +
    + + +
    +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +

    Sign up

    +

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    + +
    +
    +
    +
    +
    +
    +
    +
    diff --git a/web/angular/src/app/login/login.component.ts b/web/angular/src/app/views/pages/login/login.component.ts old mode 100644 new mode 100755 similarity index 81% rename from web/angular/src/app/login/login.component.ts rename to web/angular/src/app/views/pages/login/login.component.ts index a086f23..afa1f04 --- a/web/angular/src/app/login/login.component.ts +++ b/web/angular/src/app/views/pages/login/login.component.ts @@ -1,17 +1,13 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; -import { ConsoleService } from '../console.service'; -import { AuthService, AuthState } from '../auth.service'; +import { ConsoleService } from '../../../console.service'; +import { AuthService, AuthState } from '../../../auth.service'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; -import { User } from '../../api/models/user.model'; +import {User} from "../../../../api/models/user.model"; @Component({ - selector: 'app-login', - templateUrl: './login.component.html', - styleUrls: ['./login.component.scss'], - encapsulation: ViewEncapsulation.None + 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 @@ -31,6 +27,7 @@ export class LoginComponent implements OnInit { this.login = this.authService.getLogin(); } + getUser(): BehaviorSubject { return this.authService.user; } @@ -55,3 +52,4 @@ export class LoginComponent implements OnInit { } } + diff --git a/web/angular/src/app/views/pages/register/register.component.html b/web/angular/src/app/views/pages/register/register.component.html new file mode 100755 index 0000000..7ded71d --- /dev/null +++ b/web/angular/src/app/views/pages/register/register.component.html @@ -0,0 +1,45 @@ +
    +
    +
    +
    +
    +
    +

    Register

    +

    Create your account

    +
    + + +
    + +
    + @ + +
    + +
    + + +
    + +
    + + +
    + + +
    + +
    +
    +
    +
    +
    diff --git a/web/angular/src/app/register/register.component.ts b/web/angular/src/app/views/pages/register/register.component.ts old mode 100644 new mode 100755 similarity index 75% rename from web/angular/src/app/register/register.component.ts rename to web/angular/src/app/views/pages/register/register.component.ts index a1de663..f69d8ab --- a/web/angular/src/app/register/register.component.ts +++ b/web/angular/src/app/views/pages/register/register.component.ts @@ -1,16 +1,13 @@ -import { Component, OnInit, ViewEncapsulation } from '@angular/core'; -import {ConsoleService} from "../console.service"; -import {UserRegistration} from "../../api/models/userregistration.model"; -import { Subject } from 'rxjs/Subject'; -import {ApiClientService} from "../../api/index"; +import { Component } from '@angular/core'; +import {Subject} from "rxjs"; +import {ConsoleService} from "../../../console.service"; +import {ApiClientService} from "../../../../api/index"; +import {UserRegistration} from "../../../../api/models/userregistration.model"; @Component({ - selector: 'app-register', - templateUrl: './register.component.html', - styleUrls: ['./register.component.scss'], - encapsulation: ViewEncapsulation.None + templateUrl: 'register.component.html' }) -export class RegisterComponent implements OnInit { +export class RegisterComponent { public loading: boolean = false; public isRegistered: boolean = false; @@ -68,5 +65,4 @@ export class RegisterComponent implements OnInit { } }); } - } diff --git a/web/angular/src/assets/.gitkeep b/web/angular/src/assets/.gitkeep old mode 100644 new mode 100755 diff --git a/web/angular/src/app/console/console.component.scss b/web/angular/src/assets/.npmignore old mode 100644 new mode 100755 similarity index 100% rename from web/angular/src/app/console/console.component.scss rename to web/angular/src/assets/.npmignore diff --git a/web/angular/src/assets/img/avatars/1.jpg b/web/angular/src/assets/img/avatars/1.jpg new file mode 100755 index 0000000..0b08703 Binary files /dev/null and b/web/angular/src/assets/img/avatars/1.jpg differ diff --git a/web/angular/src/assets/img/avatars/2.jpg b/web/angular/src/assets/img/avatars/2.jpg new file mode 100755 index 0000000..e736709 Binary files /dev/null and b/web/angular/src/assets/img/avatars/2.jpg differ diff --git a/web/angular/src/assets/img/avatars/3.jpg b/web/angular/src/assets/img/avatars/3.jpg new file mode 100755 index 0000000..caf9a7e Binary files /dev/null and b/web/angular/src/assets/img/avatars/3.jpg differ diff --git a/web/angular/src/assets/img/avatars/4.jpg b/web/angular/src/assets/img/avatars/4.jpg new file mode 100755 index 0000000..97f6769 Binary files /dev/null and b/web/angular/src/assets/img/avatars/4.jpg differ diff --git a/web/angular/src/assets/img/avatars/5.jpg b/web/angular/src/assets/img/avatars/5.jpg new file mode 100755 index 0000000..82b025f Binary files /dev/null and b/web/angular/src/assets/img/avatars/5.jpg differ diff --git a/web/angular/src/assets/img/avatars/6.jpg b/web/angular/src/assets/img/avatars/6.jpg new file mode 100755 index 0000000..1d2b884 Binary files /dev/null and b/web/angular/src/assets/img/avatars/6.jpg differ diff --git a/web/angular/src/assets/img/avatars/7.jpg b/web/angular/src/assets/img/avatars/7.jpg new file mode 100755 index 0000000..2903cd2 Binary files /dev/null and b/web/angular/src/assets/img/avatars/7.jpg differ diff --git a/web/angular/src/assets/img/avatars/8.jpg b/web/angular/src/assets/img/avatars/8.jpg new file mode 100755 index 0000000..3a5eba9 Binary files /dev/null and b/web/angular/src/assets/img/avatars/8.jpg differ diff --git a/web/angular/src/assets/img/favicon.png b/web/angular/src/assets/img/favicon.png new file mode 100755 index 0000000..7f62aff Binary files /dev/null and b/web/angular/src/assets/img/favicon.png differ diff --git a/web/angular/src/assets/img/flags/ASEAN.png b/web/angular/src/assets/img/flags/ASEAN.png new file mode 100755 index 0000000..1fb1b91 Binary files /dev/null and b/web/angular/src/assets/img/flags/ASEAN.png differ diff --git a/web/angular/src/assets/img/flags/Afghanistan.png b/web/angular/src/assets/img/flags/Afghanistan.png new file mode 100755 index 0000000..2575b8a Binary files /dev/null and b/web/angular/src/assets/img/flags/Afghanistan.png differ diff --git a/web/angular/src/assets/img/flags/African Union.png b/web/angular/src/assets/img/flags/African Union.png new file mode 100755 index 0000000..85b268e Binary files /dev/null and b/web/angular/src/assets/img/flags/African Union.png differ diff --git a/web/angular/src/assets/img/flags/Albania.png b/web/angular/src/assets/img/flags/Albania.png new file mode 100755 index 0000000..2e16c3b Binary files /dev/null and b/web/angular/src/assets/img/flags/Albania.png differ diff --git a/web/angular/src/assets/img/flags/Algeria.png b/web/angular/src/assets/img/flags/Algeria.png new file mode 100755 index 0000000..69477f0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Algeria.png differ diff --git a/web/angular/src/assets/img/flags/American Samoa.png b/web/angular/src/assets/img/flags/American Samoa.png new file mode 100755 index 0000000..b0d4cdc Binary files /dev/null and b/web/angular/src/assets/img/flags/American Samoa.png differ diff --git a/web/angular/src/assets/img/flags/Andorra.png b/web/angular/src/assets/img/flags/Andorra.png new file mode 100755 index 0000000..e753cd6 Binary files /dev/null and b/web/angular/src/assets/img/flags/Andorra.png differ diff --git a/web/angular/src/assets/img/flags/Angola.png b/web/angular/src/assets/img/flags/Angola.png new file mode 100755 index 0000000..97ae963 Binary files /dev/null and b/web/angular/src/assets/img/flags/Angola.png differ diff --git a/web/angular/src/assets/img/flags/Anguilla.png b/web/angular/src/assets/img/flags/Anguilla.png new file mode 100755 index 0000000..7a6ac04 Binary files /dev/null and b/web/angular/src/assets/img/flags/Anguilla.png differ diff --git a/web/angular/src/assets/img/flags/Antarctica.png b/web/angular/src/assets/img/flags/Antarctica.png new file mode 100755 index 0000000..a97b355 Binary files /dev/null and b/web/angular/src/assets/img/flags/Antarctica.png differ diff --git a/web/angular/src/assets/img/flags/Antigua & Barbuda.png b/web/angular/src/assets/img/flags/Antigua & Barbuda.png new file mode 100755 index 0000000..cfc157a Binary files /dev/null and b/web/angular/src/assets/img/flags/Antigua & Barbuda.png differ diff --git a/web/angular/src/assets/img/flags/Arab League.png b/web/angular/src/assets/img/flags/Arab League.png new file mode 100755 index 0000000..646a3f7 Binary files /dev/null and b/web/angular/src/assets/img/flags/Arab League.png differ diff --git a/web/angular/src/assets/img/flags/Argentina.png b/web/angular/src/assets/img/flags/Argentina.png new file mode 100755 index 0000000..62d1518 Binary files /dev/null and b/web/angular/src/assets/img/flags/Argentina.png differ diff --git a/web/angular/src/assets/img/flags/Armenia.png b/web/angular/src/assets/img/flags/Armenia.png new file mode 100755 index 0000000..f4f9bae Binary files /dev/null and b/web/angular/src/assets/img/flags/Armenia.png differ diff --git a/web/angular/src/assets/img/flags/Aruba.png b/web/angular/src/assets/img/flags/Aruba.png new file mode 100755 index 0000000..0083ef6 Binary files /dev/null and b/web/angular/src/assets/img/flags/Aruba.png differ diff --git a/web/angular/src/assets/img/flags/Australia.png b/web/angular/src/assets/img/flags/Australia.png new file mode 100755 index 0000000..8937404 Binary files /dev/null and b/web/angular/src/assets/img/flags/Australia.png differ diff --git a/web/angular/src/assets/img/flags/Austria.png b/web/angular/src/assets/img/flags/Austria.png new file mode 100755 index 0000000..fe66fef Binary files /dev/null and b/web/angular/src/assets/img/flags/Austria.png differ diff --git a/web/angular/src/assets/img/flags/Azerbaijan.png b/web/angular/src/assets/img/flags/Azerbaijan.png new file mode 100755 index 0000000..1850abc Binary files /dev/null and b/web/angular/src/assets/img/flags/Azerbaijan.png differ diff --git a/web/angular/src/assets/img/flags/Bahamas.png b/web/angular/src/assets/img/flags/Bahamas.png new file mode 100755 index 0000000..753fc83 Binary files /dev/null and b/web/angular/src/assets/img/flags/Bahamas.png differ diff --git a/web/angular/src/assets/img/flags/Bahrain.png b/web/angular/src/assets/img/flags/Bahrain.png new file mode 100755 index 0000000..c45c7b4 Binary files /dev/null and b/web/angular/src/assets/img/flags/Bahrain.png differ diff --git a/web/angular/src/assets/img/flags/Bangladesh.png b/web/angular/src/assets/img/flags/Bangladesh.png new file mode 100755 index 0000000..8ef2443 Binary files /dev/null and b/web/angular/src/assets/img/flags/Bangladesh.png differ diff --git a/web/angular/src/assets/img/flags/Barbados.png b/web/angular/src/assets/img/flags/Barbados.png new file mode 100755 index 0000000..d440d41 Binary files /dev/null and b/web/angular/src/assets/img/flags/Barbados.png differ diff --git a/web/angular/src/assets/img/flags/Belarus.png b/web/angular/src/assets/img/flags/Belarus.png new file mode 100755 index 0000000..ce75c73 Binary files /dev/null and b/web/angular/src/assets/img/flags/Belarus.png differ diff --git a/web/angular/src/assets/img/flags/Belgium.png b/web/angular/src/assets/img/flags/Belgium.png new file mode 100755 index 0000000..1d3df4c Binary files /dev/null and b/web/angular/src/assets/img/flags/Belgium.png differ diff --git a/web/angular/src/assets/img/flags/Belize.png b/web/angular/src/assets/img/flags/Belize.png new file mode 100755 index 0000000..4a9aea0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Belize.png differ diff --git a/web/angular/src/assets/img/flags/Benin.png b/web/angular/src/assets/img/flags/Benin.png new file mode 100755 index 0000000..af46063 Binary files /dev/null and b/web/angular/src/assets/img/flags/Benin.png differ diff --git a/web/angular/src/assets/img/flags/Bermuda.png b/web/angular/src/assets/img/flags/Bermuda.png new file mode 100755 index 0000000..880d965 Binary files /dev/null and b/web/angular/src/assets/img/flags/Bermuda.png differ diff --git a/web/angular/src/assets/img/flags/Bhutan.png b/web/angular/src/assets/img/flags/Bhutan.png new file mode 100755 index 0000000..db0372e Binary files /dev/null and b/web/angular/src/assets/img/flags/Bhutan.png differ diff --git a/web/angular/src/assets/img/flags/Bolivia.png b/web/angular/src/assets/img/flags/Bolivia.png new file mode 100755 index 0000000..a28f060 Binary files /dev/null and b/web/angular/src/assets/img/flags/Bolivia.png differ diff --git a/web/angular/src/assets/img/flags/Bosnia & Herzegovina.png b/web/angular/src/assets/img/flags/Bosnia & Herzegovina.png new file mode 100755 index 0000000..806d05d Binary files /dev/null and b/web/angular/src/assets/img/flags/Bosnia & Herzegovina.png differ diff --git a/web/angular/src/assets/img/flags/Botswana.png b/web/angular/src/assets/img/flags/Botswana.png new file mode 100755 index 0000000..9a06843 Binary files /dev/null and b/web/angular/src/assets/img/flags/Botswana.png differ diff --git a/web/angular/src/assets/img/flags/Brazil.png b/web/angular/src/assets/img/flags/Brazil.png new file mode 100755 index 0000000..47a007f Binary files /dev/null and b/web/angular/src/assets/img/flags/Brazil.png differ diff --git a/web/angular/src/assets/img/flags/Brunei.png b/web/angular/src/assets/img/flags/Brunei.png new file mode 100755 index 0000000..650cca6 Binary files /dev/null and b/web/angular/src/assets/img/flags/Brunei.png differ diff --git a/web/angular/src/assets/img/flags/Bulgaria.png b/web/angular/src/assets/img/flags/Bulgaria.png new file mode 100755 index 0000000..c130192 Binary files /dev/null and b/web/angular/src/assets/img/flags/Bulgaria.png differ diff --git a/web/angular/src/assets/img/flags/Burkina Faso.png b/web/angular/src/assets/img/flags/Burkina Faso.png new file mode 100755 index 0000000..13ff132 Binary files /dev/null and b/web/angular/src/assets/img/flags/Burkina Faso.png differ diff --git a/web/angular/src/assets/img/flags/Burundi.png b/web/angular/src/assets/img/flags/Burundi.png new file mode 100755 index 0000000..15e76aa Binary files /dev/null and b/web/angular/src/assets/img/flags/Burundi.png differ diff --git a/web/angular/src/assets/img/flags/CARICOM.png b/web/angular/src/assets/img/flags/CARICOM.png new file mode 100755 index 0000000..19dfeae Binary files /dev/null and b/web/angular/src/assets/img/flags/CARICOM.png differ diff --git a/web/angular/src/assets/img/flags/CIS.png b/web/angular/src/assets/img/flags/CIS.png new file mode 100755 index 0000000..809c026 Binary files /dev/null and b/web/angular/src/assets/img/flags/CIS.png differ diff --git a/web/angular/src/assets/img/flags/Cambodja.png b/web/angular/src/assets/img/flags/Cambodja.png new file mode 100755 index 0000000..65b4c06 Binary files /dev/null and b/web/angular/src/assets/img/flags/Cambodja.png differ diff --git a/web/angular/src/assets/img/flags/Cameroon.png b/web/angular/src/assets/img/flags/Cameroon.png new file mode 100755 index 0000000..32eccee Binary files /dev/null and b/web/angular/src/assets/img/flags/Cameroon.png differ diff --git a/web/angular/src/assets/img/flags/Canada.png b/web/angular/src/assets/img/flags/Canada.png new file mode 100755 index 0000000..bfff414 Binary files /dev/null and b/web/angular/src/assets/img/flags/Canada.png differ diff --git a/web/angular/src/assets/img/flags/Cape Verde.png b/web/angular/src/assets/img/flags/Cape Verde.png new file mode 100755 index 0000000..103043c Binary files /dev/null and b/web/angular/src/assets/img/flags/Cape Verde.png differ diff --git a/web/angular/src/assets/img/flags/Cayman Islands.png b/web/angular/src/assets/img/flags/Cayman Islands.png new file mode 100755 index 0000000..f2a6b6c Binary files /dev/null and b/web/angular/src/assets/img/flags/Cayman Islands.png 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 new file mode 100755 index 0000000..3f0b501 Binary files /dev/null and b/web/angular/src/assets/img/flags/Central African Republic.png differ diff --git a/web/angular/src/assets/img/flags/Chad.png b/web/angular/src/assets/img/flags/Chad.png new file mode 100755 index 0000000..c74a4a4 Binary files /dev/null and b/web/angular/src/assets/img/flags/Chad.png differ diff --git a/web/angular/src/assets/img/flags/Chile.png b/web/angular/src/assets/img/flags/Chile.png new file mode 100755 index 0000000..3e76462 Binary files /dev/null and b/web/angular/src/assets/img/flags/Chile.png differ diff --git a/web/angular/src/assets/img/flags/China.png b/web/angular/src/assets/img/flags/China.png new file mode 100755 index 0000000..d0da550 Binary files /dev/null and b/web/angular/src/assets/img/flags/China.png differ diff --git a/web/angular/src/assets/img/flags/Colombia.png b/web/angular/src/assets/img/flags/Colombia.png new file mode 100755 index 0000000..da19e53 Binary files /dev/null and b/web/angular/src/assets/img/flags/Colombia.png differ diff --git a/web/angular/src/assets/img/flags/Commonwealth.png b/web/angular/src/assets/img/flags/Commonwealth.png new file mode 100755 index 0000000..aa0d8ab Binary files /dev/null and b/web/angular/src/assets/img/flags/Commonwealth.png differ diff --git a/web/angular/src/assets/img/flags/Comoros.png b/web/angular/src/assets/img/flags/Comoros.png new file mode 100755 index 0000000..051fc5a Binary files /dev/null and b/web/angular/src/assets/img/flags/Comoros.png differ diff --git a/web/angular/src/assets/img/flags/Congo-Brazzaville.png b/web/angular/src/assets/img/flags/Congo-Brazzaville.png new file mode 100755 index 0000000..f8c0b25 Binary files /dev/null and b/web/angular/src/assets/img/flags/Congo-Brazzaville.png 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 new file mode 100755 index 0000000..be42ea0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Congo-Kinshasa(Zaire).png differ diff --git a/web/angular/src/assets/img/flags/Cook Islands.png b/web/angular/src/assets/img/flags/Cook Islands.png new file mode 100755 index 0000000..7c432c8 Binary files /dev/null and b/web/angular/src/assets/img/flags/Cook Islands.png differ diff --git a/web/angular/src/assets/img/flags/Costa Rica.png b/web/angular/src/assets/img/flags/Costa Rica.png new file mode 100755 index 0000000..44a3073 Binary files /dev/null and b/web/angular/src/assets/img/flags/Costa Rica.png 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 new file mode 100755 index 0000000..1fee82c Binary files /dev/null and b/web/angular/src/assets/img/flags/Cote d'Ivoire.png differ diff --git a/web/angular/src/assets/img/flags/Croatia.png b/web/angular/src/assets/img/flags/Croatia.png new file mode 100755 index 0000000..4cb4ea7 Binary files /dev/null and b/web/angular/src/assets/img/flags/Croatia.png differ diff --git a/web/angular/src/assets/img/flags/Cuba.png b/web/angular/src/assets/img/flags/Cuba.png new file mode 100755 index 0000000..4e3cf29 Binary files /dev/null and b/web/angular/src/assets/img/flags/Cuba.png differ diff --git a/web/angular/src/assets/img/flags/Cyprus.png b/web/angular/src/assets/img/flags/Cyprus.png new file mode 100755 index 0000000..df22c03 Binary files /dev/null and b/web/angular/src/assets/img/flags/Cyprus.png differ diff --git a/web/angular/src/assets/img/flags/Czech Republic.png b/web/angular/src/assets/img/flags/Czech Republic.png new file mode 100755 index 0000000..31f9ad9 Binary files /dev/null and b/web/angular/src/assets/img/flags/Czech Republic.png differ diff --git a/web/angular/src/assets/img/flags/Denmark.png b/web/angular/src/assets/img/flags/Denmark.png new file mode 100755 index 0000000..3f4dac3 Binary files /dev/null and b/web/angular/src/assets/img/flags/Denmark.png differ diff --git a/web/angular/src/assets/img/flags/Djibouti.png b/web/angular/src/assets/img/flags/Djibouti.png new file mode 100755 index 0000000..8f32f74 Binary files /dev/null and b/web/angular/src/assets/img/flags/Djibouti.png differ diff --git a/web/angular/src/assets/img/flags/Dominica.png b/web/angular/src/assets/img/flags/Dominica.png new file mode 100755 index 0000000..e70b1a4 Binary files /dev/null and b/web/angular/src/assets/img/flags/Dominica.png differ diff --git a/web/angular/src/assets/img/flags/Dominican Republic.png b/web/angular/src/assets/img/flags/Dominican Republic.png new file mode 100755 index 0000000..ca2d40a Binary files /dev/null and b/web/angular/src/assets/img/flags/Dominican Republic.png differ diff --git a/web/angular/src/assets/img/flags/Ecuador.png b/web/angular/src/assets/img/flags/Ecuador.png new file mode 100755 index 0000000..4913cec Binary files /dev/null and b/web/angular/src/assets/img/flags/Ecuador.png differ diff --git a/web/angular/src/assets/img/flags/Egypt.png b/web/angular/src/assets/img/flags/Egypt.png new file mode 100755 index 0000000..ee9fef0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Egypt.png differ diff --git a/web/angular/src/assets/img/flags/El Salvador.png b/web/angular/src/assets/img/flags/El Salvador.png new file mode 100755 index 0000000..adf8750 Binary files /dev/null and b/web/angular/src/assets/img/flags/El Salvador.png differ diff --git a/web/angular/src/assets/img/flags/England.png b/web/angular/src/assets/img/flags/England.png new file mode 100755 index 0000000..22fb06b Binary files /dev/null and b/web/angular/src/assets/img/flags/England.png differ diff --git a/web/angular/src/assets/img/flags/Equatorial Guinea.png b/web/angular/src/assets/img/flags/Equatorial Guinea.png new file mode 100755 index 0000000..13d3c92 Binary files /dev/null and b/web/angular/src/assets/img/flags/Equatorial Guinea.png differ diff --git a/web/angular/src/assets/img/flags/Eritrea.png b/web/angular/src/assets/img/flags/Eritrea.png new file mode 100755 index 0000000..5f38c52 Binary files /dev/null and b/web/angular/src/assets/img/flags/Eritrea.png differ diff --git a/web/angular/src/assets/img/flags/Estonia.png b/web/angular/src/assets/img/flags/Estonia.png new file mode 100755 index 0000000..3eadb29 Binary files /dev/null and b/web/angular/src/assets/img/flags/Estonia.png differ diff --git a/web/angular/src/assets/img/flags/Ethiopia.png b/web/angular/src/assets/img/flags/Ethiopia.png new file mode 100755 index 0000000..b29191f Binary files /dev/null and b/web/angular/src/assets/img/flags/Ethiopia.png differ diff --git a/web/angular/src/assets/img/flags/European Union.png b/web/angular/src/assets/img/flags/European Union.png new file mode 100755 index 0000000..18c86da Binary files /dev/null and b/web/angular/src/assets/img/flags/European Union.png differ diff --git a/web/angular/src/assets/img/flags/Faroes.png b/web/angular/src/assets/img/flags/Faroes.png new file mode 100755 index 0000000..1bfb68e Binary files /dev/null and b/web/angular/src/assets/img/flags/Faroes.png differ diff --git a/web/angular/src/assets/img/flags/Fiji.png b/web/angular/src/assets/img/flags/Fiji.png new file mode 100755 index 0000000..d96b232 Binary files /dev/null and b/web/angular/src/assets/img/flags/Fiji.png differ diff --git a/web/angular/src/assets/img/flags/Finland.png b/web/angular/src/assets/img/flags/Finland.png new file mode 100755 index 0000000..97d47a9 Binary files /dev/null and b/web/angular/src/assets/img/flags/Finland.png differ diff --git a/web/angular/src/assets/img/flags/France.png b/web/angular/src/assets/img/flags/France.png new file mode 100755 index 0000000..12318d4 Binary files /dev/null and b/web/angular/src/assets/img/flags/France.png differ diff --git a/web/angular/src/assets/img/flags/Gabon.png b/web/angular/src/assets/img/flags/Gabon.png new file mode 100755 index 0000000..bb1f634 Binary files /dev/null and b/web/angular/src/assets/img/flags/Gabon.png differ diff --git a/web/angular/src/assets/img/flags/Gambia.png b/web/angular/src/assets/img/flags/Gambia.png new file mode 100755 index 0000000..e4bee6c Binary files /dev/null and b/web/angular/src/assets/img/flags/Gambia.png differ diff --git a/web/angular/src/assets/img/flags/Georgia.png b/web/angular/src/assets/img/flags/Georgia.png new file mode 100755 index 0000000..fb293a0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Georgia.png differ diff --git a/web/angular/src/assets/img/flags/Germany.png b/web/angular/src/assets/img/flags/Germany.png new file mode 100755 index 0000000..77e9338 Binary files /dev/null and b/web/angular/src/assets/img/flags/Germany.png differ diff --git a/web/angular/src/assets/img/flags/Ghana.png b/web/angular/src/assets/img/flags/Ghana.png new file mode 100755 index 0000000..16ddfb4 Binary files /dev/null and b/web/angular/src/assets/img/flags/Ghana.png differ diff --git a/web/angular/src/assets/img/flags/Gibraltar.png b/web/angular/src/assets/img/flags/Gibraltar.png new file mode 100755 index 0000000..3d3b66d Binary files /dev/null and b/web/angular/src/assets/img/flags/Gibraltar.png differ diff --git a/web/angular/src/assets/img/flags/Greece.png b/web/angular/src/assets/img/flags/Greece.png new file mode 100755 index 0000000..b00fd5a Binary files /dev/null and b/web/angular/src/assets/img/flags/Greece.png differ diff --git a/web/angular/src/assets/img/flags/Greenland.png b/web/angular/src/assets/img/flags/Greenland.png new file mode 100755 index 0000000..8dc87f4 Binary files /dev/null and b/web/angular/src/assets/img/flags/Greenland.png differ diff --git a/web/angular/src/assets/img/flags/Grenada.png b/web/angular/src/assets/img/flags/Grenada.png new file mode 100755 index 0000000..26be61e Binary files /dev/null and b/web/angular/src/assets/img/flags/Grenada.png differ diff --git a/web/angular/src/assets/img/flags/Guadeloupe.png b/web/angular/src/assets/img/flags/Guadeloupe.png new file mode 100755 index 0000000..53dca17 Binary files /dev/null and b/web/angular/src/assets/img/flags/Guadeloupe.png differ diff --git a/web/angular/src/assets/img/flags/Guam.png b/web/angular/src/assets/img/flags/Guam.png new file mode 100755 index 0000000..f1d6b7a Binary files /dev/null and b/web/angular/src/assets/img/flags/Guam.png differ diff --git a/web/angular/src/assets/img/flags/Guatemala.png b/web/angular/src/assets/img/flags/Guatemala.png new file mode 100755 index 0000000..e5580e9 Binary files /dev/null and b/web/angular/src/assets/img/flags/Guatemala.png differ diff --git a/web/angular/src/assets/img/flags/Guernsey.png b/web/angular/src/assets/img/flags/Guernsey.png new file mode 100755 index 0000000..0514cc9 Binary files /dev/null and b/web/angular/src/assets/img/flags/Guernsey.png differ diff --git a/web/angular/src/assets/img/flags/Guinea-Bissau.png b/web/angular/src/assets/img/flags/Guinea-Bissau.png new file mode 100755 index 0000000..d097a28 Binary files /dev/null and b/web/angular/src/assets/img/flags/Guinea-Bissau.png differ diff --git a/web/angular/src/assets/img/flags/Guinea.png b/web/angular/src/assets/img/flags/Guinea.png new file mode 100755 index 0000000..f71c621 Binary files /dev/null and b/web/angular/src/assets/img/flags/Guinea.png differ diff --git a/web/angular/src/assets/img/flags/Guyana.png b/web/angular/src/assets/img/flags/Guyana.png new file mode 100755 index 0000000..76eabd9 Binary files /dev/null and b/web/angular/src/assets/img/flags/Guyana.png differ diff --git a/web/angular/src/assets/img/flags/Haiti.png b/web/angular/src/assets/img/flags/Haiti.png new file mode 100755 index 0000000..325cef0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Haiti.png differ diff --git a/web/angular/src/assets/img/flags/Honduras.png b/web/angular/src/assets/img/flags/Honduras.png new file mode 100755 index 0000000..1f327f1 Binary files /dev/null and b/web/angular/src/assets/img/flags/Honduras.png differ diff --git a/web/angular/src/assets/img/flags/Hong Kong.png b/web/angular/src/assets/img/flags/Hong Kong.png new file mode 100755 index 0000000..46208e0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Hong Kong.png differ diff --git a/web/angular/src/assets/img/flags/Hungary.png b/web/angular/src/assets/img/flags/Hungary.png new file mode 100755 index 0000000..af757c6 Binary files /dev/null and b/web/angular/src/assets/img/flags/Hungary.png differ diff --git a/web/angular/src/assets/img/flags/Iceland.png b/web/angular/src/assets/img/flags/Iceland.png new file mode 100755 index 0000000..33d68dd Binary files /dev/null and b/web/angular/src/assets/img/flags/Iceland.png differ diff --git a/web/angular/src/assets/img/flags/India.png b/web/angular/src/assets/img/flags/India.png new file mode 100755 index 0000000..e0a8865 Binary files /dev/null and b/web/angular/src/assets/img/flags/India.png differ diff --git a/web/angular/src/assets/img/flags/Indonezia.png b/web/angular/src/assets/img/flags/Indonezia.png new file mode 100755 index 0000000..ed42d1f Binary files /dev/null and b/web/angular/src/assets/img/flags/Indonezia.png differ diff --git a/web/angular/src/assets/img/flags/Iran.png b/web/angular/src/assets/img/flags/Iran.png new file mode 100755 index 0000000..70da4fc Binary files /dev/null and b/web/angular/src/assets/img/flags/Iran.png differ diff --git a/web/angular/src/assets/img/flags/Iraq.png b/web/angular/src/assets/img/flags/Iraq.png new file mode 100755 index 0000000..cdd0c4f Binary files /dev/null and b/web/angular/src/assets/img/flags/Iraq.png differ diff --git a/web/angular/src/assets/img/flags/Ireland.png b/web/angular/src/assets/img/flags/Ireland.png new file mode 100755 index 0000000..74219ab Binary files /dev/null and b/web/angular/src/assets/img/flags/Ireland.png differ diff --git a/web/angular/src/assets/img/flags/Islamic Conference.png b/web/angular/src/assets/img/flags/Islamic Conference.png new file mode 100755 index 0000000..cc4aa3b Binary files /dev/null and b/web/angular/src/assets/img/flags/Islamic Conference.png 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 new file mode 100755 index 0000000..9478023 Binary files /dev/null and b/web/angular/src/assets/img/flags/Isle of Man.png differ diff --git a/web/angular/src/assets/img/flags/Israel.png b/web/angular/src/assets/img/flags/Israel.png new file mode 100755 index 0000000..3ba7553 Binary files /dev/null and b/web/angular/src/assets/img/flags/Israel.png differ diff --git a/web/angular/src/assets/img/flags/Italy.png b/web/angular/src/assets/img/flags/Italy.png new file mode 100755 index 0000000..c31017e Binary files /dev/null and b/web/angular/src/assets/img/flags/Italy.png differ diff --git a/web/angular/src/assets/img/flags/Jamaica.png b/web/angular/src/assets/img/flags/Jamaica.png new file mode 100755 index 0000000..e79cf2a Binary files /dev/null and b/web/angular/src/assets/img/flags/Jamaica.png differ diff --git a/web/angular/src/assets/img/flags/Japan.png b/web/angular/src/assets/img/flags/Japan.png new file mode 100755 index 0000000..29c45d5 Binary files /dev/null and b/web/angular/src/assets/img/flags/Japan.png differ diff --git a/web/angular/src/assets/img/flags/Jersey.png b/web/angular/src/assets/img/flags/Jersey.png new file mode 100755 index 0000000..b8f5ba6 Binary files /dev/null and b/web/angular/src/assets/img/flags/Jersey.png differ diff --git a/web/angular/src/assets/img/flags/Jordan.png b/web/angular/src/assets/img/flags/Jordan.png new file mode 100755 index 0000000..b627a5c Binary files /dev/null and b/web/angular/src/assets/img/flags/Jordan.png differ diff --git a/web/angular/src/assets/img/flags/Kazakhstan.png b/web/angular/src/assets/img/flags/Kazakhstan.png new file mode 100755 index 0000000..8980ad9 Binary files /dev/null and b/web/angular/src/assets/img/flags/Kazakhstan.png differ diff --git a/web/angular/src/assets/img/flags/Kenya.png b/web/angular/src/assets/img/flags/Kenya.png new file mode 100755 index 0000000..e3d7f12 Binary files /dev/null and b/web/angular/src/assets/img/flags/Kenya.png differ diff --git a/web/angular/src/assets/img/flags/Kiribati.png b/web/angular/src/assets/img/flags/Kiribati.png new file mode 100755 index 0000000..5d286d2 Binary files /dev/null and b/web/angular/src/assets/img/flags/Kiribati.png differ diff --git a/web/angular/src/assets/img/flags/Kosovo.png b/web/angular/src/assets/img/flags/Kosovo.png new file mode 100755 index 0000000..1d46286 Binary files /dev/null and b/web/angular/src/assets/img/flags/Kosovo.png differ diff --git a/web/angular/src/assets/img/flags/Kuwait.png b/web/angular/src/assets/img/flags/Kuwait.png new file mode 100755 index 0000000..8d7adb1 Binary files /dev/null and b/web/angular/src/assets/img/flags/Kuwait.png differ diff --git a/web/angular/src/assets/img/flags/Kyrgyzstan.png b/web/angular/src/assets/img/flags/Kyrgyzstan.png new file mode 100755 index 0000000..cf2d885 Binary files /dev/null and b/web/angular/src/assets/img/flags/Kyrgyzstan.png differ diff --git a/web/angular/src/assets/img/flags/Laos.png b/web/angular/src/assets/img/flags/Laos.png new file mode 100755 index 0000000..f3b2309 Binary files /dev/null and b/web/angular/src/assets/img/flags/Laos.png differ diff --git a/web/angular/src/assets/img/flags/Latvia.png b/web/angular/src/assets/img/flags/Latvia.png new file mode 100755 index 0000000..6ace36d Binary files /dev/null and b/web/angular/src/assets/img/flags/Latvia.png differ diff --git a/web/angular/src/assets/img/flags/Lebanon.png b/web/angular/src/assets/img/flags/Lebanon.png new file mode 100755 index 0000000..854717e Binary files /dev/null and b/web/angular/src/assets/img/flags/Lebanon.png differ diff --git a/web/angular/src/assets/img/flags/Lesotho.png b/web/angular/src/assets/img/flags/Lesotho.png new file mode 100755 index 0000000..9af5c4a Binary files /dev/null and b/web/angular/src/assets/img/flags/Lesotho.png differ diff --git a/web/angular/src/assets/img/flags/Liberia.png b/web/angular/src/assets/img/flags/Liberia.png new file mode 100755 index 0000000..cadfec1 Binary files /dev/null and b/web/angular/src/assets/img/flags/Liberia.png differ diff --git a/web/angular/src/assets/img/flags/Libya.png b/web/angular/src/assets/img/flags/Libya.png new file mode 100755 index 0000000..8176ad5 Binary files /dev/null and b/web/angular/src/assets/img/flags/Libya.png differ diff --git a/web/angular/src/assets/img/flags/Liechtenshein.png b/web/angular/src/assets/img/flags/Liechtenshein.png new file mode 100755 index 0000000..4661f3d Binary files /dev/null and b/web/angular/src/assets/img/flags/Liechtenshein.png differ diff --git a/web/angular/src/assets/img/flags/Lithuania.png b/web/angular/src/assets/img/flags/Lithuania.png new file mode 100755 index 0000000..875dd3f Binary files /dev/null and b/web/angular/src/assets/img/flags/Lithuania.png differ diff --git a/web/angular/src/assets/img/flags/Luxembourg.png b/web/angular/src/assets/img/flags/Luxembourg.png new file mode 100755 index 0000000..cef746a Binary files /dev/null and b/web/angular/src/assets/img/flags/Luxembourg.png differ diff --git a/web/angular/src/assets/img/flags/Macao.png b/web/angular/src/assets/img/flags/Macao.png new file mode 100755 index 0000000..e413fa5 Binary files /dev/null and b/web/angular/src/assets/img/flags/Macao.png differ diff --git a/web/angular/src/assets/img/flags/Macedonia.png b/web/angular/src/assets/img/flags/Macedonia.png new file mode 100755 index 0000000..0bc9151 Binary files /dev/null and b/web/angular/src/assets/img/flags/Macedonia.png differ diff --git a/web/angular/src/assets/img/flags/Madagascar.png b/web/angular/src/assets/img/flags/Madagascar.png new file mode 100755 index 0000000..31e6d84 Binary files /dev/null and b/web/angular/src/assets/img/flags/Madagascar.png differ diff --git a/web/angular/src/assets/img/flags/Malawi.png b/web/angular/src/assets/img/flags/Malawi.png new file mode 100755 index 0000000..b96d0ad Binary files /dev/null and b/web/angular/src/assets/img/flags/Malawi.png differ diff --git a/web/angular/src/assets/img/flags/Malaysia.png b/web/angular/src/assets/img/flags/Malaysia.png new file mode 100755 index 0000000..92686c2 Binary files /dev/null and b/web/angular/src/assets/img/flags/Malaysia.png differ diff --git a/web/angular/src/assets/img/flags/Maldives.png b/web/angular/src/assets/img/flags/Maldives.png new file mode 100755 index 0000000..92472ec Binary files /dev/null and b/web/angular/src/assets/img/flags/Maldives.png differ diff --git a/web/angular/src/assets/img/flags/Mali.png b/web/angular/src/assets/img/flags/Mali.png new file mode 100755 index 0000000..189bff7 Binary files /dev/null and b/web/angular/src/assets/img/flags/Mali.png differ diff --git a/web/angular/src/assets/img/flags/Malta.png b/web/angular/src/assets/img/flags/Malta.png new file mode 100755 index 0000000..a93f9ee Binary files /dev/null and b/web/angular/src/assets/img/flags/Malta.png differ diff --git a/web/angular/src/assets/img/flags/Marshall Islands.png b/web/angular/src/assets/img/flags/Marshall Islands.png new file mode 100755 index 0000000..1d15869 Binary files /dev/null and b/web/angular/src/assets/img/flags/Marshall Islands.png differ diff --git a/web/angular/src/assets/img/flags/Martinique.png b/web/angular/src/assets/img/flags/Martinique.png new file mode 100755 index 0000000..f2b7be4 Binary files /dev/null and b/web/angular/src/assets/img/flags/Martinique.png differ diff --git a/web/angular/src/assets/img/flags/Mauritania.png b/web/angular/src/assets/img/flags/Mauritania.png new file mode 100755 index 0000000..fcf1b44 Binary files /dev/null and b/web/angular/src/assets/img/flags/Mauritania.png differ diff --git a/web/angular/src/assets/img/flags/Mauritius.png b/web/angular/src/assets/img/flags/Mauritius.png new file mode 100755 index 0000000..e4c0b7d Binary files /dev/null and b/web/angular/src/assets/img/flags/Mauritius.png differ diff --git a/web/angular/src/assets/img/flags/Mexico.png b/web/angular/src/assets/img/flags/Mexico.png new file mode 100755 index 0000000..f0557d0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Mexico.png differ diff --git a/web/angular/src/assets/img/flags/Micronesia.png b/web/angular/src/assets/img/flags/Micronesia.png new file mode 100755 index 0000000..02cf424 Binary files /dev/null and b/web/angular/src/assets/img/flags/Micronesia.png differ diff --git a/web/angular/src/assets/img/flags/Moldova.png b/web/angular/src/assets/img/flags/Moldova.png new file mode 100755 index 0000000..344855a Binary files /dev/null and b/web/angular/src/assets/img/flags/Moldova.png differ diff --git a/web/angular/src/assets/img/flags/Monaco.png b/web/angular/src/assets/img/flags/Monaco.png new file mode 100755 index 0000000..bda53b1 Binary files /dev/null and b/web/angular/src/assets/img/flags/Monaco.png differ diff --git a/web/angular/src/assets/img/flags/Mongolia.png b/web/angular/src/assets/img/flags/Mongolia.png new file mode 100755 index 0000000..83b7542 Binary files /dev/null and b/web/angular/src/assets/img/flags/Mongolia.png differ diff --git a/web/angular/src/assets/img/flags/Montenegro.png b/web/angular/src/assets/img/flags/Montenegro.png new file mode 100755 index 0000000..5142918 Binary files /dev/null and b/web/angular/src/assets/img/flags/Montenegro.png differ diff --git a/web/angular/src/assets/img/flags/Montserrat.png b/web/angular/src/assets/img/flags/Montserrat.png new file mode 100755 index 0000000..a799545 Binary files /dev/null and b/web/angular/src/assets/img/flags/Montserrat.png differ diff --git a/web/angular/src/assets/img/flags/Morocco.png b/web/angular/src/assets/img/flags/Morocco.png new file mode 100755 index 0000000..c1bb970 Binary files /dev/null and b/web/angular/src/assets/img/flags/Morocco.png differ diff --git a/web/angular/src/assets/img/flags/Mozambique.png b/web/angular/src/assets/img/flags/Mozambique.png new file mode 100755 index 0000000..07c0a8a Binary files /dev/null and b/web/angular/src/assets/img/flags/Mozambique.png differ diff --git a/web/angular/src/assets/img/flags/Myanmar(Burma).png b/web/angular/src/assets/img/flags/Myanmar(Burma).png new file mode 100755 index 0000000..2deafe1 Binary files /dev/null and b/web/angular/src/assets/img/flags/Myanmar(Burma).png differ diff --git a/web/angular/src/assets/img/flags/NATO.png b/web/angular/src/assets/img/flags/NATO.png new file mode 100755 index 0000000..d651f06 Binary files /dev/null and b/web/angular/src/assets/img/flags/NATO.png differ diff --git a/web/angular/src/assets/img/flags/Namibia.png b/web/angular/src/assets/img/flags/Namibia.png new file mode 100755 index 0000000..9d14ed3 Binary files /dev/null and b/web/angular/src/assets/img/flags/Namibia.png differ diff --git a/web/angular/src/assets/img/flags/Nauru.png b/web/angular/src/assets/img/flags/Nauru.png new file mode 100755 index 0000000..f763397 Binary files /dev/null and b/web/angular/src/assets/img/flags/Nauru.png differ diff --git a/web/angular/src/assets/img/flags/Nepal.png b/web/angular/src/assets/img/flags/Nepal.png new file mode 100755 index 0000000..f011adc Binary files /dev/null and b/web/angular/src/assets/img/flags/Nepal.png differ diff --git a/web/angular/src/assets/img/flags/Netherlands Antilles.png b/web/angular/src/assets/img/flags/Netherlands Antilles.png new file mode 100755 index 0000000..e4f171f Binary files /dev/null and b/web/angular/src/assets/img/flags/Netherlands Antilles.png differ diff --git a/web/angular/src/assets/img/flags/Netherlands.png b/web/angular/src/assets/img/flags/Netherlands.png new file mode 100755 index 0000000..d5ea768 Binary files /dev/null and b/web/angular/src/assets/img/flags/Netherlands.png differ diff --git a/web/angular/src/assets/img/flags/New Caledonia.png b/web/angular/src/assets/img/flags/New Caledonia.png new file mode 100755 index 0000000..dc3e9e1 Binary files /dev/null and b/web/angular/src/assets/img/flags/New Caledonia.png differ diff --git a/web/angular/src/assets/img/flags/New Zealand.png b/web/angular/src/assets/img/flags/New Zealand.png new file mode 100755 index 0000000..ef474ad Binary files /dev/null and b/web/angular/src/assets/img/flags/New Zealand.png differ diff --git a/web/angular/src/assets/img/flags/Nicaragua.png b/web/angular/src/assets/img/flags/Nicaragua.png new file mode 100755 index 0000000..ad8ab44 Binary files /dev/null and b/web/angular/src/assets/img/flags/Nicaragua.png differ diff --git a/web/angular/src/assets/img/flags/Niger.png b/web/angular/src/assets/img/flags/Niger.png new file mode 100755 index 0000000..06a7c08 Binary files /dev/null and b/web/angular/src/assets/img/flags/Niger.png differ diff --git a/web/angular/src/assets/img/flags/Nigeria.png b/web/angular/src/assets/img/flags/Nigeria.png new file mode 100755 index 0000000..899e0be Binary files /dev/null and b/web/angular/src/assets/img/flags/Nigeria.png differ diff --git a/web/angular/src/assets/img/flags/North Korea.png b/web/angular/src/assets/img/flags/North Korea.png new file mode 100755 index 0000000..f51a2bf Binary files /dev/null and b/web/angular/src/assets/img/flags/North Korea.png differ diff --git a/web/angular/src/assets/img/flags/Northern Cyprus.png b/web/angular/src/assets/img/flags/Northern Cyprus.png new file mode 100755 index 0000000..cb34657 Binary files /dev/null and b/web/angular/src/assets/img/flags/Northern Cyprus.png differ diff --git a/web/angular/src/assets/img/flags/Northern Ireland.png b/web/angular/src/assets/img/flags/Northern Ireland.png new file mode 100755 index 0000000..c0eafdf Binary files /dev/null and b/web/angular/src/assets/img/flags/Northern Ireland.png differ diff --git a/web/angular/src/assets/img/flags/Norway.png b/web/angular/src/assets/img/flags/Norway.png new file mode 100755 index 0000000..2b03236 Binary files /dev/null and b/web/angular/src/assets/img/flags/Norway.png differ diff --git a/web/angular/src/assets/img/flags/OPEC.png b/web/angular/src/assets/img/flags/OPEC.png new file mode 100755 index 0000000..5d9c242 Binary files /dev/null and b/web/angular/src/assets/img/flags/OPEC.png differ diff --git a/web/angular/src/assets/img/flags/Olimpic Movement.png b/web/angular/src/assets/img/flags/Olimpic Movement.png new file mode 100755 index 0000000..71d97ae Binary files /dev/null and b/web/angular/src/assets/img/flags/Olimpic Movement.png differ diff --git a/web/angular/src/assets/img/flags/Oman.png b/web/angular/src/assets/img/flags/Oman.png new file mode 100755 index 0000000..111b114 Binary files /dev/null and b/web/angular/src/assets/img/flags/Oman.png differ diff --git a/web/angular/src/assets/img/flags/Pakistan.png b/web/angular/src/assets/img/flags/Pakistan.png new file mode 100755 index 0000000..1630f55 Binary files /dev/null and b/web/angular/src/assets/img/flags/Pakistan.png differ diff --git a/web/angular/src/assets/img/flags/Palau.png b/web/angular/src/assets/img/flags/Palau.png new file mode 100755 index 0000000..21a45c4 Binary files /dev/null and b/web/angular/src/assets/img/flags/Palau.png differ diff --git a/web/angular/src/assets/img/flags/Palestine.png b/web/angular/src/assets/img/flags/Palestine.png new file mode 100755 index 0000000..6f654e3 Binary files /dev/null and b/web/angular/src/assets/img/flags/Palestine.png differ diff --git a/web/angular/src/assets/img/flags/Panama.png b/web/angular/src/assets/img/flags/Panama.png new file mode 100755 index 0000000..e39849d Binary files /dev/null and b/web/angular/src/assets/img/flags/Panama.png 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 new file mode 100755 index 0000000..7b0d0ee Binary files /dev/null and b/web/angular/src/assets/img/flags/Papua New Guinea.png differ diff --git a/web/angular/src/assets/img/flags/Paraguay.png b/web/angular/src/assets/img/flags/Paraguay.png new file mode 100755 index 0000000..d8cc505 Binary files /dev/null and b/web/angular/src/assets/img/flags/Paraguay.png differ diff --git a/web/angular/src/assets/img/flags/Peru.png b/web/angular/src/assets/img/flags/Peru.png new file mode 100755 index 0000000..f971a35 Binary files /dev/null and b/web/angular/src/assets/img/flags/Peru.png differ diff --git a/web/angular/src/assets/img/flags/Philippines.png b/web/angular/src/assets/img/flags/Philippines.png new file mode 100755 index 0000000..d025d4d Binary files /dev/null and b/web/angular/src/assets/img/flags/Philippines.png differ diff --git a/web/angular/src/assets/img/flags/Poland.png b/web/angular/src/assets/img/flags/Poland.png new file mode 100755 index 0000000..7a71804 Binary files /dev/null and b/web/angular/src/assets/img/flags/Poland.png differ diff --git a/web/angular/src/assets/img/flags/Portugal.png b/web/angular/src/assets/img/flags/Portugal.png new file mode 100755 index 0000000..5b39073 Binary files /dev/null and b/web/angular/src/assets/img/flags/Portugal.png differ diff --git a/web/angular/src/assets/img/flags/Puerto Rico.png b/web/angular/src/assets/img/flags/Puerto Rico.png new file mode 100755 index 0000000..146ca81 Binary files /dev/null and b/web/angular/src/assets/img/flags/Puerto Rico.png differ diff --git a/web/angular/src/assets/img/flags/Qatar.png b/web/angular/src/assets/img/flags/Qatar.png new file mode 100755 index 0000000..1dd1183 Binary files /dev/null and b/web/angular/src/assets/img/flags/Qatar.png differ diff --git a/web/angular/src/assets/img/flags/Red Cross.png b/web/angular/src/assets/img/flags/Red Cross.png new file mode 100755 index 0000000..fd79967 Binary files /dev/null and b/web/angular/src/assets/img/flags/Red Cross.png differ diff --git a/web/angular/src/assets/img/flags/Reunion.png b/web/angular/src/assets/img/flags/Reunion.png new file mode 100755 index 0000000..8087909 Binary files /dev/null and b/web/angular/src/assets/img/flags/Reunion.png differ diff --git a/web/angular/src/assets/img/flags/Romania.png b/web/angular/src/assets/img/flags/Romania.png new file mode 100755 index 0000000..b8cdad8 Binary files /dev/null and b/web/angular/src/assets/img/flags/Romania.png differ diff --git a/web/angular/src/assets/img/flags/Russia.png b/web/angular/src/assets/img/flags/Russia.png new file mode 100755 index 0000000..a5b9528 Binary files /dev/null and b/web/angular/src/assets/img/flags/Russia.png differ diff --git a/web/angular/src/assets/img/flags/Rwanda.png b/web/angular/src/assets/img/flags/Rwanda.png new file mode 100755 index 0000000..f6f5163 Binary files /dev/null and b/web/angular/src/assets/img/flags/Rwanda.png differ diff --git a/web/angular/src/assets/img/flags/Saint Lucia.png b/web/angular/src/assets/img/flags/Saint Lucia.png new file mode 100755 index 0000000..987e1f0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Saint Lucia.png differ diff --git a/web/angular/src/assets/img/flags/Samoa.png b/web/angular/src/assets/img/flags/Samoa.png new file mode 100755 index 0000000..e671ebb Binary files /dev/null and b/web/angular/src/assets/img/flags/Samoa.png differ diff --git a/web/angular/src/assets/img/flags/San Marino.png b/web/angular/src/assets/img/flags/San Marino.png new file mode 100755 index 0000000..92bd72b Binary files /dev/null and b/web/angular/src/assets/img/flags/San Marino.png 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 new file mode 100755 index 0000000..b5187c6 Binary files /dev/null and b/web/angular/src/assets/img/flags/Sao Tome & Principe.png differ diff --git a/web/angular/src/assets/img/flags/Saudi Arabia.png b/web/angular/src/assets/img/flags/Saudi Arabia.png new file mode 100755 index 0000000..9630e83 Binary files /dev/null and b/web/angular/src/assets/img/flags/Saudi Arabia.png differ diff --git a/web/angular/src/assets/img/flags/Scotland.png b/web/angular/src/assets/img/flags/Scotland.png new file mode 100755 index 0000000..4ac5281 Binary files /dev/null and b/web/angular/src/assets/img/flags/Scotland.png differ diff --git a/web/angular/src/assets/img/flags/Senegal.png b/web/angular/src/assets/img/flags/Senegal.png new file mode 100755 index 0000000..13c9365 Binary files /dev/null and b/web/angular/src/assets/img/flags/Senegal.png differ diff --git a/web/angular/src/assets/img/flags/Serbia(Yugoslavia).png b/web/angular/src/assets/img/flags/Serbia(Yugoslavia).png new file mode 100755 index 0000000..b2afcf5 Binary files /dev/null and b/web/angular/src/assets/img/flags/Serbia(Yugoslavia).png differ diff --git a/web/angular/src/assets/img/flags/Seychelles.png b/web/angular/src/assets/img/flags/Seychelles.png new file mode 100755 index 0000000..de605e6 Binary files /dev/null and b/web/angular/src/assets/img/flags/Seychelles.png differ diff --git a/web/angular/src/assets/img/flags/Sierra Leone.png b/web/angular/src/assets/img/flags/Sierra Leone.png new file mode 100755 index 0000000..47b26eb Binary files /dev/null and b/web/angular/src/assets/img/flags/Sierra Leone.png differ diff --git a/web/angular/src/assets/img/flags/Singapore.png b/web/angular/src/assets/img/flags/Singapore.png new file mode 100755 index 0000000..4b88785 Binary files /dev/null and b/web/angular/src/assets/img/flags/Singapore.png differ diff --git a/web/angular/src/assets/img/flags/Slovakia.png b/web/angular/src/assets/img/flags/Slovakia.png new file mode 100755 index 0000000..418c786 Binary files /dev/null and b/web/angular/src/assets/img/flags/Slovakia.png differ diff --git a/web/angular/src/assets/img/flags/Slovenia.png b/web/angular/src/assets/img/flags/Slovenia.png new file mode 100755 index 0000000..cfa83b5 Binary files /dev/null and b/web/angular/src/assets/img/flags/Slovenia.png differ diff --git a/web/angular/src/assets/img/flags/Solomon Islands.png b/web/angular/src/assets/img/flags/Solomon Islands.png new file mode 100755 index 0000000..f1ffebb Binary files /dev/null and b/web/angular/src/assets/img/flags/Solomon Islands.png differ diff --git a/web/angular/src/assets/img/flags/Somalia.png b/web/angular/src/assets/img/flags/Somalia.png new file mode 100755 index 0000000..6a02c72 Binary files /dev/null and b/web/angular/src/assets/img/flags/Somalia.png differ diff --git a/web/angular/src/assets/img/flags/Somaliland.png b/web/angular/src/assets/img/flags/Somaliland.png new file mode 100755 index 0000000..d44f580 Binary files /dev/null and b/web/angular/src/assets/img/flags/Somaliland.png differ diff --git a/web/angular/src/assets/img/flags/South Africa.png b/web/angular/src/assets/img/flags/South Africa.png new file mode 100755 index 0000000..d1920de Binary files /dev/null and b/web/angular/src/assets/img/flags/South Africa.png differ diff --git a/web/angular/src/assets/img/flags/South Korea.png b/web/angular/src/assets/img/flags/South Korea.png new file mode 100755 index 0000000..13e27e1 Binary files /dev/null and b/web/angular/src/assets/img/flags/South Korea.png differ diff --git a/web/angular/src/assets/img/flags/Spain.png b/web/angular/src/assets/img/flags/Spain.png new file mode 100755 index 0000000..38b66bc Binary files /dev/null and b/web/angular/src/assets/img/flags/Spain.png differ diff --git a/web/angular/src/assets/img/flags/Sri Lanka.png b/web/angular/src/assets/img/flags/Sri Lanka.png new file mode 100755 index 0000000..2a7d925 Binary files /dev/null and b/web/angular/src/assets/img/flags/Sri Lanka.png 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 new file mode 100755 index 0000000..75f3ed2 Binary files /dev/null and b/web/angular/src/assets/img/flags/St Kitts & Nevis.png 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 new file mode 100755 index 0000000..e633360 Binary files /dev/null and b/web/angular/src/assets/img/flags/St Vincent & the Grenadines.png differ diff --git a/web/angular/src/assets/img/flags/Sudan.png b/web/angular/src/assets/img/flags/Sudan.png new file mode 100755 index 0000000..3a37985 Binary files /dev/null and b/web/angular/src/assets/img/flags/Sudan.png differ diff --git a/web/angular/src/assets/img/flags/Suriname.png b/web/angular/src/assets/img/flags/Suriname.png new file mode 100755 index 0000000..cb4a87a Binary files /dev/null and b/web/angular/src/assets/img/flags/Suriname.png differ diff --git a/web/angular/src/assets/img/flags/Swaziland.png b/web/angular/src/assets/img/flags/Swaziland.png new file mode 100755 index 0000000..3585ac0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Swaziland.png differ diff --git a/web/angular/src/assets/img/flags/Sweden.png b/web/angular/src/assets/img/flags/Sweden.png new file mode 100755 index 0000000..2c9bd9d Binary files /dev/null and b/web/angular/src/assets/img/flags/Sweden.png differ diff --git a/web/angular/src/assets/img/flags/Switzerland.png b/web/angular/src/assets/img/flags/Switzerland.png new file mode 100755 index 0000000..223154d Binary files /dev/null and b/web/angular/src/assets/img/flags/Switzerland.png differ diff --git a/web/angular/src/assets/img/flags/Syria.png b/web/angular/src/assets/img/flags/Syria.png new file mode 100755 index 0000000..0584c20 Binary files /dev/null and b/web/angular/src/assets/img/flags/Syria.png 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 new file mode 100755 index 0000000..cbc56d0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Tahiti(French Polinesia).png differ diff --git a/web/angular/src/assets/img/flags/Taiwan.png b/web/angular/src/assets/img/flags/Taiwan.png new file mode 100755 index 0000000..956d853 Binary files /dev/null and b/web/angular/src/assets/img/flags/Taiwan.png differ diff --git a/web/angular/src/assets/img/flags/Tajikistan.png b/web/angular/src/assets/img/flags/Tajikistan.png new file mode 100755 index 0000000..09a7907 Binary files /dev/null and b/web/angular/src/assets/img/flags/Tajikistan.png differ diff --git a/web/angular/src/assets/img/flags/Tanzania.png b/web/angular/src/assets/img/flags/Tanzania.png new file mode 100755 index 0000000..f0e1f39 Binary files /dev/null and b/web/angular/src/assets/img/flags/Tanzania.png differ diff --git a/web/angular/src/assets/img/flags/Thailand.png b/web/angular/src/assets/img/flags/Thailand.png new file mode 100755 index 0000000..8f3b5e7 Binary files /dev/null and b/web/angular/src/assets/img/flags/Thailand.png differ diff --git a/web/angular/src/assets/img/flags/Timor-Leste.png b/web/angular/src/assets/img/flags/Timor-Leste.png new file mode 100755 index 0000000..296fba0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Timor-Leste.png differ diff --git a/web/angular/src/assets/img/flags/Togo.png b/web/angular/src/assets/img/flags/Togo.png new file mode 100755 index 0000000..5a100b1 Binary files /dev/null and b/web/angular/src/assets/img/flags/Togo.png differ diff --git a/web/angular/src/assets/img/flags/Tonga.png b/web/angular/src/assets/img/flags/Tonga.png new file mode 100755 index 0000000..f62ba37 Binary files /dev/null and b/web/angular/src/assets/img/flags/Tonga.png differ diff --git a/web/angular/src/assets/img/flags/Trinidad & Tobago.png b/web/angular/src/assets/img/flags/Trinidad & Tobago.png new file mode 100755 index 0000000..cf85660 Binary files /dev/null and b/web/angular/src/assets/img/flags/Trinidad & Tobago.png differ diff --git a/web/angular/src/assets/img/flags/Tunisia.png b/web/angular/src/assets/img/flags/Tunisia.png new file mode 100755 index 0000000..d867a5e Binary files /dev/null and b/web/angular/src/assets/img/flags/Tunisia.png differ diff --git a/web/angular/src/assets/img/flags/Turkey.png b/web/angular/src/assets/img/flags/Turkey.png new file mode 100755 index 0000000..0398e54 Binary files /dev/null and b/web/angular/src/assets/img/flags/Turkey.png differ diff --git a/web/angular/src/assets/img/flags/Turkmenistan.png b/web/angular/src/assets/img/flags/Turkmenistan.png new file mode 100755 index 0000000..e3c50ed Binary files /dev/null and b/web/angular/src/assets/img/flags/Turkmenistan.png 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 new file mode 100755 index 0000000..fc66ef0 Binary files /dev/null and b/web/angular/src/assets/img/flags/Turks and Caicos Islands.png differ diff --git a/web/angular/src/assets/img/flags/Tuvalu.png b/web/angular/src/assets/img/flags/Tuvalu.png new file mode 100755 index 0000000..3a403a6 Binary files /dev/null and b/web/angular/src/assets/img/flags/Tuvalu.png differ diff --git a/web/angular/src/assets/img/flags/USA.png b/web/angular/src/assets/img/flags/USA.png new file mode 100755 index 0000000..48c448f Binary files /dev/null and b/web/angular/src/assets/img/flags/USA.png differ diff --git a/web/angular/src/assets/img/flags/Uganda.png b/web/angular/src/assets/img/flags/Uganda.png new file mode 100755 index 0000000..744d39d Binary files /dev/null and b/web/angular/src/assets/img/flags/Uganda.png differ diff --git a/web/angular/src/assets/img/flags/Ukraine.png b/web/angular/src/assets/img/flags/Ukraine.png new file mode 100755 index 0000000..78e4945 Binary files /dev/null and b/web/angular/src/assets/img/flags/Ukraine.png 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 new file mode 100755 index 0000000..1161375 Binary files /dev/null and b/web/angular/src/assets/img/flags/United Arab Emirates.png differ diff --git a/web/angular/src/assets/img/flags/United Nations.png b/web/angular/src/assets/img/flags/United Nations.png new file mode 100755 index 0000000..6b5f639 Binary files /dev/null and b/web/angular/src/assets/img/flags/United Nations.png differ diff --git a/web/angular/src/assets/img/flags/United-Kingdom.png b/web/angular/src/assets/img/flags/United-Kingdom.png new file mode 100755 index 0000000..3853f5e Binary files /dev/null and b/web/angular/src/assets/img/flags/United-Kingdom.png differ diff --git a/web/angular/src/assets/img/flags/Uruguay.png b/web/angular/src/assets/img/flags/Uruguay.png new file mode 100755 index 0000000..0eddedc Binary files /dev/null and b/web/angular/src/assets/img/flags/Uruguay.png differ diff --git a/web/angular/src/assets/img/flags/Uzbekistan.png b/web/angular/src/assets/img/flags/Uzbekistan.png new file mode 100755 index 0000000..97ade3f Binary files /dev/null and b/web/angular/src/assets/img/flags/Uzbekistan.png differ diff --git a/web/angular/src/assets/img/flags/Vanutau.png b/web/angular/src/assets/img/flags/Vanutau.png new file mode 100755 index 0000000..ff6cbef Binary files /dev/null and b/web/angular/src/assets/img/flags/Vanutau.png differ diff --git a/web/angular/src/assets/img/flags/Vatican City.png b/web/angular/src/assets/img/flags/Vatican City.png new file mode 100755 index 0000000..c344e8b Binary files /dev/null and b/web/angular/src/assets/img/flags/Vatican City.png differ diff --git a/web/angular/src/assets/img/flags/Venezuela.png b/web/angular/src/assets/img/flags/Venezuela.png new file mode 100755 index 0000000..8ba69c4 Binary files /dev/null and b/web/angular/src/assets/img/flags/Venezuela.png differ diff --git a/web/angular/src/assets/img/flags/Viet Nam.png b/web/angular/src/assets/img/flags/Viet Nam.png new file mode 100755 index 0000000..c9368df Binary files /dev/null and b/web/angular/src/assets/img/flags/Viet Nam.png 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 new file mode 100755 index 0000000..eb22e44 Binary files /dev/null and b/web/angular/src/assets/img/flags/Virgin Islands British.png 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 new file mode 100755 index 0000000..13be807 Binary files /dev/null and b/web/angular/src/assets/img/flags/Virgin Islands US.png differ diff --git a/web/angular/src/assets/img/flags/Wales.png b/web/angular/src/assets/img/flags/Wales.png new file mode 100755 index 0000000..3c49345 Binary files /dev/null and b/web/angular/src/assets/img/flags/Wales.png differ diff --git a/web/angular/src/assets/img/flags/Western Sahara.png b/web/angular/src/assets/img/flags/Western Sahara.png new file mode 100755 index 0000000..5eb501c Binary files /dev/null and b/web/angular/src/assets/img/flags/Western Sahara.png differ diff --git a/web/angular/src/assets/img/flags/Yemen.png b/web/angular/src/assets/img/flags/Yemen.png new file mode 100755 index 0000000..987a212 Binary files /dev/null and b/web/angular/src/assets/img/flags/Yemen.png differ diff --git a/web/angular/src/assets/img/flags/Zambia.png b/web/angular/src/assets/img/flags/Zambia.png new file mode 100755 index 0000000..639c3ac Binary files /dev/null and b/web/angular/src/assets/img/flags/Zambia.png differ diff --git a/web/angular/src/assets/img/flags/Zimbabwe.png b/web/angular/src/assets/img/flags/Zimbabwe.png new file mode 100755 index 0000000..39106df Binary files /dev/null and b/web/angular/src/assets/img/flags/Zimbabwe.png differ diff --git a/web/angular/src/assets/img/logo-symbol.png b/web/angular/src/assets/img/logo-symbol.png new file mode 100755 index 0000000..7f62aff Binary files /dev/null and b/web/angular/src/assets/img/logo-symbol.png differ diff --git a/web/angular/src/assets/img/logo.png b/web/angular/src/assets/img/logo.png new file mode 100755 index 0000000..98a1946 Binary files /dev/null and b/web/angular/src/assets/img/logo.png differ diff --git a/web/angular/src/environments/environment.prod.ts b/web/angular/src/environments/environment.prod.ts old mode 100644 new mode 100755 diff --git a/web/angular/src/environments/environment.ts b/web/angular/src/environments/environment.ts old mode 100644 new mode 100755 index b7f639a..00313f1 --- 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/img/favicon.png b/web/angular/src/img/favicon.png new file mode 100755 index 0000000..7f62aff Binary files /dev/null and b/web/angular/src/img/favicon.png differ diff --git a/web/angular/src/img/logo-symbol.png b/web/angular/src/img/logo-symbol.png new file mode 100755 index 0000000..7f62aff Binary files /dev/null and b/web/angular/src/img/logo-symbol.png differ diff --git a/web/angular/src/img/logo.png b/web/angular/src/img/logo.png new file mode 100755 index 0000000..98a1946 Binary files /dev/null and b/web/angular/src/img/logo.png differ diff --git a/web/angular/src/index.html b/web/angular/src/index.html old mode 100644 new mode 100755 index 9a40509..e1f153b --- a/web/angular/src/index.html +++ b/web/angular/src/index.html @@ -1,15 +1,46 @@ - + - - Maptology - - - - + + + + CoreUI - Open Source Bootstrap Admin Template - - + + + + + + + + + diff --git a/web/angular/src/scss/_bootstrap-variables.scss b/web/angular/src/scss/_bootstrap-variables.scss new file mode 100755 index 0000000..9a9c272 --- /dev/null +++ b/web/angular/src/scss/_bootstrap-variables.scss @@ -0,0 +1,109 @@ +// 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; + +$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: $blue, + secondary: $gray-300, + success: $green, + info: $cyan, + warning: $yellow, + 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 new file mode 100755 index 0000000..906e13a --- /dev/null +++ b/web/angular/src/scss/_core-variables.scss @@ -0,0 +1 @@ +// core overrides diff --git a/web/angular/src/scss/_custom.scss b/web/angular/src/scss/_custom.scss new file mode 100755 index 0000000..15d367a --- /dev/null +++ b/web/angular/src/scss/_custom.scss @@ -0,0 +1 @@ +// Here you can add other styles diff --git a/web/angular/src/scss/core/_animate.scss b/web/angular/src/scss/core/_animate.scss new file mode 100755 index 0000000..c0a244b --- /dev/null +++ b/web/angular/src/scss/core/_animate.scss @@ -0,0 +1,27 @@ +// 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 new file mode 100755 index 0000000..fc71e42 --- /dev/null +++ b/web/angular/src/scss/core/_aside.scss @@ -0,0 +1,64 @@ +.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 new file mode 100755 index 0000000..623016e --- /dev/null +++ b/web/angular/src/scss/core/_avatars.scss @@ -0,0 +1,51 @@ +.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 new file mode 100755 index 0000000..3104885 --- /dev/null +++ b/web/angular/src/scss/core/_badge.scss @@ -0,0 +1,3 @@ +.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 new file mode 100755 index 0000000..dbbe07e --- /dev/null +++ b/web/angular/src/scss/core/_breadcrumb-menu.scss @@ -0,0 +1,35 @@ +.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 new file mode 100755 index 0000000..d8a003d --- /dev/null +++ b/web/angular/src/scss/core/_breadcrumb.scss @@ -0,0 +1,4 @@ +.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 new file mode 100755 index 0000000..7ab4953 --- /dev/null +++ b/web/angular/src/scss/core/_buttons.scss @@ -0,0 +1,575 @@ +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 new file mode 100755 index 0000000..b98ebac --- /dev/null +++ b/web/angular/src/scss/core/_callout.scss @@ -0,0 +1,55 @@ +.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 new file mode 100755 index 0000000..20e57a8 --- /dev/null +++ b/web/angular/src/scss/core/_card.scss @@ -0,0 +1,193 @@ +.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 new file mode 100755 index 0000000..0e7a3c2 --- /dev/null +++ b/web/angular/src/scss/core/_charts.scss @@ -0,0 +1,9 @@ +.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 new file mode 100755 index 0000000..4f19546 --- /dev/null +++ b/web/angular/src/scss/core/_dropdown-menu-right.scss @@ -0,0 +1,8 @@ +// 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 new file mode 100755 index 0000000..564e4df --- /dev/null +++ b/web/angular/src/scss/core/_dropdown.scss @@ -0,0 +1,69 @@ +// 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 new file mode 100755 index 0000000..e01595a --- /dev/null +++ b/web/angular/src/scss/core/_footer.scss @@ -0,0 +1,9 @@ +.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 new file mode 100755 index 0000000..0d0963c --- /dev/null +++ b/web/angular/src/scss/core/_grid.scss @@ -0,0 +1,15 @@ +.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 new file mode 100755 index 0000000..23b2512 --- /dev/null +++ b/web/angular/src/scss/core/_input-group.scss @@ -0,0 +1,6 @@ +.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 new file mode 100755 index 0000000..8a05003 --- /dev/null +++ b/web/angular/src/scss/core/_layout.scss @@ -0,0 +1,384 @@ +// 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 new file mode 100755 index 0000000..3e409fb --- /dev/null +++ b/web/angular/src/scss/core/_loading.scss @@ -0,0 +1,128 @@ +// 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 new file mode 100755 index 0000000..153f1d3 --- /dev/null +++ b/web/angular/src/scss/core/_mixins.scss @@ -0,0 +1,116 @@ +@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/app/notices/notices.component.scss b/web/angular/src/scss/core/_mobile.scss old mode 100644 new mode 100755 similarity index 100% rename from web/angular/src/app/notices/notices.component.scss rename to web/angular/src/scss/core/_mobile.scss diff --git a/web/angular/src/scss/core/_modal.scss b/web/angular/src/scss/core/_modal.scss new file mode 100755 index 0000000..1c44ddd --- /dev/null +++ b/web/angular/src/scss/core/_modal.scss @@ -0,0 +1,13 @@ +@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 new file mode 100755 index 0000000..ba1d64b --- /dev/null +++ b/web/angular/src/scss/core/_nav.scss @@ -0,0 +1,32 @@ +.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 new file mode 100755 index 0000000..221ab12 --- /dev/null +++ b/web/angular/src/scss/core/_navbar.scss @@ -0,0 +1,127 @@ +.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 new file mode 100755 index 0000000..381baab --- /dev/null +++ b/web/angular/src/scss/core/_others.scss @@ -0,0 +1,4 @@ +// 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 new file mode 100755 index 0000000..65f56dd --- /dev/null +++ b/web/angular/src/scss/core/_progress.scss @@ -0,0 +1,15 @@ +.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 new file mode 100755 index 0000000..28db385 --- /dev/null +++ b/web/angular/src/scss/core/_rtl.scss @@ -0,0 +1,281 @@ +// +// 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 new file mode 100755 index 0000000..b77cd5f --- /dev/null +++ b/web/angular/src/scss/core/_sidebar.scss @@ -0,0 +1,454 @@ +// 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.