blob: 3cf10c54c7e7ae266f025ffda848e20b42d8d8a2 [file] [log] [blame]
Yoshie Muranaka816d9472020-09-03 11:19:28 -07001import AppLayout from '@/layouts/AppLayout.vue';
2import ChangePassword from '@/views/ChangePassword';
3import ConsoleLayout from '@/layouts/ConsoleLayout.vue';
4import DateTimeSettings from '@/views/Configuration/DateTimeSettings';
Derick Montague828dda92021-06-28 15:52:22 -05005import EventLogs from '@/views/Logs/EventLogs';
Derick Montagueda9f0a62021-02-14 19:21:44 -06006import FactoryReset from '@/views/Control/FactoryReset';
Yoshie Muranaka816d9472020-09-03 11:19:28 -07007import Firmware from '@/views/Configuration/Firmware';
Sandeepa Singh7affc522021-07-06 16:29:10 +05308import Inventory from '@/views/HardwareStatus/Inventory';
Yoshie Muranaka816d9472020-09-03 11:19:28 -07009import Kvm from '@/views/Control/Kvm';
10import KvmConsole from '@/views/Control/Kvm/KvmConsole';
Sukanya Pandey34efde22020-12-02 19:04:09 +053011import ClientSessions from '../views/AccessControl/ClientSessions';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070012import Ldap from '@/views/AccessControl/Ldap';
13import LocalUserManagement from '@/views/AccessControl/LocalUserManagement';
14import Login from '@/views/Login';
15import LoginLayout from '@/layouts/LoginLayout';
16import ManagePowerUsage from '@/views/Control/ManagePowerUsage';
17import NetworkSettings from '@/views/Configuration/NetworkSettings';
18import Overview from '@/views/Overview';
19import PageNotFound from '@/views/PageNotFound';
Sandeepa Singh7affc522021-07-06 16:29:10 +053020import PostCodeLogs from '@/views/Logs/PostCodeLogs';
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053021import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070022import ProfileSettings from '@/views/ProfileSettings';
23import RebootBmc from '@/views/Control/RebootBmc';
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -060024import SecuritySettings from '@/views/Configuration/SecuritySettings';
Sandeepa Singh7affc522021-07-06 16:29:10 +053025import Sensors from '@/views/HardwareStatus/Sensors';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070026import SerialOverLan from '@/views/Control/SerialOverLan';
27import SerialOverLanConsole from '@/views/Control/SerialOverLan/SerialOverLanConsole';
28import ServerLed from '@/views/Control/ServerLed';
29import ServerPowerOperations from '@/views/Control/ServerPowerOperations';
30import SslCertificates from '@/views/AccessControl/SslCertificates';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070031import VirtualMedia from '@/views/Control/VirtualMedia';
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070032import i18n from '@/i18n';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070033
Yoshie Muranaka816d9472020-09-03 11:19:28 -070034const routes = [
35 {
36 path: '/login',
37 component: LoginLayout,
38 children: [
39 {
40 path: '',
41 name: 'login',
42 component: Login,
43 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050044 title: i18n.t('appPageTitle.login'),
45 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070046 },
47 {
48 path: '/change-password',
49 name: 'change-password',
50 component: ChangePassword,
51 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070052 title: i18n.t('appPageTitle.changePassword'),
Derick Montague602e98a2020-10-21 16:20:00 -050053 requiresAuth: true,
54 },
55 },
56 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070057 },
58 {
59 path: '/console',
60 component: ConsoleLayout,
61 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050062 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070063 },
64 children: [
65 {
66 path: 'serial-over-lan-console',
67 name: 'serial-over-lan-console',
68 component: SerialOverLanConsole,
69 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050070 title: i18n.t('appPageTitle.serialOverLan'),
71 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070072 },
73 {
74 path: 'kvm',
75 name: 'kvm-console',
76 component: KvmConsole,
77 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050078 title: i18n.t('appPageTitle.kvm'),
79 },
80 },
81 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070082 },
83 {
84 path: '/',
85 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050086 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070087 },
88 component: AppLayout,
89 children: [
90 {
91 path: '',
92 name: 'overview',
93 component: Overview,
94 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050095 title: i18n.t('appPageTitle.overview'),
96 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070097 },
98 {
99 path: '/profile-settings',
100 name: 'profile-settings',
101 component: ProfileSettings,
102 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500103 title: i18n.t('appPageTitle.profileSettings'),
104 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700105 },
106 {
Derick Montague828dda92021-06-28 15:52:22 -0500107 path: '/logs/event-logs',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700108 name: 'event-logs',
109 component: EventLogs,
110 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500111 title: i18n.t('appPageTitle.eventLogs'),
112 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700113 },
114 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530115 path: '/logs/post-code-logs',
Derick Montague512dfb72021-07-30 15:57:17 -0500116 name: 'post-code-logs',
Sandeepa Singh06d53862021-05-24 13:51:09 +0530117 component: PostCodeLogs,
118 meta: {
119 title: i18n.t('appPageTitle.postCodeLogs'),
120 },
121 },
122 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530123 path: '/hardware-status/inventory',
124 name: 'inventory',
125 component: Inventory,
126 meta: {
127 title: i18n.t('appPageTitle.inventory'),
128 },
129 },
130 {
131 path: '/hardware-status/sensors',
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700132 name: 'sensors',
133 component: Sensors,
134 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500135 title: i18n.t('appPageTitle.sensors'),
136 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700137 },
138 {
Sukanya Pandey34efde22020-12-02 19:04:09 +0530139 path: '/access-control/client-sessions',
140 name: 'client-sessions',
141 component: ClientSessions,
142 meta: {
143 title: i18n.t('appPageTitle.clientSessions'),
144 },
145 },
146 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700147 path: '/access-control/ldap',
148 name: 'ldap',
149 component: Ldap,
150 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500151 title: i18n.t('appPageTitle.ldap'),
152 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700153 },
154 {
155 path: '/access-control/local-user-management',
156 name: 'local-users',
157 component: LocalUserManagement,
158 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500159 title: i18n.t('appPageTitle.localUserManagement'),
160 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700161 },
162 {
163 path: '/access-control/ssl-certificates',
164 name: 'ssl-certificates',
165 component: SslCertificates,
166 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500167 title: i18n.t('appPageTitle.sslCertificates'),
168 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700169 },
170 {
171 path: '/configuration/date-time-settings',
172 name: 'date-time-settings',
173 component: DateTimeSettings,
174 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500175 title: i18n.t('appPageTitle.dateTimeSettings'),
176 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700177 },
178 {
179 path: '/configuration/firmware',
180 name: 'firmware',
181 component: Firmware,
182 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500183 title: i18n.t('appPageTitle.firmware'),
184 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700185 },
186 {
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -0600187 path: '/configuration/security-settings',
188 name: 'security-settings',
189 component: SecuritySettings,
190 meta: {
191 title: i18n.t('appPageTitle.securitySettings'),
192 },
193 },
194 {
Derick Montagueda9f0a62021-02-14 19:21:44 -0600195 path: '/control/factory-reset',
196 name: 'factory-reset',
197 component: FactoryReset,
198 meta: {
199 title: i18n.t('appPageTitle.factoryReset'),
200 },
201 },
202 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700203 path: '/control/kvm',
204 name: 'kvm',
205 component: Kvm,
206 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500207 title: i18n.t('appPageTitle.kvm'),
208 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700209 },
210 {
211 path: '/control/manage-power-usage',
212 name: 'manage-power-usage',
213 component: ManagePowerUsage,
214 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500215 title: i18n.t('appPageTitle.managePowerUsage'),
216 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700217 },
218 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +0530219 path: '/control/power-restore-policy',
220 name: 'power-restore-policy',
221 component: PowerRestorePolicy,
222 meta: {
223 title: i18n.t('appPageTitle.powerRestorePolicy'),
224 },
225 },
226 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700227 path: '/configuration/network-settings',
228 name: 'network-settings',
229 component: NetworkSettings,
230 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500231 title: i18n.t('appPageTitle.networkSettings'),
232 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700233 },
234 {
235 path: '/control/reboot-bmc',
236 name: 'reboot-bmc',
237 component: RebootBmc,
238 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500239 title: i18n.t('appPageTitle.rebootBmc'),
240 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700241 },
242 {
243 path: '/control/server-led',
244 name: 'server-led',
245 component: ServerLed,
246 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500247 title: i18n.t('appPageTitle.serverLed'),
248 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700249 },
250 {
251 path: '/control/serial-over-lan',
252 name: 'serial-over-lan',
253 component: SerialOverLan,
254 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500255 title: i18n.t('appPageTitle.serialOverLan'),
256 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700257 },
258 {
259 path: '/control/server-power-operations',
260 name: 'server-power-operations',
261 component: ServerPowerOperations,
262 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500263 title: i18n.t('appPageTitle.serverPowerOperations'),
264 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700265 },
266 {
267 path: '/control/virtual-media',
268 name: 'virtual-media',
269 component: VirtualMedia,
270 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500271 title: i18n.t('appPageTitle.virtualMedia'),
272 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700273 },
274 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700275 path: '*',
276 name: 'page-not-found',
277 component: PageNotFound,
278 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500279 title: i18n.t('appPageTitle.pageNotFound'),
280 },
281 },
282 ],
283 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700284];
285
286export default routes;