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