vue-martixss
Advanced tools
Comparing version 1.0.7 to 1.0.9
102
package.json
{ | ||
"name": "vue-martixss", | ||
"description": "A Vue.js project", | ||
"version": "1.0.7", | ||
"author": "linshengji <873969678@qq.com>", | ||
"version": "1.0.9", | ||
"license": "MIT", | ||
"description": "A vue admin template with Element UI & axios & iconfont & permission control & lint", | ||
"author": "Pan <panfree23@gmail.com>", | ||
"main": "dist/index.js", | ||
@@ -11,8 +11,83 @@ "jsnext:main": "src/index.js", | ||
"scripts": { | ||
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", | ||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules" | ||
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", | ||
"start": "npm run dev", | ||
"build-dev": "node build/build-dev.js", | ||
"build": "node build/build.js", | ||
"build:report": "npm_config_report=true npm run build", | ||
"lint": "eslint --ext .js,.vue src", | ||
"test": "npm run lint", | ||
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" | ||
}, | ||
"dependencies": { | ||
"vue": "^2.5.11" | ||
"axios": "0.18.0", | ||
"echarts": "^4.1.0", | ||
"element-ui": "2.4.11", | ||
"js-cookie": "^2.2.0", | ||
"normalize.css": "7.0.0", | ||
"nprogress": "0.2.0", | ||
"store": "^2.0.12", | ||
"vue": "2.5.17", | ||
"vue-router": "3.0.1", | ||
"vuedraggable": "^2.21.0", | ||
"vuex": "3.0.1" | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "8.5.0", | ||
"babel-core": "6.26.0", | ||
"babel-eslint": "8.2.6", | ||
"babel-helper-vue-jsx-merge-props": "2.0.3", | ||
"babel-loader": "7.1.5", | ||
"babel-plugin-syntax-jsx": "6.18.0", | ||
"babel-plugin-transform-runtime": "6.23.0", | ||
"babel-plugin-transform-vue-jsx": "3.7.0", | ||
"babel-preset-env": "1.7.0", | ||
"babel-preset-stage-2": "6.24.1", | ||
"chalk": "2.4.1", | ||
"compression-webpack-plugin": "^2.0.0", | ||
"copy-webpack-plugin": "4.5.2", | ||
"css-loader": "1.0.0", | ||
"eslint": "4.19.1", | ||
"eslint-friendly-formatter": "4.0.1", | ||
"eslint-loader": "2.0.0", | ||
"eslint-plugin-html": "^5.0.3", | ||
"eslint-plugin-vue": "4.7.1", | ||
"eventsource-polyfill": "0.9.6", | ||
"extract-text-webpack-plugin": "2.0.0", | ||
"file-loader": "1.1.11", | ||
"friendly-errors-webpack-plugin": "1.7.0", | ||
"html-webpack-plugin": "4.0.0-alpha", | ||
"mini-css-extract-plugin": "0.4.1", | ||
"node-notifier": "5.2.1", | ||
"node-sass": "^4.7.2", | ||
"optimize-css-assets-webpack-plugin": "5.0.0", | ||
"ora": "3.0.0", | ||
"path-to-regexp": "2.4.0", | ||
"portfinder": "1.0.16", | ||
"postcss-import": "12.0.0", | ||
"postcss-loader": "2.1.6", | ||
"postcss-url": "7.3.2", | ||
"rimraf": "2.6.2", | ||
"sass-loader": "7.0.3", | ||
"script-ext-html-webpack-plugin": "2.0.1", | ||
"semver": "5.5.0", | ||
"shelljs": "0.8.2", | ||
"stylus": "^0.54.5", | ||
"stylus-loader": "^3.0.2", | ||
"svg-sprite-loader": "3.8.0", | ||
"svgo": "1.0.5", | ||
"uglifyjs-webpack-plugin": "1.2.7", | ||
"url-loader": "1.0.1", | ||
"vue-loader": "15.3.0", | ||
"vue-style-loader": "4.1.2", | ||
"vue-template-compiler": "2.5.17", | ||
"webpack": "4.16.5", | ||
"webpack-bundle-analyzer": "2.13.1", | ||
"webpack-cli": "3.1.0", | ||
"webpack-dev-server": "3.1.5", | ||
"webpack-merge": "4.1.4" | ||
}, | ||
"engines": { | ||
"node": ">= 6.0.0", | ||
"npm": ">= 3.0.0" | ||
}, | ||
"browserslist": [ | ||
@@ -22,16 +97,3 @@ "> 1%", | ||
"not ie <= 8" | ||
], | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"cross-env": "^5.0.5", | ||
"css-loader": "^0.28.7", | ||
"file-loader": "^1.1.4", | ||
"vue-loader": "^13.0.5", | ||
"vue-template-compiler": "^2.4.4", | ||
"webpack": "^3.6.0", | ||
"webpack-dev-server": "^2.9.1" | ||
} | ||
] | ||
} |
@@ -1,18 +0,90 @@ | ||
# vue-ruler-tool | ||
# vue-admin-template | ||
> A Vue.js project | ||
> A minimal vue admin template with Element UI & axios & iconfont & permission control & lint | ||
**Live demo:** http://panjiachen.github.io/vue-admin-template | ||
[中文文档](https://github.com/PanJiaChen/vue-admin-template/blob/master/README-zh.md) | ||
## Build Setup | ||
``` bash | ||
# install dependencies | ||
```bash | ||
# Clone project | ||
git clone https://github.com/PanJiaChen/vue-admin-template.git | ||
# Install dependencies | ||
npm install | ||
# serve with hot reload at localhost:8080 | ||
# Serve with hot reload at localhost:9528 | ||
npm run dev | ||
# build for production with minification | ||
# Build for production with minification | ||
npm run build | ||
# Build for production and view the bundle analyzer report | ||
npm run build --report | ||
``` | ||
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader). | ||
## Demo | ||
![demo](https://github.com/PanJiaChen/PanJiaChen.github.io/blob/master/images/demo.gif) | ||
## Extra | ||
If you want router permission && generate menu by user roles , you can use this branch [permission-control](https://github.com/PanJiaChen/vue-admin-template/tree/permission-control) | ||
This project is based on `webpack4` development. If you want to use `webpack3` development, please use this branch [webpack3](https://github.com/PanJiaChen/vue-admin-template/tree/webpack3) | ||
For `typescript` version, you can use [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour)) | ||
## Related Project | ||
[vue-element-admin](https://github.com/PanJiaChen/vue-element-admin) | ||
[electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin) | ||
[vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) | ||
### Element-Ui using cdn tutorial | ||
First find `index.html`([root directory](https://github.com/PanJiaChen/vue-admin-template/blob/element-ui-cdn/index.html)) | ||
Import css and js of `Element`, and then import vue. Because `Element` is vue-dependent, vue must be import before it. | ||
Then find [webpack.base.conf.js](https://github.com/PanJiaChen/vue-admin-template/blob/element-ui-cdn/build/webpack.base.conf.js) | ||
Add `externals` to make webpack not package vue and element. | ||
``` | ||
externals: { | ||
vue: 'Vue', | ||
'element-ui':'ELEMENT' | ||
} | ||
``` | ||
Finally there is a small detail to pay attention to that if you import vue in global, you don't need to manually `Vue.use(Vuex)`, it will be automatically mounted, see | ||
[issue](https://github.com/vuejs/vuex/issues/731) | ||
And you can use `npm run build --report` to see the effect | ||
Pictured: | ||
![demo](https://panjiachen.github.io/images/element-cdn.png) | ||
**[Detailed code](https://github.com/PanJiaChen/vue-admin-template/commit/746aff560932704ae821f82f10b8b2a9681d5177)** | ||
**[Branch](https://github.com/PanJiaChen/vue-admin-template/tree/element-ui-cdn)** | ||
## Browsers support | ||
Modern browsers and Internet Explorer 10+. | ||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | | ||
| --------- | --------- | --------- | --------- | | ||
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions | ||
## License | ||
[MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license. | ||
Copyright (c) 2017-present PanJiaChen | ||
. |
@@ -1,2 +0,1 @@ | ||
// src/index.js | ||
export { default } from './components/matrix' | ||
export { default } from './views/report/components/searchFull' |
import Vue from 'vue' | ||
import App from './App.vue' | ||
new Vue({ | ||
import 'normalize.css/normalize.css' // A modern alternative to CSS resets | ||
import ElementUI from 'element-ui' | ||
import 'element-ui/lib/theme-chalk/index.css' | ||
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n | ||
import '@/styles/index.scss' // global css | ||
import App from './App' | ||
import router from './router' | ||
import store from './store' | ||
import '@/icons' // icon | ||
import '@/permission' // permission control | ||
var date = new Date() | ||
date.setTime(date.getTime() - 10000) | ||
document.cookie = 'jwt=; expires=' + date.toGMTString() | ||
Vue.use(ElementUI, { locale }) | ||
// 引入echarts | ||
import echarts from 'echarts' | ||
Vue.prototype.$echarts = echarts | ||
Vue.config.productionTip = false | ||
Vue.prototype.GLOBAL = { | ||
env: process.env.NODE_ENV | ||
} | ||
export default new Vue({ | ||
el: '#app', | ||
router, | ||
store, | ||
render: h => h(App) | ||
}) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3209653
217
9964
91
11
53
36
101
+ Addedaxios@0.18.0
+ Addedecharts@^4.1.0
+ Addedelement-ui@2.4.11
+ Addedjs-cookie@^2.2.0
+ Addednormalize.css@7.0.0
+ Addednprogress@0.2.0
+ Addedstore@^2.0.12
+ Addedvue-router@3.0.1
+ Addedvuedraggable@^2.21.0
+ Addedvuex@3.0.1
+ Addedasync-validator@1.8.5(transitive)
+ Addedaxios@0.18.0(transitive)
+ Addedbabel-helper-vue-jsx-merge-props@2.0.3(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addeddeepmerge@1.5.2(transitive)
+ Addedecharts@4.9.0(transitive)
+ Addedelement-ui@2.4.11(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedjs-cookie@2.2.1(transitive)
+ Addednormalize-wheel@1.0.1(transitive)
+ Addednormalize.css@7.0.0(transitive)
+ Addednprogress@0.2.0(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
+ Addedresize-observer-polyfill@1.5.1(transitive)
+ Addedsortablejs@1.10.2(transitive)
+ Addedstore@2.0.12(transitive)
+ Addedthrottle-debounce@1.1.0(transitive)
+ Addedvue@2.5.17(transitive)
+ Addedvue-router@3.0.1(transitive)
+ Addedvuedraggable@2.24.3(transitive)
+ Addedvuex@3.0.1(transitive)
+ Addedzrender@4.3.2(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@vue/compiler-sfc@2.7.16(transitive)
- Removedcsstype@3.1.3(transitive)
- Removednanoid@3.3.8(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.49(transitive)
- Removedprettier@2.8.8(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedvue@2.7.16(transitive)
Updatedvue@2.5.17