blob: fd8ed77c3126999cacaeb667219053b3013c3a9f [file] [log] [blame]
MichalX Szopinski842b5db2020-11-24 13:12:50 +01001import AppLayout from '@/layouts/AppLayout.vue';
2import ChangePassword from '@/views/ChangePassword';
Sandeepa Singhb4406162021-07-26 15:05:39 +05303import Sessions from '@/views/SecurityAndAccess/Sessions';
MichalX Szopinski842b5db2020-11-24 13:12:50 +01004import ConsoleLayout from '@/layouts/ConsoleLayout.vue';
Sandeepa Singhf67f7692021-07-19 18:04:18 +05305import DateTime from '@/views/Settings/DateTime';
Derick Montague828dda92021-06-28 15:52:22 -05006import EventLogs from '@/views/Logs/EventLogs';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +05307import Firmware from '@/views/Operations/Firmware';
Sandeepa Singh7affc522021-07-06 16:29:10 +05308import Inventory from '@/views/HardwareStatus/Inventory';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +05309import Kvm from '@/views/Operations/Kvm';
10import KvmConsole from '@/views/Operations/Kvm/KvmConsole';
Sandeepa Singhb4406162021-07-26 15:05:39 +053011import UserManagement from '@/views/SecurityAndAccess/UserManagement';
MichalX Szopinski842b5db2020-11-24 13:12:50 +010012import Login from '@/views/Login';
13import LoginLayout from '@/layouts/LoginLayout';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053014import Network from '@/views/Settings/Network';
MichalX Szopinski842b5db2020-11-24 13:12:50 +010015import Overview from '@/views/Overview';
16import PageNotFound from '@/views/PageNotFound';
MichalX Szopinski2a2e1022021-11-05 15:54:29 +010017import PostCodeLogs from '@/views/Logs/PostCodeLogs';
MichalX Szopinski842b5db2020-11-24 13:12:50 +010018import ProfileSettings from '@/views/ProfileSettings';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053019import RebootBmc from '@/views/Operations/RebootBmc';
Sandeepa Singhb4406162021-07-26 15:05:39 +053020import Policies from '@/views/SecurityAndAccess/Policies';
Sandeepa Singh7affc522021-07-06 16:29:10 +053021import Sensors from '@/views/HardwareStatus/Sensors';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053022import SerialOverLan from '@/views/Operations/SerialOverLan';
23import SerialOverLanConsole from '@/views/Operations/SerialOverLan/SerialOverLanConsole';
24import ServerPowerOperations from '@/views/Operations/ServerPowerOperations';
Sandeepa Singhb4406162021-07-26 15:05:39 +053025import Certificates from '@/views/SecurityAndAccess/Certificates';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053026import VirtualMedia from '@/views/Operations/VirtualMedia';
Sandeepa Singh6dba4be2021-07-28 15:25:14 +053027import Power from '@/views/ResourceManagement/Power';
MichalX Szopinski842b5db2020-11-24 13:12:50 +010028import i18n from '@/i18n';
29
30const routes = [
31 {
32 path: '/login',
33 component: LoginLayout,
34 children: [
35 {
36 path: '',
37 name: 'login',
38 component: Login,
39 meta: {
40 title: i18n.t('appPageTitle.login'),
41 },
42 },
43 {
44 path: '/change-password',
45 name: 'change-password',
46 component: ChangePassword,
47 meta: {
48 title: i18n.t('appPageTitle.changePassword'),
49 requiresAuth: true,
50 },
51 },
52 ],
53 },
54 {
55 path: '/console',
56 component: ConsoleLayout,
57 meta: {
58 requiresAuth: true,
59 },
60 children: [
61 {
62 path: 'serial-over-lan-console',
63 name: 'serial-over-lan-console',
64 component: SerialOverLanConsole,
65 meta: {
66 title: i18n.t('appPageTitle.serialOverLan'),
67 },
68 },
69 {
70 path: 'kvm',
71 name: 'kvm-console',
72 component: KvmConsole,
73 meta: {
74 title: i18n.t('appPageTitle.kvm'),
75 },
76 },
77 ],
78 },
79 {
80 path: '/',
81 meta: {
82 requiresAuth: true,
83 },
84 component: AppLayout,
85 children: [
86 {
87 path: '',
88 name: 'overview',
89 component: Overview,
90 meta: {
91 title: i18n.t('appPageTitle.overview'),
92 },
93 },
94 {
95 path: '/profile-settings',
96 name: 'profile-settings',
97 component: ProfileSettings,
98 meta: {
99 title: i18n.t('appPageTitle.profileSettings'),
100 },
101 },
102 {
Derick Montague828dda92021-06-28 15:52:22 -0500103 path: '/logs/event-logs',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100104 name: 'event-logs',
105 component: EventLogs,
106 meta: {
107 title: i18n.t('appPageTitle.eventLogs'),
108 },
109 },
110 {
MichalX Szopinski2a2e1022021-11-05 15:54:29 +0100111 path: '/logs/post-code-logs',
112 name: 'post-code-logs',
113 component: PostCodeLogs,
114 meta: {
115 title: i18n.t('appPageTitle.postCodeLogs'),
116 },
117 },
118 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530119 path: '/hardware-status/inventory',
120 name: 'inventory',
121 component: Inventory,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100122 meta: {
MichalX Szopinski6225f642021-10-11 16:31:49 +0200123 title: i18n.t('appPageTitle.inventory'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100124 },
125 },
126 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530127 path: '/hardware-status/sensors',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100128 name: 'sensors',
129 component: Sensors,
130 meta: {
131 title: i18n.t('appPageTitle.sensors'),
132 },
133 },
134 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530135 path: '/security-and-access/sessions',
136 name: 'sessions',
137 component: Sessions,
MichalX Szopinskid6752692021-03-01 13:59:55 +0100138 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530139 title: i18n.t('appPageTitle.sessions'),
MichalX Szopinskid6752692021-03-01 13:59:55 +0100140 },
141 },
142 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530143 path: '/security-and-access/user-management',
144 name: 'user-management',
145 component: UserManagement,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100146 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530147 title: i18n.t('appPageTitle.userManagement'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100148 },
149 },
150 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530151 path: '/security-and-access/policies',
152 name: 'policies',
153 component: Policies,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100154 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530155 title: i18n.t('appPageTitle.policies'),
156 },
157 },
158 {
159 path: '/security-and-access/certificates',
160 name: 'certificates',
161 component: Certificates,
162 meta: {
163 title: i18n.t('appPageTitle.certificates'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100164 },
165 },
166 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530167 path: '/settings/date-time',
168 name: 'date-time',
169 component: DateTime,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100170 meta: {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530171 title: i18n.t('appPageTitle.dateTime'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100172 },
173 },
174 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530175 path: '/operations/kvm',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100176 name: 'kvm',
177 component: Kvm,
178 meta: {
179 title: i18n.t('appPageTitle.kvm'),
180 },
181 },
182 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530183 path: '/operations/firmware',
184 name: 'firmware',
185 component: Firmware,
186 meta: {
187 title: i18n.t('appPageTitle.firmware'),
188 },
189 },
190 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530191 path: '/settings/network',
192 name: 'network',
193 component: Network,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100194 meta: {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530195 title: i18n.t('appPageTitle.network'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100196 },
197 },
198 {
Sandeepa Singh6dba4be2021-07-28 15:25:14 +0530199 path: '/resource-management/power',
200 name: 'power',
201 component: Power,
202 meta: {
203 title: i18n.t('appPageTitle.power'),
204 },
205 },
206 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530207 path: '/operations/reboot-bmc',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100208 name: 'reboot-bmc',
209 component: RebootBmc,
210 meta: {
211 title: i18n.t('appPageTitle.rebootBmc'),
212 },
213 },
214 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530215 path: '/operations/serial-over-lan',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100216 name: 'serial-over-lan',
217 component: SerialOverLan,
218 meta: {
219 title: i18n.t('appPageTitle.serialOverLan'),
220 },
221 },
222 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530223 path: '/operations/server-power-operations',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100224 name: 'server-power-operations',
225 component: ServerPowerOperations,
226 meta: {
227 title: i18n.t('appPageTitle.serverPowerOperations'),
228 },
229 },
230 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530231 path: '/operations/virtual-media',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100232 name: 'virtual-media',
233 component: VirtualMedia,
234 meta: {
235 title: i18n.t('appPageTitle.virtualMedia'),
236 },
237 },
238 {
239 path: '*',
240 name: 'page-not-found',
241 component: PageNotFound,
242 meta: {
243 title: i18n.t('appPageTitle.pageNotFound'),
244 },
245 },
246 ],
247 },
248];
Mateusz Gapski03505912020-06-25 08:16:51 +0200249
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700250export default routes;