aq-fe-framework 0.1.544 → 0.1.546

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.
@@ -3,18 +3,6 @@ import {
3
3
  __spreadValues
4
4
  } from "./chunk-FWCSY2DS.mjs";
5
5
 
6
- // src/utils/utils_config_getBaseUrl.ts
7
- async function utils_config_getBaseUrl({
8
- configUrl = "/config.json"
9
- } = {}) {
10
- const res = await fetch(configUrl);
11
- if (!res.ok) {
12
- throw new Error("Kh\xF4ng th\u1EC3 t\u1EA3i c\u1EA5u h\xECnh runtime");
13
- }
14
- const config = await res.json();
15
- return config.baseURL;
16
- }
17
-
18
6
  // src/utils/utils_converter.ts
19
7
  function utils_converter_mapEnumToSelectData(enumObj, labelMap) {
20
8
  return Object.entries(enumObj).filter(([key, value]) => typeof value === "number").map(([_, value]) => {
@@ -360,7 +348,6 @@ var utils_validator_validateCode = (value) => {
360
348
  };
361
349
 
362
350
  export {
363
- utils_config_getBaseUrl,
364
351
  utils_converter_mapEnumToSelectData,
365
352
  utils_converter_getLabelByValue,
366
353
  utils_converter_getKeyByValue,
@@ -1,11 +1,10 @@
1
1
  import {
2
2
  U0MyValidateEmail,
3
3
  updateEnableList,
4
- utils_config_getBaseUrl,
5
4
  utils_converter_enumToSelectOptions,
6
5
  utils_file_fileToAQDocumentType,
7
6
  utils_mantineReactTable_filterColumnsByVisibleKeys
8
- } from "../chunk-F3A4SX3H.mjs";
7
+ } from "../chunk-IJVG5JPV.mjs";
9
8
  import {
10
9
  baseColumns
11
10
  } from "../chunk-7PUDC2WF.mjs";
@@ -6051,7 +6050,6 @@ import {
6051
6050
  } from "@mantine/core";
6052
6051
  import { useForm as useForm36 } from "@mantine/form";
6053
6052
  import { useMutation as useMutation5 } from "@tanstack/react-query";
6054
- import axios from "axios";
6055
6053
  import Link from "next/link";
6056
6054
  import { useRouter as useRouter2 } from "next/navigation";
6057
6055
  import { useEffect as useEffect13, useState as useState11 } from "react";
@@ -6198,8 +6196,7 @@ function F_authenticate_Login({
6198
6196
  function useM_Account_Sigin() {
6199
6197
  const mutation = useMutation5({
6200
6198
  mutationFn: async (values) => {
6201
- const endpoint = await utils_config_getBaseUrl() + "/Account/SignIn";
6202
- const result = await axios.post(endpoint, values);
6199
+ const result = await baseAxios_default.post("/Account/SignIn", values);
6203
6200
  return result.data;
6204
6201
  }
6205
6202
  });
@@ -27,7 +27,7 @@ import {
27
27
  utils_time_getCurrentTimeString,
28
28
  utils_time_getHourMinuteFromString,
29
29
  utils_validator_validateCode
30
- } from "../chunk-F3A4SX3H.mjs";
30
+ } from "../chunk-IJVG5JPV.mjs";
31
31
  import {
32
32
  U0DateToDDMMYYYString,
33
33
  utils_date_dateToDDMMYYYString,
package/package.json CHANGED
@@ -46,7 +46,7 @@
46
46
  "types": "./dist/coreService/index.d.mts"
47
47
  }
48
48
  },
49
- "version": "0.1.544",
49
+ "version": "0.1.546",
50
50
  "private": false,
51
51
  "files": [
52
52
  "dist"