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.

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