├── shots ├── CORE-IMAGE-UPLOAD-LOGO.png └── vuedba0ed377b88fc84d51026310efcb255b.png ├── .gitignore ├── README.md ├── index.js ├── webpack.config.js └── package.json /shots/CORE-IMAGE-UPLOAD-LOGO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JackPu/vue2.x-core-image-upload/HEAD/shots/CORE-IMAGE-UPLOAD-LOGO.png -------------------------------------------------------------------------------- /shots/vuedba0ed377b88fc84d51026310efcb255b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JackPu/vue2.x-core-image-upload/HEAD/shots/vuedba0ed377b88fc84d51026310efcb255b.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # node.js 26 | # 27 | node_modules/ 28 | npm-debug.log 29 | 30 | .idea -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Vue-Core-Image-Upload 2 | 3 | 4 | 5 | This project has been merged to the [project](https://github.com/Vanthink-UED/vue-core-image-upload) 6 | 7 | Please go [vue-core-image-upload](https://github.com/Vanthink-UED/vue-core-image-upload) to get how it works. 8 | 9 | *It just gets a better name and all api keep consistent.* 10 | 11 | Thanks for your support. All issues have been moved [here](https://github.com/Vanthink-UED/vue-core-image-upload/issues). 12 | 13 | 14 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.VueCoreImageUpload=o():e.VueCoreImageUpload=o()}(this,function(){return function(e){function o(n){if(t[n])return t[n].exports;var r=t[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}var t={};return o.m=e,o.c=t,o.p="",o(0)}([function(e,o){"use strict";console.log("%c⚠️","font-size:2.4em;"),console.warn('Please use "npm install vue-core-image-upload --save". vue2.x has been merged to https://github.com/Vanthink-UED/vue-core-image-upload.'),console.log("%c It just gets a better name and all api keep consistent.","font-style:italic"),e.exports={}}])}); -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require( 'webpack' ) 2 | 3 | module.exports = { 4 | entry: './src/index', 5 | output: { 6 | path: './', 7 | filename: 'index.js', 8 | library: 'VueCoreImageUpload', 9 | libraryTarget: 'umd', 10 | }, 11 | resolve: { 12 | extensions: [ '', '.js', '.vue' ] 13 | }, 14 | module: { 15 | loaders: [ 16 | { 17 | test: /\.js$/, 18 | loader: 'babel', 19 | include: __dirname, 20 | exclude: /node_modules/ 21 | }, 22 | { 23 | test: /\.vue$/, 24 | loader: 'vue' 25 | }, 26 | { 27 | test: /\.css$/, 28 | loader: 'style!css' 29 | } 30 | ] 31 | }, 32 | babel: { 33 | presets: ['es2015', 'stage-2'], 34 | plugins: ['transform-runtime'] 35 | }, 36 | plugins: [ 37 | new webpack.optimize.UglifyJsPlugin( { 38 | minimize : true, 39 | sourceMap : false, 40 | mangle: true, 41 | compress: { 42 | warnings: false 43 | } 44 | } ) 45 | ] 46 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue2.x-core-image-upload", 3 | "version": "0.9.3", 4 | "description": "a vue plgin for image upload and crop", 5 | "main": "index.js", 6 | "dependencies": { 7 | "vue": "^2.0.5" 8 | }, 9 | "devDependencies": { 10 | "babel": "^6.5.2", 11 | "babel-core": "^6.14.0", 12 | "babel-loader": "^6.2.5", 13 | "babel-plugin-transform-runtime": "^6.15.0", 14 | "babel-preset-es2015": "^6.14.0", 15 | "babel-preset-stage-2": "^6.13.0", 16 | "babel-runtime": "^6.11.6", 17 | "css-loader": "^0.25.0", 18 | "style-loader": "^0.13.1", 19 | "vue-html-loader": "^1.2.3", 20 | "vue-loader": "^8.5.4", 21 | "vue-style-loader": "^1.0.0", 22 | "webpack": "^1.13.2" 23 | }, 24 | "scripts": { 25 | "test": "npm run test", 26 | "build": "rm -f ./index.js && webpack --config ./webpack.config.js", 27 | "demo": "webpack --config ./webpack.config.demo.js" 28 | }, 29 | "repository": { 30 | "type": "git", 31 | "url": "git+https://github.com/Vanthink-UED/vue.core.image.upload.git" 32 | }, 33 | "keywords": [ 34 | "vue", 35 | "plugin", 36 | "upload", 37 | "image", 38 | "crop", 39 | "image" 40 | ], 41 | "author": "JackPu", 42 | "license": "ISC", 43 | "bugs": { 44 | "url": "https://github.com/Vanthink-UED/vue.core.image.upload/issues" 45 | }, 46 | "homepage": "https://github.com/Vanthink-UED/vue.core.image.upload#readme" 47 | } 48 | --------------------------------------------------------------------------------