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