Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 1 | import AppLayout from '@/layouts/AppLayout.vue'; |
| 2 | import ChangePassword from '@/views/ChangePassword'; |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 3 | import Sessions from '@/views/SecurityAndAccess/Sessions'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 4 | import ConsoleLayout from '@/layouts/ConsoleLayout.vue'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 5 | import DateTime from '@/views/Settings/DateTime'; |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 6 | import EventLogs from '@/views/Logs/EventLogs'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 7 | import FactoryReset from '@/views/Operations/FactoryReset'; |
| 8 | import Firmware from '@/views/Operations/Firmware'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 9 | import Inventory from '@/views/HardwareStatus/Inventory'; |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 10 | import Ldap from '@/views/SecurityAndAccess/Ldap'; |
| 11 | import UserManagement from '@/views/SecurityAndAccess/UserManagement'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 12 | import Login from '@/views/Login'; |
| 13 | import LoginLayout from '@/layouts/LoginLayout'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 14 | import Network from '@/views/Settings/Network'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 15 | import Overview from '@/views/Overview'; |
| 16 | import PageNotFound from '@/views/PageNotFound'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 17 | import PostCodeLogs from '@/views/Logs/PostCodeLogs'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 18 | import PowerRestorePolicy from '@/views/Settings/PowerRestorePolicy'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 19 | import ProfileSettings from '@/views/ProfileSettings'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 20 | import RebootBmc from '@/views/Operations/RebootBmc'; |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 21 | import Policies from '@/views/SecurityAndAccess/Policies'; |
Sandeepa Singh | 05887b5 | 2022-01-10 19:19:36 +0530 | [diff] [blame] | 22 | import KeyClear from '@/views/Operations/KeyClear'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 23 | import Sensors from '@/views/HardwareStatus/Sensors'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 24 | import SerialOverLan from '@/views/Operations/SerialOverLan'; |
| 25 | import SerialOverLanConsole from '@/views/Operations/SerialOverLan/SerialOverLanConsole'; |
| 26 | import ServerPowerOperations from '@/views/Operations/ServerPowerOperations'; |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 27 | import Certificates from '@/views/SecurityAndAccess/Certificates'; |
Sandeepa Singh | 6dba4be | 2021-07-28 15:25:14 +0530 | [diff] [blame] | 28 | import Power from '@/views/ResourceManagement/Power'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 29 | import i18n from '@/i18n'; |
Yoshie Muranaka | 9e36f52 | 2020-02-05 07:42:34 -0800 | [diff] [blame] | 30 | |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 31 | // Custom components |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 32 | import Dumps from '@/views/Logs/Dumps'; |
Yoshie Muranaka | 3dd167a | 2020-09-03 13:58:35 -0700 | [diff] [blame] | 33 | |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 34 | const routes = [ |
| 35 | { |
| 36 | path: '/login', |
| 37 | component: LoginLayout, |
| 38 | children: [ |
| 39 | { |
| 40 | path: '', |
| 41 | name: 'login', |
| 42 | component: Login, |
| 43 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 44 | title: i18n.t('appPageTitle.login'), |
| 45 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 46 | }, |
| 47 | { |
| 48 | path: '/change-password', |
| 49 | name: 'change-password', |
| 50 | component: ChangePassword, |
| 51 | meta: { |
| 52 | title: i18n.t('appPageTitle.changePassword'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 53 | requiresAuth: true, |
| 54 | }, |
| 55 | }, |
| 56 | ], |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 57 | }, |
| 58 | { |
| 59 | path: '/console', |
| 60 | component: ConsoleLayout, |
| 61 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 62 | requiresAuth: true, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 63 | }, |
| 64 | children: [ |
| 65 | { |
| 66 | path: 'serial-over-lan-console', |
| 67 | name: 'serial-over-lan-console', |
| 68 | component: SerialOverLanConsole, |
| 69 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 70 | title: i18n.t('appPageTitle.serialOverLan'), |
| 71 | }, |
| 72 | }, |
| 73 | ], |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 74 | }, |
| 75 | { |
| 76 | path: '/', |
| 77 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 78 | requiresAuth: true, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 79 | }, |
| 80 | component: AppLayout, |
| 81 | children: [ |
| 82 | { |
| 83 | path: '', |
| 84 | name: 'overview', |
| 85 | component: Overview, |
| 86 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 87 | title: i18n.t('appPageTitle.overview'), |
| 88 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 89 | }, |
| 90 | { |
| 91 | path: '/profile-settings', |
| 92 | name: 'profile-settings', |
| 93 | component: ProfileSettings, |
| 94 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 95 | title: i18n.t('appPageTitle.profileSettings'), |
| 96 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 97 | }, |
| 98 | { |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 99 | path: '/logs/dumps', |
Yoshie Muranaka | 22d4d52 | 2020-12-03 10:58:35 -0800 | [diff] [blame] | 100 | name: 'dumps', |
| 101 | component: Dumps, |
| 102 | meta: { |
| 103 | title: i18n.t('appPageTitle.dumps'), |
| 104 | }, |
| 105 | }, |
| 106 | { |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 107 | path: '/logs/event-logs', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 108 | name: 'event-logs', |
| 109 | component: EventLogs, |
| 110 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 111 | title: i18n.t('appPageTitle.eventLogs'), |
| 112 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 113 | }, |
| 114 | { |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 115 | path: '/logs/post-code-logs', |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 116 | name: 'post-code-logs', |
| 117 | component: PostCodeLogs, |
| 118 | meta: { |
| 119 | title: i18n.t('appPageTitle.postCodeLogs'), |
| 120 | }, |
| 121 | }, |
| 122 | { |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 123 | 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 Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 132 | name: 'sensors', |
| 133 | component: Sensors, |
| 134 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 135 | title: i18n.t('appPageTitle.sensors'), |
| 136 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 137 | }, |
| 138 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 139 | path: '/security-and-access/sessions', |
| 140 | name: 'sessions', |
| 141 | component: Sessions, |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 142 | meta: { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 143 | title: i18n.t('appPageTitle.sessions'), |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 144 | }, |
| 145 | }, |
| 146 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 147 | path: '/security-and-access/ldap', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 148 | name: 'ldap', |
| 149 | component: Ldap, |
| 150 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 151 | title: i18n.t('appPageTitle.ldap'), |
| 152 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 153 | }, |
| 154 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 155 | path: '/security-and-access/user-management', |
| 156 | name: 'user-management', |
| 157 | component: UserManagement, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 158 | meta: { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 159 | title: i18n.t('appPageTitle.userManagement'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 160 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 161 | }, |
| 162 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 163 | path: '/security-and-access/policies', |
| 164 | name: 'policies', |
| 165 | component: Policies, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 166 | meta: { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 167 | 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 Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 176 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 177 | }, |
| 178 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 179 | path: '/settings/date-time', |
| 180 | name: 'date-time', |
| 181 | component: DateTime, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 182 | meta: { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 183 | title: i18n.t('appPageTitle.dateTime'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 184 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 185 | }, |
| 186 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 187 | path: '/operations/firmware', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 188 | name: 'firmware', |
Yoshie Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 189 | component: Firmware, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 190 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 191 | title: i18n.t('appPageTitle.firmware'), |
| 192 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 193 | }, |
| 194 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 195 | path: '/settings/network', |
| 196 | name: 'network', |
| 197 | component: Network, |
| 198 | meta: { |
| 199 | title: i18n.t('appPageTitle.network'), |
| 200 | }, |
| 201 | }, |
| 202 | { |
| 203 | path: '/settings/power-restore-policy', |
Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 204 | name: 'power-restore-policy', |
| 205 | component: PowerRestorePolicy, |
| 206 | meta: { |
| 207 | title: i18n.t('appPageTitle.powerRestorePolicy'), |
| 208 | }, |
| 209 | }, |
| 210 | { |
Sandeepa Singh | 6dba4be | 2021-07-28 15:25:14 +0530 | [diff] [blame] | 211 | path: '/resource-management/power', |
| 212 | name: 'power', |
| 213 | component: Power, |
| 214 | meta: { |
| 215 | title: i18n.t('appPageTitle.power'), |
| 216 | }, |
| 217 | }, |
| 218 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 219 | path: '/operations/factory-reset', |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 220 | name: 'factory-reset', |
| 221 | component: FactoryReset, |
| 222 | meta: { |
| 223 | title: i18n.t('appPageTitle.factoryReset'), |
| 224 | }, |
| 225 | }, |
| 226 | { |
Sandeepa Singh | 05887b5 | 2022-01-10 19:19:36 +0530 | [diff] [blame] | 227 | path: '/operations/key-clear', |
| 228 | name: 'key-clear', |
| 229 | component: KeyClear, |
| 230 | meta: { |
| 231 | title: i18n.t('appPageTitle.keyClear'), |
| 232 | }, |
| 233 | }, |
| 234 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 235 | path: '/operations/reboot-bmc', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 236 | name: 'reboot-bmc', |
| 237 | component: RebootBmc, |
| 238 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 239 | title: i18n.t('appPageTitle.rebootBmc'), |
| 240 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 241 | }, |
| 242 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 243 | path: '/operations/serial-over-lan', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 244 | name: 'serial-over-lan', |
| 245 | component: SerialOverLan, |
| 246 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 247 | title: i18n.t('appPageTitle.serialOverLan'), |
| 248 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 249 | }, |
| 250 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 251 | path: '/operations/server-power-operations', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 252 | name: 'server-power-operations', |
| 253 | component: ServerPowerOperations, |
| 254 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 255 | title: i18n.t('appPageTitle.serverPowerOperations'), |
| 256 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 257 | }, |
| 258 | { |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 259 | path: '*', |
| 260 | name: 'page-not-found', |
| 261 | component: PageNotFound, |
| 262 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 263 | title: i18n.t('appPageTitle.pageNotFound'), |
| 264 | }, |
| 265 | }, |
| 266 | ], |
| 267 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 268 | ]; |
Yoshie Muranaka | 3dd167a | 2020-09-03 13:58:35 -0700 | [diff] [blame] | 269 | |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 270 | export default routes; |