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.

131 lines
2.8 KiB

  1. import colors from 'vuetify/es5/util/colors'
  2. export default {
  3. mode: 'spa',
  4. /*
  5. ** Headers of the page
  6. */
  7. head: {
  8. titleTemplate: '%s - ' + process.env.npm_package_name,
  9. title: process.env.npm_package_name || '',
  10. meta: [
  11. { charset: 'utf-8' },
  12. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  13. { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
  14. ],
  15. script: [
  16. { src: 'https://use.fontawesome.com/releases/v5.0.6/js/all.js' }
  17. ],
  18. link: [
  19. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  20. {
  21. rel: 'stylesheet',
  22. href:
  23. 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'
  24. }
  25. ]
  26. },
  27. serverMiddleware: [
  28. '~/api/index.js'
  29. ],
  30. server: {
  31. host: '0.0.0.0' // default: localhost
  32. },
  33. env: {
  34. baseUrl: process.env.NODE_ENV === 'production' ? '/v1' : 'http://127.0.0.1:8000/v1'
  35. },
  36. /*
  37. ** Customize the progress-bar color
  38. */
  39. loading: { color: '#fff' },
  40. /*
  41. ** Global CSS
  42. */
  43. css: [
  44. ],
  45. /*
  46. ** Plugins to load before mounting the App
  47. */
  48. plugins: [
  49. '~/plugins/filters.js',
  50. '~/plugins/vue-youtube.js',
  51. '~/plugins/vue-shortkey.js'
  52. ],
  53. /*
  54. ** Nuxt.js modules
  55. */
  56. modules: [
  57. '@nuxtjs/vuetify',
  58. // Doc: https://axios.nuxtjs.org/usage
  59. '@nuxtjs/axios',
  60. '@nuxtjs/eslint-module'
  61. ],
  62. buildModules: [
  63. ['@nuxtjs/google-analytics', {
  64. id: 'UA-125643874-2'
  65. }]
  66. ],
  67. /*
  68. ** Axios module configuration
  69. ** See https://axios.nuxtjs.org/options
  70. */
  71. axios: {
  72. },
  73. /*
  74. ** vuetify module configuration
  75. ** https://github.com/nuxt-community/vuetify-module
  76. */
  77. vuetify: {
  78. theme: {
  79. primary: colors.blue.darken2,
  80. accent: colors.grey.darken3,
  81. secondary: colors.amber.darken3,
  82. info: colors.teal.lighten1,
  83. warning: colors.amber.base,
  84. error: colors.deepOrange.accent4,
  85. success: colors.green.accent3,
  86. themes: {
  87. dark: {
  88. primary: '#21CFF3',
  89. accent: '#FF4081',
  90. secondary: '#ffe18d',
  91. success: '#4CAF50',
  92. info: '#2196F3',
  93. warning: '#FB8C00',
  94. error: '#FF5252'
  95. },
  96. light: {
  97. primary: '#1976D2',
  98. accent: '#e91e63',
  99. secondary: '#30b1dc',
  100. success: '#4CAF50',
  101. info: '#2196F3',
  102. warning: '#FB8C00',
  103. error: '#FF5252'
  104. }
  105. }
  106. }
  107. },
  108. /*
  109. ** Build configuration
  110. */
  111. build: {
  112. /*
  113. ** You can extend webpack config here
  114. */
  115. extend(config, ctx) {
  116. config.module.rules.push({
  117. test: /\.(txt|csv|conll|jsonl)$/i,
  118. loader: 'file-loader',
  119. options: {
  120. name: '[path][name].[ext]'
  121. }
  122. })
  123. }
  124. }
  125. }