Commit 7858a465fb2f764a5ee54766651bf0e874ab8143
1 parent
11797ea5a3
Exists in
master
and in
3 other branches
change api of change password and put validations on password fields
Showing
2 changed files
with
31 additions
and
11 deletions
Show diff stats
src/pages/Administrator/resetPassword.vue
1 | <template> | 1 | <template> |
2 | <v-app id="login"> | 2 | <v-app id="login"> |
3 | <v-container fluid fill-height> | 3 | <v-container fluid fill-height> |
4 | <v-layout> | 4 | <v-layout> |
5 | <v-flex xs12 sm8 md8 lg5 offset-sm2 offset-lg3 class="mt-5"> | 5 | <v-flex xs12 sm8 md8 lg5 offset-sm2 offset-lg3 class="mt-5"> |
6 | <v-toolbar class="card-styles mt-5" dark> | 6 | <v-toolbar class="card-styles mt-5" dark> |
7 | <v-spacer></v-spacer> | 7 | <v-spacer></v-spacer> |
8 | <v-toolbar-title>Reset Password</v-toolbar-title> | 8 | <v-toolbar-title>Change Password</v-toolbar-title> |
9 | <v-spacer></v-spacer> | 9 | <v-spacer></v-spacer> |
10 | </v-toolbar> | 10 | </v-toolbar> |
11 | <v-card class="elevation-1 pa-3" id="form"> | 11 | <v-card class="elevation-1 pa-3" id="form"> |
12 | <v-card-text> | 12 | <v-card-text> |
13 | <v-flex xs12 sm8 md8 lg8 offset-sm2> | 13 | <v-flex xs12 sm8 md8 lg8 offset-sm2> |
14 | <v-form class="mt-3" ref="form" v-model="valid" lazy-validation> | 14 | <v-form class="mt-3" ref="form" v-model="valid" lazy-validation> |
15 | <v-select | 15 | <!-- <v-select |
16 | :rules="userRule" | 16 | :rules="userRule" |
17 | label="Select User" | 17 | label="Select User" |
18 | :items="getRoles" | 18 | :items="getRoles" |
19 | item-text="name" | 19 | item-text="name" |
20 | item-value="name" | 20 | item-value="name" |
21 | v-model="resetPassword.name" | 21 | v-model="resetPassword.name" |
22 | @change="getUsers(resetPassword.name)" | 22 | @change="getUsers(resetPassword.name)" |
23 | ></v-select> | 23 | ></v-select> |
24 | <v-select | 24 | <v-select |
25 | :rules="userNameRule" | 25 | :rules="userNameRule" |
26 | label="Select User Name" | 26 | label="Select User Name" |
27 | :items="getUsersName" | 27 | :items="getUsersName" |
28 | item-text="email" | 28 | item-text="email" |
29 | item-value="email" | 29 | item-value="email" |
30 | v-model="resetPassword.email" | 30 | v-model="resetPassword.email" |
31 | ></v-select> | 31 | ></v-select> --> |
32 | <v-text-field | ||
33 | :append-icon="e1 ? 'visibility_off' : 'visibility'" | ||
34 | :append-icon-cb="() => (e1 = !e1)" | ||
35 | :type="e1 ? 'password' : 'text'" | ||
36 | :rules="oldPasswordRule" | ||
37 | v-model="resetPassword.oldPassword" | ||
38 | :error-messages="errors.collect('resetPassword.oldPassword')" | ||
39 | v-validate="'required'" | ||
40 | data-vv-name="resetPassword.oldPassword" | ||
41 | label="Old Password" | ||
42 | ></v-text-field> | ||
32 | <v-text-field | 43 | <v-text-field |
44 | :append-icon="e1 ? 'visibility_off' : 'visibility'" | ||
45 | :append-icon-cb="() => (e1 = !e1)" | ||
46 | :type="e1 ? 'password' : 'text'" | ||
33 | :rules="newPasswordRule" | 47 | :rules="newPasswordRule" |
34 | v-model="resetPassword.newPassword" | 48 | v-model="resetPassword.newPassword" |
35 | :error-messages="errors.collect('resetPassword.newPassword')" | 49 | :error-messages="errors.collect('resetPassword.newPassword')" |
36 | v-validate="'required'" | 50 | v-validate="'required'" |
37 | data-vv-name="resetPassword.newPassword" | 51 | data-vv-name="resetPassword.newPassword" |
38 | label="New Password" | 52 | label="New Password" |
39 | ></v-text-field> | 53 | ></v-text-field> |
40 | <v-text-field | 54 | <v-text-field |
55 | :append-icon="e1 ? 'visibility_off' : 'visibility'" | ||
56 | :append-icon-cb="() => (e1 = !e1)" | ||
57 | :type="e1 ? 'password' : 'text'" | ||
41 | v-model="resetPassword.confirmPassword" | 58 | v-model="resetPassword.confirmPassword" |
42 | :rules="rePasswordRule" | 59 | :rules="rePasswordRule" |
43 | :error-messages="errors.collect('password2')" | 60 | :error-messages="errors.collect('password2')" |
44 | v-validate="{ required: false, is: resetPassword.newPassword }" | 61 | v-validate="{ required: false, is: resetPassword.newPassword }" |
45 | data-vv-name="password2" | 62 | data-vv-name="password2" |
46 | data-vv-as="password" | 63 | data-vv-as="password" |
47 | label="Re-Password" | 64 | label="Renter New Password" |
48 | ></v-text-field> | 65 | ></v-text-field> |
49 | </v-form> | 66 | </v-form> |
50 | </v-flex> | 67 | </v-flex> |
51 | </v-card-text> | 68 | </v-card-text> |
52 | <v-card-actions> | 69 | <v-card-actions> |
53 | <v-flex text-xs-center> | 70 | <v-flex text-xs-center> |
54 | <v-btn | 71 | <v-btn |
55 | class="add-button" | 72 | style="background-color: #71d9ea; color: #0c0754;" |
56 | round | ||
57 | dark | 73 | dark |
74 | flat | ||
58 | large | 75 | large |
59 | :loading="loading" | 76 | :loading="loading" |
60 | @click="reset" | 77 | @click="reset" |
61 | >Reset Password</v-btn> | 78 | >Change Password</v-btn> |
62 | </v-flex> | 79 | </v-flex> |
63 | </v-card-actions> | 80 | </v-card-actions> |
64 | <v-snackbar | 81 | <v-snackbar |
65 | :timeout="timeout" | 82 | :timeout="timeout" |
66 | :top="y === 'top'" | 83 | :top="y === 'top'" |
67 | :right="x === 'right'" | 84 | :right="x === 'right'" |
68 | :vertical="mode === 'vertical'" | 85 | :vertical="mode === 'vertical'" |
69 | v-model="snackbar" | 86 | v-model="snackbar" |
70 | :color="color" | 87 | :color="color" |
71 | >{{ text }}</v-snackbar> | 88 | >{{ text }}</v-snackbar> |
72 | </v-card> | 89 | </v-card> |
73 | </v-flex> | 90 | </v-flex> |
74 | </v-layout> | 91 | </v-layout> |
75 | </v-container> | 92 | </v-container> |
76 | </v-app> | 93 | </v-app> |
77 | </template> | 94 | </template> |
78 | <script> | 95 | <script> |
79 | import http from "@/Services/http.js"; | 96 | import http from "@/Services/http.js"; |
80 | 97 | ||
81 | export default { | 98 | export default { |
82 | data() { | 99 | data() { |
83 | return { | 100 | return { |
84 | snackbar: false, | 101 | snackbar: false, |
85 | y: "top", | 102 | y: "top", |
86 | x: "right", | 103 | x: "right", |
87 | mode: "", | 104 | mode: "", |
88 | timeout: 4000, | 105 | timeout: 4000, |
89 | text: "", | 106 | text: "", |
90 | color: "", | 107 | color: "", |
108 | e1: true, | ||
91 | password2: "", | 109 | password2: "", |
92 | resetPassword: {}, | 110 | resetPassword: {}, |
93 | getUsersName: [], | 111 | getUsersName: [], |
94 | getRoles: [], | 112 | getRoles: [], |
95 | valid: true, | 113 | valid: true, |
96 | loading: false, | 114 | loading: false, |
97 | text: "Password Changed", | 115 | text: "Password Changed", |
98 | newPassword: "", | 116 | newPassword: "", |
117 | oldPassword: "", | ||
99 | userRule: [v => !!v || "User is required"], | 118 | userRule: [v => !!v || "User is required"], |
100 | userNameRule: [v => !!v || "User Name is required"], | 119 | userNameRule: [v => !!v || "User Name is required"], |
120 | oldPasswordRule: [v => !!v || "Old Password is required"], | ||
101 | newPasswordRule: [v => !!v || "New Password is required"], | 121 | newPasswordRule: [v => !!v || "New Password is required"], |
102 | rePasswordRule: [v => !!v || "Re-Password is required"] | 122 | rePasswordRule: [v => !!v || "Re-Password is required"] |
103 | }; | 123 | }; |
104 | }, | 124 | }, |
105 | mounted() { | 125 | mounted() { |
106 | this.token = this.$store.state.token; | 126 | this.token = this.$store.state.token; |
107 | this.getRole(); | 127 | this.getRole(); |
108 | }, | 128 | }, |
109 | methods: { | 129 | methods: { |
110 | reset() { | 130 | reset() { |
111 | if ( | 131 | if ( |
112 | this.$refs.form.validate() && | 132 | this.$refs.form.validate() && |
113 | this.resetPassword.confirmPassword === this.resetPassword.newPassword | 133 | this.resetPassword.oldPassword === this.resetPassword.oldPassword |
114 | ) { | 134 | ) { |
115 | this.loading = true; | 135 | this.loading = true; |
116 | this.resetPassword.roleName = this.resetPassword.name; | 136 | this.resetPassword.newPassword = this.resetPassword.newPassword; |
117 | http() | 137 | http() |
118 | .put("/resetPasswordOfUsers", this.resetPassword, { | 138 | .put("/change-password", this.resetPassword, { |
119 | headers: { Authorization: "Bearer " + this.token } | 139 | headers: { Authorization: "Bearer " + this.token } |
120 | }) | 140 | }) |
121 | .then(response => { | 141 | .then(response => { |
122 | this.loading = false; | 142 | this.loading = false; |
123 | this.snackbar = true; | 143 | this.snackbar = true; |
124 | this.text = "Successfully Restet password !!"; | 144 | this.text = "Successfully Restet password !!"; |
125 | this.color = "green"; | 145 | this.color = "green"; |
126 | this.clear(); | 146 | this.clear(); |
127 | }) | 147 | }) |
128 | .catch(error => { | 148 | .catch(error => { |
129 | // console.log("err====>",err); | 149 | // console.log("err====>",err); |
130 | this.snackbar = true; | 150 | this.snackbar = true; |
131 | this.text = "User Not Found or Incorrect currentPassword"; | 151 | this.text = "User Not Found or Incorrect currentPassword"; |
132 | this.color = "error"; | 152 | this.color = "error"; |
133 | this.loading = false; | 153 | this.loading = false; |
134 | }); | 154 | }); |
135 | } | 155 | } |
136 | }, | 156 | }, |
137 | getRole() { | 157 | getRole() { |
138 | this.showLoader = true; | 158 | this.showLoader = true; |
139 | http() | 159 | http() |
140 | .get("/getRolesList", { | 160 | .get("/getRolesList", { |
141 | headers: { Authorization: "Bearer " + this.token } | 161 | headers: { Authorization: "Bearer " + this.token } |
142 | }) | 162 | }) |
143 | .then(response => { | 163 | .then(response => { |
144 | for (let i = 0; i < response.data.data.length; i++) { | 164 | for (let i = 0; i < response.data.data.length; i++) { |
145 | if ( | 165 | if ( |
146 | response.data.data[i].name != "SUPERADMIN" && | 166 | response.data.data[i].name != "SUPERADMIN" && |
147 | response.data.data[i].name != "ADMIN" | 167 | response.data.data[i].name != "ADMIN" |
148 | ) { | 168 | ) { |
149 | this.getRoles.push(response.data.data[i]); | 169 | this.getRoles.push(response.data.data[i]); |
150 | this.showLoader = false; | 170 | this.showLoader = false; |
151 | } | 171 | } |
152 | } | 172 | } |
153 | }) | 173 | }) |
154 | .catch(error => { | 174 | .catch(error => { |
155 | this.showLoader = false; | 175 | this.showLoader = false; |
156 | if (error.response.status === 401) { | 176 | if (error.response.status === 401) { |
157 | this.$router.replace({ path: "/" }); | 177 | this.$router.replace({ path: "/" }); |
158 | this.$store.dispatch("setToken", null); | 178 | this.$store.dispatch("setToken", null); |
159 | this.$store.dispatch("Id", null); | 179 | this.$store.dispatch("Id", null); |
160 | } | 180 | } |
161 | }); | 181 | }); |
162 | }, | 182 | }, |
163 | clear() { | 183 | clear() { |
164 | this.$refs.form.reset(); | 184 | this.$refs.form.reset(); |
165 | }, | 185 | }, |
166 | getUsers(roles) { | 186 | getUsers(roles) { |
167 | this.showLoader = true; | 187 | this.showLoader = true; |
168 | http() | 188 | http() |
169 | .get("/getUserWithRole", { | 189 | .get("/getUserWithRole", { |
170 | params: { | 190 | params: { |
171 | name: roles | 191 | name: roles |
172 | }, | 192 | }, |
173 | headers: { Authorization: "Bearer " + this.token } | 193 | headers: { Authorization: "Bearer " + this.token } |
174 | }) | 194 | }) |
175 | .then(response => { | 195 | .then(response => { |
176 | this.getUsersName = response.data.data; | 196 | this.getUsersName = response.data.data; |
177 | }) | 197 | }) |
178 | .catch(error => { | 198 | .catch(error => { |
179 | this.showLoader = false; | 199 | this.showLoader = false; |
180 | if (error.response.status === 401) { | 200 | if (error.response.status === 401) { |
181 | this.$router.replace({ path: "/" }); | 201 | this.$router.replace({ path: "/" }); |
182 | this.$store.dispatch("setToken", null); | 202 | this.$store.dispatch("setToken", null); |
183 | this.$store.dispatch("Id", null); | 203 | this.$store.dispatch("Id", null); |
184 | } | 204 | } |
185 | }); | 205 | }); |
186 | } | 206 | } |
187 | } | 207 | } |
188 | }; | 208 | }; |
189 | </script> | 209 | </script> |
190 | <style scoped> | 210 | <style scoped> |
191 | .card-styles { | 211 | .card-styles { |
192 | background: #7f62f8 !important; | 212 | background: #7f62f8 !important; |
193 | border-color: #7f62f8 !important; | 213 | border-color: #7f62f8 !important; |
194 | } | 214 | } |
195 | </style> | 215 | </style> |
src/router/paths.js
1 | export default [{ | 1 | export default [{ |
2 | path: '*', | 2 | path: '*', |
3 | meta: { | 3 | meta: { |
4 | public: true, | 4 | public: true, |
5 | }, | 5 | }, |
6 | redirect: { | 6 | redirect: { |
7 | path: '/404' | 7 | path: '/404' |
8 | } | 8 | } |
9 | }, | 9 | }, |
10 | { | 10 | { |
11 | path: '/404', | 11 | path: '/404', |
12 | meta: { | 12 | meta: { |
13 | public: true, | 13 | public: true, |
14 | }, | 14 | }, |
15 | name: 'NotFound', | 15 | name: 'NotFound', |
16 | component: () => | 16 | component: () => |
17 | import ( | 17 | import ( |
18 | /* webpackChunkName: "routes" */ | 18 | /* webpackChunkName: "routes" */ |
19 | /* webpackMode: "lazy-once" */ | 19 | /* webpackMode: "lazy-once" */ |
20 | `@/pages/NotFound/NotFound.vue` | 20 | `@/pages/NotFound/NotFound.vue` |
21 | ) | 21 | ) |
22 | }, | 22 | }, |
23 | { | 23 | { |
24 | path: '*', | 24 | path: '*', |
25 | meta: {}, | 25 | meta: {}, |
26 | name: 'dashboardAdmin', | 26 | name: 'dashboardAdmin', |
27 | props: (route) => ({ type: route.query.type }), | 27 | props: (route) => ({ type: route.query.type }), |
28 | component: () => | 28 | component: () => |
29 | import ( | 29 | import ( |
30 | /* webpackChunkName: "routes" */ | 30 | /* webpackChunkName: "routes" */ |
31 | /* webpackMode: "lazy-once" */ | 31 | /* webpackMode: "lazy-once" */ |
32 | `@/pages/Dashboard/dashboard.vue` | 32 | `@/pages/Dashboard/dashboard.vue` |
33 | ) | 33 | ) |
34 | }, | 34 | }, |
35 | { | 35 | { |
36 | path: '/500', | 36 | path: '/500', |
37 | meta: { | 37 | meta: { |
38 | public: true, | 38 | public: true, |
39 | }, | 39 | }, |
40 | name: 'ServerError', | 40 | name: 'ServerError', |
41 | component: () => | 41 | component: () => |
42 | import ( | 42 | import ( |
43 | /* webpackChunkName: "routes" */ | 43 | /* webpackChunkName: "routes" */ |
44 | /* webpackMode: "lazy-once" */ | 44 | /* webpackMode: "lazy-once" */ |
45 | `@/pages/NotFound/Error.vue` | 45 | `@/pages/NotFound/Error.vue` |
46 | ) | 46 | ) |
47 | }, | 47 | }, |
48 | { | 48 | { |
49 | path: '/changepassword', | 49 | path: '/changepassword', |
50 | meta: {}, | 50 | meta: {}, |
51 | name: 'changepassword', | 51 | name: 'changepassword', |
52 | props: (route) => ({ type: route.query.type }), | 52 | props: (route) => ({ type: route.query.type }), |
53 | component: () => | 53 | component: () => |
54 | import ( | 54 | import ( |
55 | /* webpackChunkName: "routes" */ | 55 | /* webpackChunkName: "routes" */ |
56 | /* webpackMode: "lazy-once" */ | 56 | /* webpackMode: "lazy-once" */ |
57 | `@/pages/Authentication/changepassword.vue` | 57 | `@/pages/Authentication/changepassword.vue` |
58 | ) | 58 | ) |
59 | }, | 59 | }, |
60 | { | 60 | { |
61 | path: '/teachers', | 61 | path: '/teachers', |
62 | meta: { breadcrumb: false }, | 62 | meta: { breadcrumb: false }, |
63 | name: 'Teachers', | 63 | name: 'Teachers', |
64 | component: () => | 64 | component: () => |
65 | import ( | 65 | import ( |
66 | /* webpackChunkName: "routes" */ | 66 | /* webpackChunkName: "routes" */ |
67 | /* webpackMode: "lazy-once" */ | 67 | /* webpackMode: "lazy-once" */ |
68 | `@/pages/Teachers/teachers.vue` | 68 | `@/pages/Teachers/teachers.vue` |
69 | ) | 69 | ) |
70 | }, | 70 | }, |
71 | { | 71 | { |
72 | path: '/', | 72 | path: '/', |
73 | meta: { | 73 | meta: { |
74 | public: true, | 74 | public: true, |
75 | }, | 75 | }, |
76 | name: 'Login', | 76 | name: 'Login', |
77 | component: () => | 77 | component: () => |
78 | import ( | 78 | import ( |
79 | /* webpackChunkName: "routes" */ | 79 | /* webpackChunkName: "routes" */ |
80 | /* webpackMode: "lazy-once" */ | 80 | /* webpackMode: "lazy-once" */ |
81 | `@/pages/Authentication/Login.vue` | 81 | `@/pages/Authentication/Login.vue` |
82 | ) | 82 | ) |
83 | }, | 83 | }, |
84 | { | 84 | { |
85 | path: '/forgetpassword', | 85 | path: '/forgetpassword', |
86 | meta: { | 86 | meta: { |
87 | public: true, | 87 | public: true, |
88 | }, | 88 | }, |
89 | name: 'forgetpassword', | 89 | name: 'forgetpassword', |
90 | component: () => | 90 | component: () => |
91 | import ( | 91 | import ( |
92 | /* webpackChunkName: "routes" */ | 92 | /* webpackChunkName: "routes" */ |
93 | /* webpackMode: "lazy-once" */ | 93 | /* webpackMode: "lazy-once" */ |
94 | `@/pages/Authentication/forgetpassword.vue` | 94 | `@/pages/Authentication/forgetpassword.vue` |
95 | ) | 95 | ) |
96 | }, | 96 | }, |
97 | { | 97 | { |
98 | path: '/students', | 98 | path: '/students', |
99 | meta: {}, | 99 | meta: {}, |
100 | name: 'Students', | 100 | name: 'Students', |
101 | props: (route) => ({ type: route.query.type }), | 101 | props: (route) => ({ type: route.query.type }), |
102 | component: () => | 102 | component: () => |
103 | import ( | 103 | import ( |
104 | /* webpackChunkName: "routes" */ | 104 | /* webpackChunkName: "routes" */ |
105 | /* webpackMode: "lazy-once" */ | 105 | /* webpackMode: "lazy-once" */ |
106 | `@/pages/Students/students.vue` | 106 | `@/pages/Students/students.vue` |
107 | ) | 107 | ) |
108 | }, | 108 | }, |
109 | { | 109 | { |
110 | path: '/class', | 110 | path: '/class', |
111 | meta: {}, | 111 | meta: {}, |
112 | name: 'Class', | 112 | name: 'Class', |
113 | props: (route) => ({ type: route.query.type }), | 113 | props: (route) => ({ type: route.query.type }), |
114 | component: () => | 114 | component: () => |
115 | import ( | 115 | import ( |
116 | /* webpackChunkName: "routes" */ | 116 | /* webpackChunkName: "routes" */ |
117 | /* webpackMode: "lazy-once" */ | 117 | /* webpackMode: "lazy-once" */ |
118 | `@/pages/Class/addclass.vue` | 118 | `@/pages/Class/addclass.vue` |
119 | ) | 119 | ) |
120 | }, | 120 | }, |
121 | { | 121 | { |
122 | path: '/section', | 122 | path: '/section', |
123 | meta: {}, | 123 | meta: {}, |
124 | name: 'Section', | 124 | name: 'Section', |
125 | props: (route) => ({ type: route.query.type }), | 125 | props: (route) => ({ type: route.query.type }), |
126 | component: () => | 126 | component: () => |
127 | import ( | 127 | import ( |
128 | /* webpackChunkName: "routes" */ | 128 | /* webpackChunkName: "routes" */ |
129 | /* webpackMode: "lazy-once" */ | 129 | /* webpackMode: "lazy-once" */ |
130 | `@/pages/Section/section.vue` | 130 | `@/pages/Section/section.vue` |
131 | ) | 131 | ) |
132 | }, | 132 | }, |
133 | { | 133 | { |
134 | path: '/noticeBoard', | 134 | path: '/noticeBoard', |
135 | meta: {}, | 135 | meta: {}, |
136 | name: 'Notice Board', | 136 | name: 'Notice Board', |
137 | props: (route) => ({ type: route.query.type }), | 137 | props: (route) => ({ type: route.query.type }), |
138 | component: () => | 138 | component: () => |
139 | import ( | 139 | import ( |
140 | /* webpackChunkName: "routes" */ | 140 | /* webpackChunkName: "routes" */ |
141 | /* webpackMode: "lazy-once" */ | 141 | /* webpackMode: "lazy-once" */ |
142 | `@/pages/NoticeBoard/noticeBoard.vue` | 142 | `@/pages/NoticeBoard/noticeBoard.vue` |
143 | ) | 143 | ) |
144 | }, | 144 | }, |
145 | { | 145 | { |
146 | path: '/news', | 146 | path: '/news', |
147 | meta: {}, | 147 | meta: {}, |
148 | name: 'News', | 148 | name: 'News', |
149 | props: (route) => ({ type: route.query.type }), | 149 | props: (route) => ({ type: route.query.type }), |
150 | component: () => | 150 | component: () => |
151 | import ( | 151 | import ( |
152 | /* webpackChunkName: "routes" */ | 152 | /* webpackChunkName: "routes" */ |
153 | /* webpackMode: "lazy-once" */ | 153 | /* webpackMode: "lazy-once" */ |
154 | `@/pages/News/news.vue` | 154 | `@/pages/News/news.vue` |
155 | ) | 155 | ) |
156 | }, | 156 | }, |
157 | // { | 157 | // { |
158 | // path: '/reminder', | 158 | // path: '/reminder', |
159 | // meta: { }, | 159 | // meta: { }, |
160 | // name: 'reminder', | 160 | // name: 'reminder', |
161 | // props: (route) => ({ type: route.query.type }), | 161 | // props: (route) => ({ type: route.query.type }), |
162 | // component: () => import( | 162 | // component: () => import( |
163 | // /* webpackChunkName: "routes" */ | 163 | // /* webpackChunkName: "routes" */ |
164 | // /* webpackMode: "lazy-once" */ | 164 | // /* webpackMode: "lazy-once" */ |
165 | // `@/pages/Reminder/reminder.vue` | 165 | // `@/pages/Reminder/reminder.vue` |
166 | // ) | 166 | // ) |
167 | // }, | 167 | // }, |
168 | { | 168 | { |
169 | path: '/timeTable', | 169 | path: '/timeTable', |
170 | meta: {}, | 170 | meta: {}, |
171 | name: 'Time Table', | 171 | name: 'Time Table', |
172 | props: (route) => ({ type: route.query.type }), | 172 | props: (route) => ({ type: route.query.type }), |
173 | component: () => | 173 | component: () => |
174 | import ( | 174 | import ( |
175 | /* webpackChunkName: "routes" */ | 175 | /* webpackChunkName: "routes" */ |
176 | /* webpackMode: "lazy-once" */ | 176 | /* webpackMode: "lazy-once" */ |
177 | `@/pages/TimeTable/timeTable.vue` | 177 | `@/pages/TimeTable/timeTable.vue` |
178 | ) | 178 | ) |
179 | }, | 179 | }, |
180 | { | 180 | { |
181 | path: '/notification', | 181 | path: '/notification', |
182 | meta: {}, | 182 | meta: {}, |
183 | name: 'Notification', | 183 | name: 'Notification', |
184 | props: (route) => ({ type: route.query.type }), | 184 | props: (route) => ({ type: route.query.type }), |
185 | component: () => | 185 | component: () => |
186 | import ( | 186 | import ( |
187 | /* webpackChunkName: "routes" */ | 187 | /* webpackChunkName: "routes" */ |
188 | /* webpackMode: "lazy-once" */ | 188 | /* webpackMode: "lazy-once" */ |
189 | `@/pages/Notification/notification.vue` | 189 | `@/pages/Notification/notification.vue` |
190 | ) | 190 | ) |
191 | }, | 191 | }, |
192 | { | 192 | { |
193 | path: '/parents', | 193 | path: '/parents', |
194 | meta: {}, | 194 | meta: {}, |
195 | name: 'Parents', | 195 | name: 'Parents', |
196 | props: (route) => ({ type: route.query.type }), | 196 | props: (route) => ({ type: route.query.type }), |
197 | component: () => | 197 | component: () => |
198 | import ( | 198 | import ( |
199 | /* webpackChunkName: "routes" */ | 199 | /* webpackChunkName: "routes" */ |
200 | /* webpackMode: "lazy-once" */ | 200 | /* webpackMode: "lazy-once" */ |
201 | `@/pages/Parent/parents.vue` | 201 | `@/pages/Parent/parents.vue` |
202 | ) | 202 | ) |
203 | }, | 203 | }, |
204 | { | 204 | { |
205 | path: '/subject', | 205 | path: '/subject', |
206 | meta: {}, | 206 | meta: {}, |
207 | name: 'Subject', | 207 | name: 'Subject', |
208 | props: (route) => ({ type: route.query.type }), | 208 | props: (route) => ({ type: route.query.type }), |
209 | component: () => | 209 | component: () => |
210 | import ( | 210 | import ( |
211 | /* webpackChunkName: "routes" */ | 211 | /* webpackChunkName: "routes" */ |
212 | /* webpackMode: "lazy-once" */ | 212 | /* webpackMode: "lazy-once" */ |
213 | `@/pages/Subjects/subjects.vue` | 213 | `@/pages/Subjects/subjects.vue` |
214 | ) | 214 | ) |
215 | }, | 215 | }, |
216 | { | 216 | { |
217 | path: '/dashboard', | 217 | path: '/dashboard', |
218 | meta: {}, | 218 | meta: {}, |
219 | name: 'Dashboard', | 219 | name: 'Dashboard', |
220 | props: (route) => ({ type: route.query.type }), | 220 | props: (route) => ({ type: route.query.type }), |
221 | component: () => | 221 | component: () => |
222 | import ( | 222 | import ( |
223 | /* webpackChunkName: "routes" */ | 223 | /* webpackChunkName: "routes" */ |
224 | /* webpackMode: "lazy-once" */ | 224 | /* webpackMode: "lazy-once" */ |
225 | `@/pages/Dashboard/dashboard.vue` | 225 | `@/pages/Dashboard/dashboard.vue` |
226 | ) | 226 | ) |
227 | }, | 227 | }, |
228 | { | 228 | { |
229 | path: '/socialMedia', | 229 | path: '/socialMedia', |
230 | meta: {}, | 230 | meta: {}, |
231 | name: 'Social Media', | 231 | name: 'Social Media', |
232 | props: (route) => ({ type: route.query.type }), | 232 | props: (route) => ({ type: route.query.type }), |
233 | component: () => | 233 | component: () => |
234 | import ( | 234 | import ( |
235 | /* webpackChunkName: "routes" */ | 235 | /* webpackChunkName: "routes" */ |
236 | /* webpackMode: "lazy-once" */ | 236 | /* webpackMode: "lazy-once" */ |
237 | `@/pages/socialMedia/socialMedia.vue` | 237 | `@/pages/socialMedia/socialMedia.vue` |
238 | ) | 238 | ) |
239 | }, | 239 | }, |
240 | { | 240 | { |
241 | path: '/gallery', | 241 | path: '/gallery', |
242 | meta: {}, | 242 | meta: {}, |
243 | name: 'Gallery', | 243 | name: 'Gallery', |
244 | props: (route) => ({ type: route.query.type }), | 244 | props: (route) => ({ type: route.query.type }), |
245 | component: () => | 245 | component: () => |
246 | import ( | 246 | import ( |
247 | /* webpackChunkName: "routes" */ | 247 | /* webpackChunkName: "routes" */ |
248 | /* webpackMode: "lazy-once" */ | 248 | /* webpackMode: "lazy-once" */ |
249 | `@/pages/Gallery/gallery.vue` | 249 | `@/pages/Gallery/gallery.vue` |
250 | ) | 250 | ) |
251 | }, | 251 | }, |
252 | { | 252 | { |
253 | path: '/event', | 253 | path: '/event', |
254 | meta: {}, | 254 | meta: {}, |
255 | name: 'Event', | 255 | name: 'Event', |
256 | props: (route) => ({ type: route.query.type }), | 256 | props: (route) => ({ type: route.query.type }), |
257 | component: () => | 257 | component: () => |
258 | import ( | 258 | import ( |
259 | /* webpackChunkName: "routes" */ | 259 | /* webpackChunkName: "routes" */ |
260 | /* webpackMode: "lazy-once" */ | 260 | /* webpackMode: "lazy-once" */ |
261 | `@/pages/Event/event.vue` | 261 | `@/pages/Event/event.vue` |
262 | ) | 262 | ) |
263 | }, | 263 | }, |
264 | { | 264 | { |
265 | path: '/holiday', | 265 | path: '/holiday', |
266 | meta: {}, | 266 | meta: {}, |
267 | name: 'Holiday', | 267 | name: 'Holiday', |
268 | props: (route) => ({ type: route.query.type }), | 268 | props: (route) => ({ type: route.query.type }), |
269 | component: () => | 269 | component: () => |
270 | import ( | 270 | import ( |
271 | /* webpackChunkName: "routes" */ | 271 | /* webpackChunkName: "routes" */ |
272 | /* webpackMode: "lazy-once" */ | 272 | /* webpackMode: "lazy-once" */ |
273 | `@/pages/Holiday/holiday.vue` | 273 | `@/pages/Holiday/holiday.vue` |
274 | ) | 274 | ) |
275 | }, | 275 | }, |
276 | { | 276 | { |
277 | path: '/user', | 277 | path: '/user', |
278 | meta: {}, | 278 | meta: {}, |
279 | name: 'User', | 279 | name: 'User', |
280 | props: (route) => ({ type: route.query.type }), | 280 | props: (route) => ({ type: route.query.type }), |
281 | component: () => | 281 | component: () => |
282 | import ( | 282 | import ( |
283 | /* webpackChunkName: "routes" */ | 283 | /* webpackChunkName: "routes" */ |
284 | /* webpackMode: "lazy-once" */ | 284 | /* webpackMode: "lazy-once" */ |
285 | `@/pages/User/user.vue` | 285 | `@/pages/User/user.vue` |
286 | ) | 286 | ) |
287 | }, | 287 | }, |
288 | { | 288 | { |
289 | path: '/AttendenceStudent', | 289 | path: '/AttendenceStudent', |
290 | meta: {}, | 290 | meta: {}, |
291 | name: 'Student Attendence', | 291 | name: 'Student Attendence', |
292 | props: (route) => ({ type: route.query.type }), | 292 | props: (route) => ({ type: route.query.type }), |
293 | component: () => | 293 | component: () => |
294 | import ( | 294 | import ( |
295 | /* webpackChunkName: "routes" */ | 295 | /* webpackChunkName: "routes" */ |
296 | /* webpackMode: "lazy-once" */ | 296 | /* webpackMode: "lazy-once" */ |
297 | `@/pages/Attendence/studentAttendence.vue` | 297 | `@/pages/Attendence/studentAttendence.vue` |
298 | ) | 298 | ) |
299 | }, | 299 | }, |
300 | { | 300 | { |
301 | path: '/AttendenceTeacher', | 301 | path: '/AttendenceTeacher', |
302 | meta: {}, | 302 | meta: {}, |
303 | name: 'Teacher Attendence', | 303 | name: 'Teacher Attendence', |
304 | props: (route) => ({ type: route.query.type }), | 304 | props: (route) => ({ type: route.query.type }), |
305 | component: () => | 305 | component: () => |
306 | import ( | 306 | import ( |
307 | /* webpackChunkName: "routes" */ | 307 | /* webpackChunkName: "routes" */ |
308 | /* webpackMode: "lazy-once" */ | 308 | /* webpackMode: "lazy-once" */ |
309 | `@/pages/Attendence/teacherAttendence.vue` | 309 | `@/pages/Attendence/teacherAttendence.vue` |
310 | ) | 310 | ) |
311 | }, | 311 | }, |
312 | // { | 312 | // { |
313 | // path: '/AttendenceUser', | 313 | // path: '/AttendenceUser', |
314 | // meta: {}, | 314 | // meta: {}, |
315 | // name: 'userAttendence', | 315 | // name: 'userAttendence', |
316 | // props: (route) => ({ type: route.query.type }), | 316 | // props: (route) => ({ type: route.query.type }), |
317 | // component: () => | 317 | // component: () => |
318 | // import ( | 318 | // import ( |
319 | // /* webpackChunkName: "routes" */ | 319 | // /* webpackChunkName: "routes" */ |
320 | // /* webpackMode: "lazy-once" */ | 320 | // /* webpackMode: "lazy-once" */ |
321 | // `@/pages/Attendence/userAttendence.vue` | 321 | // `@/pages/Attendence/userAttendence.vue` |
322 | // ) | 322 | // ) |
323 | // }, | 323 | // }, |
324 | { | 324 | { |
325 | path: '/feeTypes', | 325 | path: '/feeTypes', |
326 | meta: {}, | 326 | meta: {}, |
327 | name: 'Fee Types', | 327 | name: 'Fee Types', |
328 | props: (route) => ({ type: route.query.type }), | 328 | props: (route) => ({ type: route.query.type }), |
329 | component: () => | 329 | component: () => |
330 | import ( | 330 | import ( |
331 | /* webpackChunkName: "routes" */ | 331 | /* webpackChunkName: "routes" */ |
332 | /* webpackMode: "lazy-once" */ | 332 | /* webpackMode: "lazy-once" */ |
333 | `@/pages/Account/feeTypes.vue` | 333 | `@/pages/Account/feeTypes.vue` |
334 | ) | 334 | ) |
335 | }, | 335 | }, |
336 | { | 336 | { |
337 | path: '/invoice', | 337 | path: '/invoice', |
338 | meta: {}, | 338 | meta: {}, |
339 | name: 'Invoice', | 339 | name: 'Invoice', |
340 | props: (route) => ({ type: route.query.type }), | 340 | props: (route) => ({ type: route.query.type }), |
341 | component: () => | 341 | component: () => |
342 | import ( | 342 | import ( |
343 | /* webpackChunkName: "routes" */ | 343 | /* webpackChunkName: "routes" */ |
344 | /* webpackMode: "lazy-once" */ | 344 | /* webpackMode: "lazy-once" */ |
345 | `@/pages/Account/invoice.vue` | 345 | `@/pages/Account/invoice.vue` |
346 | ) | 346 | ) |
347 | }, | 347 | }, |
348 | { | 348 | { |
349 | path: '/paymentHistory', | 349 | path: '/paymentHistory', |
350 | meta: {}, | 350 | meta: {}, |
351 | name: 'Payment History', | 351 | name: 'Payment History', |
352 | props: (route) => ({ type: route.query.type }), | 352 | props: (route) => ({ type: route.query.type }), |
353 | component: () => | 353 | component: () => |
354 | import ( | 354 | import ( |
355 | /* webpackChunkName: "routes" */ | 355 | /* webpackChunkName: "routes" */ |
356 | /* webpackMode: "lazy-once" */ | 356 | /* webpackMode: "lazy-once" */ |
357 | `@/pages/Account/paymentHistory.vue` | 357 | `@/pages/Account/paymentHistory.vue` |
358 | ) | 358 | ) |
359 | }, | 359 | }, |
360 | { | 360 | { |
361 | path: '/expense', | 361 | path: '/expense', |
362 | meta: {}, | 362 | meta: {}, |
363 | name: 'Expense', | 363 | name: 'Expense', |
364 | props: (route) => ({ type: route.query.type }), | 364 | props: (route) => ({ type: route.query.type }), |
365 | component: () => | 365 | component: () => |
366 | import ( | 366 | import ( |
367 | /* webpackChunkName: "routes" */ | 367 | /* webpackChunkName: "routes" */ |
368 | /* webpackMode: "lazy-once" */ | 368 | /* webpackMode: "lazy-once" */ |
369 | `@/pages/Account/expense.vue` | 369 | `@/pages/Account/expense.vue` |
370 | ) | 370 | ) |
371 | }, | 371 | }, |
372 | { | 372 | { |
373 | path: '/income', | 373 | path: '/income', |
374 | meta: {}, | 374 | meta: {}, |
375 | name: 'Income', | 375 | name: 'Income', |
376 | props: (route) => ({ type: route.query.type }), | 376 | props: (route) => ({ type: route.query.type }), |
377 | component: () => | 377 | component: () => |
378 | import ( | 378 | import ( |
379 | /* webpackChunkName: "routes" */ | 379 | /* webpackChunkName: "routes" */ |
380 | /* webpackMode: "lazy-once" */ | 380 | /* webpackMode: "lazy-once" */ |
381 | `@/pages/Account/income.vue` | 381 | `@/pages/Account/income.vue` |
382 | ) | 382 | ) |
383 | }, | 383 | }, |
384 | { | 384 | { |
385 | path: '/libraryMember', | 385 | path: '/libraryMember', |
386 | meta: {}, | 386 | meta: {}, |
387 | name: 'Library Member', | 387 | name: 'Library Member', |
388 | props: (route) => ({ type: route.query.type }), | 388 | props: (route) => ({ type: route.query.type }), |
389 | component: () => | 389 | component: () => |
390 | import ( | 390 | import ( |
391 | /* webpackChunkName: "routes" */ | 391 | /* webpackChunkName: "routes" */ |
392 | /* webpackMode: "lazy-once" */ | 392 | /* webpackMode: "lazy-once" */ |
393 | `@/pages/Library/member.vue` | 393 | `@/pages/Library/member.vue` |
394 | ) | 394 | ) |
395 | }, | 395 | }, |
396 | { | 396 | { |
397 | path: '/books', | 397 | path: '/books', |
398 | meta: {}, | 398 | meta: {}, |
399 | name: 'Books', | 399 | name: 'Books', |
400 | props: (route) => ({ type: route.query.type }), | 400 | props: (route) => ({ type: route.query.type }), |
401 | component: () => | 401 | component: () => |
402 | import ( | 402 | import ( |
403 | /* webpackChunkName: "routes" */ | 403 | /* webpackChunkName: "routes" */ |
404 | /* webpackMode: "lazy-once" */ | 404 | /* webpackMode: "lazy-once" */ |
405 | `@/pages/Library/books.vue` | 405 | `@/pages/Library/books.vue` |
406 | ) | 406 | ) |
407 | }, | 407 | }, |
408 | { | 408 | { |
409 | path: '/issue', | 409 | path: '/issue', |
410 | meta: {}, | 410 | meta: {}, |
411 | name: 'Issue', | 411 | name: 'Issue', |
412 | props: (route) => ({ type: route.query.type }), | 412 | props: (route) => ({ type: route.query.type }), |
413 | component: () => | 413 | component: () => |
414 | import ( | 414 | import ( |
415 | /* webpackChunkName: "routes" */ | 415 | /* webpackChunkName: "routes" */ |
416 | /* webpackMode: "lazy-once" */ | 416 | /* webpackMode: "lazy-once" */ |
417 | `@/pages/Library/issue.vue` | 417 | `@/pages/Library/issue.vue` |
418 | ) | 418 | ) |
419 | }, | 419 | }, |
420 | { | 420 | { |
421 | path: '/e-books', | 421 | path: '/e-books', |
422 | meta: {}, | 422 | meta: {}, |
423 | name: 'E-Books', | 423 | name: 'E-Books', |
424 | props: (route) => ({ type: route.query.type }), | 424 | props: (route) => ({ type: route.query.type }), |
425 | component: () => | 425 | component: () => |
426 | import ( | 426 | import ( |
427 | /* webpackChunkName: "routes" */ | 427 | /* webpackChunkName: "routes" */ |
428 | /* webpackMode: "lazy-once" */ | 428 | /* webpackMode: "lazy-once" */ |
429 | `@/pages/Library/eBook.vue` | 429 | `@/pages/Library/eBook.vue` |
430 | ) | 430 | ) |
431 | }, | 431 | }, |
432 | { | 432 | { |
433 | path: '/invoiceId/:invoiceid', | 433 | path: '/invoiceId/:invoiceid', |
434 | meta: {}, | 434 | meta: {}, |
435 | name: 'Edit Invoice', | 435 | name: 'Edit Invoice', |
436 | // props: (route) => ({ type: route.query.type }), | 436 | // props: (route) => ({ type: route.query.type }), |
437 | component: () => | 437 | component: () => |
438 | import ( | 438 | import ( |
439 | /* webpackChunkName: "routes" */ | 439 | /* webpackChunkName: "routes" */ |
440 | /* webpackMode: "lazy-once" */ | 440 | /* webpackMode: "lazy-once" */ |
441 | `@/pages/Account/editInvoice.vue` | 441 | `@/pages/Account/editInvoice.vue` |
442 | ) | 442 | ) |
443 | }, | 443 | }, |
444 | { | 444 | { |
445 | path: '/StudentsAttendence/:id', | 445 | path: '/StudentsAttendence/:id', |
446 | meta: {}, | 446 | meta: {}, |
447 | name: 'View Students Attendence', | 447 | name: 'View Students Attendence', |
448 | props: (route) => ({ type: route.query.type }), | 448 | props: (route) => ({ type: route.query.type }), |
449 | component: () => | 449 | component: () => |
450 | import ( | 450 | import ( |
451 | /* webpackChunkName: "routes" */ | 451 | /* webpackChunkName: "routes" */ |
452 | /* webpackMode: "lazy-once" */ | 452 | /* webpackMode: "lazy-once" */ |
453 | `@/pages/Attendence/viewStudentsAttendence.vue` | 453 | `@/pages/Attendence/viewStudentsAttendence.vue` |
454 | ) | 454 | ) |
455 | }, | 455 | }, |
456 | { | 456 | { |
457 | path: '/TeacherAttendence/:teacherId', | 457 | path: '/TeacherAttendence/:teacherId', |
458 | meta: {}, | 458 | meta: {}, |
459 | name: 'View Teacher Attendence', | 459 | name: 'View Teacher Attendence', |
460 | props: (route) => ({ type: route.query.type }), | 460 | props: (route) => ({ type: route.query.type }), |
461 | component: () => | 461 | component: () => |
462 | import ( | 462 | import ( |
463 | /* webpackChunkName: "routes" */ | 463 | /* webpackChunkName: "routes" */ |
464 | /* webpackMode: "lazy-once" */ | 464 | /* webpackMode: "lazy-once" */ |
465 | `@/pages/Attendence/viewTeacherAttendence.vue` | 465 | `@/pages/Attendence/viewTeacherAttendence.vue` |
466 | ) | 466 | ) |
467 | }, | 467 | }, |
468 | { | 468 | { |
469 | path: '/viewInvoice/:viewInvoiceId', | 469 | path: '/viewInvoice/:viewInvoiceId', |
470 | meta: {}, | 470 | meta: {}, |
471 | name: 'View Invoice', | 471 | name: 'View Invoice', |
472 | props: (route) => ({ type: route.query.type }), | 472 | props: (route) => ({ type: route.query.type }), |
473 | component: () => | 473 | component: () => |
474 | import ( | 474 | import ( |
475 | /* webpackChunkName: "routes" */ | 475 | /* webpackChunkName: "routes" */ |
476 | /* webpackMode: "lazy-once" */ | 476 | /* webpackMode: "lazy-once" */ |
477 | `@/pages/Account/viewInvoice.vue` | 477 | `@/pages/Account/viewInvoice.vue` |
478 | ) | 478 | ) |
479 | }, | 479 | }, |
480 | { | 480 | { |
481 | path: '/globalPayment', | 481 | path: '/globalPayment', |
482 | meta: {}, | 482 | meta: {}, |
483 | name: 'Global Payment', | 483 | name: 'Global Payment', |
484 | props: (route) => ({ type: route.query.type }), | 484 | props: (route) => ({ type: route.query.type }), |
485 | component: () => | 485 | component: () => |
486 | import ( | 486 | import ( |
487 | /* webpackChunkName: "routes" */ | 487 | /* webpackChunkName: "routes" */ |
488 | /* webpackMode: "lazy-once" */ | 488 | /* webpackMode: "lazy-once" */ |
489 | `@/pages/Account/globalPayment.vue` | 489 | `@/pages/Account/globalPayment.vue` |
490 | ) | 490 | ) |
491 | }, | 491 | }, |
492 | { | 492 | { |
493 | path: '/exam', | 493 | path: '/exam', |
494 | meta: {}, | 494 | meta: {}, |
495 | name: 'Exam', | 495 | name: 'Exam', |
496 | props: (route) => ({ type: route.query.type }), | 496 | props: (route) => ({ type: route.query.type }), |
497 | component: () => | 497 | component: () => |
498 | import ( | 498 | import ( |
499 | /* webpackChunkName: "routes" */ | 499 | /* webpackChunkName: "routes" */ |
500 | /* webpackMode: "lazy-once" */ | 500 | /* webpackMode: "lazy-once" */ |
501 | `@/pages/Exam/exam.vue` | 501 | `@/pages/Exam/exam.vue` |
502 | ) | 502 | ) |
503 | }, | 503 | }, |
504 | { | 504 | { |
505 | path: '/grade', | 505 | path: '/grade', |
506 | meta: {}, | 506 | meta: {}, |
507 | name: 'Grade', | 507 | name: 'Grade', |
508 | props: (route) => ({ type: route.query.type }), | 508 | props: (route) => ({ type: route.query.type }), |
509 | component: () => | 509 | component: () => |
510 | import ( | 510 | import ( |
511 | /* webpackChunkName: "routes" */ | 511 | /* webpackChunkName: "routes" */ |
512 | /* webpackMode: "lazy-once" */ | 512 | /* webpackMode: "lazy-once" */ |
513 | `@/pages/Exam/grade.vue` | 513 | `@/pages/Exam/grade.vue` |
514 | ) | 514 | ) |
515 | }, | 515 | }, |
516 | { | 516 | { |
517 | path: '/examSchedule', | 517 | path: '/examSchedule', |
518 | meta: {}, | 518 | meta: {}, |
519 | name: 'Exam Schedule', | 519 | name: 'Exam Schedule', |
520 | props: (route) => ({ type: route.query.type }), | 520 | props: (route) => ({ type: route.query.type }), |
521 | component: () => | 521 | component: () => |
522 | import ( | 522 | import ( |
523 | /* webpackChunkName: "routes" */ | 523 | /* webpackChunkName: "routes" */ |
524 | /* webpackMode: "lazy-once" */ | 524 | /* webpackMode: "lazy-once" */ |
525 | `@/pages/Exam/examSchedule.vue` | 525 | `@/pages/Exam/examSchedule.vue` |
526 | ) | 526 | ) |
527 | }, | 527 | }, |
528 | { | 528 | { |
529 | path: '/mark', | 529 | path: '/mark', |
530 | meta: {}, | 530 | meta: {}, |
531 | name: 'Mark', | 531 | name: 'Mark', |
532 | props: (route) => ({ type: route.query.type }), | 532 | props: (route) => ({ type: route.query.type }), |
533 | component: () => | 533 | component: () => |
534 | import ( | 534 | import ( |
535 | /* webpackChunkName: "routes" */ | 535 | /* webpackChunkName: "routes" */ |
536 | /* webpackMode: "lazy-once" */ | 536 | /* webpackMode: "lazy-once" */ |
537 | `@/pages/Mark/mark.vue` | 537 | `@/pages/Mark/mark.vue` |
538 | ) | 538 | ) |
539 | }, | 539 | }, |
540 | { | 540 | { |
541 | path: '/viewMark/:markId', | 541 | path: '/viewMark/:markId', |
542 | meta: {}, | 542 | meta: {}, |
543 | name: 'view Mark', | 543 | name: 'view Mark', |
544 | props: (route) => ({ type: route.query.type }), | 544 | props: (route) => ({ type: route.query.type }), |
545 | component: () => | 545 | component: () => |
546 | import ( | 546 | import ( |
547 | /* webpackChunkName: "routes" */ | 547 | /* webpackChunkName: "routes" */ |
548 | /* webpackMode: "lazy-once" */ | 548 | /* webpackMode: "lazy-once" */ |
549 | `@/pages/Mark/viewMark.vue` | 549 | `@/pages/Mark/viewMark.vue` |
550 | ) | 550 | ) |
551 | }, | 551 | }, |
552 | { | 552 | { |
553 | path: '/markDistribution', | 553 | path: '/markDistribution', |
554 | meta: {}, | 554 | meta: {}, |
555 | name: 'Mark Distribution', | 555 | name: 'Mark Distribution', |
556 | props: (route) => ({ type: route.query.type }), | 556 | props: (route) => ({ type: route.query.type }), |
557 | component: () => | 557 | component: () => |
558 | import ( | 558 | import ( |
559 | /* webpackChunkName: "routes" */ | 559 | /* webpackChunkName: "routes" */ |
560 | /* webpackMode: "lazy-once" */ | 560 | /* webpackMode: "lazy-once" */ |
561 | `@/pages/Mark/markDistribution.vue` | 561 | `@/pages/Mark/markDistribution.vue` |
562 | ) | 562 | ) |
563 | }, | 563 | }, |
564 | { | 564 | { |
565 | path: '/promotion', | 565 | path: '/promotion', |
566 | meta: {}, | 566 | meta: {}, |
567 | name: 'Promotion', | 567 | name: 'Promotion', |
568 | props: (route) => ({ type: route.query.type }), | 568 | props: (route) => ({ type: route.query.type }), |
569 | component: () => | 569 | component: () => |
570 | import ( | 570 | import ( |
571 | /* webpackChunkName: "routes" */ | 571 | /* webpackChunkName: "routes" */ |
572 | /* webpackMode: "lazy-once" */ | 572 | /* webpackMode: "lazy-once" */ |
573 | `@/pages/Mark/promotion.vue` | 573 | `@/pages/Mark/promotion.vue` |
574 | ) | 574 | ) |
575 | }, | 575 | }, |
576 | { | 576 | { |
577 | path: '/academicYear', | 577 | path: '/academicYear', |
578 | meta: {}, | 578 | meta: {}, |
579 | name: 'Academic Year', | 579 | name: 'Academic Year', |
580 | props: (route) => ({ type: route.query.type }), | 580 | props: (route) => ({ type: route.query.type }), |
581 | component: () => | 581 | component: () => |
582 | import ( | 582 | import ( |
583 | /* webpackChunkName: "routes" */ | 583 | /* webpackChunkName: "routes" */ |
584 | /* webpackMode: "lazy-once" */ | 584 | /* webpackMode: "lazy-once" */ |
585 | `@/pages/Administrator/academicYear.vue` | 585 | `@/pages/Administrator/academicYear.vue` |
586 | ) | 586 | ) |
587 | }, | 587 | }, |
588 | { | 588 | { |
589 | path: '/systemAdmin', | 589 | path: '/systemAdmin', |
590 | meta: {}, | 590 | meta: {}, |
591 | name: 'System Admin', | 591 | name: 'System Admin', |
592 | props: (route) => ({ type: route.query.type }), | 592 | props: (route) => ({ type: route.query.type }), |
593 | component: () => | 593 | component: () => |
594 | import ( | 594 | import ( |
595 | /* webpackChunkName: "routes" */ | 595 | /* webpackChunkName: "routes" */ |
596 | /* webpackMode: "lazy-once" */ | 596 | /* webpackMode: "lazy-once" */ |
597 | `@/pages/Administrator/systemAdmin.vue` | 597 | `@/pages/Administrator/systemAdmin.vue` |
598 | ) | 598 | ) |
599 | }, | 599 | }, |
600 | { | 600 | { |
601 | path: '/resetPassword', | 601 | path: '/resetPassword', |
602 | meta: {}, | 602 | meta: {}, |
603 | name: 'Reset Password', | 603 | name: 'Change Password', |
604 | props: (route) => ({ type: route.query.type }), | 604 | props: (route) => ({ type: route.query.type }), |
605 | component: () => | 605 | component: () => |
606 | import ( | 606 | import ( |
607 | /* webpackChunkName: "routes" */ | 607 | /* webpackChunkName: "routes" */ |
608 | /* webpackMode: "lazy-once" */ | 608 | /* webpackMode: "lazy-once" */ |
609 | `@/pages/Administrator/resetPassword.vue` | 609 | `@/pages/Administrator/resetPassword.vue` |
610 | ) | 610 | ) |
611 | }, | 611 | }, |
612 | { | 612 | { |
613 | path: '/role', | 613 | path: '/role', |
614 | meta: {}, | 614 | meta: {}, |
615 | name: 'Role', | 615 | name: 'Role', |
616 | props: (route) => ({ type: route.query.type }), | 616 | props: (route) => ({ type: route.query.type }), |
617 | component: () => | 617 | component: () => |
618 | import ( | 618 | import ( |
619 | /* webpackChunkName: "routes" */ | 619 | /* webpackChunkName: "routes" */ |
620 | /* webpackMode: "lazy-once" */ | 620 | /* webpackMode: "lazy-once" */ |
621 | `@/pages/Administrator/role.vue` | 621 | `@/pages/Administrator/role.vue` |
622 | ) | 622 | ) |
623 | }, | 623 | }, |
624 | { | 624 | { |
625 | path: '/bulkImport', | 625 | path: '/bulkImport', |
626 | meta: {}, | 626 | meta: {}, |
627 | name: 'Bulk Import', | 627 | name: 'Bulk Import', |
628 | props: (route) => ({ type: route.query.type }), | 628 | props: (route) => ({ type: route.query.type }), |
629 | component: () => | 629 | component: () => |
630 | import ( | 630 | import ( |
631 | /* webpackChunkName: "routes" */ | 631 | /* webpackChunkName: "routes" */ |
632 | /* webpackMode: "lazy-once" */ | 632 | /* webpackMode: "lazy-once" */ |
633 | `@/pages/Administrator/bulkImport.vue` | 633 | `@/pages/Administrator/bulkImport.vue` |
634 | ) | 634 | ) |
635 | }, | 635 | }, |
636 | { | 636 | { |
637 | path: '/studentReport', | 637 | path: '/studentReport', |
638 | meta: {}, | 638 | meta: {}, |
639 | name: 'Student Report', | 639 | name: 'Student Report', |
640 | props: (route) => ({ type: route.query.type }), | 640 | props: (route) => ({ type: route.query.type }), |
641 | component: () => | 641 | component: () => |
642 | import ( | 642 | import ( |
643 | /* webpackChunkName: "routes" */ | 643 | /* webpackChunkName: "routes" */ |
644 | /* webpackMode: "lazy-once" */ | 644 | /* webpackMode: "lazy-once" */ |
645 | `@/pages/Report/studentReport.vue` | 645 | `@/pages/Report/studentReport.vue` |
646 | ) | 646 | ) |
647 | }, | 647 | }, |
648 | { | 648 | { |
649 | path: '/progressCardReport', | 649 | path: '/progressCardReport', |
650 | meta: {}, | 650 | meta: {}, |
651 | name: 'Progress Card Report', | 651 | name: 'Progress Card Report', |
652 | props: (route) => ({ type: route.query.type }), | 652 | props: (route) => ({ type: route.query.type }), |
653 | component: () => | 653 | component: () => |
654 | import ( | 654 | import ( |
655 | /* webpackChunkName: "routes" */ | 655 | /* webpackChunkName: "routes" */ |
656 | /* webpackMode: "lazy-once" */ | 656 | /* webpackMode: "lazy-once" */ |
657 | `@/pages/Report/progressCardReport.vue` | 657 | `@/pages/Report/progressCardReport.vue` |
658 | ) | 658 | ) |
659 | }, | 659 | }, |
660 | { | 660 | { |
661 | path: '/generalSetting', | 661 | path: '/generalSetting', |
662 | meta: {}, | 662 | meta: {}, |
663 | name: 'General Setting', | 663 | name: 'General Setting', |
664 | props: (route) => ({ type: route.query.type }), | 664 | props: (route) => ({ type: route.query.type }), |
665 | component: () => | 665 | component: () => |
666 | import ( | 666 | import ( |
667 | /* webpackChunkName: "routes" */ | 667 | /* webpackChunkName: "routes" */ |
668 | /* webpackMode: "lazy-once" */ | 668 | /* webpackMode: "lazy-once" */ |
669 | `@/pages/generalSetting/generalSetting.vue` | 669 | `@/pages/generalSetting/generalSetting.vue` |
670 | ) | 670 | ) |
671 | }, | 671 | }, |
672 | 672 | ||
673 | //////SCHOOL | 673 | //////SCHOOL |
674 | 674 | ||
675 | { | 675 | { |
676 | path: '/school', | 676 | path: '/school', |
677 | meta: {}, | 677 | meta: {}, |
678 | name: 'School', | 678 | name: 'School', |
679 | props: (route) => ({ type: route.query.type }), | 679 | props: (route) => ({ type: route.query.type }), |
680 | component: () => | 680 | component: () => |
681 | import ( | 681 | import ( |
682 | /* webpackChunkName: "routes" */ | 682 | /* webpackChunkName: "routes" */ |
683 | /* webpackMode: "lazy-once" */ | 683 | /* webpackMode: "lazy-once" */ |
684 | `@/pages/School/school.vue` | 684 | `@/pages/School/school.vue` |
685 | ) | 685 | ) |
686 | }, | 686 | }, |
687 | { | 687 | { |
688 | path: '/schooldashboard/:schoolId', | 688 | path: '/schooldashboard/:schoolId', |
689 | meta: {}, | 689 | meta: {}, |
690 | name: 'View School Dashboard', | 690 | name: 'View School Dashboard', |
691 | props: (route) => ({ type: route.query.type }), | 691 | props: (route) => ({ type: route.query.type }), |
692 | component: () => | 692 | component: () => |
693 | import ( | 693 | import ( |
694 | /* webpackChunkName: "routes" */ | 694 | /* webpackChunkName: "routes" */ |
695 | /* webpackMode: "lazy-once" */ | 695 | /* webpackMode: "lazy-once" */ |
696 | `@/pages/School/viewSchoolDashboard.vue` | 696 | `@/pages/School/viewSchoolDashboard.vue` |
697 | ) | 697 | ) |
698 | } | 698 | } |
699 | ]; | 699 | ]; |