2020-04-05 22:15:03 +02:00
|
|
|
<template>
|
2020-04-21 16:10:53 +02:00
|
|
|
<div class="app">
|
2020-05-07 19:57:11 +02:00
|
|
|
<v-app id="geotimetracking">
|
|
|
|
<!-- Side navigation menu -->
|
|
|
|
<v-navigation-drawer v-model="drawer" app clipped class="main_accent">
|
|
|
|
<v-list dense>
|
|
|
|
<v-list-item link to="/">
|
|
|
|
<v-list-item-action>
|
|
|
|
<v-icon>mdi-view-dashboard</v-icon>
|
|
|
|
</v-list-item-action>
|
|
|
|
<v-list-item-content>
|
|
|
|
<v-list-item-title>Home</v-list-item-title>
|
|
|
|
</v-list-item-content>
|
|
|
|
</v-list-item>
|
|
|
|
<v-list-item link to="/timerecords" v-bind:class="{'d-none':!login}">
|
|
|
|
<v-list-item-action>
|
|
|
|
<v-icon>mdi-clock</v-icon>
|
|
|
|
</v-list-item-action>
|
|
|
|
<v-list-item-content>
|
|
|
|
<v-list-item-title>Time Records</v-list-item-title>
|
|
|
|
</v-list-item-content>
|
|
|
|
</v-list-item>
|
|
|
|
<v-list-item link to="/weeksummary" v-bind:class="{'d-none':!login}">
|
|
|
|
<v-list-item-action>
|
|
|
|
<v-icon>mdi-chart-bar</v-icon>
|
|
|
|
</v-list-item-action>
|
|
|
|
<v-list-item-content>
|
|
|
|
<v-list-item-title>Week Summary</v-list-item-title>
|
|
|
|
</v-list-item-content>
|
|
|
|
</v-list-item>
|
|
|
|
<v-list-item link to="/about">
|
|
|
|
<v-list-item-action>
|
|
|
|
<v-icon>mdi-information-outline</v-icon>
|
|
|
|
</v-list-item-action>
|
|
|
|
<v-list-item-content>
|
|
|
|
<v-list-item-title>About</v-list-item-title>
|
|
|
|
</v-list-item-content>
|
|
|
|
</v-list-item>
|
|
|
|
</v-list>
|
|
|
|
</v-navigation-drawer>
|
|
|
|
|
|
|
|
<!-- Top menu bar -->
|
|
|
|
<v-app-bar app clipped-left class="main" elevation="10">
|
|
|
|
<v-app-bar-nav-icon @click.stop="drawer = !drawer" />
|
|
|
|
<v-img src="./assets/logo.svg" max-height="100%" max-width="100" contain></v-img>
|
|
|
|
<v-toolbar-title>Geo Timetracking</v-toolbar-title>
|
|
|
|
<v-spacer></v-spacer>
|
2020-05-15 12:40:59 +02:00
|
|
|
<!-- Modal -->
|
|
|
|
<v-row justify="center" >
|
|
|
|
<v-dialog v-model="dialog" width="70%" persistent>
|
|
|
|
<template v-slot:activator="{ on }">
|
|
|
|
<v-btn color="primary" dark v-on="on">Login</v-btn>
|
|
|
|
</template>
|
|
|
|
<v-card class="main">
|
|
|
|
<v-card-actions>
|
|
|
|
<v-spacer></v-spacer>
|
|
|
|
<v-btn icon @click="dialog = false"><v-icon>mdi-window-close</v-icon></v-btn>
|
|
|
|
</v-card-actions>
|
|
|
|
<SignIn />
|
|
|
|
</v-card>
|
|
|
|
</v-dialog>
|
|
|
|
</v-row>
|
|
|
|
<!-- Menu with account icon -->
|
|
|
|
<v-menu v-model="menu" :close-on-content-click="false" :nudge-width="200" offset-y>
|
|
|
|
<template v-slot:activator="{ on }">
|
|
|
|
<v-btn icon v-on="on">
|
|
|
|
<v-icon>mdi-account</v-icon>
|
|
|
|
</v-btn>
|
|
|
|
</template>
|
2020-05-07 19:57:11 +02:00
|
|
|
|
2020-05-15 12:40:59 +02:00
|
|
|
<v-card>
|
|
|
|
<v-list>
|
|
|
|
<v-list-item>
|
|
|
|
<v-list-item-avatar>
|
|
|
|
<img src="https://cdn.vuetifyjs.com/images/john.jpg" alt="John" />
|
|
|
|
</v-list-item-avatar>
|
2020-05-07 19:57:11 +02:00
|
|
|
|
2020-05-15 12:40:59 +02:00
|
|
|
<v-list-item-content>
|
|
|
|
<v-list-item-title>John Doe</v-list-item-title>
|
|
|
|
<v-list-item-subtitle>Admin</v-list-item-subtitle>
|
|
|
|
</v-list-item-content>
|
2020-05-07 19:57:11 +02:00
|
|
|
|
2020-05-15 12:40:59 +02:00
|
|
|
<v-list-item-action>
|
|
|
|
|
|
|
|
</v-list-item-action>
|
|
|
|
</v-list-item>
|
|
|
|
</v-list>
|
2020-05-07 19:57:11 +02:00
|
|
|
|
2020-05-15 12:40:59 +02:00
|
|
|
<v-divider></v-divider>
|
2020-05-07 19:57:11 +02:00
|
|
|
|
2020-05-15 12:40:59 +02:00
|
|
|
<v-list>
|
|
|
|
<v-list-item>
|
|
|
|
<v-list-item-action>
|
|
|
|
<v-switch
|
|
|
|
|
|
|
|
color="primary"
|
|
|
|
:input-value="login"
|
|
|
|
@change="login= !login"
|
|
|
|
></v-switch>
|
|
|
|
</v-list-item-action>
|
|
|
|
<v-list-item-title>View as Guest</v-list-item-title>
|
|
|
|
</v-list-item>
|
|
|
|
</v-list>
|
2020-05-07 19:57:11 +02:00
|
|
|
|
2020-05-15 12:40:59 +02:00
|
|
|
<v-card-actions>
|
|
|
|
<v-spacer></v-spacer>
|
2020-05-07 19:57:11 +02:00
|
|
|
|
2020-05-15 12:40:59 +02:00
|
|
|
<v-btn text @click="menu = false">Cancel</v-btn>
|
|
|
|
<v-btn color="primary" text @click="menu = false">Save</v-btn>
|
|
|
|
</v-card-actions>
|
|
|
|
</v-card>
|
|
|
|
</v-menu>
|
2020-05-07 19:57:11 +02:00
|
|
|
</v-app-bar>
|
|
|
|
|
|
|
|
<!-- Routed pages are inserted here -->
|
|
|
|
<v-content>
|
|
|
|
<router-view />
|
|
|
|
</v-content>
|
|
|
|
|
|
|
|
<!-- Footer on bottom -->
|
|
|
|
<v-footer app class="main">
|
|
|
|
<span>© 2020 Team TacocaT</span>
|
|
|
|
</v-footer>
|
|
|
|
</v-app>
|
2020-04-05 22:15:03 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2020-04-17 10:15:09 +02:00
|
|
|
<script>
|
2020-05-15 12:40:59 +02:00
|
|
|
import SignIn from "./views/SignIn.vue";
|
2020-04-17 10:15:09 +02:00
|
|
|
export default {
|
2020-05-15 12:40:59 +02:00
|
|
|
components: {
|
|
|
|
SignIn
|
|
|
|
},
|
2020-05-07 19:57:11 +02:00
|
|
|
props: {
|
|
|
|
source: String
|
|
|
|
},
|
|
|
|
data: () => ({
|
|
|
|
drawer: null,
|
2020-05-15 12:40:59 +02:00
|
|
|
login: true,
|
|
|
|
dialog: false,
|
|
|
|
menu: false
|
2020-05-07 19:57:11 +02:00
|
|
|
}),
|
|
|
|
created() {
|
|
|
|
this.$vuetify.theme.dark = true;
|
2020-04-17 10:15:09 +02:00
|
|
|
}
|
2020-05-07 19:57:11 +02:00
|
|
|
};
|
2020-04-17 10:15:09 +02:00
|
|
|
</script>
|
2020-04-19 11:35:25 +02:00
|
|
|
|
2020-04-21 14:41:48 +02:00
|
|
|
|
2020-05-07 19:57:11 +02:00
|
|
|
<style scoped>
|
|
|
|
.link {
|
|
|
|
color: #f1f1f1f1;
|
|
|
|
text-decoration: none;
|
2020-04-15 18:38:30 +02:00
|
|
|
}
|
2020-05-07 19:57:11 +02:00
|
|
|
.v-application {
|
2020-05-15 12:40:59 +02:00
|
|
|
font-family: "Montserrat", sans-serif;
|
|
|
|
background-color: var(--v-background-base) !important;
|
2020-04-15 18:38:30 +02:00
|
|
|
}
|
2020-04-05 22:15:03 +02:00
|
|
|
</style>
|