This commit is contained in:
gconnectdev 2023-02-04 15:00:28 +02:00
parent 0ea69519c0
commit 61e14f6e78
16 changed files with 137 additions and 6 deletions

View file

@ -1,4 +1,5 @@
{ {
"typescript.tsdk": "./node_modules/typescript/lib", "typescript.tsdk": "./node_modules/typescript/lib",
"tslint.enable": false "tslint.enable": false,
"angular.enable-strict-mode-prompt": false
} }

View file

@ -62,7 +62,7 @@
"ng2-completer": "^9.0.1", "ng2-completer": "^9.0.1",
"ng2-smart-table": "^1.6.0", "ng2-smart-table": "^1.6.0",
"ngx-echarts": "^4.2.2", "ngx-echarts": "^4.2.2",
"node-sass": "^4.14.1", "node-sass": "^8.0.0",
"normalize.css": "6.0.0", "normalize.css": "6.0.0",
"pace-js": "1.0.2", "pace-js": "1.0.2",
"roboto-fontface": "0.8.0", "roboto-fontface": "0.8.0",

View file

@ -3,7 +3,7 @@
<a (click)="toggleSidebar()" href="#" class="sidebar-toggle"> <a (click)="toggleSidebar()" href="#" class="sidebar-toggle">
<nb-icon icon="menu-2-outline"></nb-icon> <nb-icon icon="menu-2-outline"></nb-icon>
</a> </a>
<a class="logo" href="#" (click)="navigateHome()">ngx-<span>admin</span></a> <a class="logo" href="#" (click)="navigateHome()">AB-<span>CAMS</span></a>
</div> </div>
<nb-select [selected]="currentTheme" (selectedChange)="changeTheme($event)" status="primary"> <nb-select [selected]="currentTheme" (selectedChange)="changeTheme($event)" status="primary">
<nb-option *ngFor="let theme of themes" [value]="theme.value"> {{ theme.name }}</nb-option> <nb-option *ngFor="let theme of themes" [value]="theme.value"> {{ theme.name }}</nb-option>

View file

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class HelloPeterReviewsModule { }

View file

@ -0,0 +1 @@
<p>hello-peter-reviews works!</p>

View file

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HelloPeterReviewsComponent } from './hello-peter-reviews.component';
describe('HelloPeterReviewsComponent', () => {
let component: HelloPeterReviewsComponent;
let fixture: ComponentFixture<HelloPeterReviewsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ HelloPeterReviewsComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(HelloPeterReviewsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,11 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'ngx-hello-peter-reviews',
templateUrl: './hello-peter-reviews.component.html',
styleUrls: ['./hello-peter-reviews.component.scss']
})
export class HelloPeterReviewsComponent {
}

View file

@ -0,0 +1,22 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HelloPeterReviewsComponent } from './hello-peter-reviews/hello-peter-reviews.component';
import { InsightsComponent } from './insights.component';
const routes: Routes = [{
path: '',
component: InsightsComponent,
children: [
{
path: 'hello-peter-reviews',
component: HelloPeterReviewsComponent,
}
]
}];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class InsightsRoutingModule { }

View file

@ -0,0 +1,12 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'ngx-insights',
template: `
<router-outlet></router-outlet>
`,
})
export class InsightsComponent {
}

View file

@ -0,0 +1,23 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InsightsRoutingModule } from './insights-routing.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ThemeModule } from '../../@theme/theme.module';
import { HelloPeterReviewsComponent } from './hello-peter-reviews/hello-peter-reviews.component';
@NgModule({
declarations: [
HelloPeterReviewsComponent,
],
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
ThemeModule,
InsightsRoutingModule
]
})
export class InsightsModule { }

View file

@ -13,9 +13,20 @@ export const MENU_ITEMS: NbMenuItem[] = [
link: '/pages/iot-dashboard', link: '/pages/iot-dashboard',
}, },
{ {
title: 'FEATURES', title: 'CONTINUOUS MONITORING',
group: true, group: true,
}, },
{
title: 'Insights',
icon: 'eye-outline',
children: [
{
title: 'Hello Peter Reviews',
link: '/pages/insights/hello-peter-reviews',
}
]
},
{ {
title: 'Layout', title: 'Layout',
icon: 'layout-outline', icon: 'layout-outline',

View file

@ -18,6 +18,11 @@ const routes: Routes = [{
path: 'iot-dashboard', path: 'iot-dashboard',
component: DashboardComponent, component: DashboardComponent,
}, },
{
path: 'insights',
loadChildren: () => import('./insights/insights.module')
.then(m => m.InsightsModule)
},
{ {
path: 'layout', path: 'layout',
loadChildren: () => import('./layout/layout.module') loadChildren: () => import('./layout/layout.module')
@ -28,6 +33,11 @@ const routes: Routes = [{
loadChildren: () => import('./forms/forms.module') loadChildren: () => import('./forms/forms.module')
.then(m => m.FormsModule), .then(m => m.FormsModule),
}, },
{
path: 'Insights',
loadChildren: () => import('./forms/forms.module')
.then(m => m.FormsModule),
},
{ {
path: 'ui-features', path: 'ui-features',
loadChildren: () => import('./ui-features/ui-features.module') loadChildren: () => import('./ui-features/ui-features.module')

View file

@ -7,6 +7,7 @@ import { DashboardModule } from './dashboard/dashboard.module';
import { ECommerceModule } from './e-commerce/e-commerce.module'; import { ECommerceModule } from './e-commerce/e-commerce.module';
import { PagesRoutingModule } from './pages-routing.module'; import { PagesRoutingModule } from './pages-routing.module';
import { MiscellaneousModule } from './miscellaneous/miscellaneous.module'; import { MiscellaneousModule } from './miscellaneous/miscellaneous.module';
import { InsightsComponent } from './insights/insights.component';
@NgModule({ @NgModule({
imports: [ imports: [
@ -19,6 +20,8 @@ import { MiscellaneousModule } from './miscellaneous/miscellaneous.module';
], ],
declarations: [ declarations: [
PagesComponent, PagesComponent,
InsightsComponent,
], ],
}) })
export class PagesModule { export class PagesModule {

View file

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>ngx-admin Demo Application</title> <title>AB Continuous Audit Management System</title>
<base href="/"> <base href="/">