Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 1 | import AppLayout from '@/layouts/AppLayout.vue'; |
| 2 | import ChangePassword from '@/views/ChangePassword'; |
| 3 | import ConsoleLayout from '@/layouts/ConsoleLayout.vue'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 4 | import DateTime from '@/views/Settings/DateTime'; |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 5 | import EventLogs from '@/views/Logs/EventLogs'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 6 | import FactoryReset from '@/views/Operations/FactoryReset'; |
| 7 | import Firmware from '@/views/Operations/Firmware'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 8 | import Inventory from '@/views/HardwareStatus/Inventory'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 9 | import Kvm from '@/views/Operations/Kvm'; |
| 10 | import KvmConsole from '@/views/Operations/Kvm/KvmConsole'; |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 11 | import Sessions from '../views/SecurityAndAccess/Sessions'; |
| 12 | import Ldap from '@/views/SecurityAndAccess/Ldap'; |
| 13 | import UserManagement from '@/views/SecurityAndAccess/UserManagement'; |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 14 | import Login from '@/views/Login'; |
| 15 | import LoginLayout from '@/layouts/LoginLayout'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 16 | import Network from '@/views/Settings/Network'; |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 17 | import Overview from '@/views/Overview'; |
| 18 | import PageNotFound from '@/views/PageNotFound'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 19 | import PostCodeLogs from '@/views/Logs/PostCodeLogs'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 20 | import PowerRestorePolicy from '@/views/Settings/PowerRestorePolicy'; |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 21 | import ProfileSettings from '@/views/ProfileSettings'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 22 | import RebootBmc from '@/views/Operations/RebootBmc'; |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 23 | import Policies from '@/views/SecurityAndAccess/Policies'; |
Sandeepa Singh | 05887b5 | 2022-01-10 19:19:36 +0530 | [diff] [blame] | 24 | import KeyClear from '@/views/Operations/KeyClear'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 25 | import Sensors from '@/views/HardwareStatus/Sensors'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 26 | import SerialOverLan from '@/views/Operations/SerialOverLan'; |
| 27 | import SerialOverLanConsole from '@/views/Operations/SerialOverLan/SerialOverLanConsole'; |
| 28 | import ServerPowerOperations from '@/views/Operations/ServerPowerOperations'; |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 29 | import Certificates from '@/views/SecurityAndAccess/Certificates'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 30 | import VirtualMedia from '@/views/Operations/VirtualMedia'; |
Sandeepa Singh | 6dba4be | 2021-07-28 15:25:14 +0530 | [diff] [blame] | 31 | import Power from '@/views/ResourceManagement/Power'; |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 32 | import i18n from '@/i18n'; |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 33 | |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 46 | }, |
| 47 | { |
| 48 | path: '/change-password', |
| 49 | name: 'change-password', |
| 50 | component: ChangePassword, |
| 51 | meta: { |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 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 | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -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 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 72 | }, |
| 73 | { |
| 74 | path: 'kvm', |
| 75 | name: 'kvm-console', |
| 76 | component: KvmConsole, |
| 77 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 78 | title: i18n.t('appPageTitle.kvm'), |
| 79 | }, |
| 80 | }, |
| 81 | ], |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 82 | }, |
| 83 | { |
| 84 | path: '/', |
| 85 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 86 | requiresAuth: true, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 87 | }, |
| 88 | component: AppLayout, |
| 89 | children: [ |
| 90 | { |
| 91 | path: '', |
| 92 | name: 'overview', |
| 93 | component: Overview, |
| 94 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 95 | title: i18n.t('appPageTitle.overview'), |
| 96 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 97 | }, |
| 98 | { |
| 99 | path: '/profile-settings', |
| 100 | name: 'profile-settings', |
| 101 | component: ProfileSettings, |
| 102 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 103 | title: i18n.t('appPageTitle.profileSettings'), |
| 104 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 105 | }, |
| 106 | { |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 107 | path: '/logs/event-logs', |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 113 | }, |
| 114 | { |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 115 | path: '/logs/post-code-logs', |
Derick Montague | 512dfb7 | 2021-07-30 15:57:17 -0500 | [diff] [blame] | 116 | name: 'post-code-logs', |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 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 | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -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, |
Sukanya Pandey | 34efde2 | 2020-12-02 19:04:09 +0530 | [diff] [blame] | 142 | meta: { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 143 | title: i18n.t('appPageTitle.sessions'), |
Sukanya Pandey | 34efde2 | 2020-12-02 19:04:09 +0530 | [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 | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 153 | }, |
| 154 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 155 | path: '/security-and-access/user-management', |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 156 | name: 'local-users', |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 157 | component: UserManagement, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 185 | }, |
| 186 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 187 | path: '/operations/factory-reset', |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 188 | name: 'factory-reset', |
| 189 | component: FactoryReset, |
| 190 | meta: { |
| 191 | title: i18n.t('appPageTitle.factoryReset'), |
| 192 | }, |
| 193 | }, |
| 194 | { |
Sandeepa Singh | 05887b5 | 2022-01-10 19:19:36 +0530 | [diff] [blame] | 195 | path: '/operations/key-clear', |
| 196 | name: 'key-clear', |
| 197 | component: KeyClear, |
| 198 | meta: { |
| 199 | title: i18n.t('appPageTitle.keyClear'), |
| 200 | }, |
| 201 | }, |
| 202 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 203 | path: '/operations/kvm', |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 204 | name: 'kvm', |
| 205 | component: Kvm, |
| 206 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 207 | title: i18n.t('appPageTitle.kvm'), |
| 208 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 209 | }, |
| 210 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 211 | path: '/operations/firmware', |
| 212 | name: 'firmware', |
| 213 | component: Firmware, |
| 214 | meta: { |
| 215 | title: i18n.t('appPageTitle.firmware'), |
| 216 | }, |
| 217 | }, |
| 218 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 219 | 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 Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 228 | name: 'power-restore-policy', |
| 229 | component: PowerRestorePolicy, |
| 230 | meta: { |
| 231 | title: i18n.t('appPageTitle.powerRestorePolicy'), |
| 232 | }, |
| 233 | }, |
| 234 | { |
Sandeepa Singh | 6dba4be | 2021-07-28 15:25:14 +0530 | [diff] [blame] | 235 | path: '/resource-management/power', |
| 236 | name: 'power', |
| 237 | component: Power, |
| 238 | meta: { |
| 239 | title: i18n.t('appPageTitle.power'), |
| 240 | }, |
| 241 | }, |
| 242 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 243 | path: '/operations/reboot-bmc', |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 244 | name: 'reboot-bmc', |
| 245 | component: RebootBmc, |
| 246 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 247 | title: i18n.t('appPageTitle.rebootBmc'), |
| 248 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 249 | }, |
| 250 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 251 | path: '/operations/serial-over-lan', |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 252 | name: 'serial-over-lan', |
| 253 | component: SerialOverLan, |
| 254 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 255 | title: i18n.t('appPageTitle.serialOverLan'), |
| 256 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 257 | }, |
| 258 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 259 | path: '/operations/server-power-operations', |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 260 | name: 'server-power-operations', |
| 261 | component: ServerPowerOperations, |
| 262 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 263 | title: i18n.t('appPageTitle.serverPowerOperations'), |
| 264 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 265 | }, |
| 266 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 267 | path: '/operations/virtual-media', |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 268 | name: 'virtual-media', |
| 269 | component: VirtualMedia, |
| 270 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 271 | title: i18n.t('appPageTitle.virtualMedia'), |
| 272 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 273 | }, |
| 274 | { |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 275 | path: '*', |
| 276 | name: 'page-not-found', |
| 277 | component: PageNotFound, |
| 278 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 279 | title: i18n.t('appPageTitle.pageNotFound'), |
| 280 | }, |
| 281 | }, |
| 282 | ], |
| 283 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 284 | ]; |
| 285 | |
| 286 | export default routes; |