summaryrefslogtreecommitdiff
path: root/src/router
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2020-10-22 00:20:00 +0300
committerDerick Montague <derick.montague@ibm.com>2020-11-03 19:47:51 +0300
commit602e98aa32f82fd3b0c3d250c7cc1f8da971db24 (patch)
tree2894194868ff987718a8b19f112b8106d662aa83 /src/router
parent47165201c79b3d2c4ccc62a49a9c75d038ee8fe6 (diff)
downloadwebui-vue-602e98aa32f82fd3b0c3d250c7cc1f8da971db24.tar.xz
Update linting packages to use latest
- 99% of changes were small syntax changes that were changed by the lint command. There were a couple of small manual changes to meet the property order patterns established as part of the vue:recommended guidelines. There are rules that were set from errors to warnings and new stories are being opened to address those issues. Testing: - Successfully ran npm run serve - Successfully ran npm run lint - Verified functionality works as expected, e.g. success and failure use cases - Resolved any JavaScript errors thrown to the console Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
Diffstat (limited to 'src/router')
-rw-r--r--src/router/index.js4
-rw-r--r--src/router/routes.js110
2 files changed, 57 insertions, 57 deletions
diff --git a/src/router/index.js b/src/router/index.js
index 3f447de3..3cd52264 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -12,11 +12,11 @@ Vue.use(VueRouter);
const router = new VueRouter({
base: process.env.BASE_URL,
routes,
- linkExactActiveClass: 'nav-link--current'
+ linkExactActiveClass: 'nav-link--current',
});
router.beforeEach((to, from, next) => {
- if (to.matched.some(record => record.meta.requiresAuth)) {
+ if (to.matched.some((record) => record.meta.requiresAuth)) {
if (store.getters['authentication/isLoggedIn']) {
next();
return;
diff --git a/src/router/routes.js b/src/router/routes.js
index 968a5ea7..3be1a1e4 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -36,8 +36,8 @@ const routes = [
name: 'login',
component: Login,
meta: {
- title: i18n.t('appPageTitle.login')
- }
+ title: i18n.t('appPageTitle.login'),
+ },
},
{
path: '/change-password',
@@ -45,16 +45,16 @@ const routes = [
component: ChangePassword,
meta: {
title: i18n.t('appPageTitle.changePassword'),
- requiresAuth: true
- }
- }
- ]
+ requiresAuth: true,
+ },
+ },
+ ],
},
{
path: '/console',
component: ConsoleLayout,
meta: {
- requiresAuth: true
+ requiresAuth: true,
},
children: [
{
@@ -62,23 +62,23 @@ const routes = [
name: 'serial-over-lan-console',
component: SerialOverLanConsole,
meta: {
- title: i18n.t('appPageTitle.serialOverLan')
- }
+ title: i18n.t('appPageTitle.serialOverLan'),
+ },
},
{
path: 'kvm',
name: 'kvm-console',
component: KvmConsole,
meta: {
- title: i18n.t('appPageTitle.kvm')
- }
- }
- ]
+ title: i18n.t('appPageTitle.kvm'),
+ },
+ },
+ ],
},
{
path: '/',
meta: {
- requiresAuth: true
+ requiresAuth: true,
},
component: AppLayout,
children: [
@@ -87,155 +87,155 @@ const routes = [
name: 'overview',
component: Overview,
meta: {
- title: i18n.t('appPageTitle.overview')
- }
+ title: i18n.t('appPageTitle.overview'),
+ },
},
{
path: '/profile-settings',
name: 'profile-settings',
component: ProfileSettings,
meta: {
- title: i18n.t('appPageTitle.profileSettings')
- }
+ title: i18n.t('appPageTitle.profileSettings'),
+ },
},
{
path: '/health/event-logs',
name: 'event-logs',
component: EventLogs,
meta: {
- title: i18n.t('appPageTitle.eventLogs')
- }
+ title: i18n.t('appPageTitle.eventLogs'),
+ },
},
{
path: '/health/hardware-status',
name: 'hardware-status',
component: HardwareStatus,
meta: {
- title: i18n.t('appPageTitle.hardwareStatus')
- }
+ title: i18n.t('appPageTitle.hardwareStatus'),
+ },
},
{
path: '/health/sensors',
name: 'sensors',
component: Sensors,
meta: {
- title: i18n.t('appPageTitle.sensors')
- }
+ title: i18n.t('appPageTitle.sensors'),
+ },
},
{
path: '/access-control/ldap',
name: 'ldap',
component: Ldap,
meta: {
- title: i18n.t('appPageTitle.ldap')
- }
+ title: i18n.t('appPageTitle.ldap'),
+ },
},
{
path: '/access-control/local-user-management',
name: 'local-users',
component: LocalUserManagement,
meta: {
- title: i18n.t('appPageTitle.localUserManagement')
- }
+ title: i18n.t('appPageTitle.localUserManagement'),
+ },
},
{
path: '/access-control/ssl-certificates',
name: 'ssl-certificates',
component: SslCertificates,
meta: {
- title: i18n.t('appPageTitle.sslCertificates')
- }
+ title: i18n.t('appPageTitle.sslCertificates'),
+ },
},
{
path: '/configuration/date-time-settings',
name: 'date-time-settings',
component: DateTimeSettings,
meta: {
- title: i18n.t('appPageTitle.dateTimeSettings')
- }
+ title: i18n.t('appPageTitle.dateTimeSettings'),
+ },
},
{
path: '/configuration/firmware',
name: 'firmware',
component: Firmware,
meta: {
- title: i18n.t('appPageTitle.firmware')
- }
+ title: i18n.t('appPageTitle.firmware'),
+ },
},
{
path: '/control/kvm',
name: 'kvm',
component: Kvm,
meta: {
- title: i18n.t('appPageTitle.kvm')
- }
+ title: i18n.t('appPageTitle.kvm'),
+ },
},
{
path: '/control/manage-power-usage',
name: 'manage-power-usage',
component: ManagePowerUsage,
meta: {
- title: i18n.t('appPageTitle.managePowerUsage')
- }
+ title: i18n.t('appPageTitle.managePowerUsage'),
+ },
},
{
path: '/configuration/network-settings',
name: 'network-settings',
component: NetworkSettings,
meta: {
- title: i18n.t('appPageTitle.networkSettings')
- }
+ title: i18n.t('appPageTitle.networkSettings'),
+ },
},
{
path: '/control/reboot-bmc',
name: 'reboot-bmc',
component: RebootBmc,
meta: {
- title: i18n.t('appPageTitle.rebootBmc')
- }
+ title: i18n.t('appPageTitle.rebootBmc'),
+ },
},
{
path: '/control/server-led',
name: 'server-led',
component: ServerLed,
meta: {
- title: i18n.t('appPageTitle.serverLed')
- }
+ title: i18n.t('appPageTitle.serverLed'),
+ },
},
{
path: '/control/serial-over-lan',
name: 'serial-over-lan',
component: SerialOverLan,
meta: {
- title: i18n.t('appPageTitle.serialOverLan')
- }
+ title: i18n.t('appPageTitle.serialOverLan'),
+ },
},
{
path: '/control/server-power-operations',
name: 'server-power-operations',
component: ServerPowerOperations,
meta: {
- title: i18n.t('appPageTitle.serverPowerOperations')
- }
+ title: i18n.t('appPageTitle.serverPowerOperations'),
+ },
},
{
path: '/control/virtual-media',
name: 'virtual-media',
component: VirtualMedia,
meta: {
- title: i18n.t('appPageTitle.virtualMedia')
- }
+ title: i18n.t('appPageTitle.virtualMedia'),
+ },
},
{
path: '*',
name: 'page-not-found',
component: PageNotFound,
meta: {
- title: i18n.t('appPageTitle.pageNotFound')
- }
- }
- ]
- }
+ title: i18n.t('appPageTitle.pageNotFound'),
+ },
+ },
+ ],
+ },
];
export default routes;