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