remove angular-stripe-checkout
This commit is contained in:
parent
71f358392c
commit
1211a9c43a
|
@ -432,9 +432,7 @@ function check_resource() {
|
|||
# CREATE URLs
|
||||
# =============================================================================
|
||||
function create_url() {
|
||||
if [ "$folder" = "angular-stripe-checkout" ]; then
|
||||
url="$JSDELIVR/npm/angular-stripe-checkout@$version/angular-stripe-checkout.min.js"
|
||||
elif [ "$folder" = "ethjs" ]; then
|
||||
if [ "$folder" = "ethjs" ]; then
|
||||
url="$JSDELIVR/npm/ethjs@$version/dist/ethjs.min.js"
|
||||
elif [ "$folder" = "react-lifecycles-compat" ]; then
|
||||
url="$JSDELIVR/npm/react-lifecycles-compat@$version/react-lifecycles-compat.min.js"
|
||||
|
|
|
@ -581,7 +581,6 @@ mappings.cdn = {
|
|||
'angular@{version}/angular.': resources.angular,
|
||||
'angular@{version}/angular.min.': resources.angular,
|
||||
'angular-payments@{version}/lib/angular-payments.js': resources.angularPayments,
|
||||
'angular-stripe-checkout@{version}/angular-stripe-checkout.js': resources.angularStripeCheckout,
|
||||
'animate.css@{version}/animate.min.css': resources.animateCSS,
|
||||
'animejs@{version}/lib/anime.': resources.animejs,
|
||||
'aos@{version}/dist/aos.css': resources.aosCSS,
|
||||
|
|
|
@ -128,10 +128,6 @@ var resources = {
|
|||
'angularPayments': {
|
||||
'path': 'resources/zumper-angular-payments/{version}/angular-payments.jsm'
|
||||
},
|
||||
// Angular Stripe Checkout [Deprecated]
|
||||
'angularStripeCheckout': {
|
||||
'path': 'resources/angular-stripe-checkout/{version}/angular-stripe-checkout.min.jsm'
|
||||
},
|
||||
// Angular Translate (Bundle)
|
||||
'angularTranslate': {
|
||||
'path': 'resources/angular-translate/{version}/'
|
||||
|
|
|
@ -110,7 +110,6 @@ targets.setLastVersion = function (type, version) {
|
|||
if (type.startsWith('/angularjs-toaster/3.')) return '3.0.0';
|
||||
if (type.startsWith('/angular-bootstrap-colorpicker/3.')) return '3.0.32';
|
||||
if (type.startsWith('/zumper-angular-payments/1.')) return '1.0.7';
|
||||
if (type.startsWith('/angular-stripe-checkout@5.')) return '5.1.0';
|
||||
if (type.startsWith('/angular-translate-loader-partial/2.')) return '2.19.1';
|
||||
if (type.startsWith('/angular-ui-bootstrap/')) {
|
||||
if (helpers.compareVersion('0.10.0', version)) return '0.10.0'; // <= v0.10.0
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
<li>FitText.js</li>
|
||||
<li>angular-ui-select</li>
|
||||
<li>angular-ui-utils</li>
|
||||
<li>angular-stripe-checkout</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="generator-section">
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
(function(){"use strict";var e="stripe.checkout";var t="https://checkout.stripe.com/checkout.js";var n={address:["data-address","boolean"],alipay:["data-alipay","boolean-or-auto"],alipayReusable:["data-alipay-reusable","boolean"],allowRememberMe:["data-allow-remember-me","boolean"],amount:["data-amount","number"],billingAddress:["data-billing-address","boolean"],bitcoin:["data-bitcoin","boolean"],currency:["data-currency","string"],description:["data-description","string"],email:["data-email","string"],image:["data-image","string"],key:["data-key","string"],label:["data-label","string"],locale:["data-locale","string"],name:["data-name","string"],color:["data-color","string"],panelLabel:["data-panel-label","string"],shippingAddress:["data-shipping-address","boolean"],zipCode:["data-zip-code","boolean"]};var a;if(typeof module!=="undefined"&&typeof module.exports==="object"){a=require("angular");module.exports=e}else{a=window.angular}var o=a.extend;a.module(e,[]).directive("stripeCheckout",r).provider("StripeCheckout",i);r.$inject=["$parse","StripeCheckout"];function r(e,t){return{link:n};function n(n,a,o){var r;t.load().then(function(){r=t.configure(u(a))});a.on("click",function(){if(r)r.open(u(a)).then(function(t){var a=e(o.stripeCheckout)(n);if(typeof a==="function")a.apply(null,t)})})}}function i(){var e={};this.defaults=function(t){o(e,t)};this.load=function(e){return e.load()};this.load.$inject=["StripeCheckout"];this.$get=function(t,n){return new l(t,n,e)};this.$get.$inject=["$document","$q"]}function l(e,t,n){var a={};var r;this.configure=function(e){return new c(t,o({},n,a,e))};this.load=function(){if(!r)r=s(e,t);return r};this.defaults=function(e){o(a,e)}}function c(e,t){var n,a;var r=StripeCheckout.configure(o({},t,{token:function(e,o){if(t.token)t.token(e,o);a=true;n.resolve([e,o])},closed:function(){if(t.closed)t.closed();if(!a)n.reject()}}));this.open=function(t){n=e.defer();a=false;r.open(t);return n.promise};this.close=function(){a=false;r.close();if(t.closed)t.closed();if(n)n.reject()}}function u(e){var t,a,o,r={};for(t in n){if(!n.hasOwnProperty(t))continue;a=n[t];o=d(e.attr(a[0]),a[1]);if(o!=null)r[t]=o}return r}function s(e,n){var a=n.defer();var o=e[0];var r=o.createElement("script");r.src=t;r.onload=function(){a.resolve()};r.onreadystatechange=function(){var e=this.readyState;if(e==="loaded"||e==="complete")a.resolve()};r.onerror=function(){a.reject(new Error("Unable to load checkout.js"))};var i=o.getElementsByTagName("head")[0];i.appendChild(r);return a.promise}function d(e,t){if(t==="boolean"){return e&&e!=="false"}else if(t==="number"){return e&&Number(e)}else if(t==="boolean-or-auto"){if(e==="auto")return e;else return d(e,"boolean")}else{return e}}})();
|
Loading…
Reference in New Issue