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.

75 lines
1.5 KiB

  1. <template>
  2. <v-app-bar
  3. app
  4. clipped-left
  5. >
  6. <slot name="leftDrawerIcon" />
  7. <nuxt-link to="/" style="line-height:0;">
  8. <img src="~/assets/icon.png" height="48">
  9. </nuxt-link>
  10. <v-toolbar-title class="ml-2 d-none d-sm-flex">
  11. doccano
  12. </v-toolbar-title>
  13. <div class="flex-grow-1" />
  14. <v-btn
  15. text
  16. @click="$router.push('/projects')"
  17. >
  18. Projects
  19. </v-btn>
  20. <v-menu open-on-hover offset-y>
  21. <template v-slot:activator="{ on }">
  22. <v-btn
  23. text
  24. v-on="on"
  25. >
  26. Demo
  27. <v-icon>mdi-menu-down</v-icon>
  28. </v-btn>
  29. </template>
  30. <v-list>
  31. <v-list-item
  32. v-for="(item, index) in items"
  33. :key="index"
  34. @click="$router.push('/demo/' + item.link)"
  35. >
  36. <v-list-item-title>{{ item.title }}</v-list-item-title>
  37. </v-list-item>
  38. </v-list>
  39. </v-menu>
  40. <v-btn
  41. outlined
  42. @click="$router.push('/auth')"
  43. >
  44. Sign in
  45. </v-btn>
  46. <the-top-menu />
  47. </v-app-bar>
  48. </template>
  49. <script>
  50. import TheTopMenu from '@/components/organisms/TheTopMenu'
  51. export default {
  52. components: {
  53. TheTopMenu
  54. },
  55. data() {
  56. return {
  57. items: [
  58. { title: 'Named Entity Recognition', link: 'named-entity-recognition' },
  59. { title: 'Sentiment Analysis', link: 'sentiment-analysis' },
  60. { title: 'Translation', link: 'translation' },
  61. { title: 'Text to SQL', link: 'text-to-sql' }
  62. ]
  63. }
  64. }
  65. }
  66. </script>
  67. <style scoped>
  68. .top{
  69. text-decoration: none;
  70. }
  71. </style>