@edu-tosel/design 1.0.275 → 1.0.277
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 +42 -42
- package/asset/SVG.d.ts +3 -0
- package/asset/SVG.tsx +43 -43
- package/asset/html/gomito-promotion.html +116 -116
- package/asset/html/speaking-series-promotion.html +58 -58
- package/asset/sizes.ts +202 -202
- package/asset/svg/Close.tsx +32 -32
- package/asset/svg/Collab.tsx +51 -51
- package/asset/svg/Direction.tsx +76 -76
- package/asset/svg/Email.d.ts +3 -1
- package/asset/svg/Email.js +2 -2
- package/asset/svg/Email.tsx +19 -20
- package/asset/svg/Eye.tsx +48 -48
- package/asset/svg/HallofFame.tsx +179 -179
- package/asset/svg/Icon.tsx +324 -324
- package/asset/svg/Image.tsx +24 -24
- package/asset/svg/Login.d.ts +6 -0
- package/asset/svg/Login.js +12 -0
- package/asset/svg/Login.tsx +116 -53
- package/asset/svg/MiniClose.tsx +19 -19
- package/asset/svg/Notification.tsx +34 -34
- package/asset/svg/Operation.tsx +130 -130
- package/asset/svg/Phone.d.ts +3 -1
- package/asset/svg/Phone.js +2 -2
- package/asset/svg/Phone.tsx +19 -20
- package/asset/svg/Print.tsx +18 -18
- package/asset/svg/Profile.tsx +27 -27
- package/asset/svg/Search.tsx +24 -24
- package/asset/svg/Symbol.tsx +60 -60
- package/asset/svg/TOSEL.tsx +63 -63
- package/asset/svg/User.tsx +18 -18
- package/asset/url.ts +12 -12
- package/globals.css +281 -281
- package/layout/template/sign/Layout.js +6 -5
- package/package.json +1 -1
- package/tailwind.config.ts +712 -712
- package/util/convertDateToString.d.ts +1 -1
- package/util/convertDateToString.js +12 -5
- package/util/createSearch.js +42 -25
- package/version.txt +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function formatDateToString(date: Date): string;
|
|
1
|
+
export default function formatDateToString(date: Date, formatType?: "dash" | "dot" | "koreanYYMM"): string;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
export default function formatDateToString(date) {
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
export default function formatDateToString(date, formatType) {
|
|
2
|
+
const fullYear = date.getFullYear();
|
|
3
|
+
const shortYear = fullYear % 100; // 두 자리 연도
|
|
4
|
+
const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
5
|
+
const day = date.getDate().toString().padStart(2, "0");
|
|
6
|
+
if (formatType === "dot") {
|
|
7
|
+
return `${shortYear}.${month}.${day}`; // YY.MM.DD 형식
|
|
8
|
+
}
|
|
9
|
+
if (formatType === "koreanYYMM") {
|
|
10
|
+
return `${shortYear}년 ${month}월`; // YY년 MM월 형식
|
|
11
|
+
}
|
|
12
|
+
return `${fullYear}-${month}-${day}`; // 기본: YYYY-MM-DD
|
|
6
13
|
}
|
package/util/createSearch.js
CHANGED
|
@@ -207,32 +207,40 @@ function createSearch({ record, } = {}) {
|
|
|
207
207
|
const lowerQuery = query.toLowerCase();
|
|
208
208
|
const isHangulQuery = isHangul(query);
|
|
209
209
|
const queryChoseong = isHangulQuery ? getChoseong(query) : "";
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
value,
|
|
221
|
-
]);
|
|
222
|
-
// **초성 매칭 (Choseong Match)**
|
|
223
|
-
const choseongMatch = isHangulQuery
|
|
224
|
-
? choseongEntries
|
|
225
|
-
.map((value, index) => ({ index, value }))
|
|
226
|
-
.filter(({ value: [_, value] }) => value.includes(queryChoseong))
|
|
227
|
-
.map(({ index }) => {
|
|
228
|
-
const key = entries[index][0];
|
|
229
|
-
return [
|
|
230
|
-
key,
|
|
231
|
-
record[key]?.[0] ?? entries[index][1], // 첫 번째 키워드가 없을 경우 대체
|
|
232
|
-
entries[index][1],
|
|
233
|
-
];
|
|
210
|
+
const isChoseong = getConstantVowel(lowerQuery[0] ?? "");
|
|
211
|
+
// console.log(`${lowerQuery[0]}: ${isChoseong}`);
|
|
212
|
+
let entireMatch = [];
|
|
213
|
+
if (!isChoseong) {
|
|
214
|
+
// **정확한 일치 (Exact Match)**
|
|
215
|
+
entireMatch = entries
|
|
216
|
+
.filter(([_, value]) => {
|
|
217
|
+
const normalizedValue = value.toLowerCase();
|
|
218
|
+
return (normalizedValue === lowerQuery || value.includes(lowerQuery) ||
|
|
219
|
+
new RegExp(`\\b${lowerQuery}`).test(normalizedValue));
|
|
234
220
|
})
|
|
235
|
-
|
|
221
|
+
.map(([key, value]) => [
|
|
222
|
+
key,
|
|
223
|
+
record[key]?.[0] ?? value, // 첫 번째 키워드가 없을 경우 value를 기본값으로 사용
|
|
224
|
+
value,
|
|
225
|
+
]);
|
|
226
|
+
}
|
|
227
|
+
let choseongMatch = [];
|
|
228
|
+
if (isChoseong) {
|
|
229
|
+
// **초성 매칭 (Choseong Match)**
|
|
230
|
+
choseongMatch = isHangulQuery
|
|
231
|
+
? choseongEntries
|
|
232
|
+
.map((value, index) => ({ index, value }))
|
|
233
|
+
.filter(({ value: [_, value] }) => value.includes(queryChoseong))
|
|
234
|
+
.map(({ index }) => {
|
|
235
|
+
const key = entries[index][0];
|
|
236
|
+
return [
|
|
237
|
+
key,
|
|
238
|
+
record[key]?.[0] ?? entries[index][1], // 첫 번째 키워드가 없을 경우 대체
|
|
239
|
+
entries[index][1],
|
|
240
|
+
];
|
|
241
|
+
})
|
|
242
|
+
: [];
|
|
243
|
+
}
|
|
236
244
|
// **중복 제거 (EntireMatch에 포함된 키 제거)**
|
|
237
245
|
const entireMatchKeys = new Set(entireMatch.map(([key]) => key));
|
|
238
246
|
const filteredChoseongMatch = choseongMatch.filter(([key]) => !entireMatchKeys.has(key));
|
|
@@ -253,5 +261,14 @@ function createSearch({ record, } = {}) {
|
|
|
253
261
|
};
|
|
254
262
|
return { search };
|
|
255
263
|
}
|
|
264
|
+
const getConstantVowel = (kor) => {
|
|
265
|
+
const ga = 44032;
|
|
266
|
+
let uni = kor.charCodeAt(0);
|
|
267
|
+
uni = uni - ga;
|
|
268
|
+
let fn = Math.floor(uni / 588);
|
|
269
|
+
// let sn = Math.floor((uni - (fn * 588)) / 28);
|
|
270
|
+
// let tn = uni % 28;
|
|
271
|
+
return fn < 0;
|
|
272
|
+
};
|
|
256
273
|
const { search } = createSearch();
|
|
257
274
|
export default search;
|
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.277
|