blob: c6ac61f79dd01da72bd77df13eac8f0b1cabeb61 [file] [log] [blame]
Yoshie Muranaka0b980db2020-10-06 09:24:14 -07001import AppLayout from '@/layouts/AppLayout.vue';
2import ChangePassword from '@/views/ChangePassword';
Sandeepa Singhb4406162021-07-26 15:05:39 +05303import Sessions from '@/views/SecurityAndAccess/Sessions';
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';
Sandeepa Singhb4406162021-07-26 15:05:39 +053010import Ldap from '@/views/SecurityAndAccess/Ldap';
11import UserManagement from '@/views/SecurityAndAccess/UserManagement';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070012import Login from '@/views/Login';
13import LoginLayout from '@/layouts/LoginLayout';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053014import Network from '@/views/Settings/Network';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070015import Overview from '@/views/Overview';
16import PageNotFound from '@/views/PageNotFound';
Sandeepa Singh7affc522021-07-06 16:29:10 +053017import PostCodeLogs from '@/views/Logs/PostCodeLogs';
Sandeepa Singhf67f7692021-07-19 18:04:18 +053018import PowerRestorePolicy from '@/views/Settings/PowerRestorePolicy';
Yoshie Muranaka0b980db2020-10-06 09:24:14 -070019import ProfileSettings from '@/views/ProfileSettings';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053020import RebootBmc from '@/views/Operations/RebootBmc';
Sandeepa Singhb4406162021-07-26 15:05:39 +053021import Policies from '@/views/SecurityAndAccess/Policies';
Sandeepa Singh7affc522021-07-06 16:29:10 +053022import Sensors from '@/views/HardwareStatus/Sensors';
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053023import SerialOverLan from '@/views/Operations/SerialOverLan';
24import SerialOverLanConsole from '@/views/Operations/SerialOverLan/SerialOverLanConsole';
25import ServerPowerOperations from '@/views/Operations/ServerPowerOperations';
Sandeepa Singhb4406162021-07-26 15:05:39 +053026import Certificates from '@/views/SecurityAndAccess/Certificates';
Sandeepa Singh6dba4be2021-07-28 15:25:14 +053027import Power from '@/views/ResourceManagement/Power';
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 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530138 path: '/security-and-access/sessions',
139 name: 'sessions',
140 component: Sessions,
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800141 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530142 title: i18n.t('appPageTitle.sessions'),
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800143 },
144 },
145 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530146 path: '/security-and-access/ldap',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700147 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 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530154 path: '/security-and-access/user-management',
155 name: 'user-management',
156 component: UserManagement,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700157 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530158 title: i18n.t('appPageTitle.userManagement'),
Derick Montague602e98a2020-10-21 16:20:00 -0500159 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700160 },
161 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530162 path: '/security-and-access/policies',
163 name: 'policies',
164 component: Policies,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700165 meta: {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530166 title: i18n.t('appPageTitle.policies'),
167 },
168 },
169 {
170 path: '/security-and-access/certificates',
171 name: 'certificates',
172 component: Certificates,
173 meta: {
174 title: i18n.t('appPageTitle.certificates'),
Derick Montague602e98a2020-10-21 16:20:00 -0500175 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700176 },
177 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530178 path: '/settings/date-time',
179 name: 'date-time',
180 component: DateTime,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700181 meta: {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530182 title: i18n.t('appPageTitle.dateTime'),
Derick Montague602e98a2020-10-21 16:20:00 -0500183 },
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700184 },
185 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530186 path: '/operations/firmware',
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700187 name: 'firmware',
Yoshie Muranaka33d755f2021-02-18 15:24:14 -0800188 component: Firmware,
Yoshie Muranaka0b980db2020-10-06 09:24:14 -0700189 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500190 title: i18n.t('appPageTitle.firmware'),
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 Singh6dba4be2021-07-28 15:25:14 +0530210 path: '/resource-management/power',
211 name: 'power',
212 component: Power,
213 meta: {
214 title: i18n.t('appPageTitle.power'),
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;