Skip to content

Commit

Permalink
Merge pull request #8 from splendente/feature/#7
Browse files Browse the repository at this point in the history
Fix craetedAt being "invalid Date"
  • Loading branch information
splendente authored May 6, 2024
2 parents 85a8166 + 5a18d43 commit 004f100
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion components/calendar-heatmap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const pastYearDates = computed(() => {
const $year = $date.getFullYear(); // 年を取得
const $month = $date.getMonth() + 1; // 月を取得 (0始まりのため、+1する)
const $day = $date.getDate(); // 日を取得
const formattedDate = `${$year}-${$month}-${$day}`; // Nuxt Contentの日付情報と同じ形式に変換
const formattedDate = `${$year}-${String($month).padStart(2, "0")}-${String($day).padStart(2, "0")}`; // Nuxt Contentの日付情報と同じ形式に変換
dates.push(formattedDate);
}
Expand Down
4 changes: 2 additions & 2 deletions content/1.released-on-nuxt-v3-11.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Nuxt v3.11がリリース"
description: "2024年3月16日にリリースされたNuxt v3.11の内容をまとめる。"
icon: "🎉"
createdAt: "2024-3-24"
updatedAt: "2024-4-23"
createdAt: "2024-03-24"
updatedAt: "2024-04-23"
tags: ['Nuxt']
---

Expand Down
4 changes: 2 additions & 2 deletions content/2.husky-lint-staged.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Huskyとlint-stagedの設定手順"
description: "2024年3月26日時点のHuskyとlint-stagedの設定手順についてまとめる。"
icon: "🧹"
createdAt: "2024-3-26"
updatedAt: "2024-4-29"
createdAt: "2024-03-26"
updatedAt: "2024-04-29"
tags: ['husky', 'lint-staged']
---

Expand Down
4 changes: 2 additions & 2 deletions content/3.improve-storycap.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "storycapの実行時間を短縮する"
description: "フロントエンドのテスト手法の1つであるVisual Regression Testのツールであるstorycapの実行時間を短縮するための情報についてまとめる。"
icon: "🚀"
createdAt: "2024-4-4"
updatedAt: "2024-4-4"
createdAt: "2024-04-04"
updatedAt: "2024-04-04"
tags: ['Storybook', 'storycap']
---

Expand Down
4 changes: 2 additions & 2 deletions content/4.get-started-with-elysiajs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "ElysiaJSに入門してみる"
description: "ElysiaJSについての個人的なメモ。"
icon: "🦊"
createdAt: "2024-4-7"
updatedAt: "2024-4-23"
createdAt: "2024-04-07"
updatedAt: "2024-04-23"
tags: ['Bun', 'ElysiaJS']
---

Expand Down
4 changes: 2 additions & 2 deletions content/5.get-started-with-hono.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Honoに入門してみる"
description: "Honoについての個人的なメモ。"
icon: "🔥"
createdAt: "2024-4-11"
updatedAt: "2024-4-11"
createdAt: "2024-04-11"
updatedAt: "2024-04-11"
tags: ['Hono']
---

Expand Down
4 changes: 2 additions & 2 deletions content/6.first-oss-contribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "初めてOSSにコントリビュートしました"
description: "OSSへのコントリビュートという実績を解除したのできっかけなどをまとめる。"
icon: "🎊"
createdAt: "2024-4-22"
updatedAt: "2024-4-23"
createdAt: "2024-04-22"
updatedAt: "2024-04-23"
tags: ['Vue.js']
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "defineExposeとProvide & Injectの違いについて"
description: "データなどを共有したり、公開することができるdefineExposeとProvide & Injectの違いについてまとめる。"
icon: "🌀"
createdAt: "2024-4-24"
updatedAt: "2024-5-2"
createdAt: "2024-04-24"
updatedAt: "2024-05-02"
tags: ['Vue.js']
---

Expand Down
2 changes: 1 addition & 1 deletion stories/components/calendar-heatmap.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export default {
export const Default = {
args: {
targetYear: 2023,
activeDates: ["2023-1-1", "2023-7-19", "2023-12-31"],
activeDates: ["2023-01-01", "2023-07-19", "2023-12-31"],
},
};

0 comments on commit 004f100

Please sign in to comment.