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.

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