initial commit

This commit is contained in:
Kukks
2023-01-16 10:31:48 +01:00
parent 136273406c
commit 25ccd99558
171 changed files with 10592 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
Vue.component("side-shift", {
props: ["toCurrency", "toCurrencyDue", "toCurrencyAddress"],
methods: {
openDialog: function (e) {
if (e && e.preventDefault) {
e.preventDefault();
}
let settleMethodId = "";
let amount = !this.$parent.srvModel.isUnsetTopUp
? this.toCurrencyDue
: undefined;
if (this.toCurrency.toLowerCase() === "lbtc") {
settleMethodId = "liquid";
} else if (this.toCurrency.toLowerCase() === "usdt") {
settleMethodId = "usdtla";
} else if (
this.toCurrency.endsWith("LightningLike") ||
this.toCurrency.endsWith("LNURLPay")
) {
settleMethodId = "ln";
} else {
settleMethodId = this.toCurrency
.replace("_BTCLike", "")
.replace("_MoneroLike", "")
.replace("_ZcashLike", "")
.toLowerCase();
}
window.__SIDESHIFT__ = {
parentAffiliateId: "qg0OrfHJV",
defaultSettleMethodId: settleMethodId,
settleAddress: this.toCurrencyAddress,
settleAmount: amount,
type: !this.$parent.srvModel.isUnsetTopUp ? "fixed" : undefined,
};
window.sideshift.show();
},
},
});