From a0a4e1ca97521e49570de71d8236838a76665a40 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Sun, 19 Jul 2020 22:33:04 +0200 Subject: [PATCH] Format plugins and router --- frontend/src/plugins/vuetify.js | 39 ++++++++++++++-------------- frontend/src/router/index.js | 46 +++++++++------------------------ 2 files changed, 31 insertions(+), 54 deletions(-) diff --git a/frontend/src/plugins/vuetify.js b/frontend/src/plugins/vuetify.js index eac0599..027a384 100644 --- a/frontend/src/plugins/vuetify.js +++ b/frontend/src/plugins/vuetify.js @@ -4,25 +4,24 @@ import Vuetify from 'vuetify/lib'; Vue.use(Vuetify); export default new Vuetify({ - theme: { - options: { - customProperties: true - }, - themes: { - dark: { - primary: '#0096ff', - secondary: '#b0bec5', - accent: '#8c9eff', - error: '#b71c1c', - - - main: '#272727', - main_accent: '#202020', - footer: '#404040', - background: '#131313', - background_soft: '#171717', - }, - }, - dark:true + theme: { + options: { + customProperties: true }, + themes: { + dark: { + primary: '#0096ff', + secondary: '#b0bec5', + accent: '#8c9eff', + error: '#b71c1c', + + main: '#272727', + main_accent: '#202020', + footer: '#404040', + background: '#131313', + background_soft: '#171717', + }, + }, + dark: true + }, }); diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 22f9dfb..14464f8 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -12,6 +12,7 @@ import EditTimeTrackAccount from "../views/EditTimeTrackAccount.vue" import CreateTimeTrackAccount from "../views/CreateTimeTrackAccount.vue" import EditTimerecord from "../views/EditTimerecord.vue" import CreateTimerecord from "../views/CreateTimerecord.vue" + Vue.use(VueRouter); const routes = [ @@ -19,90 +20,67 @@ const routes = [ path: "/", name: "Home", component: Home, - meta: { - title: "Geo Timetracking - Home", - } + meta: {title: "Geo Timetracking - Home"} }, { path: "/timerecords", name: "TimeRecords", component: TimeRecords, - meta: { - title: 'Geo Timetracking - Time Records', - } + meta: {title: 'Geo Timetracking - Time Records'} }, - { path: "/about", name: "About", component: About, - meta: { - title: 'Geo Timetracking - About', - } + meta: {title: 'Geo Timetracking - About'} }, { path: "/statistics", name: "Statistics", component: StatisticOverview, - meta: { - title: 'Geo Timetracking - Statistics', - } + meta: {title: 'Geo Timetracking - Statistics'} }, { path: "/users", name: "Users", component: Users, - meta: { - title: 'Geo Timetracking - Users', - } + meta: {title: 'Geo Timetracking - Users'} }, { path: "/edituser", name: "EditUser", component: EditUser, - meta: { - title: 'Geo Timetracking - Edit User', - } + meta: {title: 'Geo Timetracking - Edit User'} }, { path: "/timetrackaccounts", name: "TimeTrack Accounts", component: TimeTrackAccounts, - meta: { - title: 'Geo Timetracking - TimeTrack Accounts', - } + meta: {title: 'Geo Timetracking - TimeTrack Accounts'} }, { path: "/edittimetrackaccount", name: "Edit TimeTrack Account", component: EditTimeTrackAccount, - meta: { - title: 'Geo Timetracking - Edit TimeTrack Account', - } + meta: {title: 'Geo Timetracking - Edit TimeTrack Account'} }, { path: "/createtimetrackaccount", name: "Create TimeTrack Account", component: CreateTimeTrackAccount, - meta: { - title: 'Geo Timetracking - Create TimeTrack Accounts', - } + meta: {title: 'Geo Timetracking - Create TimeTrack Accounts'} }, { path: "/edittimerecord", name: "EditTimerecord", component: EditTimerecord, - meta: { - title: 'Geo Timetracking - Edit Time Record', - } + meta: {title: 'Geo Timetracking - Edit Time Record'} }, { path: "/createtimerecord", name: "CreateTimerecord", component: CreateTimerecord, - meta: { - title: 'Geo Timetracking - Create Time Record', - } + meta: {title: 'Geo Timetracking - Create Time Record'} }, { path: '*',