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'; |
Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 20 | import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy'; |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 21 | import ProfileSettings from '@/views/ProfileSettings'; |
| 22 | import RebootBmc from '@/views/Control/RebootBmc'; |
Dixsie Wolmers | 8f030ba | 2020-12-07 13:12:53 -0600 | [diff] [blame] | 23 | import SecuritySettings from '@/views/Configuration/SecuritySettings'; |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 24 | import Sensors from '@/views/Health/Sensors'; |
| 25 | import SerialOverLan from '@/views/Control/SerialOverLan'; |
| 26 | import SerialOverLanConsole from '@/views/Control/SerialOverLan/SerialOverLanConsole'; |
| 27 | import ServerLed from '@/views/Control/ServerLed'; |
| 28 | import ServerPowerOperations from '@/views/Control/ServerPowerOperations'; |
| 29 | import SslCertificates from '@/views/AccessControl/SslCertificates'; |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 30 | import VirtualMedia from '@/views/Control/VirtualMedia'; |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 31 | import i18n from '@/i18n'; |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 32 | |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 45 | }, |
| 46 | { |
| 47 | path: '/change-password', |
| 48 | name: 'change-password', |
| 49 | component: ChangePassword, |
| 50 | meta: { |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 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 | 816d947 | 2020-09-03 11:19:28 -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 | 816d947 | 2020-09-03 11:19:28 -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 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 71 | }, |
| 72 | { |
| 73 | path: 'kvm', |
| 74 | name: 'kvm-console', |
| 75 | component: KvmConsole, |
| 76 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 77 | title: i18n.t('appPageTitle.kvm'), |
| 78 | }, |
| 79 | }, |
| 80 | ], |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 81 | }, |
| 82 | { |
| 83 | path: '/', |
| 84 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 85 | requiresAuth: true, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 86 | }, |
| 87 | component: AppLayout, |
| 88 | children: [ |
| 89 | { |
| 90 | path: '', |
| 91 | name: 'overview', |
| 92 | component: Overview, |
| 93 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 94 | title: i18n.t('appPageTitle.overview'), |
| 95 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 96 | }, |
| 97 | { |
| 98 | path: '/profile-settings', |
| 99 | name: 'profile-settings', |
| 100 | component: ProfileSettings, |
| 101 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 102 | title: i18n.t('appPageTitle.profileSettings'), |
| 103 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 104 | }, |
| 105 | { |
| 106 | path: '/health/event-logs', |
| 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 | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 112 | }, |
| 113 | { |
| 114 | path: '/health/hardware-status', |
| 115 | name: 'hardware-status', |
| 116 | component: HardwareStatus, |
| 117 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 118 | title: i18n.t('appPageTitle.hardwareStatus'), |
| 119 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 120 | }, |
| 121 | { |
| 122 | path: '/health/sensors', |
| 123 | name: 'sensors', |
| 124 | component: Sensors, |
| 125 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 126 | title: i18n.t('appPageTitle.sensors'), |
| 127 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 128 | }, |
| 129 | { |
Sukanya Pandey | 34efde2 | 2020-12-02 19:04:09 +0530 | [diff] [blame] | 130 | path: '/access-control/client-sessions', |
| 131 | name: 'client-sessions', |
| 132 | component: ClientSessions, |
| 133 | meta: { |
| 134 | title: i18n.t('appPageTitle.clientSessions'), |
| 135 | }, |
| 136 | }, |
| 137 | { |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 138 | path: '/access-control/ldap', |
| 139 | name: 'ldap', |
| 140 | component: Ldap, |
| 141 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 142 | title: i18n.t('appPageTitle.ldap'), |
| 143 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 144 | }, |
| 145 | { |
| 146 | path: '/access-control/local-user-management', |
| 147 | name: 'local-users', |
| 148 | component: LocalUserManagement, |
| 149 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 150 | title: i18n.t('appPageTitle.localUserManagement'), |
| 151 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 152 | }, |
| 153 | { |
| 154 | path: '/access-control/ssl-certificates', |
| 155 | name: 'ssl-certificates', |
| 156 | component: SslCertificates, |
| 157 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 158 | title: i18n.t('appPageTitle.sslCertificates'), |
| 159 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 160 | }, |
| 161 | { |
| 162 | path: '/configuration/date-time-settings', |
| 163 | name: 'date-time-settings', |
| 164 | component: DateTimeSettings, |
| 165 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 166 | title: i18n.t('appPageTitle.dateTimeSettings'), |
| 167 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 168 | }, |
| 169 | { |
| 170 | path: '/configuration/firmware', |
| 171 | name: 'firmware', |
| 172 | component: Firmware, |
| 173 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 174 | title: i18n.t('appPageTitle.firmware'), |
| 175 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 176 | }, |
| 177 | { |
Dixsie Wolmers | 8f030ba | 2020-12-07 13:12:53 -0600 | [diff] [blame] | 178 | path: '/configuration/security-settings', |
| 179 | name: 'security-settings', |
| 180 | component: SecuritySettings, |
| 181 | meta: { |
| 182 | title: i18n.t('appPageTitle.securitySettings'), |
| 183 | }, |
| 184 | }, |
| 185 | { |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 186 | path: '/control/factory-reset', |
| 187 | name: 'factory-reset', |
| 188 | component: FactoryReset, |
| 189 | meta: { |
| 190 | title: i18n.t('appPageTitle.factoryReset'), |
| 191 | }, |
| 192 | }, |
| 193 | { |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 194 | path: '/control/kvm', |
| 195 | name: 'kvm', |
| 196 | component: Kvm, |
| 197 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 198 | title: i18n.t('appPageTitle.kvm'), |
| 199 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 200 | }, |
| 201 | { |
| 202 | path: '/control/manage-power-usage', |
| 203 | name: 'manage-power-usage', |
| 204 | component: ManagePowerUsage, |
| 205 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 206 | title: i18n.t('appPageTitle.managePowerUsage'), |
| 207 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 208 | }, |
| 209 | { |
Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 210 | path: '/control/power-restore-policy', |
| 211 | name: 'power-restore-policy', |
| 212 | component: PowerRestorePolicy, |
| 213 | meta: { |
| 214 | title: i18n.t('appPageTitle.powerRestorePolicy'), |
| 215 | }, |
| 216 | }, |
| 217 | { |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 218 | path: '/configuration/network-settings', |
| 219 | name: 'network-settings', |
| 220 | component: NetworkSettings, |
| 221 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 222 | title: i18n.t('appPageTitle.networkSettings'), |
| 223 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 224 | }, |
| 225 | { |
| 226 | path: '/control/reboot-bmc', |
| 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 | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 232 | }, |
| 233 | { |
| 234 | path: '/control/server-led', |
| 235 | name: 'server-led', |
| 236 | component: ServerLed, |
| 237 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 238 | title: i18n.t('appPageTitle.serverLed'), |
| 239 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 240 | }, |
| 241 | { |
| 242 | path: '/control/serial-over-lan', |
| 243 | name: 'serial-over-lan', |
| 244 | component: SerialOverLan, |
| 245 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 246 | title: i18n.t('appPageTitle.serialOverLan'), |
| 247 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 248 | }, |
| 249 | { |
| 250 | path: '/control/server-power-operations', |
| 251 | name: 'server-power-operations', |
| 252 | component: ServerPowerOperations, |
| 253 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 254 | title: i18n.t('appPageTitle.serverPowerOperations'), |
| 255 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 256 | }, |
| 257 | { |
| 258 | path: '/control/virtual-media', |
| 259 | name: 'virtual-media', |
| 260 | component: VirtualMedia, |
| 261 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 262 | title: i18n.t('appPageTitle.virtualMedia'), |
| 263 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 264 | }, |
| 265 | { |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 266 | path: '*', |
| 267 | name: 'page-not-found', |
| 268 | component: PageNotFound, |
| 269 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 270 | title: i18n.t('appPageTitle.pageNotFound'), |
| 271 | }, |
| 272 | }, |
| 273 | ], |
| 274 | }, |
Yoshie Muranaka | 816d947 | 2020-09-03 11:19:28 -0700 | [diff] [blame] | 275 | ]; |
| 276 | |
| 277 | export default routes; |