blob: dec42afcdb1aa627c6c7da1c11adc393be343134 [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 Singh68cbbe92021-07-14 16:02:22 +053014import ManagePowerUsage from '@/views/Operations/ManagePowerUsage';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053015import Network from '@/views/Settings/Network';
MichalX Szopinski842b5db2020-11-24 13:12:50 +010016import Overview from '@/views/Overview';
17import PageNotFound from '@/views/PageNotFound';
18import 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';
MichalX Szopinski842b5db2020-11-24 13:12:50 +010027import i18n from '@/i18n';
28
29const routes = [
30 {
31 path: '/login',
32 component: LoginLayout,
33 children: [
34 {
35 path: '',
36 name: 'login',
37 component: Login,
38 meta: {
39 title: i18n.t('appPageTitle.login'),
40 },
41 },
42 {
43 path: '/change-password',
44 name: 'change-password',
45 component: ChangePassword,
46 meta: {
47 title: i18n.t('appPageTitle.changePassword'),
48 requiresAuth: true,
49 },
50 },
51 ],
52 },
53 {
54 path: '/console',
55 component: ConsoleLayout,
56 meta: {
57 requiresAuth: true,
58 },
59 children: [
60 {
61 path: 'serial-over-lan-console',
62 name: 'serial-over-lan-console',
63 component: SerialOverLanConsole,
64 meta: {
65 title: i18n.t('appPageTitle.serialOverLan'),
66 },
67 },
68 {
69 path: 'kvm',
70 name: 'kvm-console',
71 component: KvmConsole,
72 meta: {
73 title: i18n.t('appPageTitle.kvm'),
74 },
75 },
76 ],
77 },
78 {
79 path: '/',
80 meta: {
81 requiresAuth: true,
82 },
83 component: AppLayout,
84 children: [
85 {
86 path: '',
87 name: 'overview',
88 component: Overview,
89 meta: {
90 title: i18n.t('appPageTitle.overview'),
91 },
92 },
93 {
94 path: '/profile-settings',
95 name: 'profile-settings',
96 component: ProfileSettings,
97 meta: {
98 title: i18n.t('appPageTitle.profileSettings'),
99 },
100 },
101 {
Derick Montague828dda92021-06-28 15:52:22 -0500102 path: '/logs/event-logs',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100103 name: 'event-logs',
104 component: EventLogs,
105 meta: {
106 title: i18n.t('appPageTitle.eventLogs'),
107 },
108 },
109 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530110 path: '/hardware-status/inventory',
111 name: 'inventory',
112 component: Inventory,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100113 meta: {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530114 title: i18n.t('appPageTitle.Inventory'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100115 },
116 },
117 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530118 path: '/hardware-status/sensors',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100119 name: 'sensors',
120 component: Sensors,
121 meta: {
122 title: i18n.t('appPageTitle.sensors'),
123 },
124 },
125 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530126 path: '/security-and-access/sessions',
127 name: 'sessions',
128 component: Sessions,
MichalX Szopinskid6752692021-03-01 13:59:55 +0100129 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530130 title: i18n.t('appPageTitle.sessions'),
MichalX Szopinskid6752692021-03-01 13:59:55 +0100131 },
132 },
133 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530134 path: '/security-and-access/user-management',
135 name: 'user-management',
136 component: UserManagement,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100137 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530138 title: i18n.t('appPageTitle.userManagement'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100139 },
140 },
141 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530142 path: '/security-and-access/policies',
143 name: 'policies',
144 component: Policies,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100145 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530146 title: i18n.t('appPageTitle.policies'),
147 },
148 },
149 {
150 path: '/security-and-access/certificates',
151 name: 'certificates',
152 component: Certificates,
153 meta: {
154 title: i18n.t('appPageTitle.certificates'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100155 },
156 },
157 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530158 path: '/settings/date-time',
159 name: 'date-time',
160 component: DateTime,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100161 meta: {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530162 title: i18n.t('appPageTitle.dateTime'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100163 },
164 },
165 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530166 path: '/operations/kvm',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100167 name: 'kvm',
168 component: Kvm,
169 meta: {
170 title: i18n.t('appPageTitle.kvm'),
171 },
172 },
173 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530174 path: '/operations/firmware',
175 name: 'firmware',
176 component: Firmware,
177 meta: {
178 title: i18n.t('appPageTitle.firmware'),
179 },
180 },
181 {
182 path: '/operations/manage-power-usage',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100183 name: 'manage-power-usage',
184 component: ManagePowerUsage,
185 meta: {
186 title: i18n.t('appPageTitle.managePowerUsage'),
187 },
188 },
189 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530190 path: '/settings/network',
191 name: 'network',
192 component: Network,
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100193 meta: {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530194 title: i18n.t('appPageTitle.network'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100195 },
196 },
197 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530198 path: '/operations/reboot-bmc',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100199 name: 'reboot-bmc',
200 component: RebootBmc,
201 meta: {
202 title: i18n.t('appPageTitle.rebootBmc'),
203 },
204 },
205 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530206 path: '/operations/serial-over-lan',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100207 name: 'serial-over-lan',
208 component: SerialOverLan,
209 meta: {
210 title: i18n.t('appPageTitle.serialOverLan'),
211 },
212 },
213 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530214 path: '/operations/server-power-operations',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100215 name: 'server-power-operations',
216 component: ServerPowerOperations,
217 meta: {
218 title: i18n.t('appPageTitle.serverPowerOperations'),
219 },
220 },
221 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530222 path: '/operations/virtual-media',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100223 name: 'virtual-media',
224 component: VirtualMedia,
225 meta: {
226 title: i18n.t('appPageTitle.virtualMedia'),
227 },
228 },
229 {
230 path: '*',
231 name: 'page-not-found',
232 component: PageNotFound,
233 meta: {
234 title: i18n.t('appPageTitle.pageNotFound'),
235 },
236 },
237 ],
238 },
239];
Mateusz Gapski03505912020-06-25 08:16:51 +0200240
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700241export default routes;