@edu-tosel/design 1.0.145 → 1.0.147
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/layout/template/Legacy/Exam.d.ts +1 -1
- package/layout/template/Legacy/Integrate.d.ts +10 -0
- package/layout/template/Legacy/Integrate.js +41 -0
- package/layout/template/Legacy/Legacy.layout.d.ts +2 -2
- package/layout/template/Legacy/Table.d.ts +2 -2
- package/layout/template/Legacy/index.d.ts +2 -0
- package/layout/template/Legacy/index.js +2 -0
- package/package.json +1 -1
- package/version.txt +1 -1
- package/_test/asset/sample.d.ts +0 -2
- package/_test/asset/sample.js +0 -84
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnClick, State } from "../../../interface";
|
|
2
|
+
interface IntegrateProps {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
isUser: boolean;
|
|
5
|
+
usernameState: State<string>;
|
|
6
|
+
passwordState: State<string>;
|
|
7
|
+
submit: OnClick;
|
|
8
|
+
}
|
|
9
|
+
export default function Integrate({ isLoading, isUser, usernameState: [oldUsername, setUsername], passwordState: [oldPassword, setPassword], submit, }: IntegrateProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../util";
|
|
3
|
+
import { Input, Label } from "../../../widget";
|
|
4
|
+
var Button = Label.Button;
|
|
5
|
+
import Action from "../Action";
|
|
6
|
+
import { Loading } from "../../../interaction";
|
|
7
|
+
import { LineBreaks } from "../../../text";
|
|
8
|
+
export default function Integrate({ isLoading, isUser, usernameState: [oldUsername, setUsername], passwordState: [oldPassword, setPassword], submit, }) {
|
|
9
|
+
const container = {
|
|
10
|
+
displays: "flex justify-center items-center",
|
|
11
|
+
sizes: "w-full min-h-screen",
|
|
12
|
+
boundaries: "px-3.5 md:px-16",
|
|
13
|
+
};
|
|
14
|
+
const body = {
|
|
15
|
+
displays: "flex flex-col gap-y-3.5",
|
|
16
|
+
sizes: "w-102.5",
|
|
17
|
+
};
|
|
18
|
+
return (_jsx("div", { className: cn(container), children: _jsx(Action.Replace, { actions: [
|
|
19
|
+
[isLoading, _jsx(Loading.Spinner, {})],
|
|
20
|
+
[!isLoading && !isUser, _jsx(Loading.Spinner, {})],
|
|
21
|
+
], children: _jsxs("div", { className: cn(body), children: [_jsx("div", { className: "w-full justify-center flex", children: _jsx("img", { src: "/images/logos/itc.png", width: 72 }) }), _jsxs("div", { className: "flex flex-col w-full", children: [_jsx("div", { className: "flex text-lg sm:text-2xl text-crimson-burgundy font-pretendard-bold", children: "\uACC4\uC815\uC5F0\uB3D9" }), _jsx("div", { className: "p-3.5 w-full box-shadow bg-white rounded-xl mt-3.5", children: _jsx(LineBreaks, { texts: [
|
|
22
|
+
"토셀 사이트가 리뉴얼되었습니다.",
|
|
23
|
+
"2024.08.26까지 사용하던 계정(구 tosel.org) 연동으로",
|
|
24
|
+
"이전 시험 데이터를 확인하세요!",
|
|
25
|
+
], className: "text-xs md:text-sm" }) })] }), _jsx(Input.Form, { title: "\uC544\uC774\uB514/\uB2E8\uCCB4\uCF54\uB4DC (\uAD6C \uC0AC\uC774\uD2B8)", state: [oldUsername, setUsername], option: {
|
|
26
|
+
text: "text-green-dark",
|
|
27
|
+
} }), _jsx(Input.Form, { title: "\uBE44\uBC00\uBC88\uD638", type: "password", state: [oldPassword, setPassword], onKeyDown: (e) => {
|
|
28
|
+
if (oldUsername && oldPassword && e.key === "Enter") {
|
|
29
|
+
return submit();
|
|
30
|
+
}
|
|
31
|
+
}, option: {
|
|
32
|
+
text: "text-green-dark",
|
|
33
|
+
} }), _jsxs("div", { className: "flex w-full justify-between items-center mt-12", children: [_jsx("button", { onClick: () => {
|
|
34
|
+
alert("계정 분실 관련 문의는 tosel_cs@tosel.co.kr으로 메일 부탁드립니다.");
|
|
35
|
+
}, className: "pl-2.5 text-gray-medium", children: "\uACC4\uC815 \uBB38\uC758" }), _jsx(Button, { title: "\uC5F0\uB3D9\uD558\uAE30", onClick: submit, option: {
|
|
36
|
+
width: "md",
|
|
37
|
+
height: "md",
|
|
38
|
+
text: "text-white",
|
|
39
|
+
background: "bg-crimson-burgundy",
|
|
40
|
+
} })] })] }) }) }));
|
|
41
|
+
}
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.147
|
package/_test/asset/sample.d.ts
DELETED
package/_test/asset/sample.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
// sampleData.tsx
|
|
2
|
-
// 샘플 데이터 정의
|
|
3
|
-
export const exams = [
|
|
4
|
-
{
|
|
5
|
-
examNo: "2025",
|
|
6
|
-
examName: "테스트 기관시험",
|
|
7
|
-
reports: [
|
|
8
|
-
{
|
|
9
|
-
name: "박민형",
|
|
10
|
-
level: "10",
|
|
11
|
-
url: "https://www.tosel.org/admin/grade/gradeSpecialTableAdmin_n?receipt_no=000000000001&gradeturn=2025&gradelevel=10&area=3&birthday=2020-03-16&rqtype=",
|
|
12
|
-
birthday: "2015-07-28",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: "탄단지",
|
|
16
|
-
level: "6",
|
|
17
|
-
url: "https://www.tosel.org/admin/grade/gradeSpecialTableAdmin_n?receipt_no=000000000001&gradeturn=2025&gradelevel=10&area=3&birthday=2020-03-16&rqtype=",
|
|
18
|
-
birthday: "2015-05-11",
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
groupReport: "https://ai.tosel.co.kr/grade/print?receipt_no=580040100001,580040100002,580040100003,580040100004,580040100005,580040100006,580040050001,580040050002,580040040001,580040050003,580040100007&gradeturn=1331",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
examNo: "216",
|
|
25
|
-
examName: "토셀 제 53회 정기시험",
|
|
26
|
-
reports: [
|
|
27
|
-
{
|
|
28
|
-
name: "김하늘",
|
|
29
|
-
level: "6",
|
|
30
|
-
url: "https://ai.tosel.co.kr/grade/?receipt_no=101001069999&gradeturn=216",
|
|
31
|
-
birthday: "2015-07-15",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
groupReport: "https://ai.tosel.co.kr/grade/print?receipt_no=580040100001,580040100002,580040100003,580040100004,580040100005,580040100006,580040050001,580040050002,580040040001,580040050003,580040100007&gradeturn=1331",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
examNo: "217",
|
|
38
|
-
examName: "토셀 제 54회 정기시험",
|
|
39
|
-
reports: [
|
|
40
|
-
{
|
|
41
|
-
name: "이수민",
|
|
42
|
-
level: "4",
|
|
43
|
-
url: "https://ai.tosel.co.kr/grade/?receipt_no=101001070000&gradeturn=217",
|
|
44
|
-
birthday: "2015-07-28",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: "최지원",
|
|
48
|
-
level: "3",
|
|
49
|
-
url: "https://ai.tosel.co.kr/grade/?receipt_no=101001070001&gradeturn=217",
|
|
50
|
-
birthday: "2015-07-28",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: "최지원",
|
|
54
|
-
level: "3",
|
|
55
|
-
url: "https://ai.tosel.co.kr/grade/?receipt_no=101001070001&gradeturn=217",
|
|
56
|
-
birthday: "2015-07-28",
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
examNo: "219",
|
|
62
|
-
examName: "토셀 제 52회 정기시험",
|
|
63
|
-
reports: [
|
|
64
|
-
{
|
|
65
|
-
name: "이수민",
|
|
66
|
-
level: "4",
|
|
67
|
-
url: "https://ai.tosel.co.kr/grade/?receipt_no=101001070000&gradeturn=217",
|
|
68
|
-
birthday: "2015-07-28",
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: "최지원",
|
|
72
|
-
level: "3",
|
|
73
|
-
url: "https://ai.tosel.co.kr/grade/?receipt_no=101001070001&gradeturn=217",
|
|
74
|
-
birthday: "2015-07-28",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "유남생",
|
|
78
|
-
level: "3",
|
|
79
|
-
url: "https://ai.tosel.co.kr/grade/?receipt_no=101001070001&gradeturn=217",
|
|
80
|
-
birthday: "2015-07-28",
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
];
|