Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Minn-Choi committed Oct 28, 2024
2 parents 2f8b129 + cf61fe9 commit 709c6e2
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 32 deletions.
31 changes: 16 additions & 15 deletions docs/ํšŒ์˜๋ก.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# [Notion ํšŒ์˜๋ก]

| ์ฐจ์‹œ | ๋‚ ์งœ | ํšŒ์˜์œ ํ˜• | ์ฐธ์—ฌ์ž | ์„œ๊ธฐ | ํšŒ์˜๋ก |
| ------ | ------ | ------ | ------ | ------ | ------ |
| 1์ฐจ | 2024๋…„ 9์›” 23์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ตœ๋ฏผ | https://www.notion.so/1-12db4ba0516b817c9781cb1513ef7775 |
| 2์ฐจ | 2024๋…„ 9์›” 25์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์˜ˆ๋นˆ | https://www.notion.so/2-12db4ba0516b81aca613df549f2ae93f |
| 2.5์ฐจ | 2024๋…„ 9์›” 28์ผ | ์ž„์‹œ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | x | https://www.notion.so/2-5-12db4ba0516b81198bacc42b2d655ed4 |
| 3์ฐจ | 2024๋…„ 9์›” 30์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ด์†Œ์€ | https://www.notion.so/3-12db4ba0516b81cebf4de50fce7a80c9 |
| 4์ฐจ | 2024๋…„ 10์›” 2์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์ง€์› | https://www.notion.so/4-12db4ba0516b81818a9ac9e70ede61ac |
| 4.5์ฐจ | 2024๋…„ 10์›” 6์ผ | ์ž„์‹œ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | x | https://www.notion.so/4-5-12db4ba0516b81f99348dba5cf262245 |
| 5์ฐจ | 2024๋…„ 10์›” 6์ผ | ์ž„์‹œ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ตœ๋ฏผ | https://www.notion.so/5-12db4ba0516b811eb401cc1adfbbd781 |
| 6์ฐจ | 2024๋…„ 10์›” 9์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์˜ˆ๋นˆ | https://www.notion.so/6-12db4ba0516b8141900cd613da96458c |
| 7์ฐจ | 2024๋…„ 10์›” 14์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ด์†Œ์€ | https://www.notion.so/7-12db4ba0516b8198b6edc271ceaffbff |
| 7.5์ฐจ | 2024๋…„ 10์›” 15์ผ | ์ž„์‹œ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | x | https://www.notion.so/7-5-12db4ba0516b815e83edde8e54e8bbd6 |
| 8์ฐจ | 2024๋…„ 10์›” 16์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ด์†Œ์€ | https://www.notion.so/8-12db4ba0516b81178342cc75df07750b |
| 9์ฐจ | 2024๋…„ 10์›” 21์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์ง€์› | https://www.notion.so/9-12db4ba0516b8164b602fd248747296b|
| 10์ฐจ | 2024๋…„ 10์›” 23์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ตœ๋ฏผ | https://www.notion.so/10-12db4ba0516b81d9a131f2c52ae5ee89|
| ์ฐจ์‹œ | ๋‚ ์งœ | ํšŒ์˜์œ ํ˜• | ์ฐธ์—ฌ์ž | ์„œ๊ธฐ | ํšŒ์˜๋ก |
| ----- | ---------------- | --------- | ---------------------------- | ------ | --------------------------------------------------------------- |
| 1์ฐจ | 2024๋…„ 9์›” 23์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ตœ๋ฏผ | https://www.notion.so/1-12db4ba0516b817c9781cb1513ef7775 |
| 2์ฐจ | 2024๋…„ 9์›” 25์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์˜ˆ๋นˆ | https://www.notion.so/2-12db4ba0516b81aca613df549f2ae93f |
| 2.5์ฐจ | 2024๋…„ 9์›” 28์ผ | ์ž„์‹œ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | x | https://www.notion.so/2-5-12db4ba0516b81198bacc42b2d655ed4 |
| 3์ฐจ | 2024๋…„ 9์›” 30์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ด์†Œ์€ | https://www.notion.so/3-12db4ba0516b81cebf4de50fce7a80c9 |
| 4์ฐจ | 2024๋…„ 10์›” 2์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์ง€์› | https://www.notion.so/4-12db4ba0516b81818a9ac9e70ede61ac |
| 4.5์ฐจ | 2024๋…„ 10์›” 6์ผ | ์ž„์‹œ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | x | https://www.notion.so/4-5-12db4ba0516b81f99348dba5cf262245 |
| 5์ฐจ | 2024๋…„ 10์›” 6์ผ | ์ž„์‹œ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ตœ๋ฏผ | https://www.notion.so/5-12db4ba0516b811eb401cc1adfbbd781 |
| 6์ฐจ | 2024๋…„ 10์›” 9์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์˜ˆ๋นˆ | https://www.notion.so/6-12db4ba0516b8141900cd613da96458c |
| 7์ฐจ | 2024๋…„ 10์›” 14์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ด์†Œ์€ | https://www.notion.so/7-12db4ba0516b8198b6edc271ceaffbff |
| 7.5์ฐจ | 2024๋…„ 10์›” 15์ผ | ์ž„์‹œ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | x | https://www.notion.so/7-5-12db4ba0516b815e83edde8e54e8bbd6 |
| 8์ฐจ | 2024๋…„ 10์›” 16์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ด์†Œ์€ | https://www.notion.so/8-12db4ba0516b81178342cc75df07750b |
| 9์ฐจ | 2024๋…„ 10์›” 21์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์ง€์› | https://www.notion.so/9-12db4ba0516b8164b602fd248747296b |
| 10์ฐจ | 2024๋…„ 10์›” 23์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ตœ๋ฏผ | https://www.notion.so/10-12db4ba0516b81d9a131f2c52ae5ee89 |
| 11์ฐจ | 2024๋…„ 10์›” 28์ผ | ์ •๊ธฐ ํšŒ์˜ | ์ด์†Œ์€, ์ตœ๋ฏผ, ์ •์ง€์›, ์ •์˜ˆ๋นˆ | ์ •์˜ˆ๋นˆ | https://www.notion.so/11-12db4ba0516b8071b0f8fcce55a7a442?pvs=4 |
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ const app = express()
// )

