Skip to content

Commit 569e34d

Browse files
author
Allan Asp Christensen
committed
ændre til lora-gateway
1 parent 3398410 commit 569e34d

File tree

14 files changed

+115
-115
lines changed

14 files changed

+115
-115
lines changed

src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
3-
import { MineLoraGatewaysComponent } from './views/administration-gateway/mine-lora-gateways/mine-lora-gateways.component';
3+
import { MineLoraGatewaysComponent } from './views/administration-gateway/lora-gateways/lora-gateways.component';
44
import { ListLoraGatewayComponent } from './views/administration-gateway/list-lora-gateway/list-lora-gateway.component';
55
import { EditGatewayComponent } from './views/administration-gateway/edit-gateway/edit-gateway.component';
66
import { GatewayComponent } from './views/administration-gateway/gateway/gateway.component';
@@ -14,7 +14,7 @@ const routes: Routes = [
1414
{ path: 'dashboard', component: DashboardComponent },
1515
{ path: 'my-applications', loadChildren: () => import('./my-applications/my-applications.module').then(m => m.MyApplicationsModule) },
1616
{
17-
path: 'mine-lora-gateways', component: MineLoraGatewaysComponent,
17+
path: 'lora-gateways', component: MineLoraGatewaysComponent,
1818
children: [
1919
{ path: '', component: ListLoraGatewayComponent },
2020
{ path: 'edit-gateway/:id', component: EditGatewayComponent },

src/app/auth/auth.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
<div *ngIf="isLoading">
1111
<app-loading-spinner></app-loading-spinner>
1212
</div>
13-
<form class="p-5 jumbotron" style="" #authForm="ngForm" (ngSubmit)="onSubmit(authForm)" *ngIf="!isLoading">
14-
<div class="form-group col-6">
13+
<form class="p-5 jumbotron" #authForm="ngForm" (ngSubmit)="onSubmit(authForm)" *ngIf="!isLoading">
14+
<div class="form-group col-8">
1515
<label for="email">{{'AUTH.EMAIL' | translate}}</label>
1616
<input type="username" id="username" class="form-control" ngModel name="username" required email
1717
[ngClass]="{'is-invalid' : formFailedSubmit && errorFields.includes('username'), 'is-valid' : formFailedSubmit && !errorFields.includes('username')}">
1818
</div>
19-
<div class="form-group col-6">
19+
<div class="form-group col-8">
2020
<label for="password">{{'AUTH.PASSWORD' | translate}}</label>
2121
<input type="password" id="password" class="form-control" ngModel name="password" required minlength="6"
2222
[ngClass]="{'is-invalid' : formFailedSubmit && errorFields.includes('password'), 'is-valid' : formFailedSubmit && !errorFields.includes('password')}">

src/app/navbar/navbar.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
<li class="nav-item py-2">
3838
<a routerLink="/my-applications" routerLinkActive="active" class="nav-link pl-5 position-relative rounded"
3939
id="myApplications">
40-
{{ 'NAV.MY-APPLICATIONS' | translate }}
40+
{{ 'NAV.APPLICATIONS' | translate }}
4141
</a>
4242
</li>
4343
<li class="nav-item py-2">
44-
<a routerLink="/mine-lora-gateways" routerLinkActive="active"
45-
class="nav-link pl-5 position-relative rounded" id="myLoraGateway">
46-
{{ 'NAV.MY-LORA-GATEWAYS' | translate }}
44+
<a routerLink="/lora-gateways" routerLinkActive="active" class="nav-link pl-5 position-relative rounded"
45+
id="myLoraGateway">
46+
{{ 'NAV.LORA-GATEWAYS' | translate }}
4747
</a>
4848
</li>
4949
<li class="nav-item py-2">

src/app/shared/form/form-body-lora-gateway/form-body-lora-gateway.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class FormBodyLoraGatewayComponent implements OnInit {
8585
}
8686

8787
routeBack(): void {
88-
this.router.navigateByUrl('/mine-lora-gateways');
88+
this.router.navigateByUrl('/lora-gateways');
8989
}
9090

9191
ngOnDestroy() {
@@ -98,7 +98,7 @@ export class FormBodyLoraGatewayComponent implements OnInit {
9898
console.log(event.target.value);
9999
console.log(event.target.maxLength);
100100
if (event.target.value.length > event.target.maxLength) {
101-
event.target.value = event.target.value.slice( 0, event.target.maxLength);
101+
event.target.value = event.target.value.slice(0, event.target.maxLength);
102102
}
103103
}
104104

src/app/views/administration-gateway/administration-gateway.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
3-
import { MineLoraGatewaysComponent } from './mine-lora-gateways/mine-lora-gateways.component';
3+
import { MineLoraGatewaysComponent } from './lora-gateways/lora-gateways.component';
44
import { RouterModule } from '@angular/router';
55
import { ListLoraGatewayComponent } from './list-lora-gateway/list-lora-gateway.component';
66
import { TopBarModule } from 'src/app/shared/top-bar/top-bar.module';
@@ -12,10 +12,10 @@ import { EditGatewayComponent } from './edit-gateway/edit-gateway.component';
1212
import { GatewayComponent } from './gateway/gateway.component';
1313
@NgModule({
1414
declarations: [
15-
MineLoraGatewaysComponent,
16-
ListLoraGatewayComponent,
17-
AdminLoraTableComponent,
18-
AdminLoraTableRowComponent,
15+
MineLoraGatewaysComponent,
16+
ListLoraGatewayComponent,
17+
AdminLoraTableComponent,
18+
AdminLoraTableRowComponent,
1919
EditGatewayComponent, GatewayComponent
2020
],
2121
imports: [

src/app/views/administration-gateway/create-lora-gateway/create-lora-gateway.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ import { BackButton } from 'src/app/models/back-button';
99
})
1010
export class CreateLoraGatewayComponent implements OnInit {
1111

12-
public backButton: BackButton = {label: '', routerLink: '/mine-lora-gateways'};
12+
public backButton: BackButton = { label: '', routerLink: '/lora-gateways' };
1313
public multiPage: boolean = false;
1414
public title: string = '';
1515
public sectionTitle: string = '';
1616
public submitButton: string = '';
1717

1818
constructor(public translate: TranslateService) {
1919
translate.use('da');
20-
}
20+
}
2121

2222
ngOnInit(): void {
2323
this.translate.get(['NAV.MY-LORA-GATEWAYS', 'FORM.CREATE-NEW-LORA-GATEWAY', 'LORA-GATEWAY.CREATE'])
24-
.subscribe( translations => {
25-
this.backButton.label = translations['NAV.MY-LORA-GATEWAYS']
26-
this.title = translations['FORM.CREATE-NEW-LORA-GATEWAY']
27-
this.submitButton = translations['LORA-GATEWAY.CREATE']
28-
});
24+
.subscribe(translations => {
25+
this.backButton.label = translations['NAV.MY-LORA-GATEWAYS']
26+
this.title = translations['FORM.CREATE-NEW-LORA-GATEWAY']
27+
this.submitButton = translations['LORA-GATEWAY.CREATE']
28+
});
2929
}
3030

3131
}

src/app/views/administration-gateway/edit-gateway/edit-gateway.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ import { BackButton } from 'src/app/models/back-button';
99
})
1010
export class EditGatewayComponent implements OnInit {
1111

12-
public backButton: BackButton = {label: '', routerLink: '/mine-lora-gateways'};
12+
public backButton: BackButton = { label: '', routerLink: '/lora-gateways' };
1313
public multiPage = false;
1414
public title = '';
1515
public sectionTitle = '';
1616
public submitButton = '';
1717

1818
constructor(
1919
public translate: TranslateService
20-
) {
20+
) {
2121
translate.use('da');
2222
}
2323

2424
ngOnInit(): void {
2525
this.translate.get(['NAV.MY-LORA-GATEWAYS', 'FORM.EDIT-NEW-GATEWAY', 'GATEWAY.SAVE'])
26-
.subscribe(translations => {
27-
this.backButton.label = translations['NAV.MY-LORA-GATEWAYS'];
28-
this.title = translations['FORM.EDIT-NEW-GATEWAY'];
29-
this.submitButton = translations['GATEWAY.SAVE'];
30-
});
26+
.subscribe(translations => {
27+
this.backButton.label = translations['NAV.MY-LORA-GATEWAYS'];
28+
this.title = translations['FORM.EDIT-NEW-GATEWAY'];
29+
this.submitButton = translations['GATEWAY.SAVE'];
30+
});
3131
}
3232

3333
}

src/app/views/administration-gateway/gateway/gateway.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class GatewayComponent implements OnInit {
1717

1818
public gatewaySubscription: Subscription;
1919
public gateway: Gateway;
20-
public backButton: BackButton = { label: '', routerLink: '/mine-lora-gateways' };
20+
public backButton: BackButton = { label: '', routerLink: '/lora-gateways' };
2121
private id: string;
2222
public pageLimit: number = 10;
2323
public pageOffset: number = 0;

src/app/views/administration-gateway/mine-lora-gateways/mine-lora-gateways.component.html renamed to src/app/views/administration-gateway/lora-gateways/lora-gateways.component.html

File renamed without changes.

src/app/views/administration-gateway/mine-lora-gateways/mine-lora-gateways.component.scss renamed to src/app/views/administration-gateway/lora-gateways/lora-gateways.component.scss

File renamed without changes.

0 commit comments

Comments
 (0)