blob: e5812e00573226e79ea9cdd86f33b7639a1059d7 [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';
5import EventLogs from '@/views/Health/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';
8import HardwareStatus from '@/views/Health/HardwareStatus';
9import 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';
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053020import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070021import ProfileSettings from '@/views/ProfileSettings';
22import RebootBmc from '@/views/Control/RebootBmc';
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -060023import SecuritySettings from '@/views/Configuration/SecuritySettings';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070024import Sensors from '@/views/Health/Sensors';
25import SerialOverLan from '@/views/Control/SerialOverLan';
26import SerialOverLanConsole from '@/views/Control/SerialOverLan/SerialOverLanConsole';
27import ServerLed from '@/views/Control/ServerLed';
28import ServerPowerOperations from '@/views/Control/ServerPowerOperations';
29import SslCertificates from '@/views/AccessControl/SslCertificates';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070030import VirtualMedia from '@/views/Control/VirtualMedia';
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070031import i18n from '@/i18n';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070032
Yoshie Muranaka816d9472020-09-03 11:19:28 -070033const routes = [
34 {
35 path: '/login',
36 component: LoginLayout,
37 children: [
38 {
39 path: '',
40 name: 'login',
41 component: Login,
42 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050043 title: i18n.t('appPageTitle.login'),
44 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070045 },
46 {
47 path: '/change-password',
48 name: 'change-password',
49 component: ChangePassword,
50 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070051 title: i18n.t('appPageTitle.changePassword'),
Derick Montague602e98a2020-10-21 16:20:00 -050052 requiresAuth: true,
53 },
54 },
55 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070056 },
57 {
58 path: '/console',
59 component: ConsoleLayout,
60 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050061 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070062 },
63 children: [
64 {
65 path: 'serial-over-lan-console',
66 name: 'serial-over-lan-console',
67 component: SerialOverLanConsole,
68 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050069 title: i18n.t('appPageTitle.serialOverLan'),
70 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070071 },
72 {
73 path: 'kvm',
74 name: 'kvm-console',
75 component: KvmConsole,
76 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050077 title: i18n.t('appPageTitle.kvm'),
78 },
79 },
80 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070081 },
82 {
83 path: '/',
84 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050085 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070086 },
87 component: AppLayout,
88 children: [
89 {
90 path: '',
91 name: 'overview',
92 component: Overview,
93 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050094 title: i18n.t('appPageTitle.overview'),
95 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070096 },
97 {
98 path: '/profile-settings',
99 name: 'profile-settings',
100 component: ProfileSettings,
101 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500102 title: i18n.t('appPageTitle.profileSettings'),
103 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700104 },
105 {
106 path: '/health/event-logs',
107 name: 'event-logs',
108 component: EventLogs,
109 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500110 title: i18n.t('appPageTitle.eventLogs'),
111 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700112 },
113 {
114 path: '/health/hardware-status',
115 name: 'hardware-status',
116 component: HardwareStatus,
117 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500118 title: i18n.t('appPageTitle.hardwareStatus'),
119 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700120 },
121 {
122 path: '/health/sensors',
123 name: 'sensors',
124 component: Sensors,
125 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500126 title: i18n.t('appPageTitle.sensors'),
127 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700128 },
129 {
Sukanya Pandey34efde22020-12-02 19:04:09 +0530130 path: '/access-control/client-sessions',
131 name: 'client-sessions',
132 component: ClientSessions,
133 meta: {
134 title: i18n.t('appPageTitle.clientSessions'),
135 },
136 },
137 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700138 path: '/access-control/ldap',
139 name: 'ldap',
140 component: Ldap,
141 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500142 title: i18n.t('appPageTitle.ldap'),
143 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700144 },
145 {
146 path: '/access-control/local-user-management',
147 name: 'local-users',
148 component: LocalUserManagement,
149 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500150 title: i18n.t('appPageTitle.localUserManagement'),
151 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700152 },
153 {
154 path: '/access-control/ssl-certificates',
155 name: 'ssl-certificates',
156 component: SslCertificates,
157 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500158 title: i18n.t('appPageTitle.sslCertificates'),
159 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700160 },
161 {
162 path: '/configuration/date-time-settings',
163 name: 'date-time-settings',
164 component: DateTimeSettings,
165 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500166 title: i18n.t('appPageTitle.dateTimeSettings'),
167 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700168 },
169 {
170 path: '/configuration/firmware',
171 name: 'firmware',
172 component: Firmware,
173 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500174 title: i18n.t('appPageTitle.firmware'),
175 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700176 },
177 {
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -0600178 path: '/configuration/security-settings',
179 name: 'security-settings',
180 component: SecuritySettings,
181 meta: {
182 title: i18n.t('appPageTitle.securitySettings'),
183 },
184 },
185 {
Derick Montagueda9f0a62021-02-14 19:21:44 -0600186 path: '/control/factory-reset',
187 name: 'factory-reset',
188 component: FactoryReset,
189 meta: {
190 title: i18n.t('appPageTitle.factoryReset'),
191 },
192 },
193 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700194 path: '/control/kvm',
195 name: 'kvm',
196 component: Kvm,
197 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500198 title: i18n.t('appPageTitle.kvm'),
199 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700200 },
201 {
202 path: '/control/manage-power-usage',
203 name: 'manage-power-usage',
204 component: ManagePowerUsage,
205 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500206 title: i18n.t('appPageTitle.managePowerUsage'),
207 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700208 },
209 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +0530210 path: '/control/power-restore-policy',
211 name: 'power-restore-policy',
212 component: PowerRestorePolicy,
213 meta: {
214 title: i18n.t('appPageTitle.powerRestorePolicy'),
215 },
216 },
217 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700218 path: '/configuration/network-settings',
219 name: 'network-settings',
220 component: NetworkSettings,
221 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500222 title: i18n.t('appPageTitle.networkSettings'),
223 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700224 },
225 {
226 path: '/control/reboot-bmc',
227 name: 'reboot-bmc',
228 component: RebootBmc,
229 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500230 title: i18n.t('appPageTitle.rebootBmc'),
231 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700232 },
233 {
234 path: '/control/server-led',
235 name: 'server-led',
236 component: ServerLed,
237 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500238 title: i18n.t('appPageTitle.serverLed'),
239 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700240 },
241 {
242 path: '/control/serial-over-lan',
243 name: 'serial-over-lan',
244 component: SerialOverLan,
245 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500246 title: i18n.t('appPageTitle.serialOverLan'),
247 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700248 },
249 {
250 path: '/control/server-power-operations',
251 name: 'server-power-operations',
252 component: ServerPowerOperations,
253 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500254 title: i18n.t('appPageTitle.serverPowerOperations'),
255 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700256 },
257 {
258 path: '/control/virtual-media',
259 name: 'virtual-media',
260 component: VirtualMedia,
261 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500262 title: i18n.t('appPageTitle.virtualMedia'),
263 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700264 },
265 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700266 path: '*',
267 name: 'page-not-found',
268 component: PageNotFound,
269 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500270 title: i18n.t('appPageTitle.pageNotFound'),
271 },
272 },
273 ],
274 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700275];
276
277export default routes;