Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Vue from 'vue'
import Vuetify from 'vuetify/lib'
import colors from 'vuetify/es5/util/colors'
// You can also specify those components you are going to use for "a la carte" build:
// https://github.com/vuetifyjs/nuxt/blob/master/template/plugins/vuetify.js
// https://github.com/vuetifyjs/a-la-carte/blob/master/template/src/main.js
Vue.use(Vuetify, {
theme: {
primary: '#9c27b0', // a color that is not in the material colors palette
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.darken2,
error: colors.deepOrange.accent4,
success: colors.green.accent3
}
})
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
},
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
theme: {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
themes: {
dark: {
primary: '#21CFF3',
accent: '#FF4081',
secondary: '#ffe18d',
success: '#4CAF50',
info: '#2196F3',
warning: '#FB8C00',
error: '#FF5252'
},
light: {
primary: '#1976D2',
accent: '#e91e63',
import Vue from 'vue';
import Vuetify from 'vuetify';
import colors from 'vuetify/es5/util/colors';
Vue.use(Vuetify, {
iconfont: 'mdi',
theme: {
primary: colors.teal,
secondary: colors.grey.darken3,
accent: colors.blue.base
}
});
import Vue from 'vue'
import Vuetify from 'vuetify/lib'
import colors from 'vuetify/es5/util/colors'
Vue.use(Vuetify, {
theme: {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3
}
})
** axios configuration
*/
axios: {
withCredentials: true,
baseURL: '/',
},
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
theme: {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3
}
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
if (ctx.isClient) {
config.devtool = 'eval-source-map'
import colors from 'vuetify/es5/util/colors'
function addAlpha (hex, alpha) {
return 'rgba(' + (
hex
.substring(1)
.match(hex.length === 7 ? /[^#]{2}/g : /[^#]/g)
.map(v => parseInt(v, 12))
.join(', ')
) + `, ${alpha})`
}
const vuetify = {
primary: colors.teal.base,
secondary: colors.teal.lighten1,
accent: colors.amber.darken1,
error: colors.red.base,
warning: colors.orange.base,
info: colors.blue.base,
success: colors.green.base
}
export { vuetify }
const items = {
controller: colors.purple.base,
dummy: colors.grey.darken4,
edge: colors.cyan.base,
host: colors.orange.base,
port: colors.green.base,
switch: colors.indigo.base
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
customVariables: ["~/assets/variables.scss"],
icons: {
iconfont: "md"
},
theme: {
dark: true,
themes: {
dark: {
primary: colors.blue.lighten1,
accent: colors.grey.darken3,
secondary: colors.amber.darken4,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3
}
}
}
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {}
}
import Vue from "vue";
import Vuetify from "vuetify/lib";
import colors from "vuetify/es5/util/colors";
Vue.use(Vuetify, {
theme: {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3
}
});
}
export { vuetify }
const items = {
controller: colors.purple.base,
dummy: colors.grey.darken4,
edge: colors.cyan.base,
host: colors.orange.base,
port: colors.green.base,
switch: colors.indigo.base
}
export { items }
const selection = {
background: addAlpha(colors.teal.base, 0.25),
border: addAlpha(colors.teal.base, 0.75)
}
export { selection }
const black = {
darken1: material.grey.darken2,
lighten2: material.grey.darken2,
lighten1: material.grey.darken3,
}
const scale = [
material.red,
material.pink,
material.purple,
material.deepPurple,
material.indigo,
material.blue,
material.lightBlue,
material.cyan,
material.teal,
material.green,
material.lightGreen,
material.lime,
material.yellow,
material.amber,
material.orange,
material.deepOrange,
white,
black
]
const fills = {
bg: [],
fg: [],
};