blob: 1a86510c102183c5a8f733637b6b2b44443ed97c [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';
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';
18import ProfileSettings from '@/views/ProfileSettings';
19import RebootBmc from '@/views/Control/RebootBmc';
20import Sensors from '@/views/Health/Sensors';
21import SerialOverLan from '@/views/Control/SerialOverLan';
22import SerialOverLanConsole from '@/views/Control/SerialOverLan/SerialOverLanConsole';
23import ServerLed from '@/views/Control/ServerLed';
24import ServerPowerOperations from '@/views/Control/ServerPowerOperations';
25import SslCertificates from '@/views/AccessControl/SslCertificates';
26import Unauthorized from '@/views/Unauthorized';
27import VirtualMedia from '@/views/Control/VirtualMedia';
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070028import i18n from '@/i18n';
Yoshie Muranaka816d9472020-09-03 11:19:28 -070029
Yoshie Muranaka816d9472020-09-03 11:19:28 -070030const routes = [
31 {
32 path: '/login',
33 component: LoginLayout,
34 children: [
35 {
36 path: '',
37 name: 'login',
38 component: Login,
39 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070040 title: i18n.t('appPageTitle.login')
Yoshie Muranaka816d9472020-09-03 11:19:28 -070041 }
42 },
43 {
44 path: '/change-password',
45 name: 'change-password',
46 component: ChangePassword,
47 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070048 title: i18n.t('appPageTitle.changePassword'),
Yoshie Muranaka816d9472020-09-03 11:19:28 -070049 requiresAuth: true
50 }
51 }
52 ]
53 },
54 {
55 path: '/console',
56 component: ConsoleLayout,
57 meta: {
58 requiresAuth: true
59 },
60 children: [
61 {
62 path: 'serial-over-lan-console',
63 name: 'serial-over-lan-console',
64 component: SerialOverLanConsole,
65 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070066 title: i18n.t('appPageTitle.serialOverLan')
Yoshie Muranaka816d9472020-09-03 11:19:28 -070067 }
68 },
69 {
70 path: 'kvm',
71 name: 'kvm-console',
72 component: KvmConsole,
73 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070074 title: i18n.t('appPageTitle.kvm')
Yoshie Muranaka816d9472020-09-03 11:19:28 -070075 }
76 }
77 ]
78 },
79 {
80 path: '/',
81 meta: {
82 requiresAuth: true
83 },
84 component: AppLayout,
85 children: [
86 {
87 path: '',
88 name: 'overview',
89 component: Overview,
90 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070091 title: i18n.t('appPageTitle.overview')
Yoshie Muranaka816d9472020-09-03 11:19:28 -070092 }
93 },
94 {
95 path: '/profile-settings',
96 name: 'profile-settings',
97 component: ProfileSettings,
98 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070099 title: i18n.t('appPageTitle.profileSettings')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700100 }
101 },
102 {
103 path: '/health/event-logs',
104 name: 'event-logs',
105 component: EventLogs,
106 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700107 title: i18n.t('appPageTitle.eventLogs')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700108 }
109 },
110 {
111 path: '/health/hardware-status',
112 name: 'hardware-status',
113 component: HardwareStatus,
114 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700115 title: i18n.t('appPageTitle.hardwareStatus')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700116 }
117 },
118 {
119 path: '/health/sensors',
120 name: 'sensors',
121 component: Sensors,
122 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700123 title: i18n.t('appPageTitle.sensors')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700124 }
125 },
126 {
127 path: '/access-control/ldap',
128 name: 'ldap',
129 component: Ldap,
130 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700131 title: i18n.t('appPageTitle.ldap')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700132 }
133 },
134 {
135 path: '/access-control/local-user-management',
136 name: 'local-users',
137 component: LocalUserManagement,
138 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700139 title: i18n.t('appPageTitle.localUserManagement')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700140 }
141 },
142 {
143 path: '/access-control/ssl-certificates',
144 name: 'ssl-certificates',
145 component: SslCertificates,
146 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700147 title: i18n.t('appPageTitle.sslCertificates')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700148 }
149 },
150 {
151 path: '/configuration/date-time-settings',
152 name: 'date-time-settings',
153 component: DateTimeSettings,
154 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700155 title: i18n.t('appPageTitle.dateTimeSettings')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700156 }
157 },
158 {
159 path: '/configuration/firmware',
160 name: 'firmware',
161 component: Firmware,
162 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700163 title: i18n.t('appPageTitle.firmware')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700164 }
165 },
166 {
167 path: '/control/kvm',
168 name: 'kvm',
169 component: Kvm,
170 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700171 title: i18n.t('appPageTitle.kvm')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700172 }
173 },
174 {
175 path: '/control/manage-power-usage',
176 name: 'manage-power-usage',
177 component: ManagePowerUsage,
178 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700179 title: i18n.t('appPageTitle.managePowerUsage')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700180 }
181 },
182 {
183 path: '/configuration/network-settings',
184 name: 'network-settings',
185 component: NetworkSettings,
186 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700187 title: i18n.t('appPageTitle.networkSettings')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700188 }
189 },
190 {
191 path: '/control/reboot-bmc',
192 name: 'reboot-bmc',
193 component: RebootBmc,
194 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700195 title: i18n.t('appPageTitle.rebootBmc')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700196 }
197 },
198 {
199 path: '/control/server-led',
200 name: 'server-led',
201 component: ServerLed,
202 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700203 title: i18n.t('appPageTitle.serverLed')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700204 }
205 },
206 {
207 path: '/control/serial-over-lan',
208 name: 'serial-over-lan',
209 component: SerialOverLan,
210 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700211 title: i18n.t('appPageTitle.serialOverLan')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700212 }
213 },
214 {
215 path: '/control/server-power-operations',
216 name: 'server-power-operations',
217 component: ServerPowerOperations,
218 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700219 title: i18n.t('appPageTitle.serverPowerOperations')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700220 }
221 },
222 {
223 path: '/control/virtual-media',
224 name: 'virtual-media',
225 component: VirtualMedia,
226 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700227 title: i18n.t('appPageTitle.virtualMedia')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700228 }
229 },
230 {
231 path: '/unauthorized',
232 name: 'unauthorized',
233 component: Unauthorized,
234 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700235 title: i18n.t('appPageTitle.unauthorized')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700236 }
237 },
238 {
239 path: '*',
240 name: 'page-not-found',
241 component: PageNotFound,
242 meta: {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -0700243 title: i18n.t('appPageTitle.pageNotFound')
Yoshie Muranaka816d9472020-09-03 11:19:28 -0700244 }
245 }
246 ]
247 }
248];
249
250export default routes;