Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 1 | import AppLayout from '@/layouts/AppLayout.vue'; |
| 2 | import ChangePassword from '@/views/ChangePassword'; |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 3 | import ClientSessions from '@/views/AccessControl/ClientSessions'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 4 | import ConsoleLayout from '@/layouts/ConsoleLayout.vue'; |
| 5 | import DateTimeSettings from '@/views/Configuration/DateTimeSettings'; |
| 6 | import EventLogs from '@/views/Health/EventLogs'; |
Yoshie Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 7 | import Firmware from '@/views/Configuration/Firmware'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 8 | import HardwareStatus from '@/views/Health/HardwareStatus'; |
| 9 | import Ldap from '@/views/AccessControl/Ldap'; |
| 10 | import LocalUserManagement from '@/views/AccessControl/LocalUserManagement'; |
| 11 | import Login from '@/views/Login'; |
| 12 | import LoginLayout from '@/layouts/LoginLayout'; |
| 13 | import ManagePowerUsage from '@/views/Control/ManagePowerUsage'; |
| 14 | import NetworkSettings from '@/views/Configuration/NetworkSettings'; |
| 15 | import Overview from '@/views/Overview'; |
| 16 | import PageNotFound from '@/views/PageNotFound'; |
Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 17 | import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 18 | import ProfileSettings from '@/views/ProfileSettings'; |
| 19 | import RebootBmc from '@/views/Control/RebootBmc'; |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 20 | import SecuritySettings from '@/views/Configuration/SecuritySettings'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 27 | import i18n from '@/i18n'; |
Yoshie Muranaka | 9e36f52 | 2020-02-05 07:42:34 -0800 | [diff] [blame] | 28 | |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 29 | // Custom components |
Yoshie Muranaka | aa5e950 | 2021-02-23 11:23:52 -0800 | [diff] [blame] | 30 | import Dumps from '@/views/Health/Dumps'; |
Yoshie Muranaka | 3dd167a | 2020-09-03 13:58:35 -0700 | [diff] [blame] | 31 | |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 44 | }, |
| 45 | { |
| 46 | path: '/change-password', |
| 47 | name: 'change-password', |
| 48 | component: ChangePassword, |
| 49 | meta: { |
| 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 | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -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 | }, |
| 70 | }, |
| 71 | ], |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 72 | }, |
| 73 | { |
| 74 | path: '/', |
| 75 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 76 | requiresAuth: true, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 77 | }, |
| 78 | component: AppLayout, |
| 79 | children: [ |
| 80 | { |
| 81 | path: '', |
| 82 | name: 'overview', |
| 83 | component: Overview, |
| 84 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 85 | title: i18n.t('appPageTitle.overview'), |
| 86 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 87 | }, |
| 88 | { |
| 89 | path: '/profile-settings', |
| 90 | name: 'profile-settings', |
| 91 | component: ProfileSettings, |
| 92 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 93 | title: i18n.t('appPageTitle.profileSettings'), |
| 94 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 95 | }, |
| 96 | { |
Yoshie Muranaka | 22d4d52 | 2020-12-03 10:58:35 -0800 | [diff] [blame] | 97 | path: '/health/dumps', |
| 98 | name: 'dumps', |
| 99 | component: Dumps, |
| 100 | meta: { |
| 101 | title: i18n.t('appPageTitle.dumps'), |
| 102 | }, |
| 103 | }, |
| 104 | { |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 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 | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 127 | }, |
| 128 | { |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [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 | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -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 | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 167 | }, |
| 168 | { |
| 169 | path: '/configuration/firmware', |
| 170 | name: 'firmware', |
Yoshie Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 171 | component: Firmware, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 172 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 173 | title: i18n.t('appPageTitle.firmware'), |
| 174 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 175 | }, |
| 176 | { |
| 177 | path: '/control/manage-power-usage', |
| 178 | name: 'manage-power-usage', |
| 179 | component: ManagePowerUsage, |
| 180 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 181 | title: i18n.t('appPageTitle.managePowerUsage'), |
| 182 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 183 | }, |
| 184 | { |
Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 185 | path: '/control/power-restore-policy', |
| 186 | name: 'power-restore-policy', |
| 187 | component: PowerRestorePolicy, |
| 188 | meta: { |
| 189 | title: i18n.t('appPageTitle.powerRestorePolicy'), |
| 190 | }, |
| 191 | }, |
| 192 | { |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 193 | path: '/configuration/network-settings', |
| 194 | name: 'network-settings', |
| 195 | component: NetworkSettings, |
| 196 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 197 | title: i18n.t('appPageTitle.networkSettings'), |
| 198 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 199 | }, |
| 200 | { |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 201 | path: '/configuration/security-settings', |
| 202 | name: 'security-settings', |
| 203 | component: SecuritySettings, |
| 204 | meta: { |
| 205 | title: i18n.t('appPageTitle.securitySettings'), |
| 206 | }, |
| 207 | }, |
| 208 | { |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 209 | path: '/control/reboot-bmc', |
| 210 | name: 'reboot-bmc', |
| 211 | component: RebootBmc, |
| 212 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 213 | title: i18n.t('appPageTitle.rebootBmc'), |
| 214 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 215 | }, |
| 216 | { |
| 217 | path: '/control/server-led', |
| 218 | name: 'server-led', |
| 219 | component: ServerLed, |
| 220 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 221 | title: i18n.t('appPageTitle.serverLed'), |
| 222 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 223 | }, |
| 224 | { |
| 225 | path: '/control/serial-over-lan', |
| 226 | name: 'serial-over-lan', |
| 227 | component: SerialOverLan, |
| 228 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 229 | title: i18n.t('appPageTitle.serialOverLan'), |
| 230 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 231 | }, |
| 232 | { |
| 233 | path: '/control/server-power-operations', |
| 234 | name: 'server-power-operations', |
| 235 | component: ServerPowerOperations, |
| 236 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 237 | title: i18n.t('appPageTitle.serverPowerOperations'), |
| 238 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 239 | }, |
| 240 | { |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 241 | path: '*', |
| 242 | name: 'page-not-found', |
| 243 | component: PageNotFound, |
| 244 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 245 | title: i18n.t('appPageTitle.pageNotFound'), |
| 246 | }, |
| 247 | }, |
| 248 | ], |
| 249 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 250 | ]; |
Yoshie Muranaka | 3dd167a | 2020-09-03 13:58:35 -0700 | [diff] [blame] | 251 | |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 252 | export default routes; |