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.

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