create AccessToken route(Vue)

This commit is contained in:
Milos Holba
2021-05-28 16:47:14 +02:00
parent 6456950081
commit 9189d73df9
8 changed files with 115 additions and 75 deletions
+11
View File
@@ -32,6 +32,15 @@
{{ $t('menu.password') }}
</div>
</router-link>
<router-link replace :to="{name: 'Token'}" class="menu-list-item link">
<div class="icon text-theme">
<key-icon size="17"></key-icon>
</div>
<div class="label text-theme">
{{ $t('menu.token') }}
</div>
</router-link>
</div>
</ContentGroup>
<ContentGroup title="Subscription" class="navigator" v-if="canShowSubscriptionSettings">
@@ -142,6 +151,7 @@
CloudIcon,
UserIcon,
LockIcon,
KeyIcon,
} from 'vue-feather-icons'
export default {
@@ -162,6 +172,7 @@
LockIcon,
Spinner,
InfoBox,
KeyIcon,
},
computed: {
...mapGetters(['user', 'config']),
+41
View File
@@ -0,0 +1,41 @@
<template>
<PageTab>
<PageTabGroup>
<FormLabel>{{ $t('user_token.title') }}</FormLabel>
</PageTabGroup>
</PageTab>
</template>
<script>
import PageTabGroup from '@/components/Others/Layout/PageTabGroup'
import FormLabel from '@/components/Others/Forms/FormLabel'
import PageTab from '@/components/Others/Layout/PageTab'
export default {
name: 'AccessToken',
components: {
PageTabGroup,
FormLabel,
PageTab
},
data () {
return {
tokens: undefined
}
},
created () {
axios.
get('/api/user/tokens')
.then(response => {
this.tokens = response.data
})
}
}
</script>
<style lang="scss" scoped>
@import '@assets/vuefilemanager/_variables';
@import '@assets/vuefilemanager/_mixins';
</style>