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.

126 lines
2.7 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. env: {
  31. baseUrl: process.env.NODE_ENV === 'production' ? '/v1' : 'http://127.0.0.1:8000/v1'
  32. },
  33. /*
  34. ** Customize the progress-bar color
  35. */
  36. loading: { color: '#fff' },
  37. /*
  38. ** Global CSS
  39. */
  40. css: [
  41. ],
  42. /*
  43. ** Plugins to load before mounting the App
  44. */
  45. plugins: [
  46. '~/plugins/filters.js',
  47. '~/plugins/vue-youtube.js'
  48. ],
  49. /*
  50. ** Nuxt.js modules
  51. */
  52. modules: [
  53. '@nuxtjs/vuetify',
  54. // Doc: https://axios.nuxtjs.org/usage
  55. '@nuxtjs/axios',
  56. '@nuxtjs/eslint-module'
  57. ],
  58. buildModules: [
  59. ['@nuxtjs/google-analytics', {
  60. id: 'UA-125643874-2'
  61. }]
  62. ],
  63. /*
  64. ** Axios module configuration
  65. ** See https://axios.nuxtjs.org/options
  66. */
  67. axios: {
  68. },
  69. /*
  70. ** vuetify module configuration
  71. ** https://github.com/nuxt-community/vuetify-module
  72. */
  73. vuetify: {
  74. theme: {
  75. primary: colors.blue.darken2,
  76. accent: colors.grey.darken3,
  77. secondary: colors.amber.darken3,
  78. info: colors.teal.lighten1,
  79. warning: colors.amber.base,
  80. error: colors.deepOrange.accent4,
  81. success: colors.green.accent3,
  82. themes: {
  83. dark: {
  84. primary: '#21CFF3',
  85. accent: '#FF4081',
  86. secondary: '#ffe18d',
  87. success: '#4CAF50',
  88. info: '#2196F3',
  89. warning: '#FB8C00',
  90. error: '#FF5252'
  91. },
  92. light: {
  93. primary: '#1976D2',
  94. accent: '#e91e63',
  95. secondary: '#30b1dc',
  96. success: '#4CAF50',
  97. info: '#2196F3',
  98. warning: '#FB8C00',
  99. error: '#FF5252'
  100. }
  101. }
  102. }
  103. },
  104. /*
  105. ** Build configuration
  106. */
  107. build: {
  108. /*
  109. ** You can extend webpack config here
  110. */
  111. extend(config, ctx) {
  112. config.module.rules.push({
  113. test: /\.(txt|csv|conll|jsonl)$/i,
  114. loader: 'file-loader',
  115. options: {
  116. name: '[path][name].[ext]'
  117. }
  118. })
  119. }
  120. }
  121. }