diff --git a/nuxt.config.js b/nuxt.config.js index c606ed9..eae509e 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -54,6 +54,7 @@ module.exports = { css: ['veui-theme-dls/common.less', '@/assets/styles/global.styl'], plugins: [ + { src: '~plugins/config.js' }, { src: '~plugins/i18n.js' }, { src: '~plugins/l10n.js' }, { src: '~plugins/hm.js', ssr: false }, diff --git a/package-lock.json b/package-lock.json index 22b5b2d..915b256 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3558,9 +3558,9 @@ } }, "babel-plugin-veui": { - "version": "2.0.0-beta.18", - "resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.0.0-beta.18.tgz", - "integrity": "sha512-PZfpwB923ll5DC/E+RDDvYa9EnLwcPhBHGFMJjGsfG3CYvxVODilhst3MJObmK23WI/IrsXRaOcnXx83fQ+NRg==", + "version": "2.0.0-beta.22", + "resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.0.0-beta.22.tgz", + "integrity": "sha512-ubdLh+jvTNsAoIhTCiZRdwula3d5u1cmsB4yfbkCz0WNwUXsVn/eO3jF66UfEBOsbajvWnxYZoLMmihf2zcn7g==", "dev": true }, "babel-runtime": { @@ -5693,9 +5693,9 @@ } }, "dls-graphics": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/dls-graphics/-/dls-graphics-0.1.4.tgz", - "integrity": "sha512-jl+4Ydo1cMcL+8hy6+jbzsYE9RKq8pE366rm8iIsRWeHFiWZ75DusKpBg8ZpZ+jpCt9hHR3TMQctklpGfBcYTg==", + "version": "1.0.0-alpha.1", + "resolved": "https://registry.npmjs.org/dls-graphics/-/dls-graphics-1.0.0-alpha.1.tgz", + "integrity": "sha512-exCMRHh/BgE/OYtui5ENK020qYn+97vgmq5k0SCtHGp2sijCscm7deh2EKmXxSrQdtrwE4co7XGyKOU++tSL4g==", "dev": true }, "dls-icons-vue": { @@ -15904,15 +15904,15 @@ } }, "veui": { - "version": "2.0.0-beta.18", - "resolved": "https://registry.npmjs.org/veui/-/veui-2.0.0-beta.18.tgz", - "integrity": "sha512-o2qgpUZlLOt/N9lir2jrJTx4w2MIT+xrk26IIfqNfvn97HkufGk5jRFVNK3cCLJ1T7oElrRl1hOzxd3e83ruhA==", + "version": "2.0.0-beta.22", + "resolved": "https://registry.npmjs.org/veui/-/veui-2.0.0-beta.22.tgz", + "integrity": "sha512-Hj/do/aBYVmAkLkWWmPm8crijL9+z1q7RB+Vat/tiEyQgFXa4WmrYgjocVKX43LLD3QftVjhts8U5PR5RYO2JA==", "dev": true, "requires": { "bytes": "^3.0.0", "core-js": "^3.6.1", "date-fns": "^2.14.0", - "dls-graphics": "^0.1.4", + "dls-graphics": "^1.0.0-alpha.1", "lodash": "^4.17.19", "popper.js": "^1.16.0", "resize-detector": "^0.1.6", @@ -15921,17 +15921,17 @@ }, "dependencies": { "core-js": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.8.0.tgz", - "integrity": "sha512-W2VYNB0nwQQE7tKS7HzXd7r2y/y2SVJl4ga6oH/dnaLFzM0o2lB2P3zCkWj5Wc/zyMYjtgd5Hmhk0ObkQFZOIA==", + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.8.1.tgz", + "integrity": "sha512-9Id2xHY1W7m8hCl8NkhQn5CufmF/WuR30BTRewvCXc1aZd3kMECwNZ69ndLbekKfakw9Rf2Xyc+QR6E7Gg+obg==", "dev": true } } }, "veui-loader": { - "version": "2.0.0-beta.18", - "resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.0.0-beta.18.tgz", - "integrity": "sha512-5lpan+qoO40J/+Vp8Q+e/ew4jnDc+h3OtMFLma+n1WIX6xydfnFyY8ucidJIqhu2z6lgMyEV0/ITxJCnXHP2EQ==", + "version": "2.0.0-beta.22", + "resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.0.0-beta.22.tgz", + "integrity": "sha512-aY2LR0huewLdSWPYhgZZ1/690WzMiwJFohZVmvDzOlke4otVMqaqtbN2L6QDwQsj/UnH++LGnyXVAQfcKToBEA==", "dev": true, "requires": { "loader-utils": "^2.0.0", @@ -16021,32 +16021,43 @@ } }, "veui-theme-dls": { - "version": "2.0.0-beta.18", - "resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.0.0-beta.18.tgz", - "integrity": "sha512-wfuFP3JJEJG0A810InikZXxWIuytxdHkSkRGVb6I09oLcV3CJPfe5Subnwaq3djljJzLFyMhTzmcswYxv3dM0Q==", + "version": "2.0.0-beta.22", + "resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.0.0-beta.22.tgz", + "integrity": "sha512-cpcY/ree8OJU9+CFbC/OaCGzS40LGL23iDY/Mx2tqPlB4EgpxIr08DKGZwWhrXhfFbyFoI20MpbzGpDNj3Tc0A==", "dev": true, "requires": { "classlist-polyfill": "^1.2.0", - "dls-icons-vue": "^0.12.0", + "dls-icons-vue": "^0.18.0", "focus-visible": "^4.1.0", "less-plugin-dls": "^1.0.0-alpha.34", "less-plugin-est": "^3.0.0", - "veui-theme-dls-icons": "^2.0.0-beta.18" + "veui-theme-dls-icons": "^2.0.0-beta.22" }, "dependencies": { "dls-icons-vue": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/dls-icons-vue/-/dls-icons-vue-0.12.1.tgz", - "integrity": "sha512-5qYuZ1b1ZAL/RG3T57lihG8OXZxJMwRFeE/FVEUnaYr9Io2OU4vV1pMZbii1Keu7KmVSuGfSLp9RV6NW5qEnPQ==", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/dls-icons-vue/-/dls-icons-vue-0.18.0.tgz", + "integrity": "sha512-ywQxM3FxWWYIJJ+cYn6VHtcETkRru9NxFSUfnqVowir7+CApbMVZl7aLT3R8JlfuVCFcOrlV3K9iE+gmV392og==", "dev": true } } }, "veui-theme-dls-icons": { - "version": "2.0.0-beta.18", - "resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.0.0-beta.18.tgz", - "integrity": "sha512-iJZgVgibRoS7w4MwZCZXC0W+u5SFBtARHEyLoV1bJqyJwvAvQwtBqh8aB4t5tUw1+fLLjRUSBYUWWz6sMbIA+A==", - "dev": true + "version": "2.0.0-beta.22", + "resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.0.0-beta.22.tgz", + "integrity": "sha512-1KHFU4SiLJrtvpkhlLnoCh7FvPxGlps9BC2+sg2N61l9kjVvQMcvFTuxpt0uOvMAuyIfvuSph3CyKERtd2WgRQ==", + "dev": true, + "requires": { + "dls-icons-vue": "^0.18.0" + }, + "dependencies": { + "dls-icons-vue": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/dls-icons-vue/-/dls-icons-vue-0.18.0.tgz", + "integrity": "sha512-ywQxM3FxWWYIJJ+cYn6VHtcETkRru9NxFSUfnqVowir7+CApbMVZl7aLT3R8JlfuVCFcOrlV3K9iE+gmV392og==", + "dev": true + } + } }, "vfile": { "version": "2.3.0", diff --git a/package.json b/package.json index 5f7d968..d8a7596 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,12 @@ "daemon": "NODE_ENV=production HOST=0.0.0.0 forever start -p . -a -l ./logs/forever.log -o ./logs/access.log -e ./logs/error.log app.js", "serve": "NODE_ENV=production PORT=80 HOST=0.0.0.0 forever -p . -a -l ./logs/forever.log -o ./logs/access.log -e ./logs/error.log app.js", "stop": "forever stop app.js", - "restart": "npm run stop && npm run serve" + "restart": "npm run stop && npm run serve", + "update:veui": "npm i -D {veui-loader,veui,veui-theme-dls,babel-plugin-veui,veui-theme-dls-icons}@latest" }, "devDependencies": { "babel-plugin-lodash": "^3.3.4", - "babel-plugin-veui": "^2.0.0-beta.18", + "babel-plugin-veui": "^2.0.0-beta.22", "dls-icons-vue": "^0.14.0", "eslint": "^5.15.1", "eslint-config-prettier": "^4.1.0", @@ -69,10 +70,10 @@ "stylus-loader": "^3.0.2", "unist-util-remove": "^1.0.1", "unist-util-visit": "^1.4.0", - "veui": "^2.0.0-beta.18", - "veui-loader": "^2.0.0-beta.18", - "veui-theme-dls": "^2.0.0-beta.18", - "veui-theme-dls-icons": "^2.0.0-beta.18", + "veui": "^2.0.0-beta.22", + "veui-loader": "^2.0.0-beta.22", + "veui-theme-dls": "^2.0.0-beta.22", + "veui-theme-dls-icons": "^2.0.0-beta.22", "vue-awesome": "^4.1.0", "vue-i18n": "^8.16.0", "vue-windows": "^0.2.4" diff --git a/plugins/config.js b/plugins/config.js new file mode 100644 index 0000000..e823d9a --- /dev/null +++ b/plugins/config.js @@ -0,0 +1,4 @@ +import 'veui/managers/config' +import config from 'veui/managers/config' + +config.set('modal.scrollLockMode', 'advanced')