aq-fe-framework 0.1.322 → 0.1.323
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.
@@ -2,10 +2,6 @@ import { I as IBaseEntity } from '../base-BprRafT5.mjs';
|
|
2
2
|
export { I as IEmailConfig } from '../EmailConfig-DvTXTBt3.mjs';
|
3
3
|
export { I as IAQModule } from '../IAQModule-CCtwv-e0.mjs';
|
4
4
|
|
5
|
-
interface IPageContent extends IBaseEntity {
|
6
|
-
description?: string;
|
7
|
-
}
|
8
|
-
|
9
5
|
interface IFile {
|
10
6
|
fileName?: string | undefined;
|
11
7
|
fileExtension?: string | undefined;
|
@@ -55,4 +51,8 @@ interface IUser extends IBaseEntity {
|
|
55
51
|
email?: string;
|
56
52
|
}
|
57
53
|
|
54
|
+
interface IPageContent extends IBaseEntity {
|
55
|
+
description?: string;
|
56
|
+
}
|
57
|
+
|
58
58
|
export { IBaseEntity, type IDocument, type IFile, type IPageContent, type IPagePermission, type IRole, type IUser };
|
@@ -858,6 +858,17 @@ declare function useS_authenticate(): {
|
|
858
858
|
resetState: () => void;
|
859
859
|
};
|
860
860
|
|
861
|
+
interface IData {
|
862
|
+
userName?: string;
|
863
|
+
userId?: number;
|
864
|
+
userFullName?: string;
|
865
|
+
token?: string;
|
866
|
+
}
|
867
|
+
interface IResponseData {
|
868
|
+
data?: IData;
|
869
|
+
isSuccess?: number | boolean;
|
870
|
+
message?: string;
|
871
|
+
}
|
861
872
|
interface F_authenticate_Login_Props {
|
862
873
|
header?: ReactNode;
|
863
874
|
showLoginButton?: boolean;
|
@@ -866,7 +877,7 @@ interface F_authenticate_Login_Props {
|
|
866
877
|
backgroundImage?: string;
|
867
878
|
showSaveLogin?: boolean;
|
868
879
|
showForgotPassword?: boolean;
|
869
|
-
onSuccess?: (data?:
|
880
|
+
onSuccess?: (data?: IResponseData) => void;
|
870
881
|
customSubmit?: (username?: string, password?: string) => void;
|
871
882
|
}
|
872
883
|
declare function F_authenticate_Login({ header, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess, showLoginButton, showSaveLogin, showForgotPassword, customSubmit }: F_authenticate_Login_Props): react_jsx_runtime.JSX.Element;
|
@@ -41,9 +41,6 @@ import "../chunk-5U2JSHSJ.mjs";
|
|
41
41
|
import {
|
42
42
|
const_object_documentTypes
|
43
43
|
} from "../chunk-BZMQOGL6.mjs";
|
44
|
-
import {
|
45
|
-
enum_emailConfigModule
|
46
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
47
44
|
import {
|
48
45
|
MyButton as MyButton2,
|
49
46
|
MyDataTableSelectOne,
|
@@ -57,6 +54,9 @@ import {
|
|
57
54
|
import {
|
58
55
|
const_object_colors
|
59
56
|
} from "../chunk-NWBLJ3W3.mjs";
|
57
|
+
import {
|
58
|
+
enum_emailConfigModule
|
59
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
60
60
|
import "../chunk-K6S7R6LU.mjs";
|
61
61
|
import {
|
62
62
|
baseAxios_default,
|
@@ -5309,6 +5309,7 @@ function F_authenticate_Login({
|
|
5309
5309
|
"passWord": passWord
|
5310
5310
|
}, {
|
5311
5311
|
onSuccess: (data) => {
|
5312
|
+
var _a, _b, _c, _d;
|
5312
5313
|
if (data.isSuccess === false) {
|
5313
5314
|
form.setFieldError("username", "T\xE0i kho\u1EA3n kh\xF4ng t\u1ED3n t\u1EA1i");
|
5314
5315
|
loadingState[1](false);
|
@@ -5319,10 +5320,10 @@ function F_authenticate_Login({
|
|
5319
5320
|
loadingState[1](false);
|
5320
5321
|
return;
|
5321
5322
|
}
|
5322
|
-
authenticate_store.setProperty("code", data.data.userName);
|
5323
|
-
authenticate_store.setProperty("fullName", data.data.userFullName);
|
5324
|
-
authenticate_store.setProperty("userId", data.data.userId);
|
5325
|
-
authenticate_store.setProperty("token", data.data.token);
|
5323
|
+
authenticate_store.setProperty("code", (_a = data.data) == null ? void 0 : _a.userName);
|
5324
|
+
authenticate_store.setProperty("fullName", (_b = data.data) == null ? void 0 : _b.userFullName);
|
5325
|
+
authenticate_store.setProperty("userId", (_c = data.data) == null ? void 0 : _c.userId);
|
5326
|
+
authenticate_store.setProperty("token", (_d = data.data) == null ? void 0 : _d.token);
|
5326
5327
|
if (authenticate_store.state.saveLogin == true) {
|
5327
5328
|
authenticate_store.setProperty("username", userName);
|
5328
5329
|
} else {
|