@edu-tosel/design 1.0.183 → 1.0.185

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.
Files changed (46) hide show
  1. package/_test/asset/mock/academies.d.ts +5 -0
  2. package/_test/asset/mock/academies.js +52 -0
  3. package/_test/asset/mock/academy.d.ts +28 -0
  4. package/_test/asset/mock/academy.js +419 -0
  5. package/_test/asset/mock/chartData.d.ts +6 -0
  6. package/_test/asset/mock/chartData.js +104 -0
  7. package/_test/asset/mock/index.d.ts +3 -0
  8. package/_test/asset/mock/index.js +3 -0
  9. package/_test/interface/Exam.d.ts +56 -0
  10. package/_test/interface/Exam.js +55 -0
  11. package/_test/interface/Property.d.ts +3 -0
  12. package/_test/interface/Property.js +9 -0
  13. package/_test/interface/index.d.ts +2 -0
  14. package/_test/interface/index.js +2 -0
  15. package/asset/SVG.d.ts +2 -0
  16. package/asset/SVG.js +2 -0
  17. package/asset/SVG.tsx +2 -0
  18. package/asset/svg/HallofFame.d.ts +4 -0
  19. package/asset/svg/HallofFame.js +4 -0
  20. package/asset/svg/HallofFame.tsx +179 -0
  21. package/hook/index.d.ts +1 -0
  22. package/hook/index.js +1 -0
  23. package/hook/usePageLoaded.d.ts +4 -0
  24. package/hook/usePageLoaded.js +21 -0
  25. package/layout/template/Archive/Header.js +4 -0
  26. package/layout/template/Ticket/Layout.d.ts +4 -1
  27. package/layout/template/Ticket/Layout.js +4 -3
  28. package/layout/template/Ticket/Ticket.js +2 -2
  29. package/layout/template/Ticket/academy/Academy.d.ts +19 -0
  30. package/layout/template/Ticket/academy/Academy.js +129 -0
  31. package/layout/template/Ticket/academy/AcademyTicket.d.ts +20 -0
  32. package/layout/template/Ticket/academy/AcademyTicket.js +55 -0
  33. package/layout/template/Ticket/index.d.ts +5 -0
  34. package/layout/template/Ticket/index.js +4 -0
  35. package/layout/template/Transcript/design/Transcript.d.ts +6 -0
  36. package/layout/template/Transcript/design/Transcript.design.js +199 -13
  37. package/layout/template/sign/Oauth.d.ts +3 -1
  38. package/layout/template/sign/Oauth.js +2 -2
  39. package/package.json +2 -1
  40. package/style/size.js +1 -1
  41. package/tailwind.config.ts +6 -0
  42. package/util/copyToClipboard.d.ts +1 -0
  43. package/util/copyToClipboard.js +16 -0
  44. package/util/index.d.ts +1 -0
  45. package/util/index.js +1 -0
  46. package/version.txt +1 -1
