touchstudy-core 0.1.1 → 0.1.3

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.
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const TheLanguageDropdown: () => React.JSX.Element;
3
+ export default TheLanguageDropdown;
@@ -1,3 +1,4 @@
1
1
  export declare const setLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
2
2
  export declare const setAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
3
3
  export declare const setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
4
+ export declare const setLanguage: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
@@ -0,0 +1,3 @@
1
+ import moment, { unitOfTime } from "moment";
2
+ declare const _default: (time: string, amount: number, unitOfTime: unitOfTime.Diff) => moment.Moment | "";
3
+ export default _default;
@@ -4,6 +4,11 @@ export declare const GOOGLE_RECAPTCHA_ID = "6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4
4
4
  export declare const GOOGLE_RECAPTCHA_SECRET = "6LfNtLUaAAAAAC7zhleGzO61FgFwGF0H5FAsKYux";
5
5
  export declare const ACCESS_TOKEN = "ACCESS_TOKEN";
6
6
  export declare const DATE_MIN_VALUE = "0001-01-01T00:00:00+00:00";
7
- export declare const BASE_URL = "https://ec0e-123-24-205-68.ngrok-free.app";
7
+ export declare const BASE_URL = "http://api.touchstudy.kr";
8
+ export declare const PUSHER_CONFIG: {
9
+ cluster: string;
10
+ key: string;
11
+ };
12
+ export declare const EXAM_CHANNEL = "EXAM-CHANNEL";
8
13
  export declare const getAccessToken: () => string | null;
9
14
  export declare const encodeParams: (params: any) => string;
@@ -1,3 +1,3 @@
1
1
  import { unitOfTime } from "moment";
2
- declare const _default: (time: string, unitOfTime: unitOfTime.Diff) => number | "";
2
+ declare const _default: (time: string, unitOfTime: unitOfTime.Diff, targetTime?: string | undefined) => number | "";
3
3
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (time: number) => string;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (time?: string | undefined) => string;
2
+ export default _default;
@@ -1,3 +1,11 @@
1
1
  export interface INavigateProps {
2
2
  onNavigate: (pathname: string) => void;
3
3
  }
4
+ export declare enum ExamEvent {
5
+ StartExam = "start-exam",
6
+ TerminateExam = "terminate-exam",
7
+ JoinExam = "join-exam",
8
+ AddExtraDuration = "add-extra-duration-exam",
9
+ TeacherDisconnectChannel = "teacher-disconnect-channel",
10
+ StudentDisconnectChannel = "student-disconnect-channel"
11
+ }
@@ -0,0 +1,9 @@
1
+ interface Props {
2
+ onLogoutSuccess?: () => void;
3
+ onFailure?: () => void;
4
+ }
5
+ declare const useGoogleSignOut: (props: Props) => {
6
+ signOut: () => void;
7
+ loaded: boolean;
8
+ };
9
+ export default useGoogleSignOut;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",
@@ -17,10 +17,13 @@
17
17
  "axios": "^1.6.2",
18
18
  "formik": "^2.4.5",
19
19
  "gapi-script": "^1.2.0",
20
+ "i18next": "^23.7.16",
20
21
  "link": "^2.1.0",
21
22
  "moment": "^2.29.4",
22
23
  "node-sass": "^7.0.3",
23
24
  "react-google-recaptcha-v3": "^1.10.1",
25
+ "react-i18next": "^14.0.0",
26
+ "react-icons": "^4.12.0",
24
27
  "reactstrap": "^9.2.1",
25
28
  "yup": "^1.3.3"
26
29
  },