All files / src index.js

69.23% Statements 9/13
62.5% Branches 5/8
100% Functions 2/2
69.23% Lines 9/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33                            7x 7x 7x 336x   336x       7x 7x 7x           7x  
import './styles/base.css';
import 'themeCSS';
export * from './components';
export * from './layouts';
export * from './assist';
 
import * as directives from './directives';
import * as filters from './filters';
import * as utils from './utils';
export { directives, filters, utils };
 
export { install } from '@vusion/utils';
 
import Vue from 'vue';
Vue.prototype.$env = Vue.prototype.$env || {};
Vue.prototype.$env.VUE_APP_DESIGNER = String(process.env.VUE_APP_DESIGNER) === 'true';
Vue.prototype.$at2 = function (obj, propertyPath) {
    Iif (propertyPath === '' && !this.$env.VUE_APP_DESIGNER)
        return obj;
    return this.$at(obj, propertyPath);
};
 
function getAsyncPublicPath() {
    const script = document.querySelector('script[src*="cloud-ui.vusion"]');
    Eif (!script)
        return;
 
    const src = script.src;
    const publicPath = src.replace(/\/[^/]+$/, '/');
    __webpack_public_path__ = publicPath;
}
getAsyncPublicPath();