Client Delivery Page added and routed
This commit is contained in:
@@ -6,6 +6,7 @@ import { ToolListComponent } from './components/pages/tool-list/tool-list.compon
|
|||||||
import { LoginComponent } from './components/pages/login/login.component';
|
import { LoginComponent } from './components/pages/login/login.component';
|
||||||
import { BitComponent } from './components/pages/bit/bit.component';
|
import { BitComponent } from './components/pages/bit/bit.component';
|
||||||
import { DashboardComponent } from './components/pages/dashboard/dashboard.component';
|
import { DashboardComponent } from './components/pages/dashboard/dashboard.component';
|
||||||
|
import { ClientServiceComponent } from './components/pages/client-service/client-service.component';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{path: "", component: DashboardComponent},
|
{path: "", component: DashboardComponent},
|
||||||
@@ -14,5 +15,6 @@ export const routes: Routes = [
|
|||||||
{path: "creds", component: ToolListComponent },
|
{path: "creds", component: ToolListComponent },
|
||||||
{path: "login", component: LoginComponent },
|
{path: "login", component: LoginComponent },
|
||||||
{path: 'bits', component: BitComponent},
|
{path: 'bits', component: BitComponent},
|
||||||
|
{path: "delivery", component: ClientServiceComponent},
|
||||||
{path: "**", component: NoMansLandComponent},
|
{path: "**", component: NoMansLandComponent},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<p>client-service works!</p>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { ClientServiceComponent } from './client-service.component';
|
||||||
|
|
||||||
|
describe('ClientServiceComponent', () => {
|
||||||
|
let component: ClientServiceComponent;
|
||||||
|
let fixture: ComponentFixture<ClientServiceComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [ClientServiceComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(ClientServiceComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-client-service',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './client-service.component.html',
|
||||||
|
styleUrl: './client-service.component.scss'
|
||||||
|
})
|
||||||
|
export class ClientServiceComponent {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -90,6 +90,18 @@ export const service_links: navLink[] =[
|
|||||||
{
|
{
|
||||||
"name" : "Shodan Engine",
|
"name" : "Shodan Engine",
|
||||||
"url" : "https://www.shodan.io"
|
"url" : "https://www.shodan.io"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name" : "HE Internet Services",
|
||||||
|
"url" : "https://bgp.he.net"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
export const shift_update = [
|
||||||
|
{
|
||||||
|
"name" : "Client Delivery",
|
||||||
|
"url" : "localhost:4200/delivery"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="delivery">
|
||||||
|
<div class="dropdown">
|
||||||
|
<button class="dropbtn">Tools</button>
|
||||||
|
<div class="dropdown-content">
|
||||||
|
<ng-container *ngFor="let link of deliveryStatus_links">
|
||||||
|
<a href={{link.url}} target="_blank">{{ link.name }}</a>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -14,10 +14,12 @@ export class DashboardComponent implements OnInit {
|
|||||||
service_link!: navLink[];
|
service_link!: navLink[];
|
||||||
monitoring_links!: navLink[];
|
monitoring_links!: navLink[];
|
||||||
tools_links!: navLink[];
|
tools_links!: navLink[];
|
||||||
|
deliveryStatus_links!: navLink[];
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.service_link = service_links;
|
this.service_link = service_links;
|
||||||
this.monitoring_links = monitoring_tools_links;
|
this.monitoring_links = monitoring_tools_links;
|
||||||
this.tools_links = tools_links;
|
this.tools_links = tools_links;
|
||||||
|
this.deliveryStatus_links = service_links;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user