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

vue-cryptobar

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cryptobar - npm Package Compare versions

Comparing version 0.1.6-beta to 0.1.7-beta

.editorconfig

4

dist/index.js

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

import cryptobar from "./cryptobar.vue";
export default cryptobar;
import cryptobar from './cryptobar.vue'
export default cryptobar

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

!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";var r=n(8),o=n(20),i=Object.prototype.toString;function s(e){return"[object Array]"===i.call(e)}function a(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(17);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(6).default)("3301f6c6",r,!1,{})},function(e,t,n){var r=n(39);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(6).default)("20e2ed66",r,!1,{})},function(e,t,n){var r=n(41);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(6).default)("06608f56",r,!1,{})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(s=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var s;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){"use strict";(function(t){var r=n(0),o=n(23),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,c={adapter:("undefined"!=typeof XMLHttpRequest?a=n(9):void 0!==t&&(a=n(9)),a),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){c.headers[e]={}}),r.forEach(["post","put","patch"],function(e){c.headers[e]=r.merge(i)}),e.exports=c}).call(this,n(22))},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=i[0],a={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.r(t),n.d(t,"default",function(){return m});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},f=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,o){l=n,f=o||{};var s=r(e,t);return h(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(c=i[a.id]).refs--,n.push(c)}t?h(s=r(e,t)):s=[];for(o=0;o<n.length;o++){var c;if(0===(c=n[o]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete i[c.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(y(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(y(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function y(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var o=c++;r=a||(a=g()),t=C.bind(null,r,o,!1),n=C.bind(null,r,o,!0)}else r=g(),t=function(e,t){var n=t.css,r=t.media,o=t.sourceMap;r&&e.setAttribute("media",r);f.ssrId&&e.setAttribute(p,t.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var v,x=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function C(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}},function(e,t,n){"use strict";const r="https://min-api.cryptocompare.com/data/";let o="";function i(e){return""!==o&&(e.indexOf("?")>-1?e+="&api_key=":e+="?api_key=",e+=o),fetch(e).then(e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.json()}).then(e=>{if("Error"===e.Response)throw e.Message;return e})}function s(e){if(!(e instanceof Date))throw new Error("timestamp must be an instance of Date.");return Math.floor(e.getTime()/1e3)}e.exports={setApiKey:function(e){o=e},coinList:function(){return i(`${r}all/coinlist`)},exchangeList:function(){return i(`${r}all/exchanges`)},newsFeedsAndCategories:function(){return i(`${r}data/news/feedsandcategories`).then(e=>e.Data)},newsList:function(e,t){let n=`${r}data/v2/news/?lang=${e}`;return t.feeds&&(n+=`&feeds=${t.feeds}`),t.categories&&(n+=`&categories=${t.categories}`),t.excludeCategories&&(n+=`&categories=${t.excludeCategories}`),t.lTs&&(t.lTs=s(t.lTs),n+=`&lTs=${t.lTs}`),i(n).then(e=>e.Data)},price:function(e,t,n){let o=`${r}price?fsym=${e}&tsyms=${t}`;return(n=n||{}).exchanges&&(o+=`&e=${n.exchanges}`),!1===n.tryConversion&&(o+="&tryConversion=false"),i(o)},priceMulti:function(e,t,n){let o=`${r}pricemulti?fsyms=${e}&tsyms=${t}`;return(n=n||{}).exchanges&&(o+=`&e=${n.exchanges}`),!1===n.tryConversion&&(o+="&tryConversion=false"),i(o)},priceFull:function(e,t,n){let o=`${r}pricemultifull?fsyms=${e}&tsyms=${t}`;return(n=n||{}).exchanges&&(o+=`&e=${n.exchanges}`),!1===n.tryConversion&&(o+="&tryConversion=false"),i(o).then(e=>e.RAW)},priceHistorical:function(e,t,n,o){o=o||{},n=s(n);let a=`${r}pricehistorical?fsym=${e}&tsyms=${t}&ts=${n}`;return o.exchanges&&(a+=`&e=${o.exchanges}`),!1===o.tryConversion&&(a+="&tryConversion=false"),i(a).then(t=>t[e])},generateAvg:function(e,t,n,o){let s=`${r}generateAvg?fsym=${e}&tsym=${t}&e=${n}`;return!1===o&&(s+="&tryConversion=false"),i(s).then(e=>e.RAW)},topPairs:function(e,t){let n=`${r}top/pairs?fsym=${e}`;return t&&(n+=`&limit=${t}`),i(n).then(e=>e.Data)},topExchanges:function(e,t,n){let o=`${r}top/exchanges?fsym=${e}&tsym=${t}`;return n&&(o+=`&limit=${n}`),i(o).then(e=>e.Data)},topExchangesFull:function(e,t,n){let o=`${r}top/exchanges/full?fsym=${e}&tsym=${t}`;return n&&(o+=`&limit=${n}`),i(o).then(e=>e.Data)},histoDay:function(e,t,n){(n=n||{}).timestamp&&(n.timestamp=s(n.timestamp));let o=`${r}histoday?fsym=${e}&tsym=${t}`;return n.exchange&&(o+=`&e=${n.exchange}`),"none"===n.limit?o+="&allData=true":n.limit&&(o+=`&limit=${n.limit}`),!1===n.tryConversion&&(o+="&tryConversion=false"),n.aggregate&&(o+=`&aggregate=${n.aggregate}`),n.timestamp&&(o+=`&toTs=${n.timestamp}`),n.aggregatePredictableTimePeriods&&(o+=`&aggregatePredictableTimePeriods=${n.aggregatePredictableTimePeriods}`),n.allData&&(o+=`&allData=${n.allData}`),n.toTs&&(o+=`&toTs=${n.toTs}`),i(o).then(e=>e.Data)},histoHour:function(e,t,n){(n=n||{}).timestamp&&(n.timestamp=s(n.timestamp));let o=`${r}histohour?fsym=${e}&tsym=${t}`;return n.exchange&&(o+=`&e=${n.exchange}`),n.limit&&(o+=`&limit=${n.limit}`),!1===n.tryConversion&&(o+="&tryConversion=false"),n.aggregate&&(o+=`&aggregate=${n.aggregate}`),n.timestamp&&(o+=`&toTs=${n.timestamp}`),n.allData&&(o+=`&allData=${n.allData}`),n.toTs&&(o+=`&toTs=${n.toTs}`),i(o).then(e=>e.Data)},histoMinute:function(e,t,n){(n=n||{}).timestamp&&(n.timestamp=s(n.timestamp));let o=`${r}histominute?fsym=${e}&tsym=${t}`;return n.exchange&&(o+=`&e=${n.exchange}`),n.limit&&(o+=`&limit=${n.limit}`),!1===n.tryConversion&&(o+="&tryConversion=false"),n.aggregate&&(o+=`&aggregate=${n.aggregate}`),n.timestamp&&(o+=`&toTs=${n.timestamp}`),n.allData&&(o+=`&allData=${n.allData}`),n.toTs&&(o+=`&toTs=${n.toTs}`),i(o).then(e=>e.Data)}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(0),o=n(24),i=n(26),s=n(27),a=n(28),c=n(10),l="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(29);e.exports=function(e){return new Promise(function(t,u){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest,m="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||a(e.url)||(d=new window.XDomainRequest,m="onload",h=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var g=e.auth.username||"",y=e.auth.password||"";p.Authorization="Basic "+l(g+":"+y)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[m]=function(){if(d&&(4===d.readyState||h)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};o(t,u,r),d=null}},d.onerror=function(){u(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){u(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=n(30),x=(e.withCredentials||a(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;x&&(p[e.xsrfHeaderName]=x)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),u(e),d=null)}),void 0===f&&(f=null),d.send(f)})}},function(e,t,n){"use strict";var r=n(25);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{attrs:{id:"app"}},[n("div",{staticClass:"top-header"},[n("div",{staticClass:"container h-100"},[n("div",{staticClass:"row h-100 align-items-center"},[e._m(0),e._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("div",[n("div",{staticClass:"ticker",style:"background-color:"+e.barColor+";border-radius:"+e.barRadius+";",attrs:{id:"stockNewsTicker"}},[n("ul",[n("li",[n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[0],moneyType:e.coinTypeConfig[0]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[0],moneyType:e.coinTypeConfig[0]}})],1),e._v(" "),n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[1],moneyType:e.coinTypeConfig[0]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[1],moneyType:e.coinTypeConfig[0]}})],1),e._v(" "),n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[2],moneyType:e.coinTypeConfig[0]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[2],moneyType:e.coinTypeConfig[0]}})],1)]),e._v(" "),n("li",[n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[0],moneyType:e.coinTypeConfig[1]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[0],moneyType:e.coinTypeConfig[1]}})],1),e._v(" "),n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[1],moneyType:e.coinTypeConfig[1]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[1],moneyType:e.coinTypeConfig[1]}})],1),e._v(" "),n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[2],moneyType:e.coinTypeConfig[1]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[2],moneyType:e.coinTypeConfig[1]}})],1)])])])])])])])])])};r._withStripped=!0;var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("div",{staticClass:"stock-values",staticStyle:{color:"#2e7d32"}},[n("span",{style:"color:"+e.color1+";"},[e._v(e._s(e.coinName)+"/"+e._s(e.moneyType))]),e._v(" "),n("span",{style:"color:"+e.color2+";"},[e._v(e._s(e.lastTradeFrom))])])])};o._withStripped=!0,document.write(unescape("%3Cscript src='https://code.jquery.com/jquery-2.2.4.min.js' type='text/javascript'%3E%3C/script%3E"));var i={name:"tradeMarket",data:()=>({lastTradeFrom:null,differentSign:null,coinSymbol:null}),mounted(){const e=this,t=n(7);!function n(){t.priceFull(e.coinName,e.moneyType).then(t=>{var n,r,o;switch(e.posCondition=!0,n=Object.values(t),r=Object.values(n[0]),o=Object.values(r[0]),e.lastTradeFrom=o[20],e.moneyType){case"TRY":e.coinSymbol="₺";break;case"USD":e.coinSymbol="$"}}),setTimeout(n,5e3)}()},props:{coinName:{type:String},moneyType:{type:String},color1:{type:String},color2:{type:String}}};n(16);function s(e,t,n,r,o,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}var a=s(i,o,[],!1,null,null,null);a.options.__file="src/configurations/tradeMarket.vue";var c=a.exports,l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stock-index",style:[e.isPositive?{color:e.positive}:{color:e.negative}]},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("h4",{key:e.price,staticStyle:{"text-align":"center margin-left:-12px"}},[n("span",{staticClass:"specialX",style:"color:"+e.symbolColor},[e._v(e._s(e.coinSymbol))]),e._v("\n "+e._s(e.price)+"\n ")])])],1)};l._withStripped=!0;var u=null,f=null,p=null,d=null,m=[];document.write('<script type="text/javascript" src="https://onurozkan.work/my/own/cdn/vue-cryptobar/jquery-2.2.4.min.js" ><\/script>');var h={name:"coinPrice",data:()=>({price:0,coinSymbol:null,isPositive:!0}),mounted(){var e=null;const t=this,r=n(18),o=n(7);m.push(t.moneyType),r.get("https://currency-symbol-api.herokuapp.com/"+m[0]).then(function(e){u=e.data.symbol,f=e.data.code}).catch(function(e){}),r.get("https://currency-symbol-api.herokuapp.com/"+m[5]).then(function(e){p=e.data.symbol,d=e.data.code}).catch(function(e){}),function n(){o.price(t.coinName,t.moneyType).then(n=>{var r,o=0;r=Object.values(n),o=parseFloat(r),t.price=o.toFixed(2),null!=e&&e>t.price&&(t.isPositive=!0),null!=e&&t.price>e&&(t.isPositive=!1),e=t.price,function e(){if(f==t.moneyType)for(;t.coinSymbol!=u;)t.coinSymbol=u;if(d==t.moneyType)for(;t.coinSymbol!=p;)t.coinSymbol=p;setTimeout(e,500)}()}),setTimeout(n,5e3)}()},props:{coinName:{type:String},moneyType:{type:String},negative:{type:String},positive:{type:String},symbolColor:{type:String}}},g=(n(38),s(h,l,[],!1,null,null,null));g.options.__file="src/configurations/coinPrice.vue";var y=g.exports,v={data:function(){return{}},mounted(){},name:"cryptobar",props:{coinNameConfig:{type:Array,default:()=>["BTC","ETH","MKR"]},coinTypeConfig:{type:Array,default:()=>["USD","TRY"]},barColor:{default:()=>"#141b2b",type:String},barRadius:{default:()=>"3px",type:String},negativePriceColor:{default:()=>"#c41e3a",type:String},positivePriceColor:{default:()=>"#008d58",type:String},nameAndCurrencyColor:{default:()=>"#eee",type:String},tradeMarketColor:{default:()=>"#c41e3a",type:String},currencySymbolColor:{default:()=>"#f2f0e6",type:String}},methods:{},components:{tradeMarket:c,coinPrice:y}};document.write('<script type="text/javascript" src="https://onurozkan.work/my/own/cdn/vue-cryptobar/active.js" ><\/script>'),document.write('<script type="text/javascript" src="https://onurozkan.work/my/own/cdn/vue-cryptobar/jquery-2.2.4.min.js" ><\/script>');var x=v,C=(n(40),s(x,r,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col-12 col-md-6"},[t("div",[t("div",{staticClass:"ticker",attrs:{id:"breakingNewsTicker"}})])])}],!1,null,null,null));C.options.__file="src/cryptobar.vue";t.a=C.exports},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"install",function(){return o});var r=n(13);function o(e){o.installed||(o.installed=!0,e.component("vue-cryptobar",r.a))}const i={install:o};let s=null;"undefined"!=typeof window?s=window.Vue:void 0!==e&&(s=e.Vue),s&&s.use(i)}.call(this,n(15))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(1);n.n(r).a},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,"\n.single-stock-report .stock-values span {\r\n padding-right: 20px;\r\n color: #fff;\r\n font-weight: 300;\r\n font-size: 13px;\r\n text-transform: uppercase;\n}\n.single-stock-report .stock-values span:last-child {\r\n color: rgba(255, 255, 255, 0.5);\n}\n.fade-enter-active,\r\n.fade-leave-active {\r\n transition: opacity 0s;\r\n transition-duration: 0.3s;\n}\n.fade-enter,\r\n.fade-leave-to {\r\n opacity: 0.25;\n}\r\n",""])},function(e,t,n){e.exports=n(19)},function(e,t,n){"use strict";var r=n(0),o=n(8),i=n(21),s=n(5);function a(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=a(s);c.Axios=i,c.create=function(e){return a(r.merge(s,e))},c.Cancel=n(12),c.CancelToken=n(36),c.isCancel=n(11),c.all=function(e){return Promise.all(e)},c.spread=n(37),e.exports=c,e.exports.default=c},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";var r=n(8),o=n(20),i=Object.prototype.toString;function s(e){return"[object Array]"===i.call(e)}function a(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(17);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(6).default)("3301f6c6",r,!1,{})},function(e,t,n){var r=n(39);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(6).default)("20e2ed66",r,!1,{})},function(e,t,n){var r=n(41);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(6).default)("06608f56",r,!1,{})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(s=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var s;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){"use strict";(function(t){var r=n(0),o=n(23),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,c={adapter:("undefined"!=typeof XMLHttpRequest?a=n(9):void 0!==t&&(a=n(9)),a),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){c.headers[e]={}}),r.forEach(["post","put","patch"],function(e){c.headers[e]=r.merge(i)}),e.exports=c}).call(this,n(22))},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=i[0],a={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.r(t),n.d(t,"default",function(){return m});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},f=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,o){l=n,f=o||{};var s=r(e,t);return h(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(c=i[a.id]).refs--,n.push(c)}t?h(s=r(e,t)):s=[];for(o=0;o<n.length;o++){var c;if(0===(c=n[o]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete i[c.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(y(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(y(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function y(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var o=c++;r=a||(a=g()),t=C.bind(null,r,o,!1),n=C.bind(null,r,o,!0)}else r=g(),t=function(e,t){var n=t.css,r=t.media,o=t.sourceMap;r&&e.setAttribute("media",r);f.ssrId&&e.setAttribute(p,t.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var v,x=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function C(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}},function(e,t,n){"use strict";const r="https://min-api.cryptocompare.com/data/";let o="";function i(e){return""!==o&&(e.indexOf("?")>-1?e+="&api_key=":e+="?api_key=",e+=o),fetch(e).then(e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.json()}).then(e=>{if("Error"===e.Response)throw e.Message;return e})}function s(e){if(!(e instanceof Date))throw new Error("timestamp must be an instance of Date.");return Math.floor(e.getTime()/1e3)}e.exports={setApiKey:function(e){o=e},coinList:function(){return i(`${r}all/coinlist`)},exchangeList:function(){return i(`${r}all/exchanges`)},newsFeedsAndCategories:function(){return i(`${r}data/news/feedsandcategories`).then(e=>e.Data)},newsList:function(e,t){let n=`${r}data/v2/news/?lang=${e}`;return t.feeds&&(n+=`&feeds=${t.feeds}`),t.categories&&(n+=`&categories=${t.categories}`),t.excludeCategories&&(n+=`&categories=${t.excludeCategories}`),t.lTs&&(t.lTs=s(t.lTs),n+=`&lTs=${t.lTs}`),i(n).then(e=>e.Data)},price:function(e,t,n){let o=`${r}price?fsym=${e}&tsyms=${t}`;return(n=n||{}).exchanges&&(o+=`&e=${n.exchanges}`),!1===n.tryConversion&&(o+="&tryConversion=false"),i(o)},priceMulti:function(e,t,n){let o=`${r}pricemulti?fsyms=${e}&tsyms=${t}`;return(n=n||{}).exchanges&&(o+=`&e=${n.exchanges}`),!1===n.tryConversion&&(o+="&tryConversion=false"),i(o)},priceFull:function(e,t,n){let o=`${r}pricemultifull?fsyms=${e}&tsyms=${t}`;return(n=n||{}).exchanges&&(o+=`&e=${n.exchanges}`),!1===n.tryConversion&&(o+="&tryConversion=false"),i(o).then(e=>e.RAW)},priceHistorical:function(e,t,n,o){o=o||{},n=s(n);let a=`${r}pricehistorical?fsym=${e}&tsyms=${t}&ts=${n}`;return o.exchanges&&(a+=`&e=${o.exchanges}`),!1===o.tryConversion&&(a+="&tryConversion=false"),i(a).then(t=>t[e])},generateAvg:function(e,t,n,o){let s=`${r}generateAvg?fsym=${e}&tsym=${t}&e=${n}`;return!1===o&&(s+="&tryConversion=false"),i(s).then(e=>e.RAW)},topPairs:function(e,t){let n=`${r}top/pairs?fsym=${e}`;return t&&(n+=`&limit=${t}`),i(n).then(e=>e.Data)},topExchanges:function(e,t,n){let o=`${r}top/exchanges?fsym=${e}&tsym=${t}`;return n&&(o+=`&limit=${n}`),i(o).then(e=>e.Data)},topExchangesFull:function(e,t,n){let o=`${r}top/exchanges/full?fsym=${e}&tsym=${t}`;return n&&(o+=`&limit=${n}`),i(o).then(e=>e.Data)},histoDay:function(e,t,n){(n=n||{}).timestamp&&(n.timestamp=s(n.timestamp));let o=`${r}histoday?fsym=${e}&tsym=${t}`;return n.exchange&&(o+=`&e=${n.exchange}`),"none"===n.limit?o+="&allData=true":n.limit&&(o+=`&limit=${n.limit}`),!1===n.tryConversion&&(o+="&tryConversion=false"),n.aggregate&&(o+=`&aggregate=${n.aggregate}`),n.timestamp&&(o+=`&toTs=${n.timestamp}`),n.aggregatePredictableTimePeriods&&(o+=`&aggregatePredictableTimePeriods=${n.aggregatePredictableTimePeriods}`),n.allData&&(o+=`&allData=${n.allData}`),n.toTs&&(o+=`&toTs=${n.toTs}`),i(o).then(e=>e.Data)},histoHour:function(e,t,n){(n=n||{}).timestamp&&(n.timestamp=s(n.timestamp));let o=`${r}histohour?fsym=${e}&tsym=${t}`;return n.exchange&&(o+=`&e=${n.exchange}`),n.limit&&(o+=`&limit=${n.limit}`),!1===n.tryConversion&&(o+="&tryConversion=false"),n.aggregate&&(o+=`&aggregate=${n.aggregate}`),n.timestamp&&(o+=`&toTs=${n.timestamp}`),n.allData&&(o+=`&allData=${n.allData}`),n.toTs&&(o+=`&toTs=${n.toTs}`),i(o).then(e=>e.Data)},histoMinute:function(e,t,n){(n=n||{}).timestamp&&(n.timestamp=s(n.timestamp));let o=`${r}histominute?fsym=${e}&tsym=${t}`;return n.exchange&&(o+=`&e=${n.exchange}`),n.limit&&(o+=`&limit=${n.limit}`),!1===n.tryConversion&&(o+="&tryConversion=false"),n.aggregate&&(o+=`&aggregate=${n.aggregate}`),n.timestamp&&(o+=`&toTs=${n.timestamp}`),n.allData&&(o+=`&allData=${n.allData}`),n.toTs&&(o+=`&toTs=${n.toTs}`),i(o).then(e=>e.Data)}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(0),o=n(24),i=n(26),s=n(27),a=n(28),c=n(10),l="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(29);e.exports=function(e){return new Promise(function(t,u){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest,m="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||a(e.url)||(d=new window.XDomainRequest,m="onload",h=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var g=e.auth.username||"",y=e.auth.password||"";p.Authorization="Basic "+l(g+":"+y)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[m]=function(){if(d&&(4===d.readyState||h)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};o(t,u,r),d=null}},d.onerror=function(){u(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){u(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=n(30),x=(e.withCredentials||a(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;x&&(p[e.xsrfHeaderName]=x)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),u(e),d=null)}),void 0===f&&(f=null),d.send(f)})}},function(e,t,n){"use strict";var r=n(25);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{attrs:{id:"app"}},[n("div",{staticClass:"top-header"},[n("div",{staticClass:"container h-100"},[n("div",{staticClass:"row h-100 align-items-center"},[e._m(0),e._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("div",[n("div",{staticClass:"ticker",style:"background-color:"+e.barColor+";border-radius:"+e.barRadius+";",attrs:{id:"stockNewsTicker"}},[n("ul",[n("li",[n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[0],moneyType:e.coinTypeConfig[0]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[0],moneyType:e.coinTypeConfig[0]}})],1),e._v(" "),n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[1],moneyType:e.coinTypeConfig[0]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[1],moneyType:e.coinTypeConfig[0]}})],1),e._v(" "),n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[2],moneyType:e.coinTypeConfig[0]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[2],moneyType:e.coinTypeConfig[0]}})],1)]),e._v(" "),n("li",[n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[0],moneyType:e.coinTypeConfig[1]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[0],moneyType:e.coinTypeConfig[1]}})],1),e._v(" "),n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[1],moneyType:e.coinTypeConfig[1]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[1],moneyType:e.coinTypeConfig[1]}})],1),e._v(" "),n("div",{staticClass:"single-stock-report"},[n("tradeMarket",{attrs:{color1:e.nameAndCurrencyColor,color2:e.tradeMarketColor,coinName:e.coinNameConfig[2],moneyType:e.coinTypeConfig[1]}}),e._v(" "),n("coinPrice",{attrs:{negative:e.negativePriceColor,positive:e.positivePriceColor,symbolColor:e.currencySymbolColor,coinName:e.coinNameConfig[2],moneyType:e.coinTypeConfig[1]}})],1)])])])])])])])])])};r._withStripped=!0;var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("div",{staticClass:"stock-values",staticStyle:{color:"#2e7d32"}},[n("span",{style:"color:"+e.color1+";"},[e._v(e._s(e.coinName)+"/"+e._s(e.moneyType))]),e._v(" "),n("span",{style:"color:"+e.color2+";"},[e._v(e._s(e.lastTradeFrom))])])])};o._withStripped=!0,document.write(unescape("%3Cscript src='https://code.jquery.com/jquery-2.2.4.min.js' type='text/javascript'%3E%3C/script%3E"));var i={name:"tradeMarket",data:()=>({lastTradeFrom:null,differentSign:null,coinSymbol:null}),mounted(){const e=this,t=n(7);!function n(){t.priceFull(e.coinName,e.moneyType).then(t=>{var n,r,o;switch(e.posCondition=!0,n=Object.values(t),r=Object.values(n[0]),o=Object.values(r[0]),e.lastTradeFrom=o[20],e.moneyType){case"TRY":e.coinSymbol="₺";break;case"USD":e.coinSymbol="$"}}),setTimeout(n,5e3)}()},props:{coinName:{type:String},moneyType:{type:String},color1:{type:String},color2:{type:String}}};n(16);function s(e,t,n,r,o,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}var a=s(i,o,[],!1,null,null,null);a.options.__file="src/configurations/tradeMarket.vue";var c=a.exports,l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stock-index",style:[e.isPositive?{color:e.positive}:{color:e.negative}]},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("h4",{key:e.price,staticStyle:{"text-align":"center margin-left:-12px"}},[n("span",{staticClass:"specialX",style:"color:"+e.symbolColor},[e._v(e._s(e.coinSymbol))]),e._v("\n "+e._s(e.price)+"\n ")])])],1)};l._withStripped=!0;var u=null,f=null,p=null,d=null,m=[];document.write('<script type="text/javascript" src="https://onurozkan.work/my/own/cdn/vue-cryptobar/jquery-2.2.4.min.js" ><\/script>');var h={name:"coinPrice",data:()=>({price:0,coinSymbol:null,isPositive:!0}),mounted(){var e=null;const t=this,r=n(18),o=n(7);m.push(t.moneyType),r.get("https://currency-symbol-api.herokuapp.com/"+m[0]).then(function(e){u=e.data.symbol,f=e.data.code}).catch(function(e){}),r.get("https://currency-symbol-api.herokuapp.com/"+m[5]).then(function(e){p=e.data.symbol,d=e.data.code}).catch(function(e){}),function n(){o.price(t.coinName,t.moneyType).then(n=>{var r,o=0;r=Object.values(n),o=parseFloat(r),t.price=o.toFixed(2),null!=e&&e>t.price&&(t.isPositive=!0),t.price>e&&null!=e&&(t.isPositive=!1),e=t.price,function e(){if(f===t.moneyType)for(;t.coinSymbol!==u;)t.coinSymbol=u;if(d===t.moneyType)for(;t.coinSymbol!==p;)t.coinSymbol=p;setTimeout(e,500)}()}),setTimeout(n,5e3)}()},props:{coinName:{type:String},moneyType:{type:String},negative:{type:String},positive:{type:String},symbolColor:{type:String}}},g=(n(38),s(h,l,[],!1,null,null,null));g.options.__file="src/configurations/coinPrice.vue";var y=g.exports,v={data:function(){return{}},mounted(){},name:"cryptobar",props:{coinNameConfig:{type:Array,default:()=>["BTC","ETH","MKR"]},coinTypeConfig:{type:Array,default:()=>["USD","TRY"]},barColor:{default:()=>"#141b2b",type:String},barRadius:{default:()=>"3px",type:String},negativePriceColor:{default:()=>"#c41e3a",type:String},positivePriceColor:{default:()=>"#008d58",type:String},nameAndCurrencyColor:{default:()=>"#eee",type:String},tradeMarketColor:{default:()=>"#c41e3a",type:String},currencySymbolColor:{default:()=>"#f2f0e6",type:String}},methods:{},components:{tradeMarket:c,coinPrice:y}};document.write('<script type="text/javascript" src="https://onurozkan.work/my/own/cdn/vue-cryptobar/active.js" ><\/script>'),document.write('<script type="text/javascript" src="https://onurozkan.work/my/own/cdn/vue-cryptobar/jquery-2.2.4.min.js" ><\/script>');var x=v,C=(n(40),s(x,r,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col-12 col-md-6"},[t("div",[t("div",{staticClass:"ticker",attrs:{id:"breakingNewsTicker"}})])])}],!1,null,null,null));C.options.__file="src/cryptobar.vue";t.a=C.exports},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"install",function(){return o});var r=n(13);function o(e){o.installed||(o.installed=!0,e.component("vue-cryptobar",r.a))}const i={install:o};let s=null;"undefined"!=typeof window?s=window.Vue:void 0!==e&&(s=e.Vue),s&&s.use(i)}.call(this,n(15))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(1);n.n(r).a},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,"\n.single-stock-report .stock-values span {\r\n padding-right: 20px;\r\n color: #fff;\r\n font-weight: 300;\r\n font-size: 13px;\r\n text-transform: uppercase;\n}\n.single-stock-report .stock-values span:last-child {\r\n color: rgba(255, 255, 255, 0.5);\n}\n.fade-enter-active,\r\n.fade-leave-active {\r\n transition: opacity 0s;\r\n transition-duration: 0.3s;\n}\n.fade-enter,\r\n.fade-leave-to {\r\n opacity: 0.25;\n}\r\n",""])},function(e,t,n){e.exports=n(19)},function(e,t,n){"use strict";var r=n(0),o=n(8),i=n(21),s=n(5);function a(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=a(s);c.Axios=i,c.create=function(e){return a(r.merge(s,e))},c.Cancel=n(12),c.CancelToken=n(36),c.isCancel=n(11),c.all=function(e){return Promise.all(e)},c.spread=n(37),e.exports=c,e.exports.default=c},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!

