wip
This commit is contained in:
parent
50663a561a
commit
eebc3fdae2
17 changed files with 153 additions and 1 deletions
0
client/admin/src/app/alerts/alerts.component.css
Normal file
0
client/admin/src/app/alerts/alerts.component.css
Normal file
1
client/admin/src/app/alerts/alerts.component.html
Normal file
1
client/admin/src/app/alerts/alerts.component.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>alerts works!</p>
|
23
client/admin/src/app/alerts/alerts.component.spec.ts
Normal file
23
client/admin/src/app/alerts/alerts.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { AlertsComponent } from './alerts.component';
|
||||||
|
|
||||||
|
describe('AlertsComponent', () => {
|
||||||
|
let component: AlertsComponent;
|
||||||
|
let fixture: ComponentFixture<AlertsComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [AlertsComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(AlertsComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
12
client/admin/src/app/alerts/alerts.component.ts
Normal file
12
client/admin/src/app/alerts/alerts.component.ts
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-alerts',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './alerts.component.html',
|
||||||
|
styleUrl: './alerts.component.css'
|
||||||
|
})
|
||||||
|
export class AlertsComponent {
|
||||||
|
|
||||||
|
}
|
|
@ -2,10 +2,18 @@ import { Routes } from '@angular/router';
|
||||||
|
|
||||||
import { HomeComponent } from './home/home.component';
|
import { HomeComponent } from './home/home.component';
|
||||||
import { LoginComponent } from './login/login.component';
|
import { LoginComponent } from './login/login.component';
|
||||||
|
import { TalkgroupsComponent } from './talkgroups/talkgroups.component';
|
||||||
|
import { CallsComponent } from './calls/calls.component';
|
||||||
|
import { IncidentsComponent } from './incidents/incidents.component';
|
||||||
|
import { AlertsComponent } from './alerts/alerts.component';
|
||||||
import { AuthGuard } from './auth.guard';
|
import { AuthGuard } from './auth.guard';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{ path: '', redirectTo: 'home', pathMatch: 'full' },
|
{ path: '', redirectTo: 'login', pathMatch: 'full' },
|
||||||
{ path: 'home', component: HomeComponent, canActivate: [AuthGuard] },
|
{ path: 'home', component: HomeComponent, canActivate: [AuthGuard] },
|
||||||
{ path: 'login', component: LoginComponent },
|
{ path: 'login', component: LoginComponent },
|
||||||
|
{ path: 'talkgroups', component: TalkgroupsComponent },
|
||||||
|
{ path: 'calls', component: CallsComponent },
|
||||||
|
{ path: 'incidents', component: IncidentsComponent },
|
||||||
|
{ path: 'alerts', component: AlertsComponent },
|
||||||
];
|
];
|
||||||
|
|
0
client/admin/src/app/calls/calls.component.css
Normal file
0
client/admin/src/app/calls/calls.component.css
Normal file
1
client/admin/src/app/calls/calls.component.html
Normal file
1
client/admin/src/app/calls/calls.component.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>calls works!</p>
|
23
client/admin/src/app/calls/calls.component.spec.ts
Normal file
23
client/admin/src/app/calls/calls.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { CallsComponent } from './calls.component';
|
||||||
|
|
||||||
|
describe('CallsComponent', () => {
|
||||||
|
let component: CallsComponent;
|
||||||
|
let fixture: ComponentFixture<CallsComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [CallsComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(CallsComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
12
client/admin/src/app/calls/calls.component.ts
Normal file
12
client/admin/src/app/calls/calls.component.ts
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-calls',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './calls.component.html',
|
||||||
|
styleUrl: './calls.component.css'
|
||||||
|
})
|
||||||
|
export class CallsComponent {
|
||||||
|
|
||||||
|
}
|
0
client/admin/src/app/incidents/incidents.component.css
Normal file
0
client/admin/src/app/incidents/incidents.component.css
Normal file
1
client/admin/src/app/incidents/incidents.component.html
Normal file
1
client/admin/src/app/incidents/incidents.component.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>incidents works!</p>
|
23
client/admin/src/app/incidents/incidents.component.spec.ts
Normal file
23
client/admin/src/app/incidents/incidents.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { IncidentsComponent } from './incidents.component';
|
||||||
|
|
||||||
|
describe('IncidentsComponent', () => {
|
||||||
|
let component: IncidentsComponent;
|
||||||
|
let fixture: ComponentFixture<IncidentsComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [IncidentsComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(IncidentsComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
12
client/admin/src/app/incidents/incidents.component.ts
Normal file
12
client/admin/src/app/incidents/incidents.component.ts
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-incidents',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './incidents.component.html',
|
||||||
|
styleUrl: './incidents.component.css'
|
||||||
|
})
|
||||||
|
export class IncidentsComponent {
|
||||||
|
|
||||||
|
}
|
0
client/admin/src/app/talkgroups/talkgroups.component.css
Normal file
0
client/admin/src/app/talkgroups/talkgroups.component.css
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>talkgroups works!</p>
|
23
client/admin/src/app/talkgroups/talkgroups.component.spec.ts
Normal file
23
client/admin/src/app/talkgroups/talkgroups.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { TalkgroupsComponent } from './talkgroups.component';
|
||||||
|
|
||||||
|
describe('TalkgroupsComponent', () => {
|
||||||
|
let component: TalkgroupsComponent;
|
||||||
|
let fixture: ComponentFixture<TalkgroupsComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [TalkgroupsComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(TalkgroupsComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
12
client/admin/src/app/talkgroups/talkgroups.component.ts
Normal file
12
client/admin/src/app/talkgroups/talkgroups.component.ts
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-talkgroups',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './talkgroups.component.html',
|
||||||
|
styleUrl: './talkgroups.component.css'
|
||||||
|
})
|
||||||
|
export class TalkgroupsComponent {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue