usercp for ants

This commit is contained in:
Jörn-Michael Miehe 2019-05-07 18:09:45 +02:00
parent aac6b5e7b4
commit 3a0e889626

View file

@ -1,49 +1,34 @@
<template> <template>
<div class="about"> <v-container>
<h1>This is an about page</h1> <v-flex mb-4>
<h1 class="display-2 font-weight-bold mb-3">Hello World!</h1>
<div class="text-xs-center"> <p class="subheading font-weight-regular">
<v-dialog v-model="dialog" width="500"> App under development, please don't submit any valuable data!
<v-btn slot="activator" color="red lighten-2" dark> </p>
Click Me </v-flex>
</v-btn> <p>user session: {{ sessionID }}</p>
</v-container>
<v-card>
<v-card-title class="headline grey lighten-2" primary-title>
Privacy Policy
</v-card-title>
<v-card-text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary" flat @click="dialog = false">
I accept
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</div>
</div>
</template> </template>
<script> <script>
import * as Cookies from 'js-cookie'
import axios from '@/plugins/axios'
export default { export default {
name: 'About', name: 'About',
data() {
return { data: () => ({
dialog: false sessionID: ''
} }),
mounted() {
axios
.post('/user/login', {
session: Cookies.get('session')
})
.then(response => {
this.sessionID = response.data.message
})
} }
} }
</script> </script>