mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.2 KiB
62 lines
1.2 KiB
<template>
|
|
<v-app>
|
|
<the-header>
|
|
<template #leftDrawerIcon>
|
|
<v-app-bar-nav-icon @click="drawerLeft = !drawerLeft" />
|
|
</template>
|
|
</the-header>
|
|
|
|
<v-navigation-drawer
|
|
v-model="drawerLeft"
|
|
app
|
|
clipped
|
|
>
|
|
<the-side-bar
|
|
:link="getLink"
|
|
:is-project-admin="isProjectAdmin"
|
|
:project="currentProject"
|
|
/>
|
|
</v-navigation-drawer>
|
|
|
|
<v-main class="pb-0">
|
|
<nuxt />
|
|
</v-main>
|
|
</v-app>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex'
|
|
import TheHeader from '~/components/layout/TheHeader'
|
|
import TheSideBar from '~/components/layout/TheSideBar'
|
|
|
|
export default {
|
|
|
|
components: {
|
|
TheSideBar,
|
|
TheHeader
|
|
},
|
|
middleware: ['check-auth', 'auth', 'set-project'],
|
|
|
|
data() {
|
|
return {
|
|
drawerLeft: null,
|
|
isProjectAdmin: false
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
...mapGetters('projects', ['getLink', 'currentProject']),
|
|
...mapGetters('auth', ['getUserId'])
|
|
},
|
|
|
|
watch: {
|
|
'$route.query'() {
|
|
this.$services.option.save(this.$route.params.id, this.$route.query)
|
|
}
|
|
},
|
|
|
|
async created() {
|
|
this.isProjectAdmin = await this.$services.member.isProjectAdmin(this.$route.params.id, this.getUserId)
|
|
}
|
|
}
|
|
</script>
|