Format plugins and router

This commit is contained in:
Marcel Schwarz 2020-07-19 22:33:04 +02:00
parent b6645e148e
commit a0a4e1ca97
2 changed files with 31 additions and 54 deletions

View File

@ -4,25 +4,24 @@ import Vuetify from 'vuetify/lib';
Vue.use(Vuetify); Vue.use(Vuetify);
export default new Vuetify({ export default new Vuetify({
theme: { theme: {
options: { options: {
customProperties: true 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
}, },
themes: {
dark: {
primary: '#0096ff',
secondary: '#b0bec5',
accent: '#8c9eff',
error: '#b71c1c',
main: '#272727',
main_accent: '#202020',
footer: '#404040',
background: '#131313',
background_soft: '#171717',
},
},
dark: true
},
}); });

View File

@ -12,6 +12,7 @@ import EditTimeTrackAccount from "../views/EditTimeTrackAccount.vue"
import CreateTimeTrackAccount from "../views/CreateTimeTrackAccount.vue" import CreateTimeTrackAccount from "../views/CreateTimeTrackAccount.vue"
import EditTimerecord from "../views/EditTimerecord.vue" import EditTimerecord from "../views/EditTimerecord.vue"
import CreateTimerecord from "../views/CreateTimerecord.vue" import CreateTimerecord from "../views/CreateTimerecord.vue"
Vue.use(VueRouter); Vue.use(VueRouter);
const routes = [ const routes = [
@ -19,90 +20,67 @@ const routes = [
path: "/", path: "/",
name: "Home", name: "Home",
component: Home, component: Home,
meta: { meta: {title: "Geo Timetracking - Home"}
title: "Geo Timetracking - Home",
}
}, },
{ {
path: "/timerecords", path: "/timerecords",
name: "TimeRecords", name: "TimeRecords",
component: TimeRecords, component: TimeRecords,
meta: { meta: {title: 'Geo Timetracking - Time Records'}
title: 'Geo Timetracking - Time Records',
}
}, },
{ {
path: "/about", path: "/about",
name: "About", name: "About",
component: About, component: About,
meta: { meta: {title: 'Geo Timetracking - About'}
title: 'Geo Timetracking - About',
}
}, },
{ {
path: "/statistics", path: "/statistics",
name: "Statistics", name: "Statistics",
component: StatisticOverview, component: StatisticOverview,
meta: { meta: {title: 'Geo Timetracking - Statistics'}
title: 'Geo Timetracking - Statistics',
}
}, },
{ {
path: "/users", path: "/users",
name: "Users", name: "Users",
component: Users, component: Users,
meta: { meta: {title: 'Geo Timetracking - Users'}
title: 'Geo Timetracking - Users',
}
}, },
{ {
path: "/edituser", path: "/edituser",
name: "EditUser", name: "EditUser",
component: EditUser, component: EditUser,
meta: { meta: {title: 'Geo Timetracking - Edit User'}
title: 'Geo Timetracking - Edit User',
}
}, },
{ {
path: "/timetrackaccounts", path: "/timetrackaccounts",
name: "TimeTrack Accounts", name: "TimeTrack Accounts",
component: TimeTrackAccounts, component: TimeTrackAccounts,
meta: { meta: {title: 'Geo Timetracking - TimeTrack Accounts'}
title: 'Geo Timetracking - TimeTrack Accounts',
}
}, },
{ {
path: "/edittimetrackaccount", path: "/edittimetrackaccount",
name: "Edit TimeTrack Account", name: "Edit TimeTrack Account",
component: EditTimeTrackAccount, component: EditTimeTrackAccount,
meta: { meta: {title: 'Geo Timetracking - Edit TimeTrack Account'}
title: 'Geo Timetracking - Edit TimeTrack Account',
}
}, },
{ {
path: "/createtimetrackaccount", path: "/createtimetrackaccount",
name: "Create TimeTrack Account", name: "Create TimeTrack Account",
component: CreateTimeTrackAccount, component: CreateTimeTrackAccount,
meta: { meta: {title: 'Geo Timetracking - Create TimeTrack Accounts'}
title: 'Geo Timetracking - Create TimeTrack Accounts',
}
}, },
{ {
path: "/edittimerecord", path: "/edittimerecord",
name: "EditTimerecord", name: "EditTimerecord",
component: EditTimerecord, component: EditTimerecord,
meta: { meta: {title: 'Geo Timetracking - Edit Time Record'}
title: 'Geo Timetracking - Edit Time Record',
}
}, },
{ {
path: "/createtimerecord", path: "/createtimerecord",
name: "CreateTimerecord", name: "CreateTimerecord",
component: CreateTimerecord, component: CreateTimerecord,
meta: { meta: {title: 'Geo Timetracking - Create Time Record'}
title: 'Geo Timetracking - Create Time Record',
}
}, },
{ {
path: '*', path: '*',