// Express ์„œ๋ฒ„ ์‹œ์ž‘
app.listen(3000, () => {
console.log('Express ์„œ๋ฒ„๊ฐ€ 3000๋ฒˆ ํฌํŠธ์—์„œ ์‹คํ–‰ ์ค‘์ž…๋‹ˆ๋‹ค.')
app.listen(3001, () => {
console.log('Express ์„œ๋ฒ„๊ฐ€ 3001๋ฒˆ ํฌํŠธ์—์„œ ์‹คํ–‰ ์ค‘์ž…๋‹ˆ๋‹ค.')
})
2 changes: 1 addition & 1 deletion src/components/LogoLoading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
props: {
duration: {
type: Number,
default: 1000 // 1์ดˆ ๋™์•ˆ ๋กœ๊ณ  ํ‘œ์‹œ
default: 500 // 0.5์ดˆ ๋™์•ˆ ๋กœ๊ณ  ํ‘œ์‹œ
}
},
setup(props, { emit }) {
Expand Down
40 changes: 40 additions & 0 deletions src/views/login/mypage/MyAkoGoals.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!-- src/components/MyAkoGoals.vue -->
<template>
<section class="mt-8">
<h2 class="mb-2 text-lg font-semibold font-nanum-square-round">
๋‚˜์˜ ์•„์ฝ”์ž๊ตญ๋“ค
</h2>
<ul v-if="goals.length > 0" class="space-y-3">
<li
v-for="(goal, index) in goals"
:key="index"
class="p-3 bg-white rounded-lg"
>
<p class="text-sm font-nanum-square-round">{{ goal.content }}</p>
<p class="text-xs text-gray-500">
{{ formatDate(goal.createdAt) }}
</p>
</li>
</ul>
<p v-else class="text-sm font-nanum-square-round">
์•„์ง ๋ชฉํ‘œ ๊ธฐ๋ก์ด ์—†์Šต๋‹ˆ๋‹ค.
</p>
</section>
</template>

<script>
export default {
props: {
goals: {
type: Array,
required: true
},
formatDate: {
type: Function,
required: true
}
}
}
</script>

<style scoped></style>
27 changes: 24 additions & 3 deletions src/views/login/mypage/MypageScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,28 @@ export async function updatePassword() {
}
}

// ์œ ์ € ํ”„๋กœํ•„ ์ˆ˜์ • (์ถ”๊ฐ€์ ์ธ ํ”„๋กœํ•„ ์ˆ˜์ • ํ•จ์ˆ˜๊ฐ€ ํ•„์š”ํ•˜๋‹ค๋ฉด ์—ฌ๊ธฐ์— ์ž‘์„ฑ)
export async function updateProfile() {
// ํ”„๋กœํ•„ ์ˆ˜์ • ๋กœ์ง ์ž‘์„ฑ
// ์œ ์ € ํ”„๋กœํ•„ ์ˆ˜์ •
export async function updateProfile(profileData) {
const url = `${process.env.VUE_APP_BE_API_URL}/api/users/profile`
const options = {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
// ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์ธ์ฆ ํ† ํฐ ์ถ”๊ฐ€
// 'Authorization': `Bearer ${token}`,
},
body: JSON.stringify(profileData)
}

try {
const response = await fetch(url, options)
if (!response.ok) {
throw new Error('Network response was not ok')
}
const data = await response.json()
return data
} catch (error) {
console.error('There was a problem with the fetch operation:', error)
throw error
}
}
43 changes: 33 additions & 10 deletions src/views/login/mypage/MypageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,40 @@
๋‹˜์˜ <br />๋งˆ์ดํŽ˜์ด์ง€
</h1>

<h2 class="mb-2 text-lg font-semibold font-nanum-square-round">
๋‚˜์˜ ์•„์ฝ”์ž๊ตญ๋“ค
</h2>
<ul v-if="goals.length > 0" class="space-y-3">
<ul v-if="goals.length > 0" class="space-y-3 p-4 bg-white rounded-lg">
<h2
class="mb-2 text-lg font-semibold font-nanum-square-round"
style="margin-bottom: -50px"
>
๋‚˜์˜ ์•„์ฝ”์ž๊ตญ๋“ค
</h2>
<li
v-for="(goal, index) in goals"
:key="index"
class="p-3 bg-white rounded-lg"
class="flex items-center justify-between"
>
<p class="text-sm font-nanum-square-round">{{ goal.content }}</p>
<p class="text-xs text-gray-500">
{{ formatDate(goal.createdAt) }}
<!-- ๋‚ ์งœ ๋ถ€๋ถ„: ์ฃผํ™ฉ์ƒ‰ ์ •์‚ฌ๊ฐํ˜• -->
<p
class="text-xxs font-nanum-square-round flex-shrink-0 mr-2 p-1 rounded-sm text-center"
style="
background-color: #ff7f00;
color: white;
width: 30px;
height: 30px;
"
>
{{ formatDate2(goal.createdAt) }}
</p>

<!-- ๋ชฉํ‘œ ๋‚ด์šฉ ๋ถ€๋ถ„ -->
<p
class="text-sm font-nanum-square-round flex-grow text-left ml-3"
>
{{ goal.content }}
</p>
</li>
</ul>

<p v-else class="text-sm font-nanum-square-round">
์•„์ง ๋ชฉํ‘œ ๊ธฐ๋ก์ด ์—†์Šต๋‹ˆ๋‹ค.
</p>
Expand Down Expand Up @@ -235,6 +254,10 @@ const formatDate = (date) => {
const options = { month: 'long', day: 'numeric' }
return new Date(date).toLocaleDateString('ko-KR', options)
}
</script>
<style scoped></style>
// ๋‚ ์งœ ํ˜•์‹ ํฌ๋งท
const formatDate2 = (date) => {
const options = { month: '2-digit', day: '2-digit' } // 'MM.DD' ํ˜•์‹
return new Date(date).toLocaleDateString('ko-KR', options).replace(/\//g, '.')
}
</script>
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module.exports = {
},
colors: {
customBg: '#FFF9F2'
},
fontSize: {
xxs: '0.625rem' // 10px
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = defineConfig({
changeOrigin: true, // ๋ฐฑ์—”๋“œ ์„œ๋ฒ„์˜ ๋„๋ฉ”์ธ๊ณผ ์ƒ๊ด€์—†์ด ์š”์ฒญ์„ ๋ณด๋‚ผ ์ˆ˜ ์žˆ๊ฒŒ ํ—ˆ์šฉ
secure: false // HTTPS๊ฐ€ ์•„๋‹ˆ๋ฏ€๋กœ ์„ค์ • (ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์ถ”๊ฐ€)
}
}
},
port: 3000
}
})

0 comments on commit 709c6e2

Please sign in to comment.