@@ -3,0 +3,0 @@ * Determine if an object is a Buffer

{
"name": "vue-cryptobar",
"version": "0.1.6beta",
"license": "MIT",
"version": "0.1.7beta",
"private": false,
"description": "A dynamic cryptocurrency module which looks modern and clear.",
"author": "Onur OZKAN",
"scripts": {
"serve": "vue-cli-service serve --open",
"build": "vue-cli-service build",
"e2e": "vue-cli-service e2e",
"lint": "vue-cli-service lint",
"build-bundle": "vue-cli-service build --target lib --name cryptobar ./src/components/cryptobar.vue",
"e2e": "vue-cli-service e2e",
"e2e:open": "vue-cli-service e2e:open",
"lint": "vue-cli-service lint"
"e2e:open": "vue-cli-service e2e:open"
},

@@ -22,10 +22,11 @@ "dependencies": {

},
"repository": "git://github.com/onurrozkaan/vue-cryptobar.git",
"devDependencies": {
"@vue/cli-plugin-babel": "^3.1.1",
"@vue/cli-plugin-eslint": "^3.1.5",
"@vue/cli-plugin-eslint": "^3.2.1",
"@vue/cli-service": "^3.1.4",
"@vue/eslint-config-standard": "^4.0.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.8.0",
"eslint-plugin-vue": "^5.0.0-0",
"eslint-plugin-html": "^5.0.0",
"node": "^11.2.0",

@@ -35,23 +36,2 @@ "vue-template-compiler": "^2.5.17",

},
"unpkg": "dist/vue-cryptobar.js",
"main": "./dist/index.js",
"browser": {
"./sfc": "dist/vue-cryptobar.vue"
},
"peerDependencies": {
"vue": "2.x"
},
"author": "Onur OZKAN",
"keywords": [
"vue-cryptobar",
"vue-crypto",
"cryptobar",
"crypto",
"cryptocurrency",
"currency",
"bitcoin",
"ethereum",
"api",
"price"
],
"eslintConfig": {

@@ -64,3 +44,4 @@ "root": true,

"plugin:vue/essential",
"eslint:recommended"
"eslint:recommended",
"@vue/standard"
],

@@ -81,3 +62,25 @@ "rules": {},

"not ie <= 8"
]
],
"browser": {
"./sfc": "dist/vue-cryptobar.vue"
},
"keywords": [
"vue-cryptobar",
"vue-crypto",
"cryptobar",
"crypto",
"cryptocurrency",
"currency",
"bitcoin",
"ethereum",
"api",
"price"
],
"license": "MIT",
"main": "./dist/index.js",
"peerDependencies": {
"vue": "2.x"
},
"repository": "git://github.com/onurrozkaan/vue-cryptobar.git",
"unpkg": "dist/vue-cryptobar.js"
}

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

import cryptobar from "./src/cryptobar.vue";
import cryptobar from './src/cryptobar.vue'
export function install(Vue) {
if (install.installed) return;
install.installed = true;
Vue.component("vue-cryptobar", cryptobar);
export function install (Vue) {
if (install.installed) return
install.installed = true
Vue.component('vue-cryptobar', cryptobar)
}

@@ -11,12 +11,12 @@

install
};
}
let GlobalVue = null;
if (typeof window !== "undefined") {
GlobalVue = window.Vue;
} else if (typeof global !== "undefined") {
GlobalVue = global.Vue;
let GlobalVue = null
if (typeof window !== 'undefined') {
GlobalVue = window.Vue
} else if (typeof global !== 'undefined') {
GlobalVue = global.Vue
}
if (GlobalVue) {
GlobalVue.use(plugin);
GlobalVue.use(plugin)
}

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc