\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ra="[a-zA-Z_][\\w\\-\\.]*",ia="((?:"+ra+"\\:)?"+ra+")",aa=new RegExp("^<"+ia),oa=/^\s*(\/?)>/,sa=new RegExp("^<\\/"+ia+"[^>]*>"),ca=/^]+>/i,ua=/^/g,"$1").replace(//g,"$1")),ya(d,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-f.length,e=f,S(d,c-u,c)}else{var p=e.indexOf("<");if(0===p){if(ua.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v)),k(v+3);continue}}if(da.test(e)){var h=e.indexOf("]>");if(h>=0){k(h+2);continue}}var m=e.match(ca);if(m){k(m[0].length);continue}var g=e.match(sa);if(g){var y=c;k(g[0].length),S(g[1],y,c);continue}var b=x();if(b){T(b),ya(r,e)&&k(1);continue}}var w=void 0,C=void 0,_=void 0;if(p>=0){for(C=e.slice(p);!(sa.test(C)||aa.test(C)||ua.test(C)||da.test(C)||(_=C.indexOf("<",1))<0);)p+=_,C=e.slice(p);w=e.substring(0,p),k(p)}p<0&&(w=e,e=""),t.chars&&w&&t.chars(w)}if(e===n){t.chars&&t.chars(e);break}}function k(t){c+=t,e=e.substring(t)}function x(){var t=e.match(aa);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(k(t[0].length);!(n=e.match(oa))&&(r=e.match(na));)k(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],k(n[0].length),i.end=c,i}}function T(e){var n=e.tagName,c=e.unarySlash;a&&("p"===r&&ta(n)&&S(r),s(n)&&r===n&&S(n));for(var u,d,l,f=o(n)||!!c,p=e.attrs.length,v=new Array(p),h=0;h=0&&i[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var u=i.length-1;u>=o;u--)t.end&&t.end(i[u].tag,n,a);i.length=o,r=o&&i[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}S()}(e,{warn:ba,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,a,u){var d=r&&r.ns||Sa(e);W&&"svg"===d&&(a=function(e){for(var t=[],n=0;n-1"+("true"===p?":("+u+")":":_q("+u+","+p+")")),kr(c,"change","var $$a="+u+",$$el=$event.target,$$c=$$el.checked?("+p+"):("+v+");if(Array.isArray($$a)){var $$v="+(l?"_n("+f+")":f)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+u+"=$$a.concat([$$v]))}else{$$i>-1&&("+u+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Or(u,"$$c")+"}",null,!0);else if("input"===C&&"radio"===_)r=e,i=b,o=(a=w)&&a.number,s=xr(r,"value")||"null",wr(r,"checked","_q("+i+","+(s=o?"_n("+s+")":s)+")"),kr(r,"change",Or(i,s),null,!0);else if("input"===C||"textarea"===C)!function(e,t,n){var r=e.attrsMap.type,i=n||{},a=i.lazy,o=i.number,s=i.trim,c=!a&&"range"!==r,u=a?"change":"range"===r?Mr:"input",d="$event.target.value";s&&(d="$event.target.value.trim()"),o&&(d="_n("+d+")");var l=Or(t,d);c&&(l="if($event.target.composing)return;"+l),wr(e,"value","("+t+")"),kr(e,u,l,null,!0),(s||o)&&kr(e,"blur","$forceUpdate()")}(e,b,w);else if(!U.isReservedTag(C))return Sr(e,b,w),!1;return!0},text:function(e,t){t.value&&wr(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&wr(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:Yi,mustUseProp:Sn,canBeLeftOpenTag:ea,isReservedTag:Fn,getTagNamespace:Bn,staticKeys:(Ja=za,Ja.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(","))},Xa=w(function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function Za(e,t){e&&(qa=Xa(t.staticKeys||""),Ka=t.isReservedTag||R,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||h(e.tag)||!Ka(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(qa)))}(t);if(1===t.type){if(!Ka(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*\(/,Ya=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,eo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},to=function(e){return"if("+e+")return null;"},no={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:to("$event.target !== $event.currentTarget"),ctrl:to("!$event.ctrlKey"),shift:to("!$event.shiftKey"),alt:to("!$event.altKey"),meta:to("!$event.metaKey"),left:to("'button' in $event && $event.button !== 0"),middle:to("'button' in $event && $event.button !== 1"),right:to("'button' in $event && $event.button !== 2")};function ro(e,t,n){var r=t?"nativeOn:{":"on:{";for(var i in e)r+='"'+i+'":'+io(i,e[i])+",";return r.slice(0,-1)+"}"}function io(e,t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return io(e,t)}).join(",")+"]";var n=Ya.test(t.value),r=Qa.test(t.value);if(t.modifiers){var i="",a="",o=[];for(var s in t.modifiers)if(no[s])a+=no[s],eo[s]&&o.push(s);else if("exact"===s){var c=t.modifiers;a+=to(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else o.push(s);return o.length&&(i+="if(!('button' in $event)&&"+o.map(ao).join("&&")+")return null;"),a&&(i+=a),"function($event){"+i+(n?t.value+"($event)":r?"("+t.value+")($event)":t.value)+"}"}return n||r?t.value:"function($event){"+t.value+"}"}function ao(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=eo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key)"}var oo={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:$},so=function(e){this.options=e,this.warn=e.warn||yr,this.transforms=br(e.modules,"transformCode"),this.dataGenFns=br(e.modules,"genData"),this.directives=E(E({},oo),e.directives);var t=e.isReservedTag||R;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};function co(e,t){var n=new so(t);return{render:"with(this){return "+(e?uo(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function uo(e,t){if(e.staticRoot&&!e.staticProcessed)return lo(e,t);if(e.once&&!e.onceProcessed)return fo(e,t);if(e.for&&!e.forProcessed)return function(e,t,n,r){var i=e.for,a=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";0;return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+a+o+s+"){return "+(n||uo)(e,t)+"})"}(e,t);if(e.if&&!e.ifProcessed)return po(e,t);if("template"!==e.tag||e.slotTarget){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=mo(e,t),i="_t("+n+(r?","+r:""),a=e.attrs&&"{"+e.attrs.map(function(e){return _(e.name)+":"+e.value}).join(",")+"}",o=e.attrsMap["v-bind"];!a&&!o||r||(i+=",null");a&&(i+=","+a);o&&(i+=(a?"":",null")+","+o);return i+")"}(e,t);var n;if(e.component)o=e.component,c=t,u=(s=e).inlineTemplate?null:mo(s,c,!0),n="_c("+o+","+vo(s,c)+(u?","+u:"")+")";else{var r=e.plain?void 0:vo(e,t),i=e.inlineTemplate?null:mo(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var a=0;a':'',ko.innerHTML.indexOf("
")>0}var So=!!z&&To(!1),Oo=!!z&&To(!0),Eo=w(function(e){var t=Vn(e);return t&&t.innerHTML}),Po=pn.prototype.$mount;pn.prototype.$mount=function(e,t){if((e=e&&Vn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Eo(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=xo(r,{shouldDecodeNewlines:So,shouldDecodeNewlinesForHref:Oo,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return Po.call(this,e,t)},pn.compile=xo,t.a=pn}).call(t,n("O3Ux"))},OCi4:function(e,t,n){"use strict";var r=n("coO1").log,i=n("coO1").browserDetails,a={shimMediaStream:function(){window.MediaStream=window.MediaStream||window.webkitMediaStream},shimOnTrack:function(){"object"!=typeof window||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){var t=this;this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.addEventListener("addtrack",function(n){var r=new Event("track");r.track=n.track,r.receiver={track:n.track},r.streams=[e.stream],t.dispatchEvent(r)}),e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeof window&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this._srcObject},set:function(e){var t=this;this._srcObject=e,this.src&&URL.revokeObjectURL(this.src),e?(this.src=URL.createObjectURL(e),e.addEventListener("addtrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)}),e.addEventListener("removetrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)})):this.src=""}}))},shimPeerConnection:function(){window.RTCPeerConnection=function(e,t){r("PeerConnection"),e&&e.iceTransportPolicy&&(e.iceTransports=e.iceTransportPolicy);var n=new webkitRTCPeerConnection(e,t),i=n.getStats.bind(n);return n.getStats=function(e,t,n){var r=this,a=arguments;if(arguments.length>0&&"function"==typeof e)return i(e,t);var o=function(e){var t={};return e.result().forEach(function(e){var n={id:e.id,timestamp:e.timestamp,type:e.type};e.names().forEach(function(t){n[t]=e.stat(t)}),t[n.id]=n}),t},s=function(e,t){var n=new Map(Object.keys(e).map(function(t){return[t,e[t]]}));return t=t||e,Object.keys(t).forEach(function(e){n[e]=t[e]}),n};if(arguments.length>=2){return i.apply(this,[function(e){a[1](s(o(e)))},arguments[0]])}return new Promise(function(t,n){1===a.length&&"object"==typeof e?i.apply(r,[function(e){t(s(o(e)))},n]):i.apply(r,[function(e){t(s(o(e),e.result()))},n])}).then(t,n)},n},window.RTCPeerConnection.prototype=webkitRTCPeerConnection.prototype,webkitRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return webkitRTCPeerConnection.generateCertificate}}),["createOffer","createAnswer"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=this;if(arguments.length<1||1===arguments.length&&"object"==typeof arguments[0]){var n=1===arguments.length?arguments[0]:void 0;return new Promise(function(r,i){t.apply(e,[r,i,n])})}return t.apply(this,arguments)}}),i.version<51&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=arguments,n=this,r=new Promise(function(r,i){t.apply(n,[e[0],r,i])});return e.length<2?r:r.then(function(){e[1].apply(null,[])},function(t){e.length>=3&&e[2].apply(null,[t])})}}),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}});var e=RTCPeerConnection.prototype.addIceCandidate;RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?e.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}};e.exports={shimMediaStream:a.shimMediaStream,shimOnTrack:a.shimOnTrack,shimSourceObject:a.shimSourceObject,shimPeerConnection:a.shimPeerConnection,shimGetUserMedia:n("5Q8m")}},TF1p:function(e,t,n){"use strict";!function(){var t=n("coO1").log,r=n("coO1").browserDetails;e.exports.browserDetails=r,e.exports.extractVersion=n("coO1").extractVersion,e.exports.disableLog=n("coO1").disableLog;var i=n("OCi4")||null,a=n("AFoL")||null,o=n("qYjD")||null,s=n("kJru")||null;switch(r.browser){case"opera":case"chrome":if(!i||!i.shimPeerConnection)return void t("Chrome shim is not included in this adapter release.");t("adapter.js shimming chrome."),e.exports.browserShim=i,i.shimGetUserMedia(),i.shimMediaStream(),i.shimSourceObject(),i.shimPeerConnection(),i.shimOnTrack();break;case"firefox":if(!o||!o.shimPeerConnection)return void t("Firefox shim is not included in this adapter release.");t("adapter.js shimming firefox."),e.exports.browserShim=o,o.shimGetUserMedia(),o.shimSourceObject(),o.shimPeerConnection(),o.shimOnTrack();break;case"edge":if(!a||!a.shimPeerConnection)return void t("MS edge shim is not included in this adapter release.");t("adapter.js shimming edge."),e.exports.browserShim=a,a.shimGetUserMedia(),a.shimPeerConnection();break;case"safari":if(!s)return void t("Safari shim is not included in this adapter release.");t("adapter.js shimming safari."),e.exports.browserShim=s,s.shimGetUserMedia();break;default:t("Unsupported browser!")}}()},"c/QV":function(e,t,n){"use strict";e.exports=function(){var e=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(t){return e(t).catch(function(e){return Promise.reject({name:{PermissionDeniedError:"NotAllowedError"}[(t=e).name]||t.name,message:t.message,constraint:t.constraint,toString:function(){return this.name}});var t})}}},coO1:function(e,t,n){"use strict";var r=!0,i={disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(r=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},log:function(){if("object"==typeof window){if(r)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},extractVersion:function(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)},detectBrowser:function(){var e={};if(e.browser=null,e.version=null,"undefined"==typeof window||!window.navigator)return e.browser="Not a browser.",e;if(navigator.mozGetUserMedia)e.browser="firefox",e.version=this.extractVersion(navigator.userAgent,/Firefox\/([0-9]+)\./,1);else if(navigator.webkitGetUserMedia)if(window.webkitRTCPeerConnection)e.browser="chrome",e.version=this.extractVersion(navigator.userAgent,/Chrom(e|ium)\/([0-9]+)\./,2);else{if(!navigator.userAgent.match(/Version\/(\d+).(\d+)/))return e.browser="Unsupported webkit-based browser with GUM support but no WebRTC support.",e;e.browser="safari",e.version=this.extractVersion(navigator.userAgent,/AppleWebKit\/([0-9]+)\./,1)}else{if(!navigator.mediaDevices||!navigator.userAgent.match(/Edge\/(\d+).(\d+)$/))return e.browser="Not a supported browser.",e;e.browser="edge",e.version=this.extractVersion(navigator.userAgent,/Edge\/(\d+).(\d+)$/,2)}return e}};e.exports={log:i.log,disableLog:i.disableLog,browserDetails:i.detectBrowser(),extractVersion:i.extractVersion}},kJru:function(e,t,n){"use strict";var r={shimGetUserMedia:function(){navigator.getUserMedia=navigator.webkitGetUserMedia}};e.exports={shimGetUserMedia:r.shimGetUserMedia}},lFKW:function(e,t,n){n("TF1p");e.exports=function(e,t){var n,r="PermissionDeniedError",i="ConstraintNotSatisfiedError";return 2===arguments.length||(t=e,e={video:!0,audio:!0}),"undefined"!=typeof navigator&&navigator.getUserMedia?e.audio||e.video?void navigator.mediaDevices.getUserMedia(e).then(function(e){t(null,e)}).catch(function(e){var n;"string"==typeof e?(n=new Error("MediaStreamError")).name=e===r||"PERMISSION_DENIED"===e?r:i:(n=e).name||(n[r]?e.name=r:e.name=i),t(n)}):((n=new Error("MediaStreamError")).name="NoMediaRequestedError",setTimeout(function(){t(n)},0)):((n=new Error("MediaStreamError")).name="NotSupportedError",setTimeout(function(){t(n)},0))}},ngHh:function(e,t){e.exports=function(e,t,n,r,i,a){var o,s=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(o=e,s=e.default);var u,d="function"==typeof s?s.options:s;if(t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),n&&(d.functional=!0),i&&(d._scopeId=i),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):r&&(u=r),u){var l=d.functional,f=l?d.render:d.beforeCreate;l?(d._injectStyles=u,d.render=function(e,t){return u.call(t),f(e,t)}):d.beforeCreate=f?[].concat(f,u):[u]}return{esModule:o,exports:s,options:d}}},qYjD:function(e,t,n){"use strict";var r=n("coO1").browserDetails,i={shimOnTrack:function(){"object"!=typeof window||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeof window&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(){if("object"==typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection)){window.RTCPeerConnection||(window.RTCPeerConnection=function(e,t){if(r.version<38&&e&&e.iceServers){for(var n=[],i=0;i
2 |
3 |
4 |
5 |
6 | vue-camera
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-camera",
3 | "version": "1.0.2",
4 | "description": "vue-camera,一个自己写的vue插件,getusermedia调用摄像头拍照与生成canvas",
5 | "author": "pollux2015",
6 | "main": "src/index.js",
7 | "licence": "ISC",
8 | "scripts": {
9 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
10 | "start": "npm run dev",
11 | "build": "node build/build.js"
12 | },
13 | "dependencies": {
14 | "vue": "^2.5.2",
15 | "getusermedia": "^2.0.1"
16 | },
17 | "devDependencies": {
18 | "autoprefixer": "^7.1.2",
19 | "babel-core": "^6.22.1",
20 | "babel-helper-vue-jsx-merge-props": "^2.0.3",
21 | "babel-loader": "^7.1.1",
22 | "babel-plugin-syntax-jsx": "^6.18.0",
23 | "babel-plugin-transform-runtime": "^6.22.0",
24 | "babel-plugin-transform-vue-jsx": "^3.5.0",
25 | "babel-preset-env": "^1.3.2",
26 | "babel-preset-stage-2": "^6.22.0",
27 | "chalk": "^2.0.1",
28 | "copy-webpack-plugin": "^4.0.1",
29 | "css-loader": "^0.28.0",
30 | "extract-text-webpack-plugin": "^3.0.0",
31 | "file-loader": "^1.1.4",
32 | "friendly-errors-webpack-plugin": "^1.6.1",
33 | "html-webpack-plugin": "^2.30.1",
34 | "node-notifier": "^5.1.2",
35 | "optimize-css-assets-webpack-plugin": "^3.2.0",
36 | "ora": "^1.2.0",
37 | "portfinder": "^1.0.13",
38 | "postcss-import": "^11.0.0",
39 | "postcss-loader": "^2.0.8",
40 | "postcss-url": "^7.2.1",
41 | "rimraf": "^2.6.0",
42 | "semver": "^5.3.0",
43 | "shelljs": "^0.7.6",
44 | "uglifyjs-webpack-plugin": "^1.1.1",
45 | "url-loader": "^0.5.8",
46 | "vue-loader": "^13.3.0",
47 | "vue-style-loader": "^3.0.1",
48 | "vue-template-compiler": "^2.5.2",
49 | "webpack": "^3.6.0",
50 | "webpack-bundle-analyzer": "^2.9.0",
51 | "webpack-dev-server": "^2.9.1",
52 | "webpack-merge": "^4.1.0"
53 | },
54 | "engines": {
55 | "node": ">= 6.0.0",
56 | "npm": ">= 3.0.0"
57 | },
58 | "browserslist": [
59 | "> 1%",
60 | "last 2 versions",
61 | "not ie <= 8"
62 | ]
63 | }
64 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import vueCamera from './vue-camera.vue';
2 | export default vueCamera;
--------------------------------------------------------------------------------
/src/vue-camera.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{msg}}
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
![]()
21 |
22 |
23 |
24 |
25 |
26 |
121 |
122 |
243 |
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pollux2015/vue-camera/2a1d04f46777bea6538ae5af5fd8f5e110bf4204/static/.gitkeep
--------------------------------------------------------------------------------