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.

85 lines
2.1 KiB

  1. <template>
  2. <v-list
  3. dense
  4. class=""
  5. >
  6. <v-list-item>
  7. <v-btn rounded color="white">
  8. <v-icon left>
  9. mdi-plus
  10. </v-icon> Start Labeling
  11. </v-btn>
  12. </v-list-item>
  13. <template v-for="(item, i) in items">
  14. <v-layout
  15. v-if="item.heading"
  16. :key="i"
  17. align-center
  18. >
  19. <v-flex xs6>
  20. <v-subheader v-if="item.heading">
  21. {{ item.heading }}
  22. </v-subheader>
  23. </v-flex>
  24. <v-flex
  25. xs6
  26. class="text-right"
  27. >
  28. <v-btn
  29. small
  30. text
  31. >
  32. edit
  33. </v-btn>
  34. </v-flex>
  35. </v-layout>
  36. <v-divider
  37. v-else-if="item.divider"
  38. :key="i"
  39. dark
  40. class="my-4"
  41. />
  42. <v-list-item
  43. v-else
  44. :key="i"
  45. @click="$router.push('/projects/' + $route.params.id + '/' + item.link)"
  46. >
  47. <v-list-item-action>
  48. <v-icon>
  49. {{ item.icon }}
  50. </v-icon>
  51. </v-list-item-action>
  52. <v-list-item-content>
  53. <v-list-item-title>
  54. {{ item.text }}
  55. </v-list-item-title>
  56. </v-list-item-content>
  57. </v-list-item>
  58. </template>
  59. </v-list>
  60. </template>
  61. <script>
  62. export default {
  63. data: () => ({
  64. items: [
  65. // { icon: 'lightbulb_outline', text: 'Start Labeling' },
  66. { divider: true },
  67. { icon: 'mdi-database', text: 'Dataset', link: 'dataset' },
  68. { icon: 'person', text: 'User', link: 'users' },
  69. { icon: 'label', text: 'Label', link: 'labels' },
  70. { divider: true },
  71. // { heading: 'Labels' },
  72. // { icon: 'add', text: 'Create new label', link: 'labels' },
  73. // { divider: true },
  74. { icon: 'backup', text: 'Import', link: 'upload' },
  75. { icon: 'archive', text: 'Export', link: 'download' },
  76. { divider: true },
  77. { icon: 'settings', text: 'Guideline', link: 'guideline' },
  78. { icon: 'chat_bubble', text: 'Statistics', link: 'statistics' },
  79. { icon: 'help', text: 'Help', link: 'help' }
  80. // { icon: 'keyboard', text: 'Keyboard shortcuts' }
  81. ]
  82. })
  83. }
  84. </script>