blob: 9a9b7137591d829d5922661a9e85b855312dfb3f [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';
19import ProfileSettings from '@/views/ProfileSettings';
20import RebootBmc from '@/views/Control/RebootBmc';
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -060021import SecuritySettings from '@/views/Configuration/SecuritySettings';
Yoshie Muranaka816d9472020-09-03 11:19:28 -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 Muranaka816d9472020-09-03 11:19:28 -070028import VirtualMedia from '@/views/Control/VirtualMedia';
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070029import i18n from '@/i18n';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070030
Yoshie Muranaka816d9472020-09-03 11:19:28 -070031const routes = [
32 {
33 path: '/login',
34 component: LoginLayout,
35 children: [
36 {
37 path: '',
38 name: 'login',
39 component: Login,
40 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050041 title: i18n.t('appPageTitle.login'),
42 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070043 },
44 {
45 path: '/change-password',
46 name: 'change-password',
47 component: ChangePassword,
48 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070049 title: i18n.t('appPageTitle.changePassword'),
Derick Montague602e98a2020-10-21 16:20:00 -050050 requiresAuth: true,
51 },
52 },
53 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070054 },
55 {
56 path: '/console',
57 component: ConsoleLayout,
58 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050059 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070060 },
61 children: [
62 {
63 path: 'serial-over-lan-console',
64 name: 'serial-over-lan-console',
65 component: SerialOverLanConsole,
66 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050067 title: i18n.t('appPageTitle.serialOverLan'),
68 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070069 },
70 {
71 path: 'kvm',
72 name: 'kvm-console',
73 component: KvmConsole,
74 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050075 title: i18n.t('appPageTitle.kvm'),
76 },
77 },
78 ],
Yoshie Muranaka816d9472020-09-03 11:19:28 -070079 },
80 {
81 path: '/',
82 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050083 requiresAuth: true,
Yoshie Muranaka816d9472020-09-03 11:19:28 -070084 },
85 component: AppLayout,
86 children: [
87 {
88 path: '',
89 name: 'overview',
90 component: Overview,
91 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -050092 title: i18n.t('appPageTitle.overview'),
93 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -070094 },
95 {
96 path: '/profile-settings',
97 name: 'profile-settings',
98 component: ProfileSettings,
99 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500100 title: i18n.t('appPageTitle.profileSettings'),
101 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700102 },
103 {
104 path: '/health/event-logs',
105 name: 'event-logs',
106 component: EventLogs,
107 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500108 title: i18n.t('appPageTitle.eventLogs'),
109 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700110 },
111 {
112 path: '/health/hardware-status',
113 name: 'hardware-status',
114 component: HardwareStatus,
115 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500116 title: i18n.t('appPageTitle.hardwareStatus'),
117 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700118 },
119 {
120 path: '/health/sensors',
121 name: 'sensors',
122 component: Sensors,
123 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500124 title: i18n.t('appPageTitle.sensors'),
125 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700126 },
127 {
Sukanya Pandey34efde22020-12-02 19:04:09 +0530128 path: '/access-control/client-sessions',
129 name: 'client-sessions',
130 component: ClientSessions,
131 meta: {
132 title: i18n.t('appPageTitle.clientSessions'),
133 },
134 },
135 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700136 path: '/access-control/ldap',
137 name: 'ldap',
138 component: Ldap,
139 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500140 title: i18n.t('appPageTitle.ldap'),
141 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700142 },
143 {
144 path: '/access-control/local-user-management',
145 name: 'local-users',
146 component: LocalUserManagement,
147 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500148 title: i18n.t('appPageTitle.localUserManagement'),
149 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700150 },
151 {
152 path: '/access-control/ssl-certificates',
153 name: 'ssl-certificates',
154 component: SslCertificates,
155 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500156 title: i18n.t('appPageTitle.sslCertificates'),
157 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700158 },
159 {
160 path: '/configuration/date-time-settings',
161 name: 'date-time-settings',
162 component: DateTimeSettings,
163 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500164 title: i18n.t('appPageTitle.dateTimeSettings'),
165 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700166 },
167 {
168 path: '/configuration/firmware',
169 name: 'firmware',
170 component: Firmware,
171 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500172 title: i18n.t('appPageTitle.firmware'),
173 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700174 },
175 {
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -0600176 path: '/configuration/security-settings',
177 name: 'security-settings',
178 component: SecuritySettings,
179 meta: {
180 title: i18n.t('appPageTitle.securitySettings'),
181 },
182 },
183 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700184 path: '/control/kvm',
185 name: 'kvm',
186 component: Kvm,
187 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500188 title: i18n.t('appPageTitle.kvm'),
189 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700190 },
191 {
192 path: '/control/manage-power-usage',
193 name: 'manage-power-usage',
194 component: ManagePowerUsage,
195 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500196 title: i18n.t('appPageTitle.managePowerUsage'),
197 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700198 },
199 {
200 path: '/configuration/network-settings',
201 name: 'network-settings',
202 component: NetworkSettings,
203 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500204 title: i18n.t('appPageTitle.networkSettings'),
205 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700206 },
207 {
208 path: '/control/reboot-bmc',
209 name: 'reboot-bmc',
210 component: RebootBmc,
211 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500212 title: i18n.t('appPageTitle.rebootBmc'),
213 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700214 },
215 {
216 path: '/control/server-led',
217 name: 'server-led',
218 component: ServerLed,
219 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500220 title: i18n.t('appPageTitle.serverLed'),
221 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700222 },
223 {
224 path: '/control/serial-over-lan',
225 name: 'serial-over-lan',
226 component: SerialOverLan,
227 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500228 title: i18n.t('appPageTitle.serialOverLan'),
229 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700230 },
231 {
232 path: '/control/server-power-operations',
233 name: 'server-power-operations',
234 component: ServerPowerOperations,
235 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500236 title: i18n.t('appPageTitle.serverPowerOperations'),
237 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700238 },
239 {
240 path: '/control/virtual-media',
241 name: 'virtual-media',
242 component: VirtualMedia,
243 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500244 title: i18n.t('appPageTitle.virtualMedia'),
245 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700246 },
247 {
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700248 path: '*',
249 name: 'page-not-found',
250 component: PageNotFound,
251 meta: {
Derick Montague602e98a2020-10-21 16:20:00 -0500252 title: i18n.t('appPageTitle.pageNotFound'),
253 },
254 },
255 ],
256 },
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700257];
258
259export default routes;