Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/bootstrap.js
/** | /** | ||||
* We'll load jQuery and the Bootstrap jQuery plugin which provides support | * We'll load jQuery and the Bootstrap jQuery plugin which provides support | ||||
* for JavaScript based Bootstrap features such as modals and tabs. This | * for JavaScript based Bootstrap features such as modals and tabs. This | ||||
* code may be modified to fit the specific needs of your application. | * code may be modified to fit the specific needs of your application. | ||||
*/ | */ | ||||
window.Popper = require('popper.js').default | window.Popper = require('popper.js').default | ||||
window.$ = window.jQuery = require('jquery') | window.$ = window.jQuery = require('jquery') | ||||
require('bootstrap') | require('bootstrap') | ||||
/** | /** | ||||
* We'll load Vue, VueRouter and global components | * We'll load Vue, VueRouter and global components | ||||
*/ | */ | ||||
import FontAwesomeIcon from './fontawesome' | import FontAwesomeIcon from './fontawesome' | ||||
import Vue from 'vue' | |||||
import VueRouter from 'vue-router' | import VueRouter from 'vue-router' | ||||
import Toast from '../vue/Widgets/Toast' | import Toast from '../vue/Widgets/Toast' | ||||
import store from './store' | import store from './store' | ||||
window.Vue = require('vue') | window.Vue = Vue | ||||
Vue.component('svg-icon', FontAwesomeIcon) | Vue.component('svg-icon', FontAwesomeIcon) | ||||
const vTooltip = (el, binding) => { | const vTooltip = (el, binding) => { | ||||
const t = [] | const t = [] | ||||
if (binding.modifiers.focus) t.push('focus') | if (binding.modifiers.focus) t.push('focus') | ||||
if (binding.modifiers.hover) t.push('hover') | if (binding.modifiers.hover) t.push('hover') | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |