@unsource/ui 2.8.27 → 2.9.29

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.8.27",
4
+ "version": "2.9.29",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -71,7 +71,7 @@ const items = computed(() => [
71
71
  }
72
72
  ]);
73
73
  const submit = async () => {
74
- const isConfirm = confirm("\u0622\u06CC\u0627 \u0645\u0637\u0645\u0639\u0646 \u0647\u0633\u062A\u06CC\u062F\u061F");
74
+ const isConfirm = confirm("\u0622\u06CC\u0627 \u0645\u0637\u0645\u0626\u0646 \u0647\u0633\u062A\u06CC\u062F\u061F");
75
75
  if (!isConfirm) return;
76
76
  if (!toUser.value) return;
77
77
  if (!ajv.validate(schema.value.schema, form.value)) {
@@ -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);
@@ -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.8.27",
3
+ "version": "2.9.29",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",