From e6efc307ca6a32ed0561163b5d81bf0fa66973bd Mon Sep 17 00:00:00 2001 From: Dang Date: Mon, 3 Feb 2025 15:57:03 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=EC=9A=A9=EC=96=B4=EC=A7=91=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wordDict/DictAlphabetFilter.vue | 56 +++++++++------- src/components/wordDict/DictCard.vue | 4 +- src/views/wordDict/wordDict.vue | 65 ++++++++++--------- 3 files changed, 67 insertions(+), 58 deletions(-) diff --git a/src/components/wordDict/DictAlphabetFilter.vue b/src/components/wordDict/DictAlphabetFilter.vue index bdc0c15..d8f3f4e 100644 --- a/src/components/wordDict/DictAlphabetFilter.vue +++ b/src/components/wordDict/DictAlphabetFilter.vue @@ -1,18 +1,25 @@ \ No newline at end of file diff --git a/src/components/wordDict/DictCard.vue b/src/components/wordDict/DictCard.vue index 9477747..1aa65c0 100644 --- a/src/components/wordDict/DictCard.vue +++ b/src/components/wordDict/DictCard.vue @@ -1,5 +1,5 @@ From 233a345ae27c64f5ef6b47a6f70554c96cee7ee8 Mon Sep 17 00:00:00 2001 From: khj0414 Date: Tue, 4 Feb 2025 11:12:09 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=EC=9A=A9=EC=96=B4=EC=A7=91=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=E3=85=87=E3=85=87=E3=85=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/wordDict/DictAlphabetFilter.vue | 2 -- src/views/wordDict/wordDict.vue | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/components/wordDict/DictAlphabetFilter.vue b/src/components/wordDict/DictAlphabetFilter.vue index 5f4fae8..e28e459 100644 --- a/src/components/wordDict/DictAlphabetFilter.vue +++ b/src/components/wordDict/DictAlphabetFilter.vue @@ -34,10 +34,8 @@ const koreanChars = ['ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅇ', ' const englishChars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; const selectedAlphabet = ref(null); - //emit정의 const emit = defineEmits(); - const selectAlphabet = (alphabet) => { selectedAlphabet.value = selectedAlphabet.value === alphabet ? null : alphabet; emit('update:data',selectedAlphabet.value); diff --git a/src/views/wordDict/wordDict.vue b/src/views/wordDict/wordDict.vue index bf76516..d6e3392 100644 --- a/src/views/wordDict/wordDict.vue +++ b/src/views/wordDict/wordDict.vue @@ -120,7 +120,6 @@ loading.value = false; // 로딩 종료 }); }; - // 카테고리 목록 const getwordCategory = () => { axios.get('worddict/getWordCategory') @@ -136,7 +135,6 @@ selectedAlphabet.value = newAlphabet; getwordList(searchText.value,selectedAlphabet.value); }; - // 검색 const search = (e) => { searchText.value = e.trim(); From 1de0c882dd1163b2a7c467b7a0e72f89c3aa1a9f Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Tue, 4 Feb 2025 15:56:08 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=EB=B3=B4=EB=93=9C=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20=EB=B3=B4=EB=93=9C?= =?UTF-8?q?=EC=B9=B4=EB=93=9C=20=EC=9B=90=EB=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 17 ++ package.json | 1 + src/components/list/BoardCard.vue | 210 ++++++++-------- src/components/list/BoardCardList.vue | 8 +- src/views/board/BoardList.vue | 288 ++++++++++++++-------- src/views/vacation/VacationManagement.vue | 274 ++++++++++---------- 6 files changed, 461 insertions(+), 337 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7a47e84..b6cefde 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@vueup/vue-quill": "^1.2.0", "axios": "^1.7.9", "bootstrap": "^5.3.3", + "bootstrap-icons": "^1.11.3", "dayjs": "^1.11.13", "dompurify": "^3.2.3", "flatpickr": "^4.6.13", @@ -1890,6 +1891,22 @@ "@popperjs/core": "^2.11.8" } }, + "node_modules/bootstrap-icons": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.11.3.tgz", + "integrity": "sha512-+3lpHrCw/it2/7lBL15VR0HEumaBss0+f/Lb6ZvHISn1mlK83jjFpooTLsMWbIjJMDjDjOExMsTxnXSIT4k4ww==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "license": "MIT" + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", diff --git a/package.json b/package.json index 823ef27..866adaa 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@vueup/vue-quill": "^1.2.0", "axios": "^1.7.9", "bootstrap": "^5.3.3", + "bootstrap-icons": "^1.11.3", "dayjs": "^1.11.13", "dompurify": "^3.2.3", "flatpickr": "^4.6.13", diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue index fe0eecc..1ddac0f 100644 --- a/src/components/list/BoardCard.vue +++ b/src/components/list/BoardCard.vue @@ -1,124 +1,142 @@ + - +// computed 속성 +const contentColClass = computed(() => { + return props.img ? 'col-sm-10 col-12' : 'col-sm-12'; +}); - + +.card:hover { + transform: scale(1.02); +} + +/* 텍스트 줄임 표시 */ +.str_wrap { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} + +/* 이미지 스타일 */ +.img-fluid { + border-radius: 8px 0 0 8px; +} + +/* 태그 배지 스타일 */ +.badge { + font-size: 0.8rem; + padding: 5px 10px; +} + diff --git a/src/components/list/BoardCardList.vue b/src/components/list/BoardCardList.vue index 430a73d..5b3c29a 100644 --- a/src/components/list/BoardCardList.vue +++ b/src/components/list/BoardCardList.vue @@ -1,10 +1,9 @@ diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 89eb2e8..1b528c5 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -2,57 +2,96 @@
-
+
-
+
-
- -
- -
+ +
+
- - -
-
- + +
+ +
+ +
+
- - -
-
- -
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
번호제목작성자작성일조회수
{{ post.id }} + {{ post.title }} + + N + {{ post.author }}{{ post.date }}{{ post.views }}
@@ -62,19 +101,28 @@ + + diff --git a/src/views/vacation/VacationManagement.vue b/src/views/vacation/VacationManagement.vue index df74285..fae4aa9 100644 --- a/src/views/vacation/VacationManagement.vue +++ b/src/views/vacation/VacationManagement.vue @@ -1,75 +1,63 @@ + -