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