+
\ No newline at end of file
diff --git a/src/app/dashboard/dashboard.component.scss b/src/app/dashboard/dashboard.component.scss
index 0aa62efd..c39c88a0 100644
--- a/src/app/dashboard/dashboard.component.scss
+++ b/src/app/dashboard/dashboard.component.scss
@@ -5,17 +5,22 @@
.heading-primary {
padding: 1rem;
color: $color-white-001;
- text-transform: uppercase;
backface-visibility: hidden;
- margin-bottom: 6rem;
&--main {
font-weight: 400;
animation-name: slideInLeft;
animation-duration: 1s;
animation-timing-function: ease-out;
- margin-bottom: 2rem;
-
+ text-align: center;
+ h1 {
+ font-size: 3rem;
+ color: $color-white-001;
+ margin-bottom: 0 !important;
+ }
+ h2 {
+ color: $color-white-001;
+ }
}
&--sub {
@@ -25,44 +30,64 @@
animation: slideInRight 1s ease-out;
white-space: pre-wrap;
line-height: 1.7rem;
+ p {
+ strong {
+ color: $color-white-001;
+ text-transform: uppercase;
+ }
+ color: $color-white-001;
+ margin-bottom: 0 !important;
+ margin-top: 0 !important;
+ &:nth-child(odd) {
+ margin-top: 1.5rem !important;
+ //margin-bottom: 0 !important;
+ }
+ a {
+ color: $color-white-001;
+ border-bottom: 1px $color-white-001 solid;
+ &:hover,
+ :visited {
+ color: darken($color-primary, 10%);
+ border-bottom: 1px darken($color-primary, 10%) solid;
+ }
+ }
+ }
- ul{
+ ul {
display: block;
list-style-type: disc;
- margin-block-start: 1em;
+ margin-block-start: 0;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 40px;
- li{
+ li {
display: list-item;
list-style: disc;
+ font-weight: normal;
}
}
}
}
- height: 85vh;
- background-image: linear-gradient(
- to right bottom,
- rgba($color-primary, 0.8),
- rgba($color-orange-004, 0.8)
- ),
- url(../../assets/images/hero.jpg);
+ background-color: $color-green-001;
background-size: cover;
background-position: top;
position: relative;
@supports (clip-path: polygon(0 0)) or (-webkit-clip-path: polygon(0 0)) {
- -webkit-clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
- clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
- height: 90vh;
+ -webkit-clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
+ clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
+ height: 120%;
}
&__logo-box {
position: absolute;
- bottom: 5vh;
- right: 5rem;
+ bottom: 1vh;
+ right: 4rem;
+ @include media-breakpoint-up(md) {
+ bottom: 5vh;
+ }
}
&__logo {
diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts
index 6c7d2301..1c6916ae 100644
--- a/src/app/dashboard/dashboard.component.ts
+++ b/src/app/dashboard/dashboard.component.ts
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { Title } from '@angular/platform-browser';
import { ActivatedRoute, Router } from '@angular/router';
import { UserMinimalService } from '@app/admin/users/user-minimal.service';
import { AuthService } from '@auth/auth.service';
@@ -16,6 +17,7 @@ export class DashboardComponent implements OnInit {
noAccess: string;
isLoadingResults = true;
hasSomePermission: boolean;
+ isGlobalAdmin = false;
constructor(
private route: ActivatedRoute,
@@ -23,15 +25,20 @@ export class DashboardComponent implements OnInit {
private router: Router,
private sharedVariableService: SharedVariableService,
private translate: TranslateService,
+ private titleService: Title,
private userMinimalService: UserMinimalService,
) {
this.route.queryParams.subscribe(async (params) => {
this.translate.use('da');
- await this.translate.get(['DASHBOARD.NO-JOB-ACCESS', 'DASHBOARD.KOMBIT-LOGIN-ERROR','DASHBOARD.USER-INACTIVE']).toPromise().then(translations => {
- this.unauthorizedMessage = translations['DASHBOARD.NO-JOB-ACCESS'];
- this.kombitError = translations['DASHBOARD.KOMBIT-LOGIN-ERROR'];
- this.noAccess = translations['DASHBOARD.USER-INACTIVE'];
- });
+ await this.translate.get(['DASHBOARD.NO-JOB-ACCESS','TITLE.FRONTPAGE', 'DASHBOARD.KOMBIT-LOGIN-ERROR','DASHBOARD.USER-INACTIVE'])
+ .toPromise()
+ .then(translations => {
+ this.unauthorizedMessage = translations['DASHBOARD.NO-JOB-ACCESS'];
+ this.kombitError = translations['DASHBOARD.KOMBIT-LOGIN-ERROR'];
+ this.noAccess = translations['DASHBOARD.USER-INACTIVE'];
+ this.titleService.setTitle(translations['TITLE.FRONTPAGE']);
+ }
+ );
// this is used when a user is returned from Kombit login
const jwt = params['jwt'];
if (jwt) {
@@ -54,6 +61,7 @@ export class DashboardComponent implements OnInit {
await this.sharedVariableService.setOrganizationInfo();
this.userMinimalService.setUserMinimalList()
this.hasSomePermission = this.sharedVariableService.getHasAnyPermission();
+ this.isGlobalAdmin = this.sharedVariableService.isGlobalAdmin();
this.isLoadingResults = false;
});
}
diff --git a/src/app/dashboard/dashboard.module.ts b/src/app/dashboard/dashboard.module.ts
index 3e9706f2..035d83f8 100644
--- a/src/app/dashboard/dashboard.module.ts
+++ b/src/app/dashboard/dashboard.module.ts
@@ -6,7 +6,13 @@ import { RouterModule } from '@angular/router';
@NgModule({
- declarations: [DashboardComponent],
- imports: [CommonModule, SharedModule, RouterModule],
+ declarations: [
+ DashboardComponent
+ ],
+ imports: [
+ CommonModule,
+ SharedModule,
+ RouterModule
+ ],
})
export class DashboardModule { }
diff --git a/src/app/device-model/device-model-list/device-model-list.component.ts b/src/app/device-model/device-model-list/device-model-list.component.ts
index 5b8569b3..2d2676a9 100644
--- a/src/app/device-model/device-model-list/device-model-list.component.ts
+++ b/src/app/device-model/device-model-list/device-model-list.component.ts
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { Title } from '@angular/platform-browser';
import { TranslateService } from '@ngx-translate/core';
import { SharedVariableService } from '@shared/shared-variable/shared-variable.service';
@@ -10,10 +11,17 @@ import { SharedVariableService } from '@shared/shared-variable/shared-variable.s
export class DeviceModelListComponent implements OnInit {
constructor(
- private translate: TranslateService
- ) { }
+ private translate: TranslateService,
+ private titleService: Title
+ ) {
+ translate.use('da');
+ }
ngOnInit(): void {
+ this.translate.get(['TITLE.DEVICEMODEL'])
+ .subscribe(translations => {
+ this.titleService.setTitle(translations['TITLE.DEVICEMODEL']);
+ });
}
}
diff --git a/src/app/device-model/device-model-table/device-model-table.component.html b/src/app/device-model/device-model-table/device-model-table.component.html
index f295e764..cfdf1a7e 100644
--- a/src/app/device-model/device-model-table/device-model-table.component.html
+++ b/src/app/device-model/device-model-table/device-model-table.component.html
@@ -1,8 +1,8 @@
-
-
-
+
+
+
diff --git a/src/app/gateway/gateway-detail/gateway-detail.component.html b/src/app/gateway/gateway-detail/gateway-detail.component.html
index c369ca7b..f6981726 100644
--- a/src/app/gateway/gateway-detail/gateway-detail.component.html
+++ b/src/app/gateway/gateway-detail/gateway-detail.component.html
@@ -48,6 +48,9 @@ {{ 'GATEWAY.LOCATION' | translate }}
{{ 'GATEWAY.STATS' | translate }}
+
+
+
diff --git a/src/app/gateway/gateway-detail/gateway-detail.component.ts b/src/app/gateway/gateway-detail/gateway-detail.component.ts
index 829090a5..b9e75007 100644
--- a/src/app/gateway/gateway-detail/gateway-detail.component.ts
+++ b/src/app/gateway/gateway-detail/gateway-detail.component.ts
@@ -33,6 +33,7 @@ export class GatewayDetailComponent implements OnInit, OnDestroy, AfterViewInit
deleteGateway = new EventEmitter();
private deleteDialogSubscription: Subscription;
public dropdownButton: DropdownButton;
+ isLoadingResults = true;
constructor(
private gatewayService: ChirpstackGatewayService,
@@ -81,6 +82,7 @@ export class GatewayDetailComponent implements OnInit, OnDestroy, AfterViewInit
this.resultLength = this.gatewayStats.length;
this.dataSource.paginator = this.paginator;
this.setDropdownButton();
+ this.isLoadingResults = false;
});
}
diff --git a/src/app/gateway/gateway-list/gateway-list.component.ts b/src/app/gateway/gateway-list/gateway-list.component.ts
index 17e80a2f..d022dd4f 100644
--- a/src/app/gateway/gateway-list/gateway-list.component.ts
+++ b/src/app/gateway/gateway-list/gateway-list.component.ts
@@ -10,6 +10,7 @@ import { DeleteDialogService } from '@shared/components/delete-dialog/delete-dia
import { MeService } from '@shared/services/me.service';
import { SharedVariableService } from '@shared/shared-variable/shared-variable.service';
import { environment } from '@environments/environment';
+import { Title } from '@angular/platform-browser';
@Component({
@@ -47,6 +48,7 @@ export class GatewayListComponent implements OnInit, OnChanges, OnDestroy {
private chirpstackGatewayService: ChirpstackGatewayService,
private deleteDialogService: DeleteDialogService,
private meService: MeService,
+ private titleService: Title,
private sharedVariableService: SharedVariableService) {
translate.use('da');
moment.locale('da');
@@ -55,6 +57,10 @@ export class GatewayListComponent implements OnInit, OnChanges, OnDestroy {
ngOnInit(): void {
this.getGateways();
this.organisations = this.sharedVariableService.getOrganizationInfo();
+ this.translate.get(['TITLE.LORAWAN-GATEWAY'])
+ .subscribe(translations => {
+ this.titleService.setTitle(translations['TITLE.LORAWAN-GATEWAY']);
+ });
}
ngOnChanges() {
diff --git a/src/app/gateway/gateway-table/gateway-table.component.html b/src/app/gateway/gateway-table/gateway-table.component.html
index cfdb14d7..4f6086d0 100644
--- a/src/app/gateway/gateway-table/gateway-table.component.html
+++ b/src/app/gateway/gateway-table/gateway-table.component.html
@@ -1,9 +1,12 @@
-
+
+
+
+
- |
+ |
{{ 'LORA-GATEWAY-TABLE.NAME' | translate }}
|
@@ -15,7 +18,7 @@
- | {{ 'LORA-GATEWAY-TABLE.GATEWAYID' | translate }} |
+ {{ 'LORA-GATEWAY-TABLE.GATEWAYID' | translate }} |
{{ element.id }}
|
@@ -23,7 +26,8 @@
- {{ 'LORA-GATEWAY-TABLE.ORGANIZATION' | translate }} |
+ {{ 'LORA-GATEWAY-TABLE.ORGANIZATION' | translate }}
+ |
{{ element.internalOrganizationName }}
|
@@ -33,14 +37,14 @@
{{ 'LORA-GATEWAY-TABLE.LOCATION' | translate }} |
- {{ element.location.longitude | number:'2.1-6' }},
- {{ element.location.latitude | number:'2.1-6' }}
+ {{ element.location.latitude | number:'2.1-6' }},
+ {{ element.location.longitude | number:'2.1-6' }}
|
-
+ |
{{ 'LORA-GATEWAY-TABLE.LAST-SEEN-AT' | translate }}
|
@@ -50,7 +54,7 @@
- |
+ |
{{ 'LORA-GATEWAY-TABLE.STATUS' | translate }}
|
@@ -75,8 +79,8 @@
| | | | |