acsi-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/.DS_Store ADDED
Binary file
@@ -4,6 +4,9 @@ interface Props {
4
4
  onClose: () => void;
5
5
  centered?: boolean;
6
6
  title: string;
7
+ size?: "xs" | "lg" | "xl";
8
+ backdrop?: boolean | "static";
9
+ isShowHeader?: boolean;
7
10
  }
8
11
  declare const CommonDialog: FC<Props & PropsWithChildren>;
9
12
  export default CommonDialog;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ currentPage: number;
4
+ totalPage: number;
5
+ onChangePage: (page: number) => void;
6
+ }
7
+ declare const CustomPagination: FC<Props>;
8
+ export default CustomPagination;
@@ -0,0 +1,11 @@
1
+ export declare type Language = {
2
+ code: string;
3
+ name: string;
4
+ fullName: string;
5
+ shortName: string;
6
+ nativeName: string;
7
+ image: string;
8
+ momentLangCode: string;
9
+ };
10
+ export declare const DEFAULT_LANGUAGE_INDEX = 0;
11
+ export declare const LANGUAGES: Language[];
@@ -0,0 +1,9 @@
1
+ export declare enum AuthenticationMessage {
2
+ NotAllowedToRegister = "NotAllowedToRegister",
3
+ InvalidGoogleToken = "InvalidGoogleToken"
4
+ }
5
+ export declare enum Role {
6
+ Student = "Student",
7
+ Teacher = "Teacher",
8
+ Admin = "Admin"
9
+ }
@@ -1,7 +1,3 @@
1
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>;
2
+ declare const BlockLogin: FC<any>;
7
3
  export default BlockLogin;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="96px" height="96px"><path fill="#fbc02d" d="M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12 s5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24s8.955,20,20,20 s20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"/><path fill="#e53935" d="M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039 l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"/><path fill="#4caf50" d="M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36 c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"/><path fill="#1565c0" d="M43.611,20.083L43.595,20L42,20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571 c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"/></svg>
package/dist/index.d.ts CHANGED
@@ -6,7 +6,11 @@ import store from "./store";
6
6
  import NotFound from "./components/Commons/NotFound";
7
7
  import Loading from "./components/Loading/Loading";
8
8
  import LayoutContext from "./layouts/LayoutContext";
9
- import { api } from "./services/api";
9
+ import { api, apiUpload } from "./services/api";
10
10
  import { ConfirmDialog } from "./components/Dialogs/ConfirmDialog";
11
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 };
12
+ import { ToastContainer, toast } from "react-toastify";
13
+ import { Role } from "./containers/Login/configs/constants";
14
+ import CustomPagination from "./components/Paginations/CustomPagination";
15
+ import useGoogleSignOut from "./utils/hooks/useGoogleSignOut";
16
+ export { setLoading, BASE_URL, ACCESS_TOKEN, Login, store, historyCore, setAlert, setUser, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut };