touchstudy-core 0.1.0 → 0.1.1
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/components/Commons/NotFound.d.ts +3 -0
- package/dist/components/Dialogs/CommonDialog.d.ts +10 -0
- package/dist/components/Dialogs/ConfirmDialog.d.ts +12 -0
- package/dist/components/Loading/Loading.d.ts +3 -0
- package/dist/components/Paginations/CustomPagination.d.ts +8 -0
- package/dist/containers/Login/apiClient/index.d.ts +1 -0
- package/dist/containers/Login/hooks/useLogin.d.ts +0 -3
- package/dist/containers/Login/views/Login.d.ts +5 -8
- package/dist/containers/Login/views/block/BlockLogin.d.ts +3 -2
- package/dist/index.css +17 -695
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1495 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1480 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/LayoutContext.d.ts +6 -0
- package/dist/redux/commons/action.d.ts +1 -0
- package/dist/services/accountService.d.ts +1 -0
- package/dist/services/api.d.ts +3 -0
- package/dist/store.d.ts +2 -0
- package/dist/utils/canAccessRoute.d.ts +2 -0
- package/dist/utils/constants.d.ts +5 -1
- package/dist/utils/diffFromNow.d.ts +3 -0
- package/dist/utils/encodeParams.d.ts +2 -0
- package/dist/utils/formatTime.d.ts +2 -0
- package/dist/utils/getAccessToken.d.ts +2 -0
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/utcToLocalTime.d.ts +2 -0
- package/package.json +6 -2
- package/dist/components/Alerts/ReactNotification.d.ts +0 -4
- package/dist/components/Alerts/SandboxAlert.d.ts +0 -3
@@ -0,0 +1,10 @@
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
2
|
+
interface Props {
|
3
|
+
open: boolean;
|
4
|
+
onClose: () => void;
|
5
|
+
centered?: boolean;
|
6
|
+
title: string;
|
7
|
+
size?: "xs" | "lg" | "xl";
|
8
|
+
}
|
9
|
+
declare const CommonDialog: FC<Props & PropsWithChildren>;
|
10
|
+
export default CommonDialog;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
interface Props {
|
3
|
+
text: string;
|
4
|
+
cancelText?: string;
|
5
|
+
okText?: string;
|
6
|
+
onConfirm: () => void;
|
7
|
+
open: boolean;
|
8
|
+
toggle: () => void;
|
9
|
+
isDelete?: boolean;
|
10
|
+
}
|
11
|
+
export declare const ConfirmDialog: FC<Props>;
|
12
|
+
export {};
|
@@ -7,14 +7,11 @@ declare type LoginInfo = {
|
|
7
7
|
};
|
8
8
|
declare const useLogin: () => {
|
9
9
|
defaultInfo: LoginInfo;
|
10
|
-
userLogin: (_data: any) => Promise<void>;
|
11
10
|
openLogin: boolean;
|
12
11
|
toggle: () => void;
|
13
12
|
isShowPassword: boolean;
|
14
13
|
setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
15
14
|
infoUser: any;
|
16
15
|
setInfoUser: import("react").Dispatch<any>;
|
17
|
-
googleClientId: string;
|
18
|
-
googleRecaptchaId: string;
|
19
16
|
};
|
20
17
|
export default useLogin;
|
@@ -1,10 +1,7 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
isResetPassword?: boolean;
|
6
|
-
isLoginTwoFactor?: boolean;
|
7
|
-
isCreatePassword?: boolean;
|
1
|
+
import { FC } from "react";
|
2
|
+
import { INavigateProps } from "../../../utils/types";
|
3
|
+
interface Props {
|
4
|
+
isTeacher?: boolean;
|
8
5
|
}
|
9
|
-
declare const Login:
|
6
|
+
declare const Login: FC<INavigateProps & Props>;
|
10
7
|
export default Login;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { FC } from "react";
|
2
|
+
import { INavigateProps } from "../../../../utils/types";
|
2
3
|
interface Props {
|
3
4
|
defaultInfo?: any;
|
4
|
-
|
5
|
+
isTeacher?: boolean;
|
5
6
|
}
|
6
|
-
declare const BlockLogin: FC<Props>;
|
7
|
+
declare const BlockLogin: FC<Props & INavigateProps>;
|
7
8
|
export default BlockLogin;
|