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