diff --git a/babel.config.js b/babel.config.js index 9fb4a004..23ecf122 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,12 +1,7 @@ module.exports = { presets: [ - ['@vue/app', { - polyfills: [ - 'es6.promise', // already default included now - 'es6.array.iterator', // already default included now - 'es6.symbol', - 'es6.object.assign' - ] + [ "@vue/app", { + "useBuiltIns": 'entry' }] ] } diff --git a/package.json b/package.json index 4b2b3338..dfd799dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/coreui-free-vue-admin-template", - "version": "2.0.1", + "version": "v3-alpha.1", "description": "Open Source Bootstrap Admin Template", "author": "Ɓukasz Holeczek", "homepage": "http://coreui.io", @@ -8,7 +8,7 @@ "license": "MIT", "scripts": { "serve": "vue-cli-service serve", - "build": "vue-cli-service build", + "build": "vue-cli-service build --modern", "lint": "vue-cli-service lint", "test:unit": "vue-cli-service test:unit", "test:e2e": "vue-cli-service test:e2e" @@ -18,11 +18,12 @@ "@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0", "@coreui/icons": "0.3.0", "@coreui/vue": "../coreui-vue", + "babel-polyfill": "^6.26.0", "bootstrap": "^4.1.3", - "bootstrap-vue": "^2.0.0-rc.11", "chart.js": "^2.7.3", "core-js": "^2.5.7", "css-vars-ponyfill": "^1.11.1", + "current-script-polyfill": "^1.0.0", "element-resize-detector": "^1.2.0", "flag-icon-css": "^3.2.0", "font-awesome": "^4.7.0", @@ -41,7 +42,10 @@ "@vue/cli-plugin-unit-jest": "^3.0.5", "@vue/cli-service": "^3.0.5", "@vue/test-utils": "^1.0.0-beta.25", - "babel-core": "^7.0.0-bridge.0", + "babel-core": "^6.26.3", + "babel-plugin-dynamic-import-node": "^2.2.0", + "babel-plugin-module-resolver": "^3.1.2", + "babel-preset-vue-app": "^2.0.0", "babel-jest": "^23.6.0", "growl": "^1.10.5", "https-proxy-agent": "^2.2.1", diff --git a/src/containers/DefaultContainer.vue b/src/containers/DefaultContainer.vue index c65a18eb..e8656d77 100644 --- a/src/containers/DefaultContainer.vue +++ b/src/containers/DefaultContainer.vue @@ -32,7 +32,13 @@ - + + @@ -65,12 +71,14 @@ import nav from '@/_nav' import DefaultAside from './DefaultAside' import DefaultHeaderDropdownAccnt from './DefaultHeaderDropdownAccnt' +import VuePerfectScrollbar from 'vue-perfect-scrollbar' export default { name: 'full', components: { DefaultAside, DefaultHeaderDropdownAccnt, + VuePerfectScrollbar }, data () { return { @@ -80,7 +88,31 @@ export default { computed: { computedNav () { return this.nav.filter((item) => item.name !== 'Dashboard') + }, + psSettings: () => { + // ToDo: find better rtl fix + return { + maxScrollbarLength: 200, + minScrollbarLength: 40, + suppressScrollX: getComputedStyle(document.querySelector('html')).direction !== 'rtl', + wheelPropagation: false, + interceptRailY: styles => ({ ...styles, height: 0 }) + } + } + }, + methods: { + /*eslint no-unused-vars: ["error", { "argsIgnorePattern": "evt" }]*/ + scrollHandle (evt) { + // console.log(evt) } } } + + diff --git a/src/main.js b/src/main.js index 4f70c29c..28f8e4b8 100644 --- a/src/main.js +++ b/src/main.js @@ -1,27 +1,21 @@ // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. + import 'core-js/es6/promise' import 'core-js/es6/string' import 'core-js/es7/array' +import '@babel/polyfill' // import cssVars from 'css-vars-ponyfill' import Vue from 'vue' -import BootstrapVue from 'bootstrap-vue' import App from './App' import router from './router' - - - -//only for development with link -import CoreuiVueLink from '@coreui/vue/src' -// import CoreuiVue from '@coreui/vue' - +import CoreuiVue from '@coreui/vue' Vue.config.performance = true // todo // cssVars() -Vue.use(BootstrapVue) -Vue.use(CoreuiVueLink) +Vue.use(CoreuiVue) /* eslint-disable no-new */ diff --git a/src/views/users/Users.vue b/src/views/users/Users.vue index 53e46468..598e98e5 100644 --- a/src/views/users/Users.vue +++ b/src/views/users/Users.vue @@ -1,6 +1,6 @@