| 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'; | 
|  | 4 | import DateTimeSettings from '@/views/Configuration/DateTimeSettings'; | 
|  | 5 | import EventLogs from '@/views/Health/EventLogs'; | 
| Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 6 | import FactoryReset from '@/views/Control/FactoryReset'; | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 7 | import Firmware from '@/views/Configuration/Firmware'; | 
|  | 8 | import HardwareStatus from '@/views/Health/HardwareStatus'; | 
|  | 9 | import Kvm from '@/views/Control/Kvm'; | 
|  | 10 | import KvmConsole from '@/views/Control/Kvm/KvmConsole'; | 
| Sukanya Pandey | 34efde2 | 2020-12-02 19:04:09 +0530 | [diff] [blame] | 11 | import ClientSessions from '../views/AccessControl/ClientSessions'; | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 12 | import Ldap from '@/views/AccessControl/Ldap'; | 
|  | 13 | import LocalUserManagement from '@/views/AccessControl/LocalUserManagement'; | 
|  | 14 | import Login from '@/views/Login'; | 
|  | 15 | import LoginLayout from '@/layouts/LoginLayout'; | 
|  | 16 | import ManagePowerUsage from '@/views/Control/ManagePowerUsage'; | 
|  | 17 | import NetworkSettings from '@/views/Configuration/NetworkSettings'; | 
|  | 18 | import Overview from '@/views/Overview'; | 
|  | 19 | import PageNotFound from '@/views/PageNotFound'; | 
| Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 20 | import PostCodeLogs from '@/views/Health/PostCodeLogs'; | 
| Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 21 | import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy'; | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 22 | import ProfileSettings from '@/views/ProfileSettings'; | 
|  | 23 | import RebootBmc from '@/views/Control/RebootBmc'; | 
| Dixsie Wolmers | 8f030ba | 2020-12-07 13:12:53 -0600 | [diff] [blame] | 24 | import SecuritySettings from '@/views/Configuration/SecuritySettings'; | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 25 | import Sensors from '@/views/Health/Sensors'; | 
|  | 26 | import SerialOverLan from '@/views/Control/SerialOverLan'; | 
|  | 27 | import SerialOverLanConsole from '@/views/Control/SerialOverLan/SerialOverLanConsole'; | 
|  | 28 | import ServerLed from '@/views/Control/ServerLed'; | 
|  | 29 | import ServerPowerOperations from '@/views/Control/ServerPowerOperations'; | 
|  | 30 | import SslCertificates from '@/views/AccessControl/SslCertificates'; | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 31 | import VirtualMedia from '@/views/Control/VirtualMedia'; | 
| 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 | { | 
|  | 107 | path: '/health/event-logs', | 
|  | 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 | { | 
|  | 115 | path: '/health/hardware-status', | 
|  | 116 | name: 'hardware-status', | 
|  | 117 | component: HardwareStatus, | 
|  | 118 | meta: { | 
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 119 | title: i18n.t('appPageTitle.hardwareStatus'), | 
|  | 120 | }, | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 121 | }, | 
|  | 122 | { | 
| Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 123 | path: '/health/post-codes-logs', | 
|  | 124 | name: 'post-codes-logs', | 
|  | 125 | component: PostCodeLogs, | 
|  | 126 | meta: { | 
|  | 127 | title: i18n.t('appPageTitle.postCodeLogs'), | 
|  | 128 | }, | 
|  | 129 | }, | 
|  | 130 | { | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 131 | path: '/health/sensors', | 
|  | 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 | { | 
| Sukanya Pandey | 34efde2 | 2020-12-02 19:04:09 +0530 | [diff] [blame] | 139 | path: '/access-control/client-sessions', | 
|  | 140 | name: 'client-sessions', | 
|  | 141 | component: ClientSessions, | 
|  | 142 | meta: { | 
|  | 143 | title: i18n.t('appPageTitle.clientSessions'), | 
|  | 144 | }, | 
|  | 145 | }, | 
|  | 146 | { | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 147 | path: '/access-control/ldap', | 
|  | 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 | { | 
|  | 155 | path: '/access-control/local-user-management', | 
|  | 156 | name: 'local-users', | 
|  | 157 | component: LocalUserManagement, | 
|  | 158 | meta: { | 
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 159 | title: i18n.t('appPageTitle.localUserManagement'), | 
|  | 160 | }, | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 161 | }, | 
|  | 162 | { | 
|  | 163 | path: '/access-control/ssl-certificates', | 
|  | 164 | name: 'ssl-certificates', | 
|  | 165 | component: SslCertificates, | 
|  | 166 | meta: { | 
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 167 | title: i18n.t('appPageTitle.sslCertificates'), | 
|  | 168 | }, | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 169 | }, | 
|  | 170 | { | 
|  | 171 | path: '/configuration/date-time-settings', | 
|  | 172 | name: 'date-time-settings', | 
|  | 173 | component: DateTimeSettings, | 
|  | 174 | meta: { | 
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 175 | title: i18n.t('appPageTitle.dateTimeSettings'), | 
|  | 176 | }, | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 177 | }, | 
|  | 178 | { | 
|  | 179 | path: '/configuration/firmware', | 
|  | 180 | name: 'firmware', | 
|  | 181 | component: Firmware, | 
|  | 182 | meta: { | 
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 183 | title: i18n.t('appPageTitle.firmware'), | 
|  | 184 | }, | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 185 | }, | 
|  | 186 | { | 
| Dixsie Wolmers | 8f030ba | 2020-12-07 13:12:53 -0600 | [diff] [blame] | 187 | path: '/configuration/security-settings', | 
|  | 188 | name: 'security-settings', | 
|  | 189 | component: SecuritySettings, | 
|  | 190 | meta: { | 
|  | 191 | title: i18n.t('appPageTitle.securitySettings'), | 
|  | 192 | }, | 
|  | 193 | }, | 
|  | 194 | { | 
| Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 195 | path: '/control/factory-reset', | 
|  | 196 | name: 'factory-reset', | 
|  | 197 | component: FactoryReset, | 
|  | 198 | meta: { | 
|  | 199 | title: i18n.t('appPageTitle.factoryReset'), | 
|  | 200 | }, | 
|  | 201 | }, | 
|  | 202 | { | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 203 | path: '/control/kvm', | 
|  | 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 | { | 
|  | 211 | path: '/control/manage-power-usage', | 
|  | 212 | name: 'manage-power-usage', | 
|  | 213 | component: ManagePowerUsage, | 
|  | 214 | meta: { | 
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 215 | title: i18n.t('appPageTitle.managePowerUsage'), | 
|  | 216 | }, | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 217 | }, | 
|  | 218 | { | 
| Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 219 | path: '/control/power-restore-policy', | 
|  | 220 | name: 'power-restore-policy', | 
|  | 221 | component: PowerRestorePolicy, | 
|  | 222 | meta: { | 
|  | 223 | title: i18n.t('appPageTitle.powerRestorePolicy'), | 
|  | 224 | }, | 
|  | 225 | }, | 
|  | 226 | { | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 227 | path: '/configuration/network-settings', | 
|  | 228 | name: 'network-settings', | 
|  | 229 | component: NetworkSettings, | 
|  | 230 | meta: { | 
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 231 | title: i18n.t('appPageTitle.networkSettings'), | 
|  | 232 | }, | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 233 | }, | 
|  | 234 | { | 
|  | 235 | path: '/control/reboot-bmc', | 
|  | 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 | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 241 | }, | 
|  | 242 | { | 
|  | 243 | path: '/control/server-led', | 
|  | 244 | name: 'server-led', | 
|  | 245 | component: ServerLed, | 
|  | 246 | meta: { | 
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 247 | title: i18n.t('appPageTitle.serverLed'), | 
|  | 248 | }, | 
| Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 249 | }, | 
|  | 250 | { | 
|  | 251 | path: '/control/serial-over-lan', | 
|  | 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 | { | 
|  | 259 | path: '/control/server-power-operations', | 
|  | 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 | { | 
|  | 267 | path: '/control/virtual-media', | 
|  | 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; |