blob: 533f185933b859027881edfae06a0fe5f1889bbe [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';
6import Firmware from '@/views/Configuration/Firmware';
7import HardwareStatus from '@/views/Health/HardwareStatus';
8import Kvm from '@/views/Control/Kvm';
9import KvmConsole from '@/views/Control/Kvm/KvmConsole';
Sukanya Pandey34efde22020-12-02 19:04:09 +053010import ClientSessions from '../views/AccessControl/ClientSessions';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070011import Ldap from '@/views/AccessControl/Ldap';
12import LocalUserManagement from '@/views/AccessControl/LocalUserManagement';
13import Login from '@/views/Login';
14import LoginLayout from '@/layouts/LoginLayout';
15import ManagePowerUsage from '@/views/Control/ManagePowerUsage';
16import NetworkSettings from '@/views/Configuration/NetworkSettings';
17import Overview from '@/views/Overview';
18import PageNotFound from '@/views/PageNotFound';
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053019import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070020import ProfileSettings from '@/views/ProfileSettings';
21import RebootBmc from '@/views/Control/RebootBmc';
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -060022import SecuritySettings from '@/views/Configuration/SecuritySettings';
Yoshie Muranaka816d9472020-09-03 11:19:28 -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 Muranaka816d9472020-09-03 11:19:28 -070029import VirtualMedia from '@/views/Control/VirtualMedia';
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070030import i18n from '@/i18n';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070031
Yoshie Muranaka816d9472020-09-03 11:19:28 -070032const routes = [
33 {
34 path: '/login',
35 component: LoginLayout,
36 children: [
37 {
38 path: '',
39 name: 'login',
40 component: Login,
41 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050042 title: i18n.t('appPageTitle.login'),
43 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070044 },
45 {
46 path: '/change-password',
47 name: 'change-password',
48 component: ChangePassword,
49 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070050 title: i18n.t('appPageTitle.changePassword'),
Derick Montague602e98a2020-10-21 16:20:00 -050051 requiresAuth: true,
52 },
53 },
54 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070055 },
56 {
57 path: '/console',
58 component: ConsoleLayout,
59 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050060 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070061 },
62 children: [
63 {
64 path: 'serial-over-lan-console',
65 name: 'serial-over-lan-console',
66 component: SerialOverLanConsole,
67 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050068 title: i18n.t('appPageTitle.serialOverLan'),
69 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070070 },
71 {
72 path: 'kvm',
73 name: 'kvm-console',
74 component: KvmConsole,
75 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050076 title: i18n.t('appPageTitle.kvm'),
77 },
78 },
79 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070080 },
81 {
82 path: '/',
83 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050084 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070085 },
86 component: AppLayout,
87 children: [
88 {
89 path: '',
90 name: 'overview',
91 component: Overview,
92 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050093 title: i18n.t('appPageTitle.overview'),
94 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070095 },
96 {
97 path: '/profile-settings',
98 name: 'profile-settings',
99 component: ProfileSettings,
100 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500101 title: i18n.t('appPageTitle.profileSettings'),
102 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700103 },
104 {
105 path: '/health/event-logs',
106 name: 'event-logs',
107 component: EventLogs,
108 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500109 title: i18n.t('appPageTitle.eventLogs'),
110 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700111 },
112 {
113 path: '/health/hardware-status',
114 name: 'hardware-status',
115 component: HardwareStatus,
116 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500117 title: i18n.t('appPageTitle.hardwareStatus'),
118 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700119 },
120 {
121 path: '/health/sensors',
122 name: 'sensors',
123 component: Sensors,
124 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500125 title: i18n.t('appPageTitle.sensors'),
126 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700127 },
128 {
Sukanya Pandey34efde22020-12-02 19:04:09 +0530129 path: '/access-control/client-sessions',
130 name: 'client-sessions',
131 component: ClientSessions,
132 meta: {
133 title: i18n.t('appPageTitle.clientSessions'),
134 },
135 },
136 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700137 path: '/access-control/ldap',
138 name: 'ldap',
139 component: Ldap,
140 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500141 title: i18n.t('appPageTitle.ldap'),
142 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700143 },
144 {
145 path: '/access-control/local-user-management',
146 name: 'local-users',
147 component: LocalUserManagement,
148 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500149 title: i18n.t('appPageTitle.localUserManagement'),
150 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700151 },
152 {
153 path: '/access-control/ssl-certificates',
154 name: 'ssl-certificates',
155 component: SslCertificates,
156 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500157 title: i18n.t('appPageTitle.sslCertificates'),
158 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700159 },
160 {
161 path: '/configuration/date-time-settings',
162 name: 'date-time-settings',
163 component: DateTimeSettings,
164 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500165 title: i18n.t('appPageTitle.dateTimeSettings'),
166 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700167 },
168 {
169 path: '/configuration/firmware',
170 name: 'firmware',
171 component: Firmware,
172 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500173 title: i18n.t('appPageTitle.firmware'),
174 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700175 },
176 {
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -0600177 path: '/configuration/security-settings',
178 name: 'security-settings',
179 component: SecuritySettings,
180 meta: {
181 title: i18n.t('appPageTitle.securitySettings'),
182 },
183 },
184 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700185 path: '/control/kvm',
186 name: 'kvm',
187 component: Kvm,
188 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500189 title: i18n.t('appPageTitle.kvm'),
190 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700191 },
192 {
193 path: '/control/manage-power-usage',
194 name: 'manage-power-usage',
195 component: ManagePowerUsage,
196 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500197 title: i18n.t('appPageTitle.managePowerUsage'),
198 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700199 },
200 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +0530201 path: '/control/power-restore-policy',
202 name: 'power-restore-policy',
203 component: PowerRestorePolicy,
204 meta: {
205 title: i18n.t('appPageTitle.powerRestorePolicy'),
206 },
207 },
208 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700209 path: '/configuration/network-settings',
210 name: 'network-settings',
211 component: NetworkSettings,
212 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500213 title: i18n.t('appPageTitle.networkSettings'),
214 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700215 },
216 {
217 path: '/control/reboot-bmc',
218 name: 'reboot-bmc',
219 component: RebootBmc,
220 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500221 title: i18n.t('appPageTitle.rebootBmc'),
222 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700223 },
224 {
225 path: '/control/server-led',
226 name: 'server-led',
227 component: ServerLed,
228 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500229 title: i18n.t('appPageTitle.serverLed'),
230 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700231 },
232 {
233 path: '/control/serial-over-lan',
234 name: 'serial-over-lan',
235 component: SerialOverLan,
236 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500237 title: i18n.t('appPageTitle.serialOverLan'),
238 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700239 },
240 {
241 path: '/control/server-power-operations',
242 name: 'server-power-operations',
243 component: ServerPowerOperations,
244 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500245 title: i18n.t('appPageTitle.serverPowerOperations'),
246 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700247 },
248 {
249 path: '/control/virtual-media',
250 name: 'virtual-media',
251 component: VirtualMedia,
252 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500253 title: i18n.t('appPageTitle.virtualMedia'),
254 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700255 },
256 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700257 path: '*',
258 name: 'page-not-found',
259 component: PageNotFound,
260 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500261 title: i18n.t('appPageTitle.pageNotFound'),
262 },
263 },
264 ],
265 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700266];
267
268export default routes;