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.

129 lines
2.8 KiB

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