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