Skip to content

Commit 7f6e51b

Browse files
committed
Add all pages
1 parent b8aeaeb commit 7f6e51b

File tree

11 files changed

+1358
-91
lines changed

11 files changed

+1358
-91
lines changed

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"private": true,
1212
"dependencies": {
1313
"@agm/core": "^3.0.0-beta",
14+
"@amcharts/amcharts5": "^5.2.6",
15+
"@amcharts/amcharts5-fonts": "^5.0.1",
16+
"@amcharts/amcharts5-geodata": "^5.0.3",
1417
"@angular/animations": "^13.2.4",
1518
"@angular/cdk": "^13.2.4",
1619
"@angular/common": "~13.2.4",
@@ -25,6 +28,11 @@
2528
"@danielmoncada/angular-datetime-picker": "^13.1.1",
2629
"@ng-select/ng-select": "^8.1.1",
2730
"@ngbmodule/material-carousel": "^0.7.2",
31+
"@fullcalendar/angular": "4.4.5-beta",
32+
"@fullcalendar/core": "4.4.2",
33+
"@fullcalendar/daygrid": "4.4.2",
34+
"@fullcalendar/interaction": "^4.4.2",
35+
"@fullcalendar/timegrid": "4.4.2",
2836
"angular-calendar": "^0.28.20",
2937
"apexcharts": "^3.35.3",
3038
"date-fns": "^2.14.0",

src/app/app-routing.module.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,26 @@ const route: Routes = [
5959
canActivate: [AuthGuard],
6060
loadChildren: () => import('./modules/templates/ui-elements/ui-elements.module').then(m => m.UiElementsModule)
6161
},
62+
{
63+
path: 'forms',
64+
canActivate: [AuthGuard],
65+
loadChildren: () => import('./modules/templates/forms/forms.module').then(m => m.FormsModule)
66+
},
67+
{
68+
path: 'charts',
69+
canActivate: [AuthGuard],
70+
loadChildren: () => import('./modules/templates/charts/charts.module').then(m => m.ChartsModule)
71+
},
72+
// {
73+
// path: 'maps',
74+
// canActivate: [AuthGuard],
75+
// loadChildren: () => import('./modules/templates/maps/maps.module').then(m => m.MapsModule)
76+
// },
77+
// {
78+
// path: 'extra',
79+
// canActivate: [AuthGuard],
80+
// loadChildren: () => import('./modules/templates/extra/extra.module').then(m => m.ExtraModule)
81+
// },
6282
{
6383
path: 'admin',
6484
loadChildren: () =>

src/app/consts/routes.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,31 @@ export enum routes {
5656
PAGINATION = '/ui/pagination',
5757
PROGRESS = '/ui/progress',
5858
WIDGET = '/ui/widget',
59+
60+
// --- Forms module ---//
61+
62+
FORMS_ELEMENTS = '/forms/elements',
63+
FORMS_VALIDATION = '/forms/validation',
64+
65+
// --- Charts module ---//
66+
67+
BAR_CHARTS = '/charts/bar',
68+
LINE_CHARTS = '/charts/line',
69+
PIE_CHARTS = '/charts/pie',
70+
OVERVIEW_CHARTS = '/charts/overview',
71+
72+
// --- Maps module --- //
73+
74+
GOOGLE_MAP = '/maps/google',
75+
VECTOR_MAP = '/maps/vector',
76+
77+
// --- Extra module ---//
78+
79+
CALENDAR = '/extra/calendar',
80+
INVOICE = '/extra/invoice',
81+
LOGIN_PAGE = '/extra/login',
82+
ERROR_PAGE = '/extra/errorpage',
83+
GALLERY = '/extra/gallery',
84+
SEARCH_RESULT = '/extra/search result',
85+
TIME_LINE = '/extra/time line',
5986
}

src/app/modules/templates/charts/charts.module.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ import {
3030
ImageBarChartComponent,
3131
SimplePieChartComponent,
3232
UpdatePieChartComponent,
33-
MonochomePieChartComponent
33+
MonochomePieChartComponent,
34+
DynamicUpdatingChartComponent
3435
} from './components';
35-
import { DynamicUpdatingChartComponent } from './components/dynamic-updating-chart/dynamic-updating-chart.component';
36-
3736

3837
@NgModule({
3938
declarations: [

src/app/modules/templates/charts/containers/overview-charts-page/overview-charts-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class OverviewChartsPageComponent implements OnInit {
1919
public radarChartData$: Observable<RadarChartData>;
2020
public barChartData$: Observable<BarChartData>;
2121
public routes: typeof routes = routes;
22-
public currentTheme: string = '';
22+
public currentTheme = '';
2323

2424
constructor(
2525
private service: ChartsService,

src/app/modules/templates/charts/containers/pie-charts-page/pie-charts-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {routes} from '../../../../../consts';
1010
styleUrls: ['./pie-charts-page.component.scss']
1111
})
1212
export class PieChartsPageComponent {
13-
public pieChartData$: Observable<PieChartData>
13+
public pieChartData$: Observable<PieChartData>;
1414
public routes: typeof routes = routes;
1515

1616
constructor(private service: ChartsService) {

src/app/modules/templates/extra/containers/time-line-page/time-line-page.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Component } from '@angular/core';
22

33
import { routes } from '../../../../../consts';
4-
import {Observable} from 'rxjs';
5-
import {TimeLineItem} from '../../models';
6-
import {TimeLineService} from '../../services';
4+
import { Observable } from 'rxjs';
5+
import { TimeLineItem } from '../../models';
6+
import { TimeLineService } from '../../services';
77

88
@Component({
99
selector: 'app-time-line-page',
@@ -12,7 +12,7 @@ import {TimeLineService} from '../../services';
1212
})
1313
export class TimeLinePageComponent {
1414
public routes: typeof routes = routes;
15-
public timeLineData$: Observable<TimeLineItem[]>
15+
public timeLineData$: Observable<TimeLineItem[]>;
1616

1717
constructor(private service: TimeLineService) {
1818
this.timeLineData$ = service.getTimeLineData();

src/app/modules/templates/maps/map-routing.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {RouterModule, Routes} from '@angular/router';
2-
import {NgModule} from '@angular/core';
3-
import {GoogleMapPageComponent, VectorMapPageComponent} from './components';
1+
import { RouterModule, Routes } from '@angular/router';
2+
import { NgModule } from '@angular/core';
3+
import { GoogleMapPageComponent, VectorMapPageComponent } from './components';
44

55
const routes: Routes = [
66
{

src/app/modules/templates/maps/maps.module.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
3-
import {AgmCoreModule} from '@agm/core';
4-
import {googleMapKey} from './consts';
5-
import {GoogleMapPageComponent} from './components';
6-
import {SharedModule} from '../../../shared/shared.module';
7-
import {MatCardModule} from '@angular/material/card';
8-
import {MapsRoutingModule} from './map-routing.module';
9-
import { VectorMapPageComponent } from './components/vector-map-page/vector-map-page.component';
10-
11-
3+
import { AgmCoreModule } from '@agm/core';
4+
import { googleMapKey } from './consts';
5+
import { GoogleMapPageComponent } from './components';
6+
import { SharedModule } from '../../../shared/shared.module';
7+
import { MatCardModule } from '@angular/material/card';
8+
import { MapsRoutingModule } from './map-routing.module';
9+
import { VectorMapPageComponent } from './components';
1210

1311
@NgModule({
1412
declarations: [
15-
GoogleMapPageComponent,
16-
VectorMapPageComponent
13+
// GoogleMapPageComponent,
14+
// VectorMapPageComponent
1715
],
1816
imports: [
1917
CommonModule,

src/app/shared/sidebar/sidebar.component.ts

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -58,59 +58,59 @@ const TemplateNode: any = [
5858
{ name: 'Widget', route: routes.WIDGET, active: 'active' },
5959
]
6060
},
61-
// {
62-
// name: 'Forms',
63-
// children: [
64-
// { name: 'Form Elements', route: routes.FORMS_ELEMENTS, active: 'active' },
65-
// { name: 'Form Validation', route: routes.FORMS_VALIDATION, active: 'active' },
66-
// ]
67-
// },
68-
// {
69-
// name: 'Charts',
70-
// children: [
71-
// { name: 'Charts Overview', route: routes.OVERVIEW_CHARTS, active: 'active' },
72-
// { name: 'Line Charts', route: routes.LINE_CHARTS, active: 'active' },
73-
// { name: 'Bar Charts', route: routes.BAR_CHARTS, active: 'active' },
74-
// { name: 'Pie Charts', route: routes.PIE_CHARTS, active: 'active' },
75-
// ]
76-
// },
77-
// {
78-
// name: 'Maps',
79-
// children: [
80-
// { name: 'Google Map', route: routes.GOOGLE_MAP, active: 'active' },
81-
// { name: 'Vector Map', route: routes.VECTOR_MAP, active: 'active' }
82-
// ]
83-
// },
84-
// {
85-
// name: 'Extra',
86-
// children: [
87-
// { name: 'Calendar', route: routes.CALENDAR, active: 'active' },
88-
// { name: 'Invoice', route: routes.INVOICE, active: 'active' },
89-
// { name: 'Login Page', route: routes.LOGIN_PAGE, active: 'active' },
90-
// { name: 'Error Page', route: routes.ERROR_PAGE, active: 'active' },
91-
// { name: 'Gallery', route: routes.GALLERY, active: 'active' },
92-
// { name: 'Search Result', route: routes.SEARCH_RESULT, active: 'active' },
93-
// { name: 'Time Line', route: routes.TIME_LINE, active: 'active' }
94-
// ]
95-
// },
96-
// {
97-
// name: 'Menu Levels',
98-
// children: [
99-
// { name: 'Level 1.1' },
100-
// {
101-
// name: 'Level 1.2',
102-
// children: [
103-
// { name: 'Level 2.1' },
104-
// {
105-
// name: 'Level 2.2',
106-
// children: [
107-
// { name: 'Level 3.1'}
108-
// ]
109-
// }
110-
// ]
111-
// }
112-
// ]
113-
// }
61+
{
62+
name: 'Forms',
63+
children: [
64+
{ name: 'Form Elements', route: routes.FORMS_ELEMENTS, active: 'active' },
65+
{ name: 'Form Validation', route: routes.FORMS_VALIDATION, active: 'active' },
66+
]
67+
},
68+
{
69+
name: 'Charts',
70+
children: [
71+
{ name: 'Charts Overview', route: routes.OVERVIEW_CHARTS, active: 'active' },
72+
{ name: 'Line Charts', route: routes.LINE_CHARTS, active: 'active' },
73+
{ name: 'Bar Charts', route: routes.BAR_CHARTS, active: 'active' },
74+
{ name: 'Pie Charts', route: routes.PIE_CHARTS, active: 'active' },
75+
]
76+
},
77+
{
78+
name: 'Maps',
79+
children: [
80+
{ name: 'Google Map', route: routes.GOOGLE_MAP, active: 'active' },
81+
{ name: 'Vector Map', route: routes.VECTOR_MAP, active: 'active' }
82+
]
83+
},
84+
{
85+
name: 'Extra',
86+
children: [
87+
{ name: 'Calendar', route: routes.CALENDAR, active: 'active' },
88+
{ name: 'Invoice', route: routes.INVOICE, active: 'active' },
89+
{ name: 'Login Page', route: routes.LOGIN_PAGE, active: 'active' },
90+
{ name: 'Error Page', route: routes.ERROR_PAGE, active: 'active' },
91+
{ name: 'Gallery', route: routes.GALLERY, active: 'active' },
92+
{ name: 'Search Result', route: routes.SEARCH_RESULT, active: 'active' },
93+
{ name: 'Time Line', route: routes.TIME_LINE, active: 'active' }
94+
]
95+
},
96+
{
97+
name: 'Menu Levels',
98+
children: [
99+
{ name: 'Level 1.1' },
100+
{
101+
name: 'Level 1.2',
102+
children: [
103+
{ name: 'Level 2.1' },
104+
{
105+
name: 'Level 2.2',
106+
children: [
107+
{ name: 'Level 3.1'}
108+
]
109+
}
110+
]
111+
}
112+
]
113+
}
114114
];
115115

116116

0 commit comments

Comments
 (0)