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