44 lines
1 KiB
JavaScript
44 lines
1 KiB
JavaScript
/**
|
|
* UMD entry-point
|
|
*/
|
|
|
|
import installQuasar from './install-quasar.js'
|
|
import Lang from './plugins/lang/Lang.js'
|
|
import IconSet from './plugins/icon-set/IconSet.js'
|
|
|
|
import * as components from './components.js'
|
|
import * as directives from './directives.js'
|
|
import * as plugins from './plugins.js'
|
|
import * as utils from './utils.js'
|
|
import * as composables from './composables.js'
|
|
|
|
if (window.Vue === void 0) {
|
|
console.error('[ Quasar ] Vue is required to run. Please add a script tag for it before loading Quasar.')
|
|
}
|
|
|
|
window.Quasar = {
|
|
version: __QUASAR_VERSION__,
|
|
|
|
install (app, opts) {
|
|
installQuasar(app, {
|
|
components,
|
|
directives,
|
|
plugins,
|
|
...opts
|
|
})
|
|
},
|
|
|
|
// TODO: remove in Qv3 (should only be used through the plugin)
|
|
// We provide a deprecated fallback here
|
|
lang: Lang,
|
|
|
|
// TODO: remove in Qv3 (should only be used through the plugin)
|
|
// We provide a deprecated fallback here
|
|
iconSet: IconSet,
|
|
|
|
...components,
|
|
...directives,
|
|
...plugins,
|
|
...composables,
|
|
...utils
|
|
}
|