blob: e0586e82bc57b6e84416426cd11f977cce79a540 [file] [log] [blame]
Yoshie Muranaka0b980db2020-10-06 09:24:14 -07001import AppLayout from '@/layouts/AppLayout.vue';
2import ChangePassword from '@/views/ChangePassword';
Yoshie Muranakaca22a422021-01-04 14:13:34 -08003import ClientSessions from '@/views/AccessControl/ClientSessions';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -07004import ConsoleLayout from '@/layouts/ConsoleLayout.vue';
5import DateTimeSettings from '@/views/Configuration/DateTimeSettings';
6import EventLogs from '@/views/Health/EventLogs';
Derick Montagueda9f0a62021-02-14 19:21:44 -06007import FactoryReset from '@/views/Control/FactoryReset';
Yoshie Muranaka33d755f2021-02-18 15:24:14 -08008import Firmware from '@/views/Configuration/Firmware';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -07009import HardwareStatus from '@/views/Health/HardwareStatus';
10import Ldap from '@/views/AccessControl/Ldap';
11import LocalUserManagement from '@/views/AccessControl/LocalUserManagement';
12import Login from '@/views/Login';
13import LoginLayout from '@/layouts/LoginLayout';
14import ManagePowerUsage from '@/views/Control/ManagePowerUsage';
15import NetworkSettings from '@/views/Configuration/NetworkSettings';
16import Overview from '@/views/Overview';
17import PageNotFound from '@/views/PageNotFound';
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053018import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070019import ProfileSettings from '@/views/ProfileSettings';
20import RebootBmc from '@/views/Control/RebootBmc';
Yoshie Muranakaca22a422021-01-04 14:13:34 -080021import SecuritySettings from '@/views/Configuration/SecuritySettings';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070022import Sensors from '@/views/Health/Sensors';
23import SerialOverLan from '@/views/Control/SerialOverLan';
24import SerialOverLanConsole from '@/views/Control/SerialOverLan/SerialOverLanConsole';
25import ServerLed from '@/views/Control/ServerLed';
26import ServerPowerOperations from '@/views/Control/ServerPowerOperations';
27import SslCertificates from '@/views/AccessControl/SslCertificates';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070028import i18n from '@/i18n';
Yoshie Muranaka9e36f522020-02-05 07:42:34 -080029
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070030// Custom components
Yoshie Muranakaaa5e9502021-02-23 11:23:52 -080031import Dumps from '@/views/Health/Dumps';
Yoshie Muranaka3dd167a2020-09-03 13:58:35 -070032
Yoshie Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -070045 },
46 {
47 path: '/change-password',
48 name: 'change-password',
49 component: ChangePassword,
50 meta: {
51 title: i18n.t('appPageTitle.changePassword'),
Derick Montague602e98a2020-10-21 16:20:00 -050052 requiresAuth: true,
53 },
54 },
55 ],
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070056 },
57 {
58 path: '/console',
59 component: ConsoleLayout,
60 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050061 requiresAuth: true,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -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 },
71 },
72 ],
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070073 },
74 {
75 path: '/',
76 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050077 requiresAuth: true,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070078 },
79 component: AppLayout,
80 children: [
81 {
82 path: '',
83 name: 'overview',
84 component: Overview,
85 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050086 title: i18n.t('appPageTitle.overview'),
87 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070088 },
89 {
90 path: '/profile-settings',
91 name: 'profile-settings',
92 component: ProfileSettings,
93 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050094 title: i18n.t('appPageTitle.profileSettings'),
95 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070096 },
97 {
Yoshie Muranaka22d4d522020-12-03 10:58:35 -080098 path: '/health/dumps',
99 name: 'dumps',
100 component: Dumps,
101 meta: {
102 title: i18n.t('appPageTitle.dumps'),
103 },
104 },
105 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700106 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 Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -0700128 },
129 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800130 path: '/access-control/client-sessions',
131 name: 'client-sessions',
132 component: ClientSessions,
133 meta: {
134 title: i18n.t('appPageTitle.clientSessions'),
135 },
136 },
137 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -0700168 },
169 {
170 path: '/configuration/firmware',
171 name: 'firmware',
Yoshie Muranaka33d755f2021-02-18 15:24:14 -0800172 component: Firmware,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700173 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500174 title: i18n.t('appPageTitle.firmware'),
175 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700176 },
177 {
178 path: '/control/manage-power-usage',
179 name: 'manage-power-usage',
180 component: ManagePowerUsage,
181 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500182 title: i18n.t('appPageTitle.managePowerUsage'),
183 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700184 },
185 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +0530186 path: '/control/power-restore-policy',
187 name: 'power-restore-policy',
188 component: PowerRestorePolicy,
189 meta: {
190 title: i18n.t('appPageTitle.powerRestorePolicy'),
191 },
192 },
193 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700194 path: '/configuration/network-settings',
195 name: 'network-settings',
196 component: NetworkSettings,
197 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500198 title: i18n.t('appPageTitle.networkSettings'),
199 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700200 },
201 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800202 path: '/configuration/security-settings',
203 name: 'security-settings',
204 component: SecuritySettings,
205 meta: {
206 title: i18n.t('appPageTitle.securitySettings'),
207 },
208 },
209 {
Derick Montagueda9f0a62021-02-14 19:21:44 -0600210 path: '/control/factory-reset',
211 name: 'factory-reset',
212 component: FactoryReset,
213 meta: {
214 title: i18n.t('appPageTitle.factoryReset'),
215 },
216 },
217 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700218 path: '/control/reboot-bmc',
219 name: 'reboot-bmc',
220 component: RebootBmc,
221 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500222 title: i18n.t('appPageTitle.rebootBmc'),
223 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700224 },
225 {
226 path: '/control/server-led',
227 name: 'server-led',
228 component: ServerLed,
229 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500230 title: i18n.t('appPageTitle.serverLed'),
231 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700232 },
233 {
234 path: '/control/serial-over-lan',
235 name: 'serial-over-lan',
236 component: SerialOverLan,
237 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500238 title: i18n.t('appPageTitle.serialOverLan'),
239 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700240 },
241 {
242 path: '/control/server-power-operations',
243 name: 'server-power-operations',
244 component: ServerPowerOperations,
245 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500246 title: i18n.t('appPageTitle.serverPowerOperations'),
247 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700248 },
249 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700250 path: '*',
251 name: 'page-not-found',
252 component: PageNotFound,
253 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500254 title: i18n.t('appPageTitle.pageNotFound'),
255 },
256 },
257 ],
258 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700259];
Yoshie Muranaka3dd167a2020-09-03 13:58:35 -0700260
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700261export default routes;