@@ -0,0 +1,5 @@
1
+ export declare const academies: {
2
+ a: string;
3
+ b: string;
4
+ c: string;
5
+ }[];
@@ -0,0 +1,52 @@
1
+ export const academies = [
2
+ {
3
+ a: "코기토어학원",
4
+ b: "그레이스윌리엄로버트",
5
+ c: "010-1234-5678",
6
+ },
7
+ {
8
+ a: "토셀랩어학원",
9
+ b: "토셀랩",
10
+ c: "010-1234-5678",
11
+ },
12
+ {
13
+ a: "토셀랩어학원",
14
+ b: "토셀랩",
15
+ c: "010-1234-5678",
16
+ },
17
+ {
18
+ a: "토셀랩어학원",
19
+ b: "토셀랩",
20
+ c: "010-1234-5678",
21
+ },
22
+ {
23
+ a: "토셀랩어학원",
24
+ b: "토셀랩",
25
+ c: "010-1234-5678",
26
+ },
27
+ {
28
+ a: "토셀랩어학원",
29
+ b: "토셀랩",
30
+ c: "010-1234-5678",
31
+ },
32
+ {
33
+ a: "토셀랩어학원",
34
+ b: "토셀랩",
35
+ c: "010-1234-5678",
36
+ },
37
+ {
38
+ a: "토셀랩어학원",
39
+ b: "토셀랩",
40
+ c: "010-1234-5678",
41
+ },
42
+ {
43
+ a: "토셀랩어학원",
44
+ b: "토셀랩",
45
+ c: "010-1234-5678",
46
+ },
47
+ {
48
+ a: "토셀랩어학원",
49
+ b: "토셀랩",
50
+ c: "010-1234-5678",
51
+ },
52
+ ];
@@ -0,0 +1,28 @@
1
+ import { Level } from "../../interface";
2
+ interface Student {
3
+ id: number;
4
+ name: string;
5
+ nickname: string | null;
6
+ birthday: string;
7
+ phone: string;
8
+ school: string | null;
9
+ class: string | null;
10
+ classId: number | null;
11
+ profile: string | null;
12
+ }
13
+ export interface StudentUpdate extends Partial<Student> {
14
+ }
15
+ interface Class {
16
+ id: number;
17
+ name: string;
18
+ level: Level[];
19
+ }
20
+ export declare const classes: Class[] | undefined;
21
+ export declare const students: Student[] | undefined;
22
+ interface Grade extends Student {
23
+ level: Level | null;
24
+ score: number;
25
+ grade: number;
26
+ }
27
+ export declare const exam: () => Grade[];
28
+ export {};
@@ -0,0 +1,419 @@
1
+ export const classes = [
2
+ {
3
+ id: 1,
4
+ name: "NewJeans",
5
+ level: ["PS"],
6
+ },
7
+ {
8
+ id: 2,
9
+ name: "LE SSERAFIM",
10
+ level: ["ST"],
11
+ },
12
+ {
13
+ id: 3,
14
+ name: "aespa",
15
+ level: ["HJ"],
16
+ },
17
+ {
18
+ id: 4,
19
+ name: "IVE",
20
+ level: ["BA", "JR"],
21
+ },
22
+ {
23
+ id: 5,
24
+ name: "NMIXX",
25
+ level: ["BA", "JR"],
26
+ },
27
+ {
28
+ id: 6,
29
+ name: "STAYC",
30
+ level: ["JR", "HJ"],
31
+ },
32
+ ];
33
+ export const students = [
34
+ {
35
+ id: 1,
36
+ name: "이지은",
37
+ nickname: "IU",
38
+ birthday: "1993-05-16",
39
+ phone: "010-1234-5678",
40
+ school: "이담 초등학교",
41
+ classId: null,
42
+ class: null,
43
+ profile: "iu.jpg",
44
+ },
45
+ {
46
+ id: 2,
47
+ name: "김민지",
48
+ nickname: "민지",
49
+ birthday: "2004-05-07",
50
+ phone: "010-1234-5678",
51
+ school: "ADOR 초등학교",
52
+ classId: 1,
53
+ class: "NewJeans",
54
+ profile: "minji.jpeg",
55
+ },
56
+ {
57
+ id: 3,
58
+ name: "Hanni Pham",
59
+ nickname: "하니",
60
+ birthday: "2004-10-06",
61
+ phone: "010-2345-6789",
62
+ school: "ADOR 초등학교",
63
+ classId: 1,
64
+ class: "NewJeans",
65
+ profile: "hani.png",
66
+ },
67
+ {
68
+ id: 4,
69
+ name: "Danielle June Marsh",
70
+ nickname: "다니엘",
71
+ birthday: "2005-04-11",
72
+ phone: "010-3456-7890",
73
+ school: "ADOR 초등학교",
74
+ classId: 1,
75
+ class: "NewJeans",
76
+ profile: "danielle.jpg",
77
+ },
78
+ {
79
+ id: 5,
80
+ name: "강해린",
81
+ nickname: "해린",
82
+ birthday: "2005-04-04",
83
+ phone: "010-4567-8901",
84
+ school: "ADOR 초등학교",
85
+ classId: 1,
86
+ class: "NewJeans",
87
+ profile: "haerin.jpeg",
88
+ },
89
+ {
90
+ id: 6,
91
+ name: "이혜인",
92
+ nickname: "혜인",
93
+ birthday: "2005-04-04",
94
+ phone: "010-4567-8901",
95
+ school: "ADOR 초등학교",
96
+ classId: 1,
97
+ class: "NewJeans",
98
+ profile: "hyein.png",
99
+ },
100
+ {
101
+ id: 7,
102
+ name: "宮脇咲良",
103
+ nickname: "사쿠라",
104
+ birthday: "1998-03-19",
105
+ phone: "010-5678-9012",
106
+ school: "SOURCE MUSIC 초등학교",
107
+ classId: 2,
108
+ class: "LE SSERAFIM",
109
+ profile: "sakura.jpg",
110
+ },
111
+ {
112
+ id: 8,
113
+ name: "김채원",
114
+ nickname: null,
115
+ birthday: "2000-08-01",
116
+ phone: "010-6789-0123",
117
+ school: "SOURCE MUSIC 초등학교",
118
+ classId: 2,
119
+ class: "LE SSERAFIM",
120
+ profile: "chaewon.jpg",
121
+ },
122
+ {
123
+ id: 9,
124
+ name: "허윤진",
125
+ nickname: null,
126
+ birthday: "2001-10-08",
127
+ phone: "010-6789-0123",
128
+ school: "SOURCE MUSIC 초등학교",
129
+ classId: 2,
130
+ class: "LE SSERAFIM",
131
+ profile: "yunjin.jpg",
132
+ },
133
+ {
134
+ id: 10,
135
+ name: "中村一葉",
136
+ nickname: "카즈하",
137
+ birthday: "2003-08-09",
138
+ phone: "010-6789-0123",
139
+ school: "SOURCE MUSIC 초등학교",
140
+ classId: 2,
141
+ class: "LE SSERAFIM",
142
+ profile: "kazuha.webp",
143
+ },
144
+ {
145
+ id: 11,
146
+ name: "홍은채",
147
+ nickname: null,
148
+ birthday: "2006-11-10",
149
+ phone: "010-6789-0123",
150
+ school: "SOURCE MUSIC 초등학교",
151
+ classId: 2,
152
+ class: "LE SSERAFIM",
153
+ profile: "eunchae.jpg",
154
+ },
155
+ {
156
+ id: 12,
157
+ name: "유지민",
158
+ nickname: "Karina",
159
+ birthday: "2000-04-11",
160
+ phone: "010-1234-5678",
161
+ school: "SM 초등학교",
162
+ classId: 3,
163
+ class: "aespa",
164
+ profile: "karina.jpg",
165
+ },
166
+ {
167
+ id: 13,
168
+ name: "内永えり",
169
+ nickname: "Giselle",
170
+ birthday: "2000-10-30",
171
+ phone: "010-1234-5678",
172
+ school: "SM 초등학교",
173
+ classId: 3,
174
+ class: "aespa",
175
+ profile: "giselle.webp",
176
+ },
177
+ {
178
+ id: 14,
179
+ name: "김민정",
180
+ nickname: "Winter",
181
+ birthday: "2001-01-01",
182
+ phone: "010-1234-5678",
183
+ school: "SM 초등학교",
184
+ classId: 3,
185
+ class: "aespa",
186
+ profile: "winter.jpeg",
187
+ },
188
+ {
189
+ id: 15,
190
+ name: "宁艺卓",
191
+ nickname: "Ningning",
192
+ birthday: "2002-10-23",
193
+ phone: "010-1234-5678",
194
+ school: "SM 초등학교",
195
+ classId: 3,
196
+ class: "aespa",
197
+ profile: "ningning.webp",
198
+ },
199
+ {
200
+ id: 16,
201
+ name: "안유진",
202
+ nickname: null,
203
+ birthday: "2003-09-01",
204
+ phone: "010-1234-5678",
205
+ school: "스타쉽 초등학교",
206
+ classId: 4,
207
+ class: "IVE",
208
+ profile: "yujin.jpg",
209
+ },
210
+ {
211
+ id: 17,
212
+ name: "김가을",
213
+ nickname: "가을",
214
+ birthday: "2002-09-24",
215
+ phone: "010-1234-5678",
216
+ school: "스타쉽 초등학교",
217
+ classId: 4,
218
+ class: "IVE",
219
+ profile: "gaeul.jpg",
220
+ },
221
+ {
222
+ id: 18,
223
+ name: "直井玲",
224
+ nickname: "레이",
225
+ birthday: "2004-02-03",
226
+ phone: "010-1234-5678",
227
+ school: "스타쉽 초등학교",
228
+ classId: 4,
229
+ class: "IVE",
230
+ profile: "rei.jpg",
231
+ },
232
+ {
233
+ id: 19,
234
+ name: "장원영",
235
+ nickname: null,
236
+ birthday: "2004-08-31",
237
+ phone: "010-1234-5678",
238
+ school: "스타쉽 초등학교",
239
+ classId: 4,
240
+ class: "IVE",
241
+ profile: "wonyoung.jpg",
242
+ },
243
+ {
244
+ id: 20,
245
+ name: "김지원",
246
+ nickname: "리즈",
247
+ birthday: "2004-11-21",
248
+ phone: "010-1234-5678",
249
+ class: "IVE",
250
+ school: "스타쉽 초등학교",
251
+ classId: 4,
252
+ profile: "liz.webp",
253
+ },
254
+ {
255
+ id: 21,
256
+ name: "이현서",
257
+ nickname: "이서",
258
+ birthday: "2007-02-21",
259
+ phone: "010-1234-5678",
260
+ class: "IVE",
261
+ school: "스타쉽 초등학교",
262
+ classId: 4,
263
+ profile: "leeseo.jpg",
264
+ },
265
+ {
266
+ id: 22,
267
+ name: "Lily Jin Park Morrow",
268
+ nickname: "릴리",
269
+ birthday: "2002-10-17",
270
+ phone: "010-1234-5678",
271
+ school: "JYP 초등학교",
272
+ classId: 5,
273
+ class: "NMIXX",
274
+ profile: "lily.jpg",
275
+ },
276
+ {
277
+ id: 23,
278
+ name: "오해원",
279
+ nickname: "해원",
280
+ birthday: "2003-02-25",
281
+ phone: "010-1234-5678",
282
+ school: "JYP 초등학교",
283
+ classId: 5,
284
+ class: "NMIXX",
285
+ profile: "haewon.webp",
286
+ },
287
+ {
288
+ id: 24,
289
+ name: "설윤아",
290
+ nickname: "설윤",
291
+ birthday: "2004-01-26",
292
+ phone: "010-1234-5678",
293
+ school: "JYP 초등학교",
294
+ classId: 5,
295
+ class: "NMIXX",
296
+ profile: "sullyoon.webp",
297
+ },
298
+ {
299
+ id: 25,
300
+ name: "배진솔",
301
+ nickname: "배이",
302
+ birthday: "2004-12-28",
303
+ phone: "010-1234-5678",
304
+ school: "JYP 초등학교",
305
+ classId: 5,
306
+ class: "NMIXX",
307
+ profile: "bae.webp",
308
+ },
309
+ {
310
+ id: 26,
311
+ name: "김지우",
312
+ nickname: "지우",
313
+ birthday: "2005-04-13",
314
+ phone: "010-1234-5678",
315
+ school: "JYP 초등학교",
316
+ classId: 5,
317
+ class: "NMIXX",
318
+ profile: "jiwoo.jpg",
319
+ },
320
+ {
321
+ id: 27,
322
+ name: "장규진",
323
+ nickname: "규진",
324
+ birthday: "2006-05-26",
325
+ phone: "010-1234-5678",
326
+ school: "JYP 초등학교",
327
+ classId: 5,
328
+ class: "NMIXX",
329
+ profile: "kyujin.jpg",
330
+ },
331
+ {
332
+ id: 28,
333
+ name: "배수민",
334
+ nickname: "수민",
335
+ birthday: "2001-03-13",
336
+ phone: "010-1234-5678",
337
+ school: "하이업 초등학교",
338
+ classId: 6,
339
+ class: "STAYC",
340
+ profile: "sumin.jpg",
341
+ },
342
+ {
343
+ id: 29,
344
+ name: "박시은",
345
+ nickname: "시은",
346
+ birthday: "2001-08-01",
347
+ phone: "010-1234-5678",
348
+ school: "하이업 초등학교",
349
+ classId: 6,
350
+ class: "STAYC",
351
+ profile: "sieun.jpg",
352
+ },
353
+ {
354
+ id: 30,
355
+ name: "이채영",
356
+ nickname: "아이사",
357
+ birthday: "2002-01-23",
358
+ phone: "010-1234-5678",
359
+ school: "하이업 초등학교",
360
+ classId: 6,
361
+ class: "STAYC",
362
+ profile: "isa.jpg",
363
+ },
364
+ {
365
+ id: 31,
366
+ name: "윤세은",
367
+ nickname: "세은",
368
+ birthday: "2003-06-14",
369
+ phone: "010-1234-5678",
370
+ school: "하이업 초등학교",
371
+ classId: 6,
372
+ class: "STAYC",
373
+ profile: "seeun.jpg",
374
+ },
375
+ {
376
+ id: 32,
377
+ name: "심자윤",
378
+ nickname: "윤",
379
+ birthday: "2004-04-14",
380
+ phone: "010-1234-5678",
381
+ school: "하이업 초등학교",
382
+ classId: 6,
383
+ class: "STAYC",
384
+ profile: "yoon.jpeg",
385
+ },
386
+ {
387
+ id: 33,
388
+ name: "장예은",
389
+ nickname: "재이",
390
+ birthday: "2004-12-09",
391
+ phone: "010-1234-5678",
392
+ school: "하이업 초등학교",
393
+ classId: 6,
394
+ class: "STAYC",
395
+ profile: "j.jpg",
396
+ },
397
+ ];
398
+ const grades = students.map((student, index) => {
399
+ const score = Math.floor(Math.random() * 100) + 1;
400
+ const grade = score >= 90 ? 1 : score >= 80 ? 2 : score >= 70 ? 3 : score >= 60 ? 4 : 5;
401
+ return {
402
+ id: index,
403
+ userId: student.id,
404
+ birthday: student.birthday,
405
+ class: student.class,
406
+ classId: student.classId,
407
+ name: student.name,
408
+ nickname: student.nickname,
409
+ phone: student.phone,
410
+ profile: student.profile,
411
+ school: student.school,
412
+ level: classes.find(({ id }) => id === student.classId)?.level[0] || null,
413
+ score,
414
+ grade,
415
+ };
416
+ });
417
+ export const exam = () => {
418
+ return grades;
419
+ };
@@ -0,0 +1,6 @@
1
+ export declare const chartData: {
2
+ date: string;
3
+ uv: number;
4
+ pv: number;
5
+ amt: number;
6
+ }[];
@@ -0,0 +1,104 @@
1
+ export const chartData = [
2
+ {
3
+ date: "1/10",
4
+ uv: 4000,
5
+ pv: 2400,
6
+ amt: 2400,
7
+ },
8
+ {
9
+ date: "1/11",
10
+ uv: 3000,
11
+ pv: 1398,
12
+ amt: 2210,
13
+ },
14
+ {
15
+ date: "1/12",
16
+ uv: 2000,
17
+ pv: 9800,
18
+ amt: 2290,
19
+ },
20
+ {
21
+ date: "1/13",
22
+ uv: 2780,
23
+ pv: 3908,
24
+ amt: 2000,
25
+ },
26
+ {
27
+ date: "1/14",
28
+ uv: 1890,
29
+ pv: 4800,
30
+ amt: 2181,
31
+ },
32
+ {
33
+ date: "1/15",
34
+ uv: 2390,
35
+ pv: 3800,
36
+ amt: 2500,
37
+ },
38
+ {
39
+ date: "1/15",
40
+ uv: 2390,
41
+ pv: 3800,
42
+ amt: 2500,
43
+ },
44
+ {
45
+ date: "1/15",
46
+ uv: 2390,
47
+ pv: 3800,
48
+ amt: 2500,
49
+ },
50
+ {
51
+ date: "1/15",
52
+ uv: 2390,
53
+ pv: 3800,
54
+ amt: 2500,
55
+ },
56
+ {
57
+ date: "1/15",
58
+ uv: 2390,
59
+ pv: 3800,
60
+ amt: 2500,
61
+ },
62
+ {
63
+ date: "1/15",
64
+ uv: 2390,
65
+ pv: 3800,
66
+ amt: 2500,
67
+ },
68
+ {
69
+ date: "1/15",
70
+ uv: 2390,
71
+ pv: 3800,
72
+ amt: 2500,
73
+ },
74
+ {
75
+ date: "1/15",
76
+ uv: 2390,
77
+ pv: 3800,
78
+ amt: 2500,
79
+ },
80
+ {
81
+ date: "1/15",
82
+ uv: 2390,
83
+ pv: 3800,
84
+ amt: 2500,
85
+ },
86
+ {
87
+ date: "1/15",
88
+ uv: 2390,
89
+ pv: 3800,
90
+ amt: 2500,
91
+ },
92
+ {
93
+ date: "1/15",
94
+ uv: 2390,
95
+ pv: 3800,
96
+ amt: 2500,
97
+ },
98
+ {
99
+ date: "1/15",
100
+ uv: 2390,
101
+ pv: 3800,
102
+ amt: 2500,
103
+ },
104
+ ];
@@ -0,0 +1,3 @@
1
+ export * from "./chartData";
2
+ export * from "./academies";
3
+ export * from "./academy";
@@ -0,0 +1,3 @@
1
+ export * from "./chartData";
2
+ export * from "./academies";
3
+ export * from "./academy";
@@ -0,0 +1,56 @@
1
+ import { Level } from "./Property";
2
+ export interface ExamProps {
3
+ createdAt: number;
4
+ updatedAt: number;
5
+ id: number;
6
+ title: string;
7
+ isPublic: boolean;
8
+ type: EXAM_TYPE;
9
+ status: EXAM_STATUS;
10
+ date: string;
11
+ managerUserId: number;
12
+ userIds: number[];
13
+ }
14
+ export declare function formatExams(props: ExamProps[]): {
15
+ id: number;
16
+ title: string;
17
+ isPublic: string;
18
+ type: EXAM_TYPE;
19
+ status: string;
20
+ date: string;
21
+ managerUserId: number;
22
+ }[];
23
+ export declare const EXAM_TYPE: {
24
+ readonly REG: "REG";
25
+ readonly CMP: "CMP";
26
+ readonly IST: "IST";
27
+ readonly OLY: "OLY";
28
+ };
29
+ export type EXAM_TYPE = (typeof EXAM_TYPE)[keyof typeof EXAM_TYPE];
30
+ export declare const ExamTypeString: Record<EXAM_TYPE, string>;
31
+ export declare function returnEndDate(exam: ExamProps): string;
32
+ export declare const EXAM_STATUS: {
33
+ readonly PENDING: "pending";
34
+ readonly APPLYING: "applying";
35
+ readonly WAITING: "waiting";
36
+ readonly ONGOING: "ongoing";
37
+ readonly GRADING: "grading";
38
+ readonly COMPLETE: "complete";
39
+ };
40
+ export type EXAM_STATUS = (typeof EXAM_STATUS)[keyof typeof EXAM_STATUS];
41
+ export declare const ExamStatusString: Record<EXAM_STATUS, string>;
42
+ export interface Hall {
43
+ id: number;
44
+ examId: number;
45
+ managerUserId: number;
46
+ name: string;
47
+ addr1: string;
48
+ addr2: string;
49
+ }
50
+ export interface Room {
51
+ id: number;
52
+ examHallId: number;
53
+ name: string;
54
+ level: Level;
55
+ startTime: string;
56
+ }