blob: 3cbdabcea6266fc8ae1d2426e27a71aa63f0e380 [file] [log] [blame]
Yoshie Muranaka816d9472020-09-03 11:19:28 -07001import AppLayout from '@/layouts/AppLayout.vue';
2import ChangePassword from '@/views/ChangePassword';
3import ConsoleLayout from '@/layouts/ConsoleLayout.vue';
Sandeepa Singhf67f7692021-07-19 18:04:18 +05304import DateTime from '@/views/Settings/DateTime';
Derick Montague828dda92021-06-28 15:52:22 -05005import EventLogs from '@/views/Logs/EventLogs';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +05306import FactoryReset from '@/views/Operations/FactoryReset';
7import 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 Sessions from '../views/SecurityAndAccess/Sessions';
12import Ldap from '@/views/SecurityAndAccess/Ldap';
13import UserManagement from '@/views/SecurityAndAccess/UserManagement';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070014import Login from '@/views/Login';
15import LoginLayout from '@/layouts/LoginLayout';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053016import Network from '@/views/Settings/Network';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070017import Overview from '@/views/Overview';
18import PageNotFound from '@/views/PageNotFound';
Sandeepa Singh7affc522021-07-06 16:29:10 +053019import PostCodeLogs from '@/views/Logs/PostCodeLogs';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053020import PowerRestorePolicy from '@/views/Settings/PowerRestorePolicy';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070021import ProfileSettings from '@/views/ProfileSettings';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053022import RebootBmc from '@/views/Operations/RebootBmc';
Sandeepa Singhb4406162021-07-26 15:05:39 +053023import Policies from '@/views/SecurityAndAccess/Policies';
Sandeepa Singh05887b52022-01-10 19:19:36 +053024import KeyClear from '@/views/Operations/KeyClear';
Sandeepa Singh7affc522021-07-06 16:29:10 +053025import Sensors from '@/views/HardwareStatus/Sensors';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053026import SerialOverLan from '@/views/Operations/SerialOverLan';
27import SerialOverLanConsole from '@/views/Operations/SerialOverLan/SerialOverLanConsole';
28import ServerPowerOperations from '@/views/Operations/ServerPowerOperations';
Sandeepa Singhb4406162021-07-26 15:05:39 +053029import Certificates from '@/views/SecurityAndAccess/Certificates';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053030import VirtualMedia from '@/views/Operations/VirtualMedia';
Sandeepa Singh6dba4be2021-07-28 15:25:14 +053031import Power from '@/views/ResourceManagement/Power';
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070032import i18n from '@/i18n';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070033
Yoshie Muranaka816d9472020-09-03 11:19:28 -070034const routes = [
35 {
36 path: '/login',
37 component: LoginLayout,
38 children: [
39 {
40 path: '',
41 name: 'login',
42 component: Login,
43 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050044 title: i18n.t('appPageTitle.login'),
45 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070046 },
47 {
48 path: '/change-password',
49 name: 'change-password',
50 component: ChangePassword,
51 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070052 title: i18n.t('appPageTitle.changePassword'),
Derick Montague602e98a2020-10-21 16:20:00 -050053 requiresAuth: true,
54 },
55 },
56 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070057 },
58 {
59 path: '/console',
60 component: ConsoleLayout,
61 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050062 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070063 },
64 children: [
65 {
66 path: 'serial-over-lan-console',
67 name: 'serial-over-lan-console',
68 component: SerialOverLanConsole,
69 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050070 title: i18n.t('appPageTitle.serialOverLan'),
71 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070072 },
73 {
74 path: 'kvm',
75 name: 'kvm-console',
76 component: KvmConsole,
77 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050078 title: i18n.t('appPageTitle.kvm'),
79 },
80 },
81 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070082 },
83 {
84 path: '/',
85 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050086 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070087 },
88 component: AppLayout,
89 children: [
90 {
91 path: '',
92 name: 'overview',
93 component: Overview,
94 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050095 title: i18n.t('appPageTitle.overview'),
96 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070097 },
98 {
99 path: '/profile-settings',
100 name: 'profile-settings',
101 component: ProfileSettings,
102 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500103 title: i18n.t('appPageTitle.profileSettings'),
104 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700105 },
106 {
Derick Montague828dda92021-06-28 15:52:22 -0500107 path: '/logs/event-logs',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700108 name: 'event-logs',
109 component: EventLogs,
110 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500111 title: i18n.t('appPageTitle.eventLogs'),
112 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700113 },
114 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530115 path: '/logs/post-code-logs',
Derick Montague512dfb72021-07-30 15:57:17 -0500116 name: 'post-code-logs',
Sandeepa Singh06d53862021-05-24 13:51:09 +0530117 component: PostCodeLogs,
118 meta: {
119 title: i18n.t('appPageTitle.postCodeLogs'),
120 },
121 },
122 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530123 path: '/hardware-status/inventory',
124 name: 'inventory',
125 component: Inventory,
126 meta: {
127 title: i18n.t('appPageTitle.inventory'),
128 },
129 },
130 {
131 path: '/hardware-status/sensors',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700132 name: 'sensors',
133 component: Sensors,
134 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500135 title: i18n.t('appPageTitle.sensors'),
136 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700137 },
138 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530139 path: '/security-and-access/sessions',
140 name: 'sessions',
141 component: Sessions,
Sukanya Pandey34efde22020-12-02 19:04:09 +0530142 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530143 title: i18n.t('appPageTitle.sessions'),
Sukanya Pandey34efde22020-12-02 19:04:09 +0530144 },
145 },
146 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530147 path: '/security-and-access/ldap',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700148 name: 'ldap',
149 component: Ldap,
150 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500151 title: i18n.t('appPageTitle.ldap'),
152 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700153 },
154 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530155 path: '/security-and-access/user-management',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700156 name: 'local-users',
Sandeepa Singhb4406162021-07-26 15:05:39 +0530157 component: UserManagement,
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700158 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530159 title: i18n.t('appPageTitle.userManagement'),
Derick Montague602e98a2020-10-21 16:20:00 -0500160 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700161 },
162 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530163 path: '/security-and-access/policies',
164 name: 'policies',
165 component: Policies,
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700166 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530167 title: i18n.t('appPageTitle.policies'),
168 },
169 },
170 {
171 path: '/security-and-access/certificates',
172 name: 'certificates',
173 component: Certificates,
174 meta: {
175 title: i18n.t('appPageTitle.certificates'),
Derick Montague602e98a2020-10-21 16:20:00 -0500176 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700177 },
178 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530179 path: '/settings/date-time',
180 name: 'date-time',
181 component: DateTime,
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700182 meta: {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530183 title: i18n.t('appPageTitle.dateTime'),
Derick Montague602e98a2020-10-21 16:20:00 -0500184 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700185 },
186 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530187 path: '/operations/factory-reset',
Derick Montagueda9f0a62021-02-14 19:21:44 -0600188 name: 'factory-reset',
189 component: FactoryReset,
190 meta: {
191 title: i18n.t('appPageTitle.factoryReset'),
192 },
193 },
194 {
Sandeepa Singh05887b52022-01-10 19:19:36 +0530195 path: '/operations/key-clear',
196 name: 'key-clear',
197 component: KeyClear,
198 meta: {
199 title: i18n.t('appPageTitle.keyClear'),
200 },
201 },
202 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530203 path: '/operations/kvm',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700204 name: 'kvm',
205 component: Kvm,
206 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500207 title: i18n.t('appPageTitle.kvm'),
208 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700209 },
210 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530211 path: '/operations/firmware',
212 name: 'firmware',
213 component: Firmware,
214 meta: {
215 title: i18n.t('appPageTitle.firmware'),
216 },
217 },
218 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530219 path: '/settings/network',
220 name: 'network',
221 component: Network,
222 meta: {
223 title: i18n.t('appPageTitle.network'),
224 },
225 },
226 {
227 path: '/settings/power-restore-policy',
Sukanya Pandeybe6858c2020-12-16 20:08:01 +0530228 name: 'power-restore-policy',
229 component: PowerRestorePolicy,
230 meta: {
231 title: i18n.t('appPageTitle.powerRestorePolicy'),
232 },
233 },
234 {
Sandeepa Singh6dba4be2021-07-28 15:25:14 +0530235 path: '/resource-management/power',
236 name: 'power',
237 component: Power,
238 meta: {
239 title: i18n.t('appPageTitle.power'),
240 },
241 },
242 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530243 path: '/operations/reboot-bmc',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700244 name: 'reboot-bmc',
245 component: RebootBmc,
246 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500247 title: i18n.t('appPageTitle.rebootBmc'),
248 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700249 },
250 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530251 path: '/operations/serial-over-lan',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700252 name: 'serial-over-lan',
253 component: SerialOverLan,
254 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500255 title: i18n.t('appPageTitle.serialOverLan'),
256 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700257 },
258 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530259 path: '/operations/server-power-operations',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700260 name: 'server-power-operations',
261 component: ServerPowerOperations,
262 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500263 title: i18n.t('appPageTitle.serverPowerOperations'),
264 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700265 },
266 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530267 path: '/operations/virtual-media',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700268 name: 'virtual-media',
269 component: VirtualMedia,
270 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500271 title: i18n.t('appPageTitle.virtualMedia'),
272 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700273 },
274 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700275 path: '*',
276 name: 'page-not-found',
277 component: PageNotFound,
278 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500279 title: i18n.t('appPageTitle.pageNotFound'),
280 },
281 },
282 ],
283 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700284];
285
286export default routes;