Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/bootstrap.js
Show All 17 Lines | $.fn.click = function() { | ||||
} | } | ||||
return this | return this | ||||
} | } | ||||
/** | /** | ||||
* Load Vue, VueRouter and global components | * Load Vue, VueRouter and global components | ||||
*/ | */ | ||||
import { Tooltip } from 'bootstrap' | |||||
import FontAwesomeIcon from './fontawesome' | |||||
import Vue from 'vue' | import Vue from 'vue' | ||||
import VueRouter from 'vue-router' | import VueRouter from 'vue-router' | ||||
import Btn from '../vue/Widgets/Btn' | import Btn from '../vue/Widgets/Btn' | ||||
import BtnRouter from '../vue/Widgets/BtnRouter' | import BtnRouter from '../vue/Widgets/BtnRouter' | ||||
import Toast from '../vue/Widgets/Toast' | import Toast from '../vue/Widgets/Toast' | ||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' | |||||
import { Tooltip } from 'bootstrap' | |||||
window.Vue = Vue | window.Vue = Vue | ||||
Vue.component('SvgIcon', FontAwesomeIcon) | Vue.component('SvgIcon', FontAwesomeIcon) | ||||
Vue.component('Btn', Btn) | Vue.component('Btn', Btn) | ||||
Vue.component('BtnRouter', BtnRouter) | Vue.component('BtnRouter', BtnRouter) | ||||
const vTooltip = (el, binding) => { | const vTooltip = (el, binding) => { | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
* Load the axios HTTP library which allows us to easily issue requests | * Load the axios HTTP library which allows us to easily issue requests | ||||
* to our Laravel back-end. This library automatically handles sending the | * to our Laravel back-end. This library automatically handles sending the | ||||
* CSRF token as a header based on the value of the "XSRF" token cookie. | * CSRF token as a header based on the value of the "XSRF" token cookie. | ||||
*/ | */ | ||||
window.axios = require('axios') | window.axios = require('axios') | ||||
axios.defaults.baseURL = vueRouterBase | axios.defaults.baseURL = vueRouterBase | ||||
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest' | axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest' | ||||
// Register a few most common icons | |||||
import { library } from '@fortawesome/fontawesome-svg-core' | |||||
library.add( | |||||
require('@fortawesome/free-solid-svg-icons/faCheck').definition, | |||||
require('@fortawesome/free-solid-svg-icons/faCircleInfo').definition, | |||||
require('@fortawesome/free-solid-svg-icons/faPlus').definition, | |||||
require('@fortawesome/free-solid-svg-icons/faMagnifyingGlass').definition, | |||||
require('@fortawesome/free-solid-svg-icons/faTrashCan').definition, | |||||
require('@fortawesome/free-solid-svg-icons/faUser').definition, | |||||
) |