From 5c989ed18f53c4353513dfacf0fcbfe67e4a7779 Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 24 Feb 2023 16:21:49 +0900 Subject: [PATCH] =?UTF-8?q?fix/refaftor(client):=20MkTime.vue=E3=81=AE?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=20(#10061)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(client): MkTime.timeにstringでもDateでない値が入った場合、?を表示 * fix(client): MkTimeを改良 * numberを許容 * falsyな値もとる * 不明 * ありません * fix --- locales/ja-JP.yml | 1 + .../frontend/src/components/global/MkTime.vue | 25 ++++++++++++------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 0fcf85ac0..73f9718aa 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1490,6 +1490,7 @@ _ago: weeksAgo: "{n}週間前" monthsAgo: "{n}ヶ月前" yearsAgo: "{n}年前" + invalid: "ありません" _time: second: "秒" diff --git a/packages/frontend/src/components/global/MkTime.vue b/packages/frontend/src/components/global/MkTime.vue index 66c0bd513..3fa8bb9ad 100644 --- a/packages/frontend/src/components/global/MkTime.vue +++ b/packages/frontend/src/components/global/MkTime.vue @@ -1,6 +1,7 @@