Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

「陽性者の属性」card 専用のファイル名を適切な名前に変更する #5277

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions auto-i18n/i18n_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
JSON_FILES = ["data.json", "patient.json", "monitoring_items.json"]

# チェックするTypeScriptファイルのリスト
# 現状はformatTable.tsしかないが、のちに表追加や、データ追加により必要になった場合は追加しなければならない。
TS_FILES = ["formatTable.ts"]
# 現状は formatComfirmedCasesAttributesTable.ts しかないが、のちに表追加や、データ追加により必要になった場合は追加しなければならない。
TS_FILES = ["formatComfirmedCasesAttributesTable.ts"]

# タグの正規表現パターン
tag_pattern_t = re.compile("\$t\([ ]*?['|`][^']*?['|`]")
Expand Down
10 changes: 5 additions & 5 deletions components/cards/ConfirmedCasesAttributesCard.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-col cols="12" md="6" class="DataCard">
<client-only>
<data-table
<comfirmed-cases-attributes-table
:title="$t('陽性者の属性')"
:title-id="'attributes-of-confirmed-cases'"
:chart-data="patientsTable"
Expand All @@ -19,13 +19,13 @@
<script>
import Data from '@/data/data.json'
import formatGraph from '@/utils/formatGraph'
import formatTable from '@/utils/formatTable'
import formatComfirmedCasesAttributesTable from '@/utils/formatComfirmedCasesAttributesTable'
import { getDayjsObject } from '@/utils/formatDate'
import DataTable from '@/components/DataTable.vue'
import ComfirmedCasesAttributesTable from '@/components/ComfirmedCasesAttributesTable.vue'

export default {
components: {
DataTable,
ComfirmedCasesAttributesTable,
},
data() {
const patientSummary = Data.patients_summary
Expand All @@ -35,7 +35,7 @@ export default {
// 感染者数グラフ
const patientsGraph = formatGraph(patientSummary.data)
// 感染者数
const patientsTable = formatTable(patients.data)
const patientsTable = formatComfirmedCasesAttributesTable(patients.data)
// 日付
const lastDay = patientsGraph[patientsGraph.length - 1].label
const dateAsOf = this.$d(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type TableDateType = {
}

/**
* Format for DataTable component
* Format for ComfirmedCasesAttributesTable component
*
* @param data - Raw data
*/
Expand Down