From 79781f482d3199ea1976c27413296d8d00eb8ac8 Mon Sep 17 00:00:00 2001 From: Halil Beycan <50718965+BeycanDeveloper@users.noreply.github.com> Date: Sun, 29 Sep 2024 09:34:28 +0800 Subject: [PATCH] updated --- .distignore | 3 +-- assets/js/main.min.js | 29 +-------------------------- assets/js/main.min.js.map | 2 +- src/js/main.js | 42 --------------------------------------- 4 files changed, 3 insertions(+), 73 deletions(-) diff --git a/.distignore b/.distignore index 5bc199e..9c1f764 100644 --- a/.distignore +++ b/.distignore @@ -10,5 +10,4 @@ composer.lock phpcs.xml gulpfile.mjs package.json -package-lock.json -/src/ \ No newline at end of file +package-lock.json \ No newline at end of file diff --git a/assets/js/main.min.js b/assets/js/main.min.js index d7653f5..b8a40b4 100644 --- a/assets/js/main.min.js +++ b/assets/js/main.min.js @@ -1,29 +1,2 @@ -jQuery(document).ready(()=>{var params;if(window.CryptoPayLiteLang=CryptoPayLiteConfig.lang,window.CryptoPayLiteConfig=window.cplTyping(CryptoPayLiteConfig),window.CryptoPayLiteApp=InitCryptoPayLite("cryptopay-lite",CryptoPayLiteConfig),Boolean(window.CryptoPayLiteVars?.order&&window.CryptoPayLiteVars?.autoStart)&&(params=window.CryptoPayLiteVars?.params||{},window.CryptoPayLiteApp.start(window.CryptoPayLiteVars.order,params)),!window.customElements.get("cpl-powered-by")){const template=document.createElement("template");template.innerHTML=` - - - `;class CPPoweredBy extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(template.content.cloneNode(!0))}}window.customElements.define("cpl-powered-by",CPPoweredBy)}}); +jQuery(document).ready(()=>{var params;window.CryptoPayLiteLang=CryptoPayLiteConfig.lang,window.CryptoPayLiteConfig=window.cplTyping(CryptoPayLiteConfig),window.CryptoPayLiteApp=InitCryptoPayLite("cryptopay-lite",CryptoPayLiteConfig),Boolean(window.CryptoPayLiteVars?.order&&window.CryptoPayLiteVars?.autoStart)&&(params=window.CryptoPayLiteVars?.params||{},window.CryptoPayLiteApp.start(window.CryptoPayLiteVars.order,params))}); //# sourceMappingURL=main.min.js.map diff --git a/assets/js/main.min.js.map b/assets/js/main.min.js.map index e66333d..abdb505 100644 --- a/assets/js/main.min.js.map +++ b/assets/js/main.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["main.js"],"names":["jQuery","document","ready","params","window","CryptoPayLiteLang","CryptoPayLiteConfig","lang","cplTyping","CryptoPayLiteApp","InitCryptoPayLite","Boolean","CryptoPayLiteVars","order","autoStart","start","customElements","get","template","createElement","innerHTML","CPPoweredBy","HTMLElement","constructor","super","this","attachShadow","mode","shadowRoot","appendChild","content","cloneNode","define"],"mappings":"AAuDAA,OAtDAC,QAAA,EAAAC,MAAA,KAOA,IACAC,OAIA,GAVAC,OAAAC,kBAAAC,oBAAAC,KACAH,OAAAE,oBAAAF,OAAAI,UAAAF,mBAAA,EACAF,OAAAK,iBAAAC,kBAAA,iBAAAJ,mBAAA,EAGAK,QAAAP,OAAAQ,mBAAAC,OAAAT,OAAAQ,mBAAAE,SAAA,IACAX,OAAAC,OAAAQ,mBAAAT,QAAA,GACAC,OAAAK,iBAAAM,MAAAX,OAAAQ,kBAAAC,MAAAV,MAAA,GAGA,CAAAC,OAAAY,eAAAC,IAAA,gBAAA,EAAA,CACA,MAAAC,SAAAjB,SAAAkB,cAAA,UAAA,EACAD,SAAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA6BAC,oBAAAC,YACAC,cACAC,MAAA,EACAC,KAAAC,aAAA,CAAAC,KAAA,MAAA,CAAA,EACAF,KAAAG,WAAAC,YAAAX,SAAAY,QAAAC,UAAA,CAAA,CAAA,CAAA,CACA,CACA,CAEA3B,OAAAY,eAAAgB,OAAA,iBAAAX,WAAA,CACA,CACA,CAAA","file":"main.min.js","sourcesContent":[";(($) => {\n $(document).ready(() => {\n // set vars\n window.CryptoPayLiteLang = CryptoPayLiteConfig.lang;\n window.CryptoPayLiteConfig = window.cplTyping(CryptoPayLiteConfig);\n window.CryptoPayLiteApp = InitCryptoPayLite('cryptopay-lite', CryptoPayLiteConfig);\n\n // auto start, if order exists and autoStart is true\n if (Boolean(window.CryptoPayLiteVars?.order && window.CryptoPayLiteVars?.autoStart)) {\n const params = window.CryptoPayLiteVars?.params || {};\n window.CryptoPayLiteApp.start(window.CryptoPayLiteVars.order, params);\n }\n\n if (!window.customElements.get('cpl-powered-by')) {\n const template = document.createElement('template');\n template.innerHTML = `\n
\n \n Powered by\n \n CryptoPay\n
\n \n `;\n \n class CPPoweredBy extends HTMLElement {\n constructor(){\n super();\n this.attachShadow({ mode: 'open'});\n this.shadowRoot.appendChild(template.content.cloneNode(true));\n } \n }\n\n window.customElements.define('cpl-powered-by', CPPoweredBy);\n }\n });\n})(jQuery);"]} \ No newline at end of file +{"version":3,"sources":["main.js"],"names":["jQuery","document","ready","params","window","CryptoPayLiteLang","CryptoPayLiteConfig","lang","cplTyping","CryptoPayLiteApp","InitCryptoPayLite","Boolean","CryptoPayLiteVars","order","autoStart","start"],"mappings":"AAaAA,OAZAC,QAAA,EAAAC,MAAA,KAOA,IACAC,OANAC,OAAAC,kBAAAC,oBAAAC,KACAH,OAAAE,oBAAAF,OAAAI,UAAAF,mBAAA,EACAF,OAAAK,iBAAAC,kBAAA,iBAAAJ,mBAAA,EAGAK,QAAAP,OAAAQ,mBAAAC,OAAAT,OAAAQ,mBAAAE,SAAA,IACAX,OAAAC,OAAAQ,mBAAAT,QAAA,GACAC,OAAAK,iBAAAM,MAAAX,OAAAQ,kBAAAC,MAAAV,MAAA,EAEA,CAAA","file":"main.min.js","sourcesContent":[";(($) => {\n $(document).ready(() => {\n // set vars\n window.CryptoPayLiteLang = CryptoPayLiteConfig.lang;\n window.CryptoPayLiteConfig = window.cplTyping(CryptoPayLiteConfig);\n window.CryptoPayLiteApp = InitCryptoPayLite('cryptopay-lite', CryptoPayLiteConfig);\n\n // auto start, if order exists and autoStart is true\n if (Boolean(window.CryptoPayLiteVars?.order && window.CryptoPayLiteVars?.autoStart)) {\n const params = window.CryptoPayLiteVars?.params || {};\n window.CryptoPayLiteApp.start(window.CryptoPayLiteVars.order, params);\n }\n });\n})(jQuery);"]} \ No newline at end of file diff --git a/src/js/main.js b/src/js/main.js index 743b630..49978b4 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -10,47 +10,5 @@ const params = window.CryptoPayLiteVars?.params || {}; window.CryptoPayLiteApp.start(window.CryptoPayLiteVars.order, params); } - - if (!window.customElements.get('cpl-powered-by')) { - const template = document.createElement('template'); - template.innerHTML = ` - - - `; - - class CPPoweredBy extends HTMLElement { - constructor(){ - super(); - this.attachShadow({ mode: 'open'}); - this.shadowRoot.appendChild(template.content.cloneNode(true)); - } - } - - window.customElements.define('cpl-powered-by', CPPoweredBy); - } }); })(jQuery); \ No newline at end of file