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'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 5 | import DateTime from '@/views/Settings/DateTime'; |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 6 | import EventLogs from '@/views/Logs/EventLogs'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 7 | import FactoryReset from '@/views/Operations/FactoryReset'; |
| 8 | import Firmware from '@/views/Operations/Firmware'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 9 | import Inventory from '@/views/HardwareStatus/Inventory'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 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'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 14 | import ManagePowerUsage from '@/views/Operations/ManagePowerUsage'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 15 | import Network from '@/views/Settings/Network'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 16 | import Overview from '@/views/Overview'; |
| 17 | import PageNotFound from '@/views/PageNotFound'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 18 | import PostCodeLogs from '@/views/Logs/PostCodeLogs'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 19 | import PowerRestorePolicy from '@/views/Settings/PowerRestorePolicy'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 20 | import ProfileSettings from '@/views/ProfileSettings'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 21 | import RebootBmc from '@/views/Operations/RebootBmc'; |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 22 | import SecuritySettings from '@/views/Settings/SecuritySettings'; |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 23 | import Sensors from '@/views/HardwareStatus/Sensors'; |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 24 | import SerialOverLan from '@/views/Operations/SerialOverLan'; |
| 25 | import SerialOverLanConsole from '@/views/Operations/SerialOverLan/SerialOverLanConsole'; |
| 26 | import ServerPowerOperations from '@/views/Operations/ServerPowerOperations'; |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 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 |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 31 | import Dumps from '@/views/Logs/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 | { |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 98 | path: '/logs/dumps', |
Yoshie Muranaka | 22d4d52 | 2020-12-03 10:58:35 -0800 | [diff] [blame] | 99 | name: 'dumps', |
| 100 | component: Dumps, |
| 101 | meta: { |
| 102 | title: i18n.t('appPageTitle.dumps'), |
| 103 | }, |
| 104 | }, |
| 105 | { |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 106 | path: '/logs/event-logs', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 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 | { |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 114 | path: '/logs/post-code-logs', |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 115 | name: 'post-code-logs', |
| 116 | component: PostCodeLogs, |
| 117 | meta: { |
| 118 | title: i18n.t('appPageTitle.postCodeLogs'), |
| 119 | }, |
| 120 | }, |
| 121 | { |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 122 | path: '/hardware-status/inventory', |
| 123 | name: 'inventory', |
| 124 | component: Inventory, |
| 125 | meta: { |
| 126 | title: i18n.t('appPageTitle.inventory'), |
| 127 | }, |
| 128 | }, |
| 129 | { |
| 130 | path: '/hardware-status/sensors', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 131 | name: 'sensors', |
| 132 | component: Sensors, |
| 133 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 134 | title: i18n.t('appPageTitle.sensors'), |
| 135 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 136 | }, |
| 137 | { |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 138 | path: '/access-control/client-sessions', |
| 139 | name: 'client-sessions', |
| 140 | component: ClientSessions, |
| 141 | meta: { |
| 142 | title: i18n.t('appPageTitle.clientSessions'), |
| 143 | }, |
| 144 | }, |
| 145 | { |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 146 | path: '/access-control/ldap', |
| 147 | name: 'ldap', |
| 148 | component: Ldap, |
| 149 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 150 | title: i18n.t('appPageTitle.ldap'), |
| 151 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 152 | }, |
| 153 | { |
| 154 | path: '/access-control/local-user-management', |
| 155 | name: 'local-users', |
| 156 | component: LocalUserManagement, |
| 157 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 158 | title: i18n.t('appPageTitle.localUserManagement'), |
| 159 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 160 | }, |
| 161 | { |
| 162 | path: '/access-control/ssl-certificates', |
| 163 | name: 'ssl-certificates', |
| 164 | component: SslCertificates, |
| 165 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 166 | title: i18n.t('appPageTitle.sslCertificates'), |
| 167 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 168 | }, |
| 169 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 170 | path: '/settings/date-time', |
| 171 | name: 'date-time', |
| 172 | component: DateTime, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 173 | meta: { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 174 | title: i18n.t('appPageTitle.dateTime'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 175 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 176 | }, |
| 177 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 178 | path: '/operations/firmware', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 179 | name: 'firmware', |
Yoshie Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 180 | component: Firmware, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 181 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 182 | title: i18n.t('appPageTitle.firmware'), |
| 183 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 184 | }, |
| 185 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 186 | path: '/operations/manage-power-usage', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 187 | name: 'manage-power-usage', |
| 188 | component: ManagePowerUsage, |
| 189 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 190 | title: i18n.t('appPageTitle.managePowerUsage'), |
| 191 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 192 | }, |
| 193 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 194 | path: '/settings/network', |
| 195 | name: 'network', |
| 196 | component: Network, |
| 197 | meta: { |
| 198 | title: i18n.t('appPageTitle.network'), |
| 199 | }, |
| 200 | }, |
| 201 | { |
| 202 | path: '/settings/power-restore-policy', |
Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 203 | name: 'power-restore-policy', |
| 204 | component: PowerRestorePolicy, |
| 205 | meta: { |
| 206 | title: i18n.t('appPageTitle.powerRestorePolicy'), |
| 207 | }, |
| 208 | }, |
| 209 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 210 | path: '/settings/security-settings', |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 211 | name: 'security-settings', |
| 212 | component: SecuritySettings, |
| 213 | meta: { |
| 214 | title: i18n.t('appPageTitle.securitySettings'), |
| 215 | }, |
| 216 | }, |
| 217 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 218 | path: '/operations/factory-reset', |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 219 | name: 'factory-reset', |
| 220 | component: FactoryReset, |
| 221 | meta: { |
| 222 | title: i18n.t('appPageTitle.factoryReset'), |
| 223 | }, |
| 224 | }, |
| 225 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 226 | path: '/operations/reboot-bmc', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 227 | name: 'reboot-bmc', |
| 228 | component: RebootBmc, |
| 229 | meta: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 230 | title: i18n.t('appPageTitle.rebootBmc'), |
| 231 | }, |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 232 | }, |
| 233 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 234 | path: '/operations/serial-over-lan', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 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 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 242 | path: '/operations/server-power-operations', |
Yoshie Muranaka | 0b980db | 2020-10-06 09:24:14 -0700 | [diff] [blame] | 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; |