acsi-core 0.1.0

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/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # Getting Started with Create React App
2
+
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run:
8
+
9
+ ### `npm start`
10
+
11
+ Runs the app in the development mode.\
12
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
+
14
+ The page will reload if you make edits.\
15
+ You will also see any lint errors in the console.
16
+
17
+ ### `npm test`
18
+
19
+ Launches the test runner in the interactive watch mode.\
20
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
+
22
+ ### `npm run build`
23
+
24
+ Builds the app for production to the `build` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
+
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
29
+
30
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
+
32
+ ### `npm run eject`
33
+
34
+ **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
+
36
+ If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
+
38
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
+
40
+ You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
+
42
+ ## Learn More
43
+
44
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
+
46
+ To learn React, check out the [React documentation](https://reactjs.org/).
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const CommonAlert: FC;
3
+ export default CommonAlert;
@@ -0,0 +1,8 @@
1
+ import { CSSProperties, FC } from "react";
2
+ interface Props {
3
+ label: string;
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ }
7
+ declare const EmptyDataAlert: FC<Props>;
8
+ export default EmptyDataAlert;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ text: string;
4
+ }
5
+ declare const ErrorHandler: FC<Props>;
6
+ export default ErrorHandler;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const NotFound: FC;
3
+ export default NotFound;
@@ -0,0 +1,9 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ interface Props {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ centered?: boolean;
6
+ title: string;
7
+ }
8
+ declare const CommonDialog: FC<Props & PropsWithChildren>;
9
+ 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 {};
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const Loading: FC;
3
+ export default Loading;
@@ -0,0 +1,3 @@
1
+ import { AxiosInstance } from "axios";
2
+ export declare const api: AxiosInstance;
3
+ export declare const apiUpload: AxiosInstance;
@@ -0,0 +1,2 @@
1
+ export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare const apiLoginGoogle: (body: any) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ declare type LoginInfo = {
3
+ email: string;
4
+ password: string;
5
+ captcha: string;
6
+ rememberMe: boolean;
7
+ };
8
+ declare const useLogin: () => {
9
+ defaultInfo: LoginInfo;
10
+ openLogin: boolean;
11
+ toggle: () => void;
12
+ isShowPassword: boolean;
13
+ setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
14
+ infoUser: any;
15
+ setInfoUser: import("react").Dispatch<any>;
16
+ };
17
+ export default useLogin;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { INavigateProps } from "../../../utils/types";
3
+ declare const Login: (props: INavigateProps) => React.JSX.Element;
4
+ export default Login;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import { INavigateProps } from "../../../../utils/types";
3
+ interface Props {
4
+ defaultInfo?: any;
5
+ }
6
+ declare const BlockLogin: FC<Props & INavigateProps>;
7
+ export default BlockLogin;
package/dist/index.css ADDED
@@ -0,0 +1,36 @@
1
+ ._18HOc ._397BX {
2
+ border: 0;
3
+ background: transparent;
4
+ margin-left: 1.5rem;
5
+ background-color: #02b1e1 !important;
6
+ color: white;
7
+ font-family: "Roboto Slab", serif;
8
+ padding: 0.3rem 1rem;
9
+ border-radius: 8px;
10
+ margin-top: 1rem; }
11
+ ._18HOc ._397BX img {
12
+ height: 0.9rem;
13
+ margin-right: 0.3rem; }
14
+
15
+ ._18HOc ._2ZRO9 {
16
+ width: 760px;
17
+ box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.25098);
18
+ border-radius: 10px; }
19
+ ._18HOc ._2ZRO9 ._ii7EY {
20
+ background-color: #00b1e1;
21
+ color: white;
22
+ text-align: center;
23
+ font-family: "Roboto Slab", serif;
24
+ font-size: 1.8rem;
25
+ padding: 1.4rem 1rem;
26
+ border-top-left-radius: 10px;
27
+ border-top-right-radius: 10px; }
28
+ ._18HOc ._2ZRO9 ._LLdCT button {
29
+ box-shadow: 0px 1px 8px #00000040;
30
+ font-size: 1.2rem;
31
+ margin-bottom: 0.6rem;
32
+ color: white;
33
+ border-radius: 8px;
34
+ border: 0px;
35
+ padding-bottom: 0.4rem;
36
+ padding-top: 0.4rem; }
@@ -0,0 +1,12 @@
1
+ declare const historyCore: import("history").History<unknown>;
2
+ import { setLoading, setAlert, setUser } from "./redux/commons/action";
3
+ import { BASE_URL, ACCESS_TOKEN } from "./utils/constants";
4
+ import Login from "./containers/Login/views/Login";
5
+ import store from "./store";
6
+ import NotFound from "./components/Commons/NotFound";
7
+ import Loading from "./components/Loading/Loading";
8
+ import LayoutContext from "./layouts/LayoutContext";
9
+ import { api } from "./services/api";
10
+ import { ConfirmDialog } from "./components/Dialogs/ConfirmDialog";
11
+ import CommonDialog from "./components/Dialogs/CommonDialog";
12
+ export { setLoading, BASE_URL, ACCESS_TOKEN, Login, store, historyCore, setAlert, setUser, Loading, NotFound, LayoutContext, api, ConfirmDialog, CommonDialog };