How to use the vuetify function in vuetify

To help you get started, we’ve selected a few vuetify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Cambalab / vue-admin / tests / unit / specs / ui-components / date.input.spec.js View on Github external
beforeEach(() => {
    // Configures the subject props
    propsData = {
      ...dateInputFixture.props,
    }
    vuetify = new Vuetify()
  })
github testing-library / vue-testing-library / src / __tests__ / vuetify.js View on Github external
export const renderWithVuetify = (component, options, callback) => {
  return render(
    // anonymous component
    {
      // Vue's render function
      render(createElement) {
        // wrap the component with a <div data-app="true"> node and render the test component
        return createElement('div', {attrs: {'data-app': true}}, [
          createElement(component),
        ])
      },
    },
    // for Vuetify components that use the $vuetify instance property
    {vuetify: new Vuetify(), ...options},
    callback,
  )
}
</div>
github lakasir / lakasir / resources / js / vuetify / config / index.js View on Github external
const opts = {
  icons: {
    iconfont: 'mdiSvg', // 'mdi' || 'mdiSvg' || 'md' || 'fa' || 'fa4' || 'faSvg'
  },
  breakpoint: {
    thresholds: {
      xs: 340,
      sm: 540,
      md: 540,
      lg: 540,
    },
    scrollBarWidth: 24,
  },
}

export default new Vuetify(opts)
github vue-styleguidist / vue-styleguidist / examples / vuetify / config / styleguide.root.js View on Github external
export default previewComponent => {
	// https://vuejs.org/v2/guide/render-function.html
	return {
		vuetify: new Vuetify(),
		i18n,
		render(createElement) {
			return createElement(
				'v-app',
				{
					props: {
						id: 'v-app'
					}
				},
				[createElement(Languages), createElement(Object.assign(previewComponent))]
			)
		}
	}
}
github nesfit / fitcrack / webadmin / fitcrackFE / src / main.js View on Github external
Vue.use(UserPlugin);

Vue.use(VueProgressBar, {
  color: window.theme.light.primary,
  failedColor: window.theme.light.error,
  height: '2px'
});

Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  vuetify: new Vuetify({
    icons: {
      iconfont: 'mdi'
    },
    theme: {
      dark: false,
      themes: window.theme
    }
  }),
  components: { App },
  template: ''
});
github Cambalab / vue-admin / tests / unit / specs / auth / auth.spec.js View on Github external
beforeEach(() => {
    propsData = authFixture({ username, password }).props
    vuetify = new Vuetify()
    vaPropSpy = {
      login: jest.spyOn(propsData.va, 'login'),
    }

    _mount({ propsData, vuetify })
  })
github wailsapp / wails / cmd / templates / vuetify2-basic / frontend / src / main.js View on Github external
Wails.Init(() => {
	new Vue({
		vuetify: new Vuetify({
			icons: {
				iconfont: 'mdi'
			},
			theme: {
				dark: true
			}
		}),
		render: h => h(App)
	}).$mount('#app');
});
github funkindy / ranker / src / main.js View on Github external
Vue.config.productionTip = false

Vue.use(Vuetify)

Vue.filter("date", dateFilter)
Vue.filter("percent", percentFilter)
Vue.filter("round", roundFilter)

const LOCALE = navigator.language.split('-')[0] || navigator.userLanguage.split('-')[0]

new Vue({
  router,
  store,
  i18n,
  vuetify: new Vuetify({
    lang: {
      locales: { en, ru },
      current: LOCALE,
    }
  }),
  render: h => h(App)
}).$mount('#app')
github senzowayne / resavo / assets / js / resavo.js View on Github external
document.addEventListener("DOMContentLoaded", function () {
    if (document.getElementById('app')) {
        new Vue({
            el: '#app',
            vuetify: new Vuetify(),
            render: function (h) {
                return (
                    <div>
                        
                        
                    </div>
                )
            }
        })
    }
})
github koumoul-dev / vuetify-jsonschema-form / demo / index.js View on Github external
import Swatches from 'vue-swatches'
import 'vue-swatches/dist/vue-swatches.min.css'
import { Sketch } from 'vue-color'

Vue.use(Vuetify)
Vue.use(VueAxios, axios)

Vue.component('swatches', Swatches)
Vue.component('draggable', Draggable)
Vue.component('color-picker', Sketch)

new Vue({
  el: '#app',
  components: { DemoApp },
  render: h => h('demo-app'),
  vuetify: new Vuetify({
    icons: {
      iconfont: 'mdi'
    }
  })
})