Project

General

Profile

1
import { AuthService } from './../../shared/services/auth.service';
2
import { Component, OnInit } from '@angular/core';
3
import { CardItem } from './../../shared/models/card-item.interface';
4
import { AdministrationSection } from './../../shared/models/administration-section.interface';
5

    
6
@Component({
7
  selector: 'app-administration',
8
  templateUrl: './administration.component.html',
9
  styleUrls: ['./administration.component.scss']
10
})
11
export class AdministrationComponent implements OnInit {
12

    
13
  data: CardItem;
14
  adminSections: AdministrationSection[];
15

    
16
  constructor(public authService: AuthService) { }
17

    
18
  ngOnInit(): void {
19
    this.initializeData();
20
  }
21

    
22
  initializeData() {
23
    this.adminSections = [
24
      {
25
        title: 'Monitoring',
26
        subSections: [
27
          {
28
            title: 'Downloads Monitoring',
29
            subtitle: 'View File\'s Downloading Process and Manage...',
30
            headerImage: 'pi-image',
31
            footerImage: 'pi-desktop',
32
            path: '/pages/administration/downloads-monitoring'
33
          }
34
        ]
35
      },
36
      {
37
        title: 'Configurations',
38
        subSections: [
39
          {
40
            title: 'Categories Managenent',
41
            subtitle: 'View File\'s Downloading Process and Manage...',
42
            headerImage: 'pi-image',
43
            footerImage: 'pi-cog',
44
            path: '/pages/administration/categories-management'
45
          },
46
          {
47
            title: 'Templates Managenent',
48
            subtitle: 'View File\'s Downloading Process and Manage...',
49
            headerImage: 'pi-image',
50
            footerImage: 'pi-cog',
51
            path: '/pages/administration/templates-management'
52
          },
53
          {
54
            title: 'Verification Managenent',
55
            subtitle: 'View File\'s Downloading Process and Manage...',
56
            headerImage: 'pi-image',
57
            footerImage: 'pi-cog',
58
            path: '/pages/administration/verification-management'
59
          },
60
          {
61
            title: 'Configurator',
62
            subtitle: 'View File\'s Downloading Process and Manage...',
63
            headerImage: 'pi-image',
64
            footerImage: 'pi-cog',
65
            path: '/pages/administration/configurator'
66
          }
67
        ]
68
      },
69
      {
70
        title: 'Access',
71
        subSections: [
72
          {
73
            title: 'Users Managenent',
74
            subtitle: 'View File\'s Downloading Process and Manage...',
75
            headerImage: 'pi-image',
76
            footerImage: 'pi-key',
77
            path: '/pages/administration/users-management'
78
          },
79
          {
80
            title: 'Roles Managenent',
81
            subtitle: 'View File\'s Downloading Process and Manage...',
82
            headerImage: 'pi-image',
83
            footerImage: 'pi-key',
84
            path: '/pages/administration/roles-management'
85
          }
86
        ]
87
      },
88
      {
89
        title: 'Exception Handling',
90
        subSections: [
91
          {
92
            title: 'Application Level Exceptions',
93
            subtitle: 'View Application Level exceptions thrown by the Platform',
94
            headerImage: 'pi-image',
95
            footerImage: 'pi-exclamation-triangle',
96
            path: '/pages/administration/application-level-exceptions'
97
          }
98
        ]
99
      }
100
    ];
101
  }
102

    
103
}
(4-4/4)