main.routes.ts 3 KB
Newer Older
1 2 3 4 5 6
import {
  Routes,
  RouterModule,
} from '@angular/router';

import {CamelCasePipe} from '../pipes/camelcase';
Open Source Developer's avatar
UI  
Open Source Developer committed
7
import {RemoveSpaces} from '../pipes/removespaces';
8
import ParentForm from '../components/student-application-form/parent.form';
9
import StudentApplicationMain from '../components/student-application-form/application.form.main';
10 11
import StudentsList from '../components/students/students-list';
import Home from '../components/home';
12
import SchoolHome from '../components/school.home';
13
import CourseFieldsSelect from '../components/student-application-form/course.fields.select';
Open Source Developer's avatar
Open Source Developer committed
14
import EpalClassesSelect from '../components/student-application-form/epal.class.select';
15
import SectorFieldsSelect from '../components/student-application-form/sector.fields.select';
16
import RegionSchoolsSelect from '../components/student-application-form/region.schools.select';
17 18
import SectorCoursesSelect from '../components/student-application-form/sector.courses.select';
import ApplicationPreview from '../components/student-application-form/application.preview';
19 20
import SchoolsOrderSelect from '../components/student-application-form/schools-order-select';
import ApplicationSubmit from '../components/student-application-form/application.submit';
Open Source Developer's avatar
Open Source Developer committed
21
import SubmitedPreview from '../components/student-application-form/submited.aplication.preview';
Open Source Developer's avatar
Open Source Developer committed
22
import SubmitedPerson from '../components/student-application-form/submitedstudent.preview';
Open Source Developer's avatar
Open Source Developer committed
23
import DirectorView from '../components/director/director-view';
Open Source Developer's avatar
Open Source Developer committed
24
import DirectorClassCapacity from '../components/director/director-classcapacity';
25 26 27

export const MainRoutes: Routes = [
  { path: '', component: Home },
28
  { path: 'school', component: SchoolHome },
29
  { path: 'parent-form', component: ParentForm },
30
  { path: 'student-application-form-main', component: StudentApplicationMain },
31
  { path: 'students-list', component: StudentsList },
32
  { path: 'course-fields-select', component: CourseFieldsSelect },
Open Source Developer's avatar
Open Source Developer committed
33
  { path: 'epal-class-select', component: EpalClassesSelect },
34 35 36
  { path: 'sector-fields-select', component: SectorFieldsSelect },
  { path: 'region-schools-select', component: RegionSchoolsSelect },
  { path: 'sectorcourses-fields-select', component: SectorCoursesSelect },
Open Source Developer's avatar
Open Source Developer committed
37
  { path: 'application-preview', component: ApplicationPreview },
38
  { path: 'schools-order-select', component: SchoolsOrderSelect },
Open Source Developer's avatar
Open Source Developer committed
39 40
  { path: 'application-submit', component: ApplicationSubmit },
  { path: 'submited-preview', component: SubmitedPreview },
Open Source Developer's avatar
Open Source Developer committed
41
  { path: 'submited-person', component: SubmitedPerson },
Open Source Developer's avatar
Open Source Developer committed
42
  { path: 'director-view', component: DirectorView },
Open Source Developer's avatar
Open Source Developer committed
43
  { path: 'director-classcapacity', component: DirectorClassCapacity },
44 45 46 47
];

export const MainDeclarations = [
  CamelCasePipe,
Open Source Developer's avatar
UI  
Open Source Developer committed
48
  RemoveSpaces,
49 50
  StudentsList,
  Home,
51
  SchoolHome,
52
  CourseFieldsSelect,
Open Source Developer's avatar
Open Source Developer committed
53
  EpalClassesSelect,
54
  SectorFieldsSelect,
55
  RegionSchoolsSelect,
56
  SectorCoursesSelect,
57
  ParentForm,
58
  StudentApplicationMain,
Open Source Developer's avatar
Open Source Developer committed
59
  ApplicationPreview,
60
  SchoolsOrderSelect,
Open Source Developer's avatar
Open Source Developer committed
61 62
  ApplicationSubmit,
  SubmitedPreview,
Open Source Developer's avatar
Open Source Developer committed
63
  SubmitedPerson,
Open Source Developer's avatar
Open Source Developer committed
64 65
  DirectorView,
  DirectorClassCapacity
66
];