blob: 8b94cf78a024db977db3a38e53c274182d6a23fa [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';
Derick Montague828dda92021-06-28 15:52:22 -05006import EventLogs from '@/views/Logs/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';
Sandeepa Singh06d53862021-05-24 13:51:09 +053018import PostCodeLogs from '@/views/Health/PostCodeLogs';
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053019import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070020import ProfileSettings from '@/views/ProfileSettings';
21import RebootBmc from '@/views/Control/RebootBmc';
Yoshie Muranakaca22a422021-01-04 14:13:34 -080022import SecuritySettings from '@/views/Configuration/SecuritySettings';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070023import Sensors from '@/views/Health/Sensors';
24import SerialOverLan from '@/views/Control/SerialOverLan';
25import SerialOverLanConsole from '@/views/Control/SerialOverLan/SerialOverLanConsole';
26import ServerLed from '@/views/Control/ServerLed';
27import ServerPowerOperations from '@/views/Control/ServerPowerOperations';
28import SslCertificates from '@/views/AccessControl/SslCertificates';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070029import i18n from '@/i18n';
Yoshie Muranaka9e36f522020-02-05 07:42:34 -080030
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070031// Custom components
Derick Montague828dda92021-06-28 15:52:22 -050032import Dumps from '@/views/Logs/Dumps';
Yoshie Muranaka3dd167a2020-09-03 13:58:35 -070033
Yoshie Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -070046 },
47 {
48 path: '/change-password',
49 name: 'change-password',
50 component: ChangePassword,
51 meta: {
52 title: i18n.t('appPageTitle.changePassword'),
Derick Montague602e98a2020-10-21 16:20:00 -050053 requiresAuth: true,
54 },
55 },
56 ],
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070057 },
58 {
59 path: '/console',
60 component: ConsoleLayout,
61 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050062 requiresAuth: true,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -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 },
72 },
73 ],
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070074 },
75 {
76 path: '/',
77 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050078 requiresAuth: true,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070079 },
80 component: AppLayout,
81 children: [
82 {
83 path: '',
84 name: 'overview',
85 component: Overview,
86 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050087 title: i18n.t('appPageTitle.overview'),
88 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070089 },
90 {
91 path: '/profile-settings',
92 name: 'profile-settings',
93 component: ProfileSettings,
94 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050095 title: i18n.t('appPageTitle.profileSettings'),
96 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070097 },
98 {
Derick Montague828dda92021-06-28 15:52:22 -050099 path: '/logs/dumps',
Yoshie Muranaka22d4d522020-12-03 10:58:35 -0800100 name: 'dumps',
101 component: Dumps,
102 meta: {
103 title: i18n.t('appPageTitle.dumps'),
104 },
105 },
106 {
Derick Montague828dda92021-06-28 15:52:22 -0500107 path: '/logs/event-logs',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700108 name: 'event-logs',
109 component: EventLogs,
110 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500111 title: i18n.t('appPageTitle.eventLogs'),
112 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700113 },
114 {
115 path: '/health/hardware-status',
116 name: 'hardware-status',
117 component: HardwareStatus,
118 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500119 title: i18n.t('appPageTitle.hardwareStatus'),
120 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700121 },
122 {
Sandeepa Singh06d53862021-05-24 13:51:09 +0530123 path: '/health/post-code-logs',
124 name: 'post-code-logs',
125 component: PostCodeLogs,
126 meta: {
127 title: i18n.t('appPageTitle.postCodeLogs'),
128 },
129 },
130 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700131 path: '/health/sensors',
132 name: 'sensors',
133 component: Sensors,
134 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500135 title: i18n.t('appPageTitle.sensors'),
136 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700137 },
138 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800139 path: '/access-control/client-sessions',
140 name: 'client-sessions',
141 component: ClientSessions,
142 meta: {
143 title: i18n.t('appPageTitle.clientSessions'),
144 },
145 },
146 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -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 Muranaka0b980db2020-10-06 09:24:14 -0700177 },
178 {
179 path: '/configuration/firmware',
180 name: 'firmware',
Yoshie Muranaka33d755f2021-02-18 15:24:14 -0800181 component: Firmware,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700182 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500183 title: i18n.t('appPageTitle.firmware'),
184 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700185 },
186 {
187 path: '/control/manage-power-usage',
188 name: 'manage-power-usage',
189 component: ManagePowerUsage,
190 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500191 title: i18n.t('appPageTitle.managePowerUsage'),
192 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700193 },
194 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +0530195 path: '/control/power-restore-policy',
196 name: 'power-restore-policy',
197 component: PowerRestorePolicy,
198 meta: {
199 title: i18n.t('appPageTitle.powerRestorePolicy'),
200 },
201 },
202 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700203 path: '/configuration/network-settings',
204 name: 'network-settings',
205 component: NetworkSettings,
206 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500207 title: i18n.t('appPageTitle.networkSettings'),
208 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700209 },
210 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800211 path: '/configuration/security-settings',
212 name: 'security-settings',
213 component: SecuritySettings,
214 meta: {
215 title: i18n.t('appPageTitle.securitySettings'),
216 },
217 },
218 {
Derick Montagueda9f0a62021-02-14 19:21:44 -0600219 path: '/control/factory-reset',
220 name: 'factory-reset',
221 component: FactoryReset,
222 meta: {
223 title: i18n.t('appPageTitle.factoryReset'),
224 },
225 },
226 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700227 path: '/control/reboot-bmc',
228 name: 'reboot-bmc',
229 component: RebootBmc,
230 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500231 title: i18n.t('appPageTitle.rebootBmc'),
232 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700233 },
234 {
235 path: '/control/server-led',
236 name: 'server-led',
237 component: ServerLed,
238 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500239 title: i18n.t('appPageTitle.serverLed'),
240 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700241 },
242 {
243 path: '/control/serial-over-lan',
244 name: 'serial-over-lan',
245 component: SerialOverLan,
246 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500247 title: i18n.t('appPageTitle.serialOverLan'),
248 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700249 },
250 {
251 path: '/control/server-power-operations',
252 name: 'server-power-operations',
253 component: ServerPowerOperations,
254 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500255 title: i18n.t('appPageTitle.serverPowerOperations'),
256 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700257 },
258 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700259 path: '*',
260 name: 'page-not-found',
261 component: PageNotFound,
262 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500263 title: i18n.t('appPageTitle.pageNotFound'),
264 },
265 },
266 ],
267 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700268];
Yoshie Muranaka3dd167a2020-09-03 13:58:35 -0700269
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700270export default routes;