diff --git a/frontend/layouts/annotation.vue b/frontend/layouts/annotation.vue
index dbf4547f..d2c6c6da 100644
--- a/frontend/layouts/annotation.vue
+++ b/frontend/layouts/annotation.vue
@@ -18,7 +18,36 @@
/>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -28,12 +57,24 @@ import { mapActions, mapGetters } from 'vuex'
import TheSideBar from '~/components/organisms/layout/TheSideBar'
import TheHeader from '~/components/organisms/layout/TheHeader'
import BottomNavigator from '@/components/containers/annotation/BottomNavigator'
+import Paginator from '~/components/containers/annotation/Paginator'
+import GuidelineButton from '@/components/containers/annotation/GuidelineButton'
+import MetadataBox from '@/components/organisms/annotation/MetadataBox'
+import FilterButton from '@/components/containers/annotation/FilterButton'
+import ApproveButton from '@/components/containers/annotation/ApproveButton'
export default {
+ middleware: ['check-auth', 'auth'],
+
components: {
TheSideBar,
TheHeader,
- BottomNavigator
+ BottomNavigator,
+ Paginator,
+ GuidelineButton,
+ FilterButton,
+ ApproveButton,
+ MetadataBox
},
data() {
return {
@@ -42,7 +83,8 @@ export default {
},
computed: {
- ...mapGetters('projects', ['getLink', 'getCurrentUserRole'])
+ ...mapGetters('projects', ['getLink', 'getCurrentUserRole']),
+ ...mapGetters('documents', ['currentDoc', 'approved'])
},
created() {
@@ -51,6 +93,10 @@ export default {
methods: {
...mapActions('projects', ['setCurrentProject'])
+ },
+
+ validate({ params }) {
+ return /^\d+$/.test(params.id)
}
}
diff --git a/frontend/pages/projects/_id/sequence-labeling/index.vue b/frontend/pages/projects/_id/sequence-labeling/index.vue
index 5d33fd7d..081b0800 100644
--- a/frontend/pages/projects/_id/sequence-labeling/index.vue
+++ b/frontend/pages/projects/_id/sequence-labeling/index.vue
@@ -1,68 +1,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
diff --git a/frontend/pages/projects/_id/sequence-to-sequence/index.vue b/frontend/pages/projects/_id/sequence-to-sequence/index.vue
index e7c7268e..dff6d9d8 100644
--- a/frontend/pages/projects/_id/sequence-to-sequence/index.vue
+++ b/frontend/pages/projects/_id/sequence-to-sequence/index.vue
@@ -1,64 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/frontend/pages/projects/_id/text-classification/index.vue b/frontend/pages/projects/_id/text-classification/index.vue
index e4ccbdf3..250070ed 100644
--- a/frontend/pages/projects/_id/text-classification/index.vue
+++ b/frontend/pages/projects/_id/text-classification/index.vue
@@ -1,64 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+