Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sums-components

Package Overview
Dependencies
Maintainers
4
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sums-components - npm Package Compare versions

Comparing version 0.6.9 to 0.6.10

2

lib/report-footer.js

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

module.exports=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=46)}({0:function(e,t,o){"use strict";function r(e,t,o,r,n,s,i,c){var a,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=o,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(a=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=a):n&&(a=c?function(){n.call(this,this.$root.$options.shadowRoot)}:n),a)if(u.functional){u._injectStyles=a;var l=u.render;u.render=function(e,t){return a.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,a):[a]}return{exports:e,options:u}}o.d(t,"a",(function(){return r}))},1:function(e,t){e.exports=require("core-js/modules/es6.function.name")},10:function(e,t){e.exports=require("core-js/library/fn/promise")},15:function(e,t){e.exports=require("core-js/modules/es6.number.constructor")},2:function(e,t,o){e.exports=o(10)},26:function(e,t){e.exports=require("intersection-observer")},3:function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));var r=o(2),n=o.n(r);function s(e,t,o,r,s,i,c){try{var a=e[i](c),u=a.value}catch(e){return void o(e)}a.done?t(u):n.a.resolve(u).then(r,s)}function i(e){return function(){var t=this,o=arguments;return new n.a((function(r,n){var i=e.apply(t,o);function c(e){s(i,r,n,c,a,"next",e)}function a(e){s(i,r,n,c,a,"throw",e)}c(void 0)}))}}},33:function(e,t){e.exports=require("qrcode")},46:function(e,t,o){"use strict";o.r(t);o(1);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"s-report-footer",style:{zIndex:e.zIndex}},[o("div",{staticClass:"s-report-footer--keywords",class:{round:e.round},style:{backgroundColor:e.theme.keywordsBgc,color:e.theme.color},on:{click:e.lookKeywords}},[e._v(e._s(e.title))]),e.isWeixin?o("div",{staticClass:"s-report-footer--transform",class:{active:e.shareMode,"s-report-all-unlock":e.isAllUnlock}},[o("div",{staticClass:"s-report-footer--transform--item"},[o("unlock",{attrs:{round:e.round,unlockTheme:e.unlockTheme,money:e.money,color:e.theme.color,info:e.allLockInfo,reverse:e.reverse},on:{click:e.onUnlock}})],1),o("div",{staticClass:"s-report-footer--transform--item"},[o("div",{staticClass:"s-report-footer--qrcode"},[o("span",{staticClass:"s-report-footer--qrcode--text"},[e._v("长按识别")]),o("img",{staticClass:"s-report-footer--qrcode--src",attrs:{src:e.qrcodeImg,alt:""}})])])]):o("div",{staticClass:"s-report-footer--h5"},[o("div",{staticClass:"s-report-footer--transform--item"},[e.isAllUnlock?o("div",{staticClass:"s-report-footer--unlock",class:{round:e.round},style:e.unlockTheme,on:{click:e.addNewReport}},[e._v("添加一份新报告")]):o("unlock",{attrs:{round:e.round,unlockTheme:e.unlockTheme,money:e.money,color:e.theme.color},on:{click:e.onUnlock}})],1)])])};r._withStripped=!0;o(9);var n=o(3),s=(o(15),o(33)),i=o.n(s),c=(o(26),function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"s-report-footer--unlock--box",on:{click:function(t){return e.$emit("click")}}},[o("div",{staticClass:"s-report-footer--unlock--icon",style:{color:e.color}},[e._v("折")]),o("div",{staticClass:"s-report-footer--unlock",class:{round:e.round},style:e.unlockTheme},[e.reverse?e._e():o("span",[e._v(e._s(e.info))]),o("span",{staticClass:"s-report-footer--unlock--money"},[e._v("¥"+e._s(e.money))]),e.reverse?o("span",[e._v(e._s(e.info))]):e._e()])])});c._withStripped=!0;var a={props:["unlockTheme","money","color","round","info","reverse"]},u=o(0),l=Object(u.a)(a,c,[],!1,null,null,null);l.options.__file="packages/report-footer/unlock.vue";var f,d={name:"SReportFooter",components:{Unlock:l.exports},props:{title:{type:String,default:"查看八字关键词"},money:{type:[String,Number],default:"58.8"},qrcode:{type:String,default:location.href},correctLevel:{type:String,default:"L"},isAllUnlock:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{bgc:"#BA8961",color:"#782B2B",keywordsBgc:"rgba(197, 140, 94, 0.53)",boxShadowColor:"rgba(197, 140, 94, 0.53)"}}},target:{type:Element,require:!0},isWeixin:{type:Boolean,default:/MicroMessenger/i.test(navigator.userAgent.toLowerCase())},zIndex:{type:[Number,String],default:2e3},round:{type:Boolean,default:!1},allLockInfo:{type:String,default:"解锁全部付费报告"},reverse:{type:Boolean,default:!1}},watch:{qrcode:{immediate:!0,handler:(f=Object(n.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"string"==typeof t){e.next=2;break}return e.abrupt("return",console.warn("二维码地址不正确"));case 2:return e.next=4,i.a.toDataURL(t,{errorCorrectionLevel:this.correctLevel});case 4:this.qrcodeImg=e.sent;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},isAllUnlock:function(){this.checkFooter()}},computed:{unlockTheme:function(){return{backgroundColor:this.theme.bgc,boxShadow:"0px 5px 10px 0px ".concat(this.theme.boxShadowColor||this.theme.keywordsBgc)}}},data:function(){return{qrcodeImg:"",shareMode:!1}},beforeCreate:function(){var e=this;this.io=new IntersectionObserver((function(t){return e.handleCheckFooter(t[0])}),{threshold:0})},mounted:function(){this.checkFooter()},methods:{handleCheckFooter:function(e){var t=e.isIntersecting;this.shareMode=t,this.$emit("check-footer",t)},lookKeywords:function(){this.$emit("look-keywords")},addNewReport:function(){this.$emit("add-new-report")},onUnlock:function(){this.$emit("unlock")},checkFooter:function(){var e=this;this.$nextTick((function(){if(!e.isAllUnlock&&e.isWeixin){if(!e.target)return void console.warn("target 不存在");e.io&&e.io.unobserve(e.target),e.io.observe(e.target)}else{if(!e.target)return void console.warn("target 不存在");e.io&&e.io.unobserve(e.target)}}))}},beforeDestroy:function(){this.io.unobserve(this.target)}},p=Object(u.a)(d,r,[],!1,null,null,null);p.options.__file="packages/report-footer/main.vue";var h=p.exports;h.install=function(e){e.component(h.name,h)};t.default=h},9:function(e,t){e.exports=require("regenerator-runtime/runtime")}});
module.exports=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=46)}({0:function(e,t,o){"use strict";function r(e,t,o,r,n,s,i,c){var a,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),r&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),i?(a=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=a):n&&(a=c?function(){n.call(this,this.$root.$options.shadowRoot)}:n),a)if(l.functional){l._injectStyles=a;var u=l.render;l.render=function(e,t){return a.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,a):[a]}return{exports:e,options:l}}o.d(t,"a",(function(){return r}))},1:function(e,t){e.exports=require("core-js/modules/es6.function.name")},10:function(e,t){e.exports=require("core-js/library/fn/promise")},15:function(e,t){e.exports=require("core-js/modules/es6.number.constructor")},2:function(e,t,o){e.exports=o(10)},26:function(e,t){e.exports=require("intersection-observer")},3:function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));var r=o(2),n=o.n(r);function s(e,t,o,r,s,i,c){try{var a=e[i](c),l=a.value}catch(e){return void o(e)}a.done?t(l):n.a.resolve(l).then(r,s)}function i(e){return function(){var t=this,o=arguments;return new n.a((function(r,n){var i=e.apply(t,o);function c(e){s(i,r,n,c,a,"next",e)}function a(e){s(i,r,n,c,a,"throw",e)}c(void 0)}))}}},33:function(e,t){e.exports=require("qrcode")},46:function(e,t,o){"use strict";o.r(t);o(1);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"s-report-footer",style:{zIndex:e.zIndex}},[o("div",{staticClass:"s-report-footer--keywords",class:{round:e.round},style:{backgroundColor:e.theme.keywordsBgc,color:e.theme.color},on:{click:e.lookKeywords}},[e._v(e._s(e.title))]),e.isWeixin?o("div",{staticClass:"s-report-footer--transform",class:{active:e.shareMode,"s-report-all-unlock":e.isAllUnlock}},[o("div",{staticClass:"s-report-footer--transform--item"},[o("unlock",{attrs:{round:e.round,unlockTheme:e.unlockTheme,money:e.money,color:e.theme.color,info:e.allLockInfo,reverse:e.reverse},on:{click:e.onUnlock}})],1),o("div",{staticClass:"s-report-footer--transform--item"},[o("div",{staticClass:"s-report-footer--qrcode"},[o("span",{staticClass:"s-report-footer--qrcode--text"},[e._v("长按识别")]),o("img",{staticClass:"s-report-footer--qrcode--src",attrs:{src:e.qrcodeImg,alt:""}})])])]):o("div",{staticClass:"s-report-footer--h5"},[o("div",{staticClass:"s-report-footer--transform--item"},[e.isAllUnlock?o("div",{staticClass:"s-report-footer--unlock",class:{round:e.round},style:e.unlockTheme,on:{click:e.addNewReport}},[e._v("添加一份新报告")]):o("unlock",{attrs:{round:e.round,unlockTheme:e.unlockTheme,money:e.money,color:e.theme.color,info:e.allLockInfo},on:{click:e.onUnlock}})],1)])])};r._withStripped=!0;o(9);var n=o(3),s=(o(15),o(33)),i=o.n(s),c=(o(26),function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"s-report-footer--unlock--box",on:{click:function(t){return e.$emit("click")}}},[o("div",{staticClass:"s-report-footer--unlock--icon",style:{color:e.color}},[e._v("折")]),o("div",{staticClass:"s-report-footer--unlock",class:{round:e.round},style:e.unlockTheme},[e.reverse?e._e():o("span",[e._v(e._s(e.info))]),o("span",{staticClass:"s-report-footer--unlock--money"},[e._v("¥"+e._s(e.money))]),e.reverse?o("span",[e._v(e._s(e.info))]):e._e()])])});c._withStripped=!0;var a={props:["unlockTheme","money","color","round","info","reverse"]},l=o(0),u=Object(l.a)(a,c,[],!1,null,null,null);u.options.__file="packages/report-footer/unlock.vue";var f,d={name:"SReportFooter",components:{Unlock:u.exports},props:{title:{type:String,default:"查看八字关键词"},money:{type:[String,Number],default:"58.8"},qrcode:{type:String,default:location.href},correctLevel:{type:String,default:"L"},isAllUnlock:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{bgc:"#BA8961",color:"#782B2B",keywordsBgc:"rgba(197, 140, 94, 0.53)",boxShadowColor:"rgba(197, 140, 94, 0.53)"}}},target:{type:Element,require:!0},isWeixin:{type:Boolean,default:/MicroMessenger/i.test(navigator.userAgent.toLowerCase())},zIndex:{type:[Number,String],default:2e3},round:{type:Boolean,default:!1},allLockInfo:{type:String,default:"解锁全部付费报告"},reverse:{type:Boolean,default:!1}},watch:{qrcode:{immediate:!0,handler:(f=Object(n.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"string"==typeof t){e.next=2;break}return e.abrupt("return",console.warn("二维码地址不正确"));case 2:return e.next=4,i.a.toDataURL(t,{errorCorrectionLevel:this.correctLevel});case 4:this.qrcodeImg=e.sent;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},isAllUnlock:function(){this.checkFooter()}},computed:{unlockTheme:function(){return{backgroundColor:this.theme.bgc,boxShadow:"0px 5px 10px 0px ".concat(this.theme.boxShadowColor||this.theme.keywordsBgc)}}},data:function(){return{qrcodeImg:"",shareMode:!1}},beforeCreate:function(){var e=this;this.io=new IntersectionObserver((function(t){return e.handleCheckFooter(t[0])}),{threshold:0})},mounted:function(){this.checkFooter()},methods:{handleCheckFooter:function(e){var t=e.isIntersecting;this.shareMode=t,this.$emit("check-footer",t)},lookKeywords:function(){this.$emit("look-keywords")},addNewReport:function(){this.$emit("add-new-report")},onUnlock:function(){this.$emit("unlock")},checkFooter:function(){var e=this;this.$nextTick((function(){if(!e.isAllUnlock&&e.isWeixin){if(!e.target)return void console.warn("target 不存在");e.io&&e.io.unobserve(e.target),e.io.observe(e.target)}else{if(!e.target)return void console.warn("target 不存在");e.io&&e.io.unobserve(e.target)}}))}},beforeDestroy:function(){this.io.unobserve(this.target)}},p=Object(l.a)(d,r,[],!1,null,null,null);p.options.__file="packages/report-footer/main.vue";var h=p.exports;h.install=function(e){e.component(h.name,h)};t.default=h},9:function(e,t){e.exports=require("regenerator-runtime/runtime")}});
{
"name": "sums-components",
"version": "0.6.9",
"version": "0.6.10",
"private": false,

@@ -5,0 +5,0 @@ "main": "lib/sums-components.umd.min.js",

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 too big to display

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc