Socket
Socket
Sign inDemoInstall

vue-marquee-bar

Package Overview
Dependencies
12
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

dist/css/main.cde8d467.css

2

dist/vue-marquee-bar.js

@@ -1,2 +0,2 @@

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define("vue-marquee-bar",[],t):"object"===typeof exports?exports["vue-marquee-bar"]=t():e["vue-marquee-bar"]=t()})(window,(function(){return function(e){function t(t){for(var r,a,i=t[0],c=t[1],s=t[2],d=0,l=[];d<i.length;d++)a=i[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&l.push(o[a][0]),o[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);f&&f(t);while(l.length)l.shift()();return u.push.apply(u,s||[]),n()}function n(){for(var e,t=0;t<u.length;t++){for(var n=u[t],r=!0,a=1;a<n.length;a++){var i=n[a];0!==o[i]&&(r=!1)}r&&(u.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},a={main:0},o={main:0},u=[];function i(e){return c.p+"js/"+({}[e]||e)+"."+{"chunk-069cb4a2":"db7070dd"}[e]+".js"}function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={"chunk-069cb4a2":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({}[e]||e)+"."+{"chunk-069cb4a2":"63e2b951"}[e]+".css",o=c.p+r,u=document.getElementsByTagName("link"),i=0;i<u.length;i++){var s=u[i],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===o))return t()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){s=l[i],d=s.getAttribute("data-href");if(d===r||d===o)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var r=t&&t.target&&t.target.src||o,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=r,delete a[e],f.parentNode.removeChild(f),n(u)},f.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){a[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var u=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=u);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,c.nc&&d.setAttribute("nonce",c.nc),d.src=i(e);var l=new Error;s=function(t){d.onerror=d.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}o[e]=void 0}};var f=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}return Promise.all(t)},c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="",c.oe=function(e){throw console.error(e),e};var s=window["webpackJsonpvue_marquee_bar"]=window["webpackJsonpvue_marquee_bar"]||[],d=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var f=d;return u.push(["56d7","chunk-vendors"]),n()}({3755:function(e,t,n){"use strict";n("57e9")},"50dc":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"marquee-container",style:e.barStyle},[n("div",{class:"thanks-bar-"+e.uuid,on:{mouseenter:e.pausePlay,mouseleave:e.continuePlay}},e._l(e.content,(function(t,r){return n("div",{key:r,class:"thank-item-"+e.uuid},[e._t("content",null,{data:t})],2)})),0),n("div",{staticClass:"prefix"},[e._t("prefix")],2),n("div",{staticClass:"suffix"},[e._t("suffix")],2)])},a=[],o=(n("a9e3"),n("a15b"),n("159b"),n("99af"),{name:"VueMarqueeBar",data:function(){return{uuid:""}},props:{width:{default:"100%",type:String},speed:{default:1500,type:Number},background:{default:"#f8f9fa",type:String},boxShadow:{default:"none",type:String},color:{default:"#212529",type:String},content:{default:function(){return[]},type:Array},hoverPause:{default:!0,type:Boolean}},methods:{continuePlay:function(){this.hoverPause&&(document.querySelector(".thanks-bar-".concat(this.uuid)).style.animationPlayState="running")},pausePlay:function(){this.hoverPause&&(document.querySelector(".thanks-bar-".concat(this.uuid)).style.animationPlayState="paused")},generateUuid:function(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",this.uuid=e.join("")}},computed:{barStyle:function(){return{width:this.width,color:this.color,background:this.background,boxShadow:this.boxShadow}}},watch:{content:{handler:function(){var e=this;this.generateUuid(),setTimeout((function(){var t=document.querySelectorAll(".thank-item-".concat(e.uuid)),n=0;t.forEach((function(e){n+=e.clientWidth+32}));var r="\n @keyframes marquee-".concat(e.uuid," {\n 0% {\n transform: translate3d(").concat(e.width,", 0, 0);\n }\n 100% {\n transform: translate3d(").concat(-1*(window.screen.availWidth+n),"px, 0, 0);\n }\n }\n\n .marquee-").concat(e.uuid," {\n animation: marquee-").concat(e.uuid," ").concat((n+window.screen.availWidth)/e.speed*5,"s infinite linear;\n }\n "),a=document.createElement("style");a.type="text/css",a.innerHTML=r,document.getElementsByTagName("head")[0].appendChild(a),document.querySelector(".thanks-bar-".concat(e.uuid)).classList.add("marquee-".concat(e.uuid))}),200)},immediate:!0,deep:!0}}}),u=o,i=(n("3755"),n("2877")),c=Object(i["a"])(u,r,a,!1,null,"4682dcb2",null);t["a"]=c.exports},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("2b0e"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"hello"},[n("router-view")],1)},o=[],u={},i=u,c=(n("8ba3"),n("2877")),s=Object(c["a"])(i,a,o,!1,null,"ad2fadb2",null),d=s.exports,l=(n("d3b7"),n("3ca3"),n("ddb0"),n("8c4f")),f=function(){return n.e("chunk-069cb4a2").then(n.bind(null,"934e"))};r["a"].use(l["a"]);var p=[{path:"/",redirect:"/index"},{path:"/index",component:f}],h=new l["a"]({routes:p}),m=(n("b0c0"),n("50dc"));m["a"].install=function(e){e||(window.Vue=e=r["a"]),e.component(m["a"].name,m["a"])};m["a"];r["a"].config.productionTip=!1,new r["a"]({render:function(e){return e(d)},router:h}).$mount("#app")},"57e9":function(e,t,n){},"8ba3":function(e,t,n){"use strict";n("df8d")},df8d:function(e,t,n){}})}));
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define("vue-marquee-bar",[],t):"object"===typeof exports?exports["vue-marquee-bar"]=t():e["vue-marquee-bar"]=t()})(window,(function(){return function(e){function t(t){for(var r,u,i=t[0],c=t[1],s=t[2],d=0,f=[];d<i.length;d++)u=i[d],Object.prototype.hasOwnProperty.call(a,u)&&a[u]&&f.push(a[u][0]),a[u]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);l&&l(t);while(f.length)f.shift()();return o.push.apply(o,s||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,i=1;i<n.length;i++){var c=n[i];0!==a[c]&&(r=!1)}r&&(o.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={main:0},o=[];function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="";var i=window["webpackJsonpvue_marquee_bar"]=window["webpackJsonpvue_marquee_bar"]||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=c;return o.push(["41f5","chunk-vendors"]),n()}({3755:function(e,t,n){"use strict";n("57e9")},"41f5":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("b0c0");var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"marquee-container",style:e.barStyle},[n("div",{class:"thanks-bar-"+e.uuid,on:{mouseenter:e.pausePlay,mouseleave:e.continuePlay}},e._l(e.content,(function(t,r){return n("div",{key:r,class:"thank-item-"+e.uuid},[e._t("content",null,{data:t})],2)})),0),n("div",{staticClass:"prefix"},[e._t("prefix")],2),n("div",{staticClass:"suffix"},[e._t("suffix")],2)])},a=[],o=(n("a9e3"),n("a15b"),n("159b"),n("99af"),{name:"VueMarqueeBar",data:function(){return{uuid:""}},props:{width:{default:"100%",type:String},speed:{default:1500,type:Number},background:{default:"#f8f9fa",type:String},boxShadow:{default:"none",type:String},color:{default:"#212529",type:String},content:{default:function(){return[]},type:Array},hoverPause:{default:!0,type:Boolean}},methods:{continuePlay:function(){this.hoverPause&&(document.querySelector(".thanks-bar-".concat(this.uuid)).style.animationPlayState="running")},pausePlay:function(){this.hoverPause&&(document.querySelector(".thanks-bar-".concat(this.uuid)).style.animationPlayState="paused")},generateUuid:function(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",this.uuid=e.join("")}},computed:{barStyle:function(){return{width:this.width,color:this.color,background:this.background,boxShadow:this.boxShadow}}},watch:{content:{handler:function(){var e=this;this.generateUuid(),setTimeout((function(){var t=document.querySelectorAll(".thank-item-".concat(e.uuid)),n=0;t.forEach((function(e){n+=e.clientWidth+32}));var r="\n @keyframes marquee-".concat(e.uuid," {\n 0% {\n transform: translate3d(").concat(e.width,", 0, 0);\n }\n 100% {\n transform: translate3d(").concat(-1*(window.screen.availWidth+n),"px, 0, 0);\n }\n }\n\n .marquee-").concat(e.uuid," {\n animation: marquee-").concat(e.uuid," ").concat((n+window.screen.availWidth)/e.speed*5,"s infinite linear;\n }\n "),a=document.createElement("style");a.type="text/css",a.innerHTML=r,document.getElementsByTagName("head")[0].appendChild(a),document.querySelector(".thanks-bar-".concat(e.uuid)).classList.add("marquee-".concat(e.uuid))}),200)},immediate:!0,deep:!0}}}),u=o,i=(n("3755"),n("2877")),c=Object(i["a"])(u,r,a,!1,null,"4682dcb2",null),s=c.exports,l=n("2b0e");s.install=function(e){e||(window.Vue=e=l["a"]),e.component(s.name,s)};t["default"]=s},"57e9":function(e,t,n){}})}));
//# sourceMappingURL=vue-marquee-bar.js.map
import VueMarqueeBar from './src/components/VueMarqueeBar.vue'
import _Vue from 'vue'
import App from './src/App.vue'
import router from "./src/router/index";

@@ -13,9 +11,2 @@ VueMarqueeBar.install = Vue => {

_Vue.config.productionTip = false
new _Vue({
render: h => h(App),
router,
}).$mount('#app')
export default VueMarqueeBar;

@@ -6,3 +6,3 @@ {

"private": false,
"version": "1.0.2",
"version": "1.0.3",
"scripts": {

@@ -9,0 +9,0 @@ "serve": "vue-cli-service serve",

@@ -94,3 +94,3 @@ # vue-menu-cascader

**版本:1.0.2**
**版本:1.0.3**

@@ -97,0 +97,0 @@ Contributor: [@sharpFD](<https://github.com/sharpFD>)

@@ -10,3 +10,3 @@ const path = require('path')

configureWebpack: {
entry: './index.js',
entry: process.env.NODE_ENV === 'development' ? './src/main.js' : './index.js',
output: {

@@ -13,0 +13,0 @@ path: path.resolve(__dirname, './dist'),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc