Samx Here
n1udSecurity


Server : Apache
System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
User : pragmatice ( 1003)
PHP Version : 8.2.24
Disable Function : NONE
Directory :  /home/pragmatice/pragmaclasse_recette/resources/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/pragmatice/pragmaclasse_recette/resources/js/app.js
/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');

import Api from './utils/Api'

let Vue = require('vue');
window.$api = new Api();

import headerComponent from './components/headerComponent';


import { NavbarPlugin  } from 'bootstrap-vue'
Vue.use(NavbarPlugin)
import { FormGroupPlugin } from 'bootstrap-vue'
Vue.use(FormGroupPlugin)
import { FormCheckboxPlugin } from 'bootstrap-vue'
Vue.use(FormCheckboxPlugin)

// import { VTooltip, VPopover, VClosePopover } from 'v-tooltip'
Vue.use(headerComponent);
// Vue.use(VTooltip)
// Vue.use(VPopover)
// Vue.use(VClosePopover)
Vue.component('headerComponent', headerComponent)
// Vue.directive('tooltip', VTooltip)
// Vue.directive('close-popover', VClosePopover)
// Vue.component('v-popover', VPopover)

import { BFormSelect, BTabs, BTab } from 'bootstrap-vue'
// import BFormSelect from 'bootstrap-vue/es/components/form-select/form-select'
Vue.component('b-form-select', BFormSelect)
// import BTabs from 'bootstrap-vue/es/components/tabs/tabs'
// import BTab from 'bootstrap-vue/es/components/tabs/tab'
Vue.component('b-tabs', BTabs)
Vue.component('b-tab', BTab)
/**
 * Pour les delires de component recursive (qui s'appelle dans son propre template)
 */
import teacherPupilSingleMessagesSingle from "./components/account/teacher/pupil/pupilSingleMessagesSingle.vue";
Vue.component('teacher-pupil-single-messages-single', teacherPupilSingleMessagesSingle)
import parentPupilSingleMessagesSingle from "./components/parent/pupil/pupilSingleMessagesSingle.vue";
Vue.component('parent-pupil-single-messages-single', parentPupilSingleMessagesSingle)

import Multiselect from 'vue-multiselect'
Vue.component('multiselect', Multiselect)

import VueMq from 'vue-mq'

Vue.use(VueMq, {
  breakpoints: { // default breakpoints - customize this
    sm: 576,
    md: 768,
    lg: 992,
    xl: Infinity,
  }
})

Vue.mixin({
    data() {
        return {
            userData: {},
            pageInfo: {},
            activeStatus: {},
        }
    },
    computed: {
        isSmall(){
            return (['sm','md'].indexOf(this.$mq) != -1)
        }
    },
    methods: {
        copyObject(source){
            return JSON.parse(JSON.stringify(source));
        }
    },
    mounted() {
        this.userData = this.$root.$userProp
        this.pageInfo = this.$root.$pageInfo
        this.activeStatus = this.$root.$activeStatus
    }
})
Vue.component('infos-site', {
    template: '<div></div>',
    props: {
        userProp: { type: Object, Default: {} },
        pageInfoProp: { type: Object, Default: {} },
        activeStatusProp: { type: [Object, Array], Default: {} },
    },
    mounted() {
        this.$root.$userProp = this.userProp;
        this.$root.$pageInfo = this.pageInfoProp;
        this.$root.$activeStatus = this.activeStatusProp;
    }
})

export default Vue

SAMX