blob: 4149b97aeadd3a22c8663bbee10958f0c4bf3092 [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';
Sandeepa Singhf67f7692021-07-19 18:04:18 +05305import DateTime from '@/views/Settings/DateTime';
Derick Montague828dda92021-06-28 15:52:22 -05006import EventLogs from '@/views/Logs/EventLogs';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +05307import FactoryReset from '@/views/Operations/FactoryReset';
8import Firmware from '@/views/Operations/Firmware';
Sandeepa Singh7affc522021-07-06 16:29:10 +05309import Inventory from '@/views/HardwareStatus/Inventory';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070010import Ldap from '@/views/AccessControl/Ldap';
11import LocalUserManagement from '@/views/AccessControl/LocalUserManagement';
12import Login from '@/views/Login';
13import LoginLayout from '@/layouts/LoginLayout';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053014import ManagePowerUsage from '@/views/Operations/ManagePowerUsage';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053015import Network from '@/views/Settings/Network';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070016import Overview from '@/views/Overview';
17import PageNotFound from '@/views/PageNotFound';
Sandeepa Singh7affc522021-07-06 16:29:10 +053018import PostCodeLogs from '@/views/Logs/PostCodeLogs';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053019import PowerRestorePolicy from '@/views/Settings/PowerRestorePolicy';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070020import ProfileSettings from '@/views/ProfileSettings';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053021import RebootBmc from '@/views/Operations/RebootBmc';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053022import SecuritySettings from '@/views/Settings/SecuritySettings';
Sandeepa Singh7affc522021-07-06 16:29:10 +053023import Sensors from '@/views/HardwareStatus/Sensors';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053024import SerialOverLan from '@/views/Operations/SerialOverLan';
25import SerialOverLanConsole from '@/views/Operations/SerialOverLan/SerialOverLanConsole';
26import ServerPowerOperations from '@/views/Operations/ServerPowerOperations';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070027import 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
Derick Montague828dda92021-06-28 15:52:22 -050031import Dumps from '@/views/Logs/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 {
Derick Montague828dda92021-06-28 15:52:22 -050098 path: '/logs/dumps',
Yoshie Muranaka22d4d522020-12-03 10:58:35 -080099 name: 'dumps',
100 component: Dumps,
101 meta: {
102 title: i18n.t('appPageTitle.dumps'),
103 },
104 },
105 {
Derick Montague828dda92021-06-28 15:52:22 -0500106 path: '/logs/event-logs',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700107 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 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530114 path: '/logs/post-code-logs',
Sandeepa Singh06d53862021-05-24 13:51:09 +0530115 name: 'post-code-logs',
116 component: PostCodeLogs,
117 meta: {
118 title: i18n.t('appPageTitle.postCodeLogs'),
119 },
120 },
121 {
Sandeepa Singh7affc522021-07-06 16:29:10 +0530122 path: '/hardware-status/inventory',
123 name: 'inventory',
124 component: Inventory,
125 meta: {
126 title: i18n.t('appPageTitle.inventory'),
127 },
128 },
129 {
130 path: '/hardware-status/sensors',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700131 name: 'sensors',
132 component: Sensors,
133 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500134 title: i18n.t('appPageTitle.sensors'),
135 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700136 },
137 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800138 path: '/access-control/client-sessions',
139 name: 'client-sessions',
140 component: ClientSessions,
141 meta: {
142 title: i18n.t('appPageTitle.clientSessions'),
143 },
144 },
145 {
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700146 path: '/access-control/ldap',
147 name: 'ldap',
148 component: Ldap,
149 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500150 title: i18n.t('appPageTitle.ldap'),
151 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700152 },
153 {
154 path: '/access-control/local-user-management',
155 name: 'local-users',
156 component: LocalUserManagement,
157 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500158 title: i18n.t('appPageTitle.localUserManagement'),
159 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700160 },
161 {
162 path: '/access-control/ssl-certificates',
163 name: 'ssl-certificates',
164 component: SslCertificates,
165 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500166 title: i18n.t('appPageTitle.sslCertificates'),
167 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700168 },
169 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530170 path: '/settings/date-time',
171 name: 'date-time',
172 component: DateTime,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700173 meta: {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530174 title: i18n.t('appPageTitle.dateTime'),
Derick Montague602e98a2020-10-21 16:20:00 -0500175 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700176 },
177 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530178 path: '/operations/firmware',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700179 name: 'firmware',
Yoshie Muranaka33d755f2021-02-18 15:24:14 -0800180 component: Firmware,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700181 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500182 title: i18n.t('appPageTitle.firmware'),
183 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700184 },
185 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530186 path: '/operations/manage-power-usage',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700187 name: 'manage-power-usage',
188 component: ManagePowerUsage,
189 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500190 title: i18n.t('appPageTitle.managePowerUsage'),
191 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700192 },
193 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530194 path: '/settings/network',
195 name: 'network',
196 component: Network,
197 meta: {
198 title: i18n.t('appPageTitle.network'),
199 },
200 },
201 {
202 path: '/settings/power-restore-policy',
Sukanya Pandeybe6858c2020-12-16 20:08:01 +0530203 name: 'power-restore-policy',
204 component: PowerRestorePolicy,
205 meta: {
206 title: i18n.t('appPageTitle.powerRestorePolicy'),
207 },
208 },
209 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530210 path: '/settings/security-settings',
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800211 name: 'security-settings',
212 component: SecuritySettings,
213 meta: {
214 title: i18n.t('appPageTitle.securitySettings'),
215 },
216 },
217 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530218 path: '/operations/factory-reset',
Derick Montagueda9f0a62021-02-14 19:21:44 -0600219 name: 'factory-reset',
220 component: FactoryReset,
221 meta: {
222 title: i18n.t('appPageTitle.factoryReset'),
223 },
224 },
225 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530226 path: '/operations/reboot-bmc',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700227 name: 'reboot-bmc',
228 component: RebootBmc,
229 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500230 title: i18n.t('appPageTitle.rebootBmc'),
231 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700232 },
233 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530234 path: '/operations/serial-over-lan',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700235 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 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530242 path: '/operations/server-power-operations',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700243 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;