router-link-helper
Advanced tools
Comparing version 0.3.1 to 0.3.5
@@ -1,2 +0,2 @@ | ||
module.exports=function(i){function e(o){if(s[o])return s[o].exports;var r=s[o]={i:o,l:!1,exports:{}};return i[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var s={};return e.m=i,e.c=s,e.i=function(i){return i},e.d=function(i,s,o){e.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:o})},e.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(s,"a",s),s},e.o=function(i,e){return Object.prototype.hasOwnProperty.call(i,e)},e.p="",e(e.s=1)}([function(i,e,s){var o,r,n;!function(t,a){r=[i,e,s(2)],o=a,void 0!==(n="function"==typeof o?o.apply(e,r):o)&&(i.exports=n)}(0,function(i,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(i){return i&&i.__esModule?i:{default:i}}(s);e.default={name:"router-link-helper",props:["_blank"],functional:!0,render:function(i,e){var s=e.data,r=e.children,n=e.props;if("undefined"!=typeof window&&n._blank){var t=(0,o.default)(navigator.userAgent).device.type;t||(t="desktop"),function(i,e){return e.find(function(e){return e===i})}(t,n._blank)&&(s.attrs.target="_blank")}return i("router-link",s,r)}},i.exports=e.default})},function(i,e,s){var o,r,n;!function(t,a){r=[i,e,s(0)],o=a,void 0!==(n="function"==typeof o?o.apply(e,r):o)&&(i.exports=n)}(0,function(i,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(i){return i&&i.__esModule?i:{default:i}}(s),r={install:function(i,e){i.component(o.default.name,o.default)}};console.log(r),e.default=r,i.exports=e.default})},function(i,e,s){var o;!function(r,n){"use strict";var t="model",a="name",l="type",w="vendor",d="version",u="mobile",c="tablet",p={extend:function(i,e){var s={};for(var o in i)e[o]&&e[o].length%2==0?s[o]=e[o].concat(i[o]):s[o]=i[o];return s},has:function(i,e){return"string"==typeof i&&e.toLowerCase().indexOf(i.toLowerCase())!==-1},lowerize:function(i){return i.toLowerCase()},major:function(i){return"string"==typeof i?i.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m={rgx:function(){for(var i,e,s,o,r,n,t,a=0,l=arguments;a<l.length&&!n;){var w=l[a],d=l[a+1];if(void 0===i){i={};for(o in d)d.hasOwnProperty(o)&&(r=d[o],"object"==typeof r?i[r[0]]=void 0:i[r]=void 0)}for(e=s=0;e<w.length&&!n;)if(n=w[e++].exec(this.getUA()))for(o=0;o<d.length;o++)t=n[++s],r=d[o],"object"==typeof r&&r.length>0?2==r.length?"function"==typeof r[1]?i[r[0]]=r[1].call(this,t):i[r[0]]=r[1]:3==r.length?"function"!=typeof r[1]||r[1].exec&&r[1].test?i[r[0]]=t?t.replace(r[1],r[2]):void 0:i[r[0]]=t?r[1].call(this,t,r[2]):void 0:4==r.length&&(i[r[0]]=t?r[3].call(this,t.replace(r[1],r[2])):void 0):i[r]=t?t:void 0;a+=2}return i},str:function(i,e){for(var s in e)if("object"==typeof e[s]&&e[s].length>0){for(var o=0;o<e[s].length;o++)if(p.has(e[s][o],i))return"?"===s?void 0:s}else if(p.has(e[s],i))return"?"===s?void 0:s;return i}},f={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},b={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[a,d],[/(opios)[\/\s]+([\w\.]+)/i],[[a,"Opera Mini"],d],[/\s(opr)\/([\w\.]+)/i],[[a,"Opera"],d],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs)\/([\w\.-]+)/i],[a,d],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[a,"IE"],d],[/(edge)\/((\d+)?[\w\.]+)/i],[a,d],[/(yabrowser)\/([\w\.]+)/i],[[a,"Yandex"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],d],[/(micromessenger)\/([\w\.]+)/i],[[a,"WeChat"],d],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[d,[a,"MIUI Browser"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[a,/(.+)/,"$1 WebView"],d],[/android.+samsungbrowser\/([\w\.]+)/i,/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[d,[a,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(qqbrowser)[\/\s]?([\w\.]+)/i],[a,d],[/(uc\s?browser)[\/\s]?([\w\.]+)/i,/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i,/juc.+(ucweb)[\/\s]?([\w\.]+)/i],[[a,"UCBrowser"],d],[/(dolfin)\/([\w\.]+)/i],[[a,"Dolphin"],d],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[a,"Chrome"],d],[/;fbav\/([\w\.]+);/i],[d,[a,"Facebook"]],[/fxios\/([\w\.-]+)/i],[d,[a,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[d,[a,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[d,a],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[a,[d,m.str,f.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[a,d],[/(navigator|netscape)\/([\w\.-]+)/i],[[a,"Netscape"],d],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[a,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",p.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[t,w,[l,c]],[/applecoremedia\/[\w\.]+ \((ipad)/],[t,[w,"Apple"],[l,c]],[/(apple\s{0,1}tv)/i],[[t,"Apple TV"],[w,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[w,t,[l,c]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[t,[w,"Amazon"],[l,c]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[t,m.str,f.device.amazon.model],[w,"Amazon"],[l,u]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[t,w,[l,u]],[/\((ip[honed|\s\w*]+);/i],[t,[w,"Apple"],[l,u]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[w,t,[l,u]],[/\(bb10;\s(\w+)/i],[t,[w,"BlackBerry"],[l,u]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[t,[w,"Asus"],[l,c]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[w,"Sony"],[t,"Xperia Tablet"],[l,c]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[w,"Sony"],[t,"Xperia Phone"],[l,u]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[w,t,[l,"console"]],[/android.+;\s(shield)\sbuild/i],[t,[w,"Nvidia"],[l,"console"]],[/(playstation\s[34portablevi]+)/i],[t,[w,"Sony"],[l,"console"]],[/(sprint\s(\w+))/i],[[w,m.str,f.device.sprint.vendor],[t,m.str,f.device.sprint.model],[l,u]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[w,t,[l,c]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[w,[t,/_/g," "],[l,u]],[/(nexus\s9)/i],[t,[w,"HTC"],[l,c]],[/(nexus\s6p)/i],[t,[w,"Huawei"],[l,u]],[/(microsoft);\s(lumia[\s\w]+)/i],[w,t,[l,u]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[t,[w,"Microsoft"],[l,"console"]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[w,"Microsoft"],[l,u]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[t,[w,"Motorola"],[l,u]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[t,[w,"Motorola"],[l,c]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[w,p.trim],[t,p.trim],[l,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[t,/^/,"SmartTV"],[w,"Samsung"],[l,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[t,[w,"Sharp"],[l,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[w,"Samsung"],t,[l,c]],[/smart-tv.+(samsung)/i],[w,[l,"smarttv"],t],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[w,"Samsung"],t,[l,u]],[/sie-(\w+)*/i],[t,[w,"Siemens"],[l,u]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[w,"Nokia"],t,[l,u]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[t,[w,"Acer"],[l,c]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[w,"LG"],t,[l,c]],[/(lg) netcast\.tv/i],[w,t,[l,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[t,[w,"LG"],[l,u]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[t,[w,"Lenovo"],[l,c]],[/linux;.+((jolla));/i],[w,t,[l,u]],[/((pebble))app\/[\d\.]+\s/i],[w,t,[l,"wearable"]],[/android.+;\s(glass)\s\d/i],[t,[w,"Google"],[l,"wearable"]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[[t,/_/g," "],[w,"Xiaomi"],[l,u]],[/android.+a000(1)\s+build/i],[t,[w,"OnePlus"],[l,u]],[/\s(tablet)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,p.lowerize],w,t]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[d,[a,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[a,d],[/rv\:([\w\.]+).*(gecko)/i],[d,a]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[a,d],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[a,[d,m.str,f.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[a,"Windows"],[d,m.str,f.os.windows.version]],[/\((bb)(10);/i],[[a,"BlackBerry"],d],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[a,d],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[a,"Symbian"],d],[/\((series40);/i],[a],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[a,"Firefox OS"],d],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[a,d],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[a,"Chromium OS"],d],[/(sunos)\s?([\w\.]+\d)*/i],[[a,"Solaris"],d],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[a,d],[/(haiku)\s(\w+)/i],[a,d],[/(ip[honead]+)(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[[a,"iOS"],[d,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[a,"Mac OS"],[d,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[a,d]]},v=function(i,e){if(!(this instanceof v))return new v(i,e).getResult();var s=i||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),o=e?p.extend(b,e):b;return this.getBrowser=function(){var i=m.rgx.apply(this,o.browser);return i.major=p.major(i.version),i},this.getCPU=function(){return m.rgx.apply(this,o.cpu)},this.getDevice=function(){return m.rgx.apply(this,o.device)},this.getEngine=function(){return m.rgx.apply(this,o.engine)},this.getOS=function(){return m.rgx.apply(this,o.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return s},this.setUA=function(i){return s=i,this},this};v.VERSION="0.7.12",v.BROWSER={NAME:a,MAJOR:"major",VERSION:d},v.CPU={ARCHITECTURE:"architecture"},v.DEVICE={MODEL:t,VENDOR:w,TYPE:l,CONSOLE:"console",MOBILE:u,SMARTTV:"smarttv",TABLET:c,WEARABLE:"wearable",EMBEDDED:"embedded"},v.ENGINE={NAME:a,VERSION:d},v.OS={NAME:a,VERSION:d},void 0!==e?(void 0!==i&&i.exports&&(e=i.exports=v),e.UAParser=v):s(3)?void 0!==(o=function(){return v}.call(e,s,e,i))&&(i.exports=o):r.UAParser=v;var h=r.jQuery||r.Zepto;if(void 0!==h){var g=new v;h.ua=g.getResult(),h.ua.get=function(){return g.getUA()},h.ua.set=function(i){g.setUA(i);var e=g.getResult();for(var s in e)h.ua[s]=e[s]}}}("object"==typeof window?window:this)},function(i,e){(function(e){i.exports=e}).call(e,{})}]); | ||
module.exports=function(i){function e(o){if(s[o])return s[o].exports;var r=s[o]={i:o,l:!1,exports:{}};return i[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var s={};return e.m=i,e.c=s,e.i=function(i){return i},e.d=function(i,s,o){e.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:o})},e.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(s,"a",s),s},e.o=function(i,e){return Object.prototype.hasOwnProperty.call(i,e)},e.p="",e(e.s=1)}([function(i,e,s){var o,r,n;!function(t,a){r=[i,e,s(2)],o=a,void 0!==(n="function"==typeof o?o.apply(e,r):o)&&(i.exports=n)}(0,function(i,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(i){return i&&i.__esModule?i:{default:i}}(s);e.default={name:"router-link-helper",props:["_blank"],functional:!0,render:function(i,e){var s=e.data,r=e.children,n=e.props;if("undefined"!=typeof window&&n._blank){var t=(0,o.default)(navigator.userAgent).device.type;t||(t="desktop"),function(i,e){return e.find(function(e){return e===i})}(t,n._blank)&&(s.attrs.target="_blank")}return i("router-link",s,r)}},i.exports=e.default})},function(i,e,s){var o,r,n;!function(t,a){r=[i,e,s(0)],o=a,void 0!==(n="function"==typeof o?o.apply(e,r):o)&&(i.exports=n)}(0,function(i,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(i){return i&&i.__esModule?i:{default:i}}(s),r={install:function(i,e){var s=e.name||o.default.name;i.component(s,o.default)}};e.default=r,i.exports=e.default})},function(i,e,s){var o;!function(r,n){"use strict";var t="model",a="name",l="type",w="vendor",d="version",u="mobile",c="tablet",p={extend:function(i,e){var s={};for(var o in i)e[o]&&e[o].length%2==0?s[o]=e[o].concat(i[o]):s[o]=i[o];return s},has:function(i,e){return"string"==typeof i&&e.toLowerCase().indexOf(i.toLowerCase())!==-1},lowerize:function(i){return i.toLowerCase()},major:function(i){return"string"==typeof i?i.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m={rgx:function(){for(var i,e,s,o,r,n,t,a=0,l=arguments;a<l.length&&!n;){var w=l[a],d=l[a+1];if(void 0===i){i={};for(o in d)d.hasOwnProperty(o)&&(r=d[o],"object"==typeof r?i[r[0]]=void 0:i[r]=void 0)}for(e=s=0;e<w.length&&!n;)if(n=w[e++].exec(this.getUA()))for(o=0;o<d.length;o++)t=n[++s],r=d[o],"object"==typeof r&&r.length>0?2==r.length?"function"==typeof r[1]?i[r[0]]=r[1].call(this,t):i[r[0]]=r[1]:3==r.length?"function"!=typeof r[1]||r[1].exec&&r[1].test?i[r[0]]=t?t.replace(r[1],r[2]):void 0:i[r[0]]=t?r[1].call(this,t,r[2]):void 0:4==r.length&&(i[r[0]]=t?r[3].call(this,t.replace(r[1],r[2])):void 0):i[r]=t?t:void 0;a+=2}return i},str:function(i,e){for(var s in e)if("object"==typeof e[s]&&e[s].length>0){for(var o=0;o<e[s].length;o++)if(p.has(e[s][o],i))return"?"===s?void 0:s}else if(p.has(e[s],i))return"?"===s?void 0:s;return i}},f={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},b={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[a,d],[/(opios)[\/\s]+([\w\.]+)/i],[[a,"Opera Mini"],d],[/\s(opr)\/([\w\.]+)/i],[[a,"Opera"],d],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs)\/([\w\.-]+)/i],[a,d],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[a,"IE"],d],[/(edge)\/((\d+)?[\w\.]+)/i],[a,d],[/(yabrowser)\/([\w\.]+)/i],[[a,"Yandex"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],d],[/(micromessenger)\/([\w\.]+)/i],[[a,"WeChat"],d],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[d,[a,"MIUI Browser"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[a,/(.+)/,"$1 WebView"],d],[/android.+samsungbrowser\/([\w\.]+)/i,/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[d,[a,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(qqbrowser)[\/\s]?([\w\.]+)/i],[a,d],[/(uc\s?browser)[\/\s]?([\w\.]+)/i,/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i,/juc.+(ucweb)[\/\s]?([\w\.]+)/i],[[a,"UCBrowser"],d],[/(dolfin)\/([\w\.]+)/i],[[a,"Dolphin"],d],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[a,"Chrome"],d],[/;fbav\/([\w\.]+);/i],[d,[a,"Facebook"]],[/fxios\/([\w\.-]+)/i],[d,[a,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[d,[a,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[d,a],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[a,[d,m.str,f.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[a,d],[/(navigator|netscape)\/([\w\.-]+)/i],[[a,"Netscape"],d],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[a,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",p.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[t,w,[l,c]],[/applecoremedia\/[\w\.]+ \((ipad)/],[t,[w,"Apple"],[l,c]],[/(apple\s{0,1}tv)/i],[[t,"Apple TV"],[w,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[w,t,[l,c]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[t,[w,"Amazon"],[l,c]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[t,m.str,f.device.amazon.model],[w,"Amazon"],[l,u]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[t,w,[l,u]],[/\((ip[honed|\s\w*]+);/i],[t,[w,"Apple"],[l,u]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[w,t,[l,u]],[/\(bb10;\s(\w+)/i],[t,[w,"BlackBerry"],[l,u]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[t,[w,"Asus"],[l,c]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[w,"Sony"],[t,"Xperia Tablet"],[l,c]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[w,"Sony"],[t,"Xperia Phone"],[l,u]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[w,t,[l,"console"]],[/android.+;\s(shield)\sbuild/i],[t,[w,"Nvidia"],[l,"console"]],[/(playstation\s[34portablevi]+)/i],[t,[w,"Sony"],[l,"console"]],[/(sprint\s(\w+))/i],[[w,m.str,f.device.sprint.vendor],[t,m.str,f.device.sprint.model],[l,u]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[w,t,[l,c]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[w,[t,/_/g," "],[l,u]],[/(nexus\s9)/i],[t,[w,"HTC"],[l,c]],[/(nexus\s6p)/i],[t,[w,"Huawei"],[l,u]],[/(microsoft);\s(lumia[\s\w]+)/i],[w,t,[l,u]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[t,[w,"Microsoft"],[l,"console"]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[w,"Microsoft"],[l,u]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[t,[w,"Motorola"],[l,u]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[t,[w,"Motorola"],[l,c]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[w,p.trim],[t,p.trim],[l,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[t,/^/,"SmartTV"],[w,"Samsung"],[l,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[t,[w,"Sharp"],[l,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[w,"Samsung"],t,[l,c]],[/smart-tv.+(samsung)/i],[w,[l,"smarttv"],t],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[w,"Samsung"],t,[l,u]],[/sie-(\w+)*/i],[t,[w,"Siemens"],[l,u]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[w,"Nokia"],t,[l,u]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[t,[w,"Acer"],[l,c]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[w,"LG"],t,[l,c]],[/(lg) netcast\.tv/i],[w,t,[l,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[t,[w,"LG"],[l,u]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[t,[w,"Lenovo"],[l,c]],[/linux;.+((jolla));/i],[w,t,[l,u]],[/((pebble))app\/[\d\.]+\s/i],[w,t,[l,"wearable"]],[/android.+;\s(glass)\s\d/i],[t,[w,"Google"],[l,"wearable"]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[[t,/_/g," "],[w,"Xiaomi"],[l,u]],[/android.+a000(1)\s+build/i],[t,[w,"OnePlus"],[l,u]],[/\s(tablet)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,p.lowerize],w,t]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[d,[a,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[a,d],[/rv\:([\w\.]+).*(gecko)/i],[d,a]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[a,d],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[a,[d,m.str,f.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[a,"Windows"],[d,m.str,f.os.windows.version]],[/\((bb)(10);/i],[[a,"BlackBerry"],d],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[a,d],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[a,"Symbian"],d],[/\((series40);/i],[a],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[a,"Firefox OS"],d],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[a,d],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[a,"Chromium OS"],d],[/(sunos)\s?([\w\.]+\d)*/i],[[a,"Solaris"],d],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[a,d],[/(haiku)\s(\w+)/i],[a,d],[/(ip[honead]+)(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[[a,"iOS"],[d,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[a,"Mac OS"],[d,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[a,d]]},v=function(i,e){if(!(this instanceof v))return new v(i,e).getResult();var s=i||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),o=e?p.extend(b,e):b;return this.getBrowser=function(){var i=m.rgx.apply(this,o.browser);return i.major=p.major(i.version),i},this.getCPU=function(){return m.rgx.apply(this,o.cpu)},this.getDevice=function(){return m.rgx.apply(this,o.device)},this.getEngine=function(){return m.rgx.apply(this,o.engine)},this.getOS=function(){return m.rgx.apply(this,o.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return s},this.setUA=function(i){return s=i,this},this};v.VERSION="0.7.12",v.BROWSER={NAME:a,MAJOR:"major",VERSION:d},v.CPU={ARCHITECTURE:"architecture"},v.DEVICE={MODEL:t,VENDOR:w,TYPE:l,CONSOLE:"console",MOBILE:u,SMARTTV:"smarttv",TABLET:c,WEARABLE:"wearable",EMBEDDED:"embedded"},v.ENGINE={NAME:a,VERSION:d},v.OS={NAME:a,VERSION:d},void 0!==e?(void 0!==i&&i.exports&&(e=i.exports=v),e.UAParser=v):s(3)?void 0!==(o=function(){return v}.call(e,s,e,i))&&(i.exports=o):r.UAParser=v;var h=r.jQuery||r.Zepto;if(void 0!==h){var g=new v;h.ua=g.getResult(),h.ua.get=function(){return g.getUA()},h.ua.set=function(i){g.setUA(i);var e=g.getResult();for(var s in e)h.ua[s]=e[s]}}}("object"==typeof window?window:this)},function(i,e){(function(e){i.exports=e}).call(e,{})}]); | ||
//# sourceMappingURL=router-link-helper.min.js.map |
{ | ||
"name": "router-link-helper", | ||
"version": "0.3.1", | ||
"version": "0.3.5", | ||
"description": "vue router-link helper", | ||
@@ -5,0 +5,0 @@ "main": "dist/router-link-helper.min.js", |
@@ -5,8 +5,7 @@ import helper from './main'; | ||
install(Vue, options) { | ||
Vue.component(helper.name, helper) | ||
let name = options.name || helper.name | ||
Vue.component(name, helper) | ||
} | ||
}; | ||
console.log(RouterLinkHelper) | ||
export default RouterLinkHelper; |
@@ -7,8 +7,8 @@ import Vue from 'vue' | ||
test('that is render a component', t =>{ | ||
test('register a component', t =>{ | ||
Vue.use(install) | ||
Vue.use(install,{name:"hello"}) | ||
t.is(Vue.options.components['router-link-helper'].cid, 1) | ||
t.is(Vue.options.components['hello'].cid, 1) | ||
}) |
const webpack = require('webpack') | ||
const path = require('path') | ||
const production = (process.env.NODE_ENV === 'production') | ||
process.noDeprecation = true | ||
@@ -5,0 +6,0 @@ module.exports = { |
Sorry, the diff of this file is not supported yet
265097
144