104 lines
3.3 KiB
TypeScript
104 lines
3.3 KiB
TypeScript
import { AuthService } from './../../shared/services/auth.service';
|
|
import { Component, OnInit } from '@angular/core';
|
|
import { CardItem } from './../../shared/models/card-item.interface';
|
|
import { AdministrationSection } from './../../shared/models/administration-section.interface';
|
|
|
|
@Component({
|
|
selector: 'app-administration',
|
|
templateUrl: './administration.component.html',
|
|
styleUrls: ['./administration.component.scss']
|
|
})
|
|
export class AdministrationComponent implements OnInit {
|
|
|
|
data: CardItem;
|
|
adminSections: AdministrationSection[];
|
|
|
|
constructor(public authService: AuthService) { }
|
|
|
|
ngOnInit(): void {
|
|
this.initializeData();
|
|
}
|
|
|
|
initializeData() {
|
|
this.adminSections = [
|
|
{
|
|
title: 'Monitoring',
|
|
subSections: [
|
|
{
|
|
title: 'Downloads Monitoring',
|
|
subtitle: 'View File\'s Downloading Process and Manage...',
|
|
headerImage: 'pi-image',
|
|
footerImage: 'pi-desktop',
|
|
path: '/pages/administration/downloads-monitoring'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: 'Configurations',
|
|
subSections: [
|
|
{
|
|
title: 'Categories Managenent',
|
|
subtitle: 'View File\'s Downloading Process and Manage...',
|
|
headerImage: 'pi-image',
|
|
footerImage: 'pi-cog',
|
|
path: '/pages/administration/categories-management'
|
|
},
|
|
{
|
|
title: 'Templates Managenent',
|
|
subtitle: 'View File\'s Downloading Process and Manage...',
|
|
headerImage: 'pi-image',
|
|
footerImage: 'pi-cog',
|
|
path: '/pages/administration/templates-management'
|
|
},
|
|
{
|
|
title: 'Verification Managenent',
|
|
subtitle: 'View File\'s Downloading Process and Manage...',
|
|
headerImage: 'pi-image',
|
|
footerImage: 'pi-cog',
|
|
path: '/pages/administration/verification-management'
|
|
},
|
|
{
|
|
title: 'Configurator',
|
|
subtitle: 'View File\'s Downloading Process and Manage...',
|
|
headerImage: 'pi-image',
|
|
footerImage: 'pi-cog',
|
|
path: '/pages/administration/configurator'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: 'Access',
|
|
subSections: [
|
|
{
|
|
title: 'Users Managenent',
|
|
subtitle: 'View File\'s Downloading Process and Manage...',
|
|
headerImage: 'pi-image',
|
|
footerImage: 'pi-key',
|
|
path: '/pages/administration/users-management'
|
|
},
|
|
{
|
|
title: 'Roles Managenent',
|
|
subtitle: 'View File\'s Downloading Process and Manage...',
|
|
headerImage: 'pi-image',
|
|
footerImage: 'pi-key',
|
|
path: '/pages/administration/roles-management'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: 'Exception Handling',
|
|
subSections: [
|
|
{
|
|
title: 'Application Level Exceptions',
|
|
subtitle: 'View Application Level exceptions thrown by the Platform',
|
|
headerImage: 'pi-image',
|
|
footerImage: 'pi-exclamation-triangle',
|
|
path: '/pages/administration/application-level-exceptions'
|
|
}
|
|
]
|
|
}
|
|
];
|
|
}
|
|
|
|
}
|