@unsource/ui 2.8.28 → 2.9.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -86,7 +86,7 @@ const submit = async () => {
|
|
|
86
86
|
toWalletId: w.value?.find((e) => e.coin.key === "wallet")?.id,
|
|
87
87
|
status: "ACCEPTED",
|
|
88
88
|
type: "TRANSFER",
|
|
89
|
-
redirectUrl: window.urlPrefix + location.href,
|
|
89
|
+
redirectUrl: (window.urlPrefix || "") + location.href,
|
|
90
90
|
amount: Number(s2n(amount.value))
|
|
91
91
|
};
|
|
92
92
|
const res = await submitPayment(0, details, void 0, false);
|
|
@@ -43,7 +43,7 @@ const deposit = async () => {
|
|
|
43
43
|
gatewayId: selectedMethod.value?.id,
|
|
44
44
|
status: "PENDING",
|
|
45
45
|
type: "DEPOSIT",
|
|
46
|
-
redirectUrl: window.urlPrefix + location.href,
|
|
46
|
+
redirectUrl: (window.urlPrefix || "") + location.href,
|
|
47
47
|
amount: Number(s2n(depositAmount.value))
|
|
48
48
|
};
|
|
49
49
|
await submitPayment(0, details, void 0, true).catch(() => loading.value = false);
|
|
@@ -282,7 +282,7 @@ export const submitPayment = async (amount, details = {}, giftCode = void 0, red
|
|
|
282
282
|
userId: userId.value || "",
|
|
283
283
|
discountCode: giftCode,
|
|
284
284
|
type: "PAYMENT",
|
|
285
|
-
redirectUrl: window.urlPrefix + location.origin + "/verify",
|
|
285
|
+
redirectUrl: (window.urlPrefix || "") + location.origin + "/verify",
|
|
286
286
|
...details
|
|
287
287
|
});
|
|
288
288
|
console.log("here", result);
|
|
@@ -36,7 +36,7 @@ export const getCoin = async (id = null) => {
|
|
|
36
36
|
if (id) {
|
|
37
37
|
res = await useGet(`/coin/${id}`);
|
|
38
38
|
} else {
|
|
39
|
-
res = await useGet("/coin/
|
|
39
|
+
res = await useGet("/coin/key/IRT");
|
|
40
40
|
}
|
|
41
41
|
if (res) {
|
|
42
42
|
return res.result;
|
|
@@ -66,7 +66,7 @@ export const getCategorySection = async (data) => {
|
|
|
66
66
|
const { result } = await useGet(`/InputOption${data.query}`, {
|
|
67
67
|
headers: {
|
|
68
68
|
"qt": "v1",
|
|
69
|
-
"app-code": data.appCode
|
|
69
|
+
"app-code": data.appCode || window.APP_CODE
|
|
70
70
|
},
|
|
71
71
|
params: {
|
|
72
72
|
"with-input": true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unsource/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "nuxt ui kit for unsource env",
|
|
6
6
|
"repository": "https://github.com/alisa2142/unsource-ui",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
|
-
"prepack": "nuxt-module-build build",
|
|
30
29
|
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
31
30
|
"dev:build": "nuxi build playground",
|
|
32
31
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|