aq-fe-framework 0.1.321 → 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;
|
@@ -4071,24 +4071,18 @@ function F_organizationPolicyDocs({ RegulationsTypeId }) {
|
|
4071
4071
|
] });
|
4072
4072
|
}
|
4073
4073
|
|
4074
|
-
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4075
|
-
import { Group as Group4 } from "@mantine/core";
|
4076
|
-
import { useMemo as useMemo16 } from "react";
|
4077
|
-
|
4078
4074
|
// src/api/services/service_pageContent.ts
|
4079
4075
|
var CONTROLLER4 = "/eva/PageContent";
|
4080
4076
|
var service_pageContent = __spreadValues({}, createBaseApi(CONTROLLER4, baseAxios_default));
|
4081
4077
|
|
4082
|
-
// src/modules-features/admin/core/pageContentConfig/
|
4078
|
+
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4079
|
+
import { Group as Group4 } from "@mantine/core";
|
4080
|
+
import { useMemo as useMemo16 } from "react";
|
4081
|
+
|
4082
|
+
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4083
4083
|
import { jsx as jsx72 } from "react/jsx-runtime";
|
4084
|
-
function
|
4085
|
-
|
4086
|
-
axiosFn: () => {
|
4087
|
-
console.log("value");
|
4088
|
-
return service_pageContent.updateList([{ id: 1 }]);
|
4089
|
-
}
|
4090
|
-
});
|
4091
|
-
return /* @__PURE__ */ jsx72(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4084
|
+
function F_pageContentConfig_DeleteDescription() {
|
4085
|
+
return /* @__PURE__ */ jsx72(MyButton2, { actionType: "delete" });
|
4092
4086
|
}
|
4093
4087
|
|
4094
4088
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
@@ -4097,10 +4091,16 @@ function F_pageContentConfig_Export() {
|
|
4097
4091
|
return /* @__PURE__ */ jsx73(MyButton2, { actionType: "export" });
|
4098
4092
|
}
|
4099
4093
|
|
4100
|
-
// src/modules-features/admin/core/pageContentConfig/
|
4094
|
+
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
4101
4095
|
import { jsx as jsx74 } from "react/jsx-runtime";
|
4102
|
-
function
|
4103
|
-
|
4096
|
+
function F_pageContentConfig_Save({ menuValues }) {
|
4097
|
+
const updatePageConfigMutation = useMyReactMutation({
|
4098
|
+
axiosFn: () => {
|
4099
|
+
console.log("value");
|
4100
|
+
return service_pageContent.updateList([{ id: 1 }]);
|
4101
|
+
}
|
4102
|
+
});
|
4103
|
+
return /* @__PURE__ */ jsx74(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4104
4104
|
}
|
4105
4105
|
|
4106
4106
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
@@ -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 {
|