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

component のディレクトリ構成を変更する #5404

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
53ae289
検査陽性者の状況: Rename components/cards/ConfirmedCasesDetailsCard.vue to co…
nard-tech Apr 4, 2021
97a9ead
検査陽性者の状況: Rename components/ConfirmedCasesDetailsTable.vue to compone…
nard-tech Apr 4, 2021
7d3ec40
報告日別による陽性者数の推移: Rename components/cards/ConfirmedCasesNumberCard.vue …
nard-tech Apr 4, 2021
f6c14aa
モニタリング項目: Rename components/cards/MonitoringItemsOverviewCard.vue to …
nard-tech Apr 4, 2021
fba9a1f
モニタリング項目: Rename components/MonitoringItemsOverviewTableInfectionStat…
nard-tech Apr 4, 2021
5422ecf
モニタリング項目: Rename components/MonitoringItemsOverviewTableMedicalSystem…
nard-tech Apr 4, 2021
c8173b9
モニタリング項目: Rename components/MonitoringItemsOverviewTableValueWithTran…
nard-tech Apr 4, 2021
c57aad3
新規陽性者数: Rename components/cards/MonitoringConfirmedCasesNumberCard.vu…
nard-tech Apr 4, 2021
58b6618
新規陽性者数: Rename components/MonitoringConfirmedCasesChart.vue to compon…
nard-tech Apr 4, 2021
160127e
7119における発熱等相談件数: Rename components/cards/ConsultationAboutFeverNumber…
nard-tech Apr 5, 2021
bd1796e
新規陽性者における接触歴等不明者数: Rename components/cards/UntrackedRateCard.vue to c…
nard-tech Apr 5, 2021
0a32776
新規陽性者における接触歴等不明者数: Rename components/UntrackedRateMixedChart to compo…
nard-tech Apr 5, 2021
8e041e9
検査の陽性率: Rename components/cards/PositiveRateCard.vue to components/in…
nard-tech Apr 5, 2021
abf645f
検査の陽性率: Rename components/PositiveRateMixedChart.vue to components/in…
nard-tech Apr 5, 2021
7ce1ee6
救急医療の東京ルールの適用件数; Rename components/cards/TokyoRulesApplicationNumberC…
nard-tech Apr 5, 2021
9188f6c
入院患者数: Rename components/cards/HospitalizedNumberCard.vue to componen…
nard-tech Apr 5, 2021
d7a897e
入院患者数: Rename components/DashedRectangleTimeBarChart.vue to component…
nard-tech May 23, 2021
a0d18dd
重症患者数: Rename components/cards/SevereCaseCard.vue to components/index…
nard-tech Apr 5, 2021
e846981
重症患者数: Rename components/SevereCaseBarChart.vue to components/index/C…
nard-tech Apr 5, 2021
d2cc7bb
陽性者の属性: Rename components/cards/ConfirmedCasesAttributesCard.vue to c…
nard-tech Apr 5, 2021
79975a4
陽性者の属性: Rename components/DataTable.vue to components/index/CardsRefe…
nard-tech Apr 5, 2021
b6c41d6
陽性者の属性: Rename utils/formatTable.ts to utils/formatConfirmedCasesAttr…
nard-tech Apr 5, 2021
394d301
陽性者数(区市町村別): Rename components/cards/ConfirmedCasesByMunicipalitiesCa…
nard-tech Apr 5, 2021
5317889
陽性者数(区市町村別): Rename components/ConfirmedCasesByMunicipalitiesTable.vu…
nard-tech Apr 5, 2021
812b3b6
発症日別による陽性者数の推移: Rename components/cards/PositiveNumberByDevelopedDate…
nard-tech Apr 5, 2021
4f28032
発症日別による陽性者数の推移: Rename components/DataViewCustomInfoPanel.vue to comp…
nard-tech Apr 5, 2021
030888f
確定日別による陽性者数の推移: Rename components/cards/PositiveNumberByDiagnosedDate…
nard-tech Apr 5, 2021
0289272
死亡日別による死亡者数の推移: Rename components/cards/DeathsByDeathDateCard.vue to …
nard-tech Apr 5, 2021
7f80f95
検査実施件数: Rename components/cards/TestedNumberCard.vue to components/in…
nard-tech Apr 5, 2021
42de3a4
検査実施件数: Rename components/TimeStackedBarChart.vue to components/index…
nard-tech Apr 5, 2021
09444cf
N501Y変異株スクリーニングの実施状況: Rename components/cards/VariantCard.vue to comp…
nard-tech May 10, 2021
490789e
N501Y変異株スクリーニングの実施状況: Rename components/VariantChart.vue to component…
nard-tech May 10, 2021
bca2d53
新型コロナコールセンター相談件数: Rename components/cards/TelephoneAdvisoryReportsNum…
nard-tech Apr 5, 2021
6e62387
受診相談窓口における相談件数: components/cards/MonitoringConsultationDeskReportsNum…
nard-tech Apr 5, 2021
da9f29e
受診相談窓口における相談件数: Rename components/MonitoringConsultationDeskReportCha…
nard-tech Apr 5, 2021
40bf634
東京都発熱相談センターにおける相談件数: Rename components/cards/TokyoFeverConsultationCe…
nard-tech Apr 5, 2021
5d3d4ff
東京都発熱相談センターにおける相談件数: Rename components/FeverMixedChart.vue to compone…
nard-tech Apr 5, 2021
74c8f4f
都営地下鉄の利用者数の推移: Rename components/cards/MetroCard.vue to components/in…
nard-tech Apr 5, 2021
8dbb92b
都営地下鉄の利用者数の推移: Rename components/MetroBarChart.vue.vue to components/…
nard-tech Apr 5, 2021
ec7f421
都庁来庁者数の推移: Rename components/cards/AgencyCard.vue to components/index…
nard-tech Apr 5, 2021
9cf5b74
都庁来庁者数の推移: Rename components/AgencyBarChart.vue to components/index/C…
nard-tech Apr 5, 2021
f1a0693
モニタリング項目: Rename components/CardsMonitoring.vue to components/index/C…
nard-tech Apr 5, 2021
c3d3258
その他 参考指標: Rename components/CardsReference.vue to components/index/Ca…
nard-tech Apr 5, 2021
fa1788c
Rename components/SideNavigation.vue to components/_shared/SideNaviga…
nard-tech Apr 5, 2021
54b42e3
Rename components/LanguageSelector.vue to components/_shared/SideNavi…
nard-tech Apr 5, 2021
da0a88c
Rename components/MenuList.vue to components/_shared/SideNavigation/M…
nard-tech Apr 5, 2021
ba76912
Rename components/DevelopmentModeMark.vue to components/_shared/Devel…
nard-tech Apr 5, 2021
1619c91
Rename components/NoScript.vue to components/_shared/NoScript.vue
nard-tech Apr 5, 2021
ce6d5ed
Rename components/SiteTopUpper.vue to components/index/SiteTopUpper.vue
nard-tech May 23, 2021
d8c4553
Rename components/WhatsNew.vue to components/index/SiteTopUpper/Whats…
nard-tech May 21, 2021
cf3cfab
感染状況・医療提供体制(サマリ): Rename components/InfectionMedicalcareprovisionStat…
nard-tech May 23, 2021
01cfc78
感染状況・医療提供体制の分析: Rename components/MonitoringCommentCard.vue to compon…
nard-tech May 23, 2021
9fb7b5e
感染状況・医療提供体制の分析: Rename components/MonitoringCommentCardImageSwipe.vue…
nard-tech May 22, 2021
3fc3e99
感染状況・医療提供体制の分析: Rename components/MonitoringCommentFrame.vue to compo…
nard-tech May 22, 2021
d9b1107
都内の滞在人口の増減状況: Rename components/StayingPopulation.vue to components/i…
nard-tech May 22, 2021
53f77e4
自分や家族の症状に不安や心配があればまずは電話相談をどうぞ: Rename components/Consultation.vue to …
nard-tech May 22, 2021
84aa10a
Rename components/AppLink.vue to components/_shared/AppLink.vue
nard-tech May 22, 2021
7fbe321
Rename components/CardsTab.vue to components/index/CardsTab.vue
nard-tech May 22, 2021
8322ba3
Rename components/CardsLazyRow.vue to components/index/_shared/CardsL…
nard-tech May 23, 2021
a8e428e
Rename components/cards/CardRow.vue to components/index/_shared/CardR…
nard-tech May 23, 2021
259db2c
7119における発熱等相談件数,救急医療の東京ルールの適用件数: Rename components/MixedBarAndLineCha…
nard-tech May 23, 2021
ad0d94d
Rename components/TimeBarChart.vue to components/index/_shared/TimeBa…
nard-tech May 23, 2021
23b56a2
オープンデータを入手: Rename components/OpenDataLink.vue to components/index/_s…
nard-tech May 23, 2021
ab262e5
Rename components/PageHeader.vue to components/_shared/PageHeader.vue
nard-tech May 23, 2021
db2bfb1
Rename components/DataSelector.vue to components/index/_shared/DataSe…
nard-tech May 23, 2021
4cc0f6a
Rename components/ScrollableChart.vue to components/index/_shared/Scr…
nard-tech May 23, 2021
c987834
Rename components/StaticCard.vue to components/_shared/StaticCard.vue
nard-tech May 23, 2021
62cf468
Rename components/StaticInfo.vue to components/index/SiteTopUpper/Con…
nard-tech May 24, 2021
d47b878
Rename components/DataView.vue to components/index/_shared/DataView.vue
nard-tech May 24, 2021
75894c3
テーブルを表示: Rename components/DataViewExpantionPanel.vue to components/i…
nard-tech May 24, 2021
d03c3dc
情報をシェアする: Rename components/DataViewShare.vue to components/index/_sh…
nard-tech May 24, 2021
ff0d280
Rename components/DataViewDataSetPanel.vue to components/index/_share…
nard-tech May 24, 2021
fdd9668
Rename components/DataViewTable.vue to components/index/_shared/DataV…
nard-tech May 24, 2021
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
6 changes: 3 additions & 3 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"]

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

# タグの正規表現パターン
tag_pattern_t = re.compile("\$t\([ ]*?['|`][^']*?['|`]")
Expand Down Expand Up @@ -147,7 +147,7 @@
# Noneが混じっているので、取り除く
all_tags.pop(all_tags.index(None))
# 全角のハイフン、半角のハイフン、全角のダッシュ、全角ハイフンマイナスが混じっているので、取り除く
# 理由は components/cards/ConfirmedCasesAttributesCard.vue の75行目辺りを参照
# 理由は components/index/CardsReference/ConfirmedCasesAttributes/Card.vue の translateWord メソッドを参照
for x in ["-", "‐", "―", "-"]:
try:
all_tags.pop(all_tags.index(x))
Expand Down
17 changes: 0 additions & 17 deletions components/Consultation.vue

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</template>

<script>
import AppLink from '@/components/AppLink.vue'
import AppLink from '@/components/_shared/AppLink.vue'

export default {
name: 'DevelopmentModeMark',
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ import {
import Vue from 'vue'
import { TranslateResult } from 'vue-i18n'

import AppLink from '@/components/AppLink.vue'
import LanguageSelector from '@/components/LanguageSelector.vue'
import MenuList from '@/components/MenuList.vue'
import AppLink from '@/components/_shared/AppLink.vue'
import LanguageSelector from '@/components/_shared/SideNavigation/LanguageSelector.vue'
import MenuList from '@/components/_shared/SideNavigation/MenuList.vue'

type Item = {
iconPath?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script lang="ts">
import Vue, { PropType } from 'vue'

import AppLink from '@/components/AppLink.vue'
import AppLink from '@/components/_shared/AppLink.vue'
import CovidIcon from '@/static/covid.svg'
import MaskTrashIcon from '@/static/masktrash.svg'
import ParentIcon from '@/static/parent.svg'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,50 @@
/* eslint-disable simple-import-sort/imports -- ブラウザでの表示順に合わせて各 card の component を import する */
import Vue from 'vue'

import CardsLazyRow from '@/components/index/_shared/CardsLazyRow.vue'

// 検査陽性者の状況
const ConfirmedCasesDetailsCard = () =>
import('@/components/cards/ConfirmedCasesDetailsCard.vue')
import('@/components/index/CardsMonitoring/ConfirmedCasesDetails/Card.vue')
// 報告日別による陽性者数の推移
const ConfirmedCasesNumberCard = () =>
import('@/components/cards/ConfirmedCasesNumberCard.vue')
import('@/components/index/CardsMonitoring/ConfirmedCasesNumber/Card.vue')
// モニタリング項目
const MonitoringItemsOverviewCard = () =>
import('@/components/cards/MonitoringItemsOverviewCard.vue')
import('@/components/index/CardsMonitoring/MonitoringItemsOverview/Card.vue')
// モニタリング項目(1)新規陽性者数
const MonitoringConfirmedCasesNumberCard = () =>
import('@/components/cards/MonitoringConfirmedCasesNumberCard.vue')
import(
'@/components/index/CardsMonitoring/MonitoringConfirmedCasesNumber/Card.vue'
)
// モニタリング項目(2)#7119における発熱等相談件数
const ConsultationAboutFeverNumberCard = () =>
import('@/components/cards/ConsultationAboutFeverNumberCard.vue')
import(
'@/components/index/CardsMonitoring/ConsultationAboutFeverNumber/Card.vue'
)
// モニタリング項目(3)新規陽性者における接触歴等不明者数
const UntrackedRateCard = () =>
import('@/components/cards/UntrackedRateCard.vue')
import('@/components/index/CardsMonitoring/UntrackedRate/Card.vue')
// モニタリング項目(4)検査の陽性率
const PositiveRateCard = () => import('@/components/cards/PositiveRateCard.vue')
const PositiveRateCard = () =>
import('@/components/index/CardsMonitoring/PositiveRate/Card.vue')
// モニタリング項目(5)救急医療の東京ルールの適用件数
const TokyoRulesApplicationNumberCard = () =>
import('@/components/cards/TokyoRulesApplicationNumberCard.vue')
import(
'@/components/index/CardsMonitoring/TokyoRulesApplicationNumber/Card.vue'
)
// モニタリング項目(6)入院患者数
const HospitalizedNumberCard = () =>
import('@/components/cards/HospitalizedNumberCard.vue')
import('@/components/index/CardsMonitoring/HospitalizedNumber/Card.vue')
// モニタリング項目(7)重症患者数
const SevereCaseCard = () => import('@/components/cards/SevereCaseCard.vue')
const SevereCaseCard = () =>
import('@/components/index/CardsMonitoring/SevereCase/Card.vue')
/* eslint-enable simple-import-sort/imports */

export default Vue.extend({
components: {
CardsLazyRow,
},
data() {
return {
rows: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@
<script>
import dayjs from 'dayjs'

import AppLink from '@/components/AppLink.vue'
import ConfirmedCasesDetailsTable from '@/components/ConfirmedCasesDetailsTable.vue'
import DataView from '@/components/DataView.vue'
import OpenDataLink from '@/components/OpenDataLink.vue'
import AppLink from '@/components/_shared/AppLink.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import OpenDataLink from '@/components/index/_shared/OpenDataLink.vue'
// table タグとの衝突を避けるため ConfirmedCasesDetailsTable とする
import ConfirmedCasesDetailsTable from '@/components/index/CardsMonitoring/ConfirmedCasesDetails/Table.vue'
import Data from '@/data/data.json'
import formatConfirmedCases from '@/utils/formatConfirmedCases'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
</template>

<script>
import AppLink from '@/components/AppLink.vue'
import TimeBarChart from '@/components/TimeBarChart.vue'
import AppLink from '@/components/_shared/AppLink.vue'
import TimeBarChart from '@/components/index/_shared/TimeBarChart.vue'
import Data from '@/data/data.json'
import formatGraph from '@/utils/formatGraph'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</template>

<script>
import MixedBarAndLineChart from '@/components/MixedBarAndLineChart.vue'
import MixedBarAndLineChart from '@/components/index/_shared/MixedBarAndLineChart.vue'
import ConsultationAboutFever from '@/data/consultation_about_fever.json'
import {
getNumberToFixedFunction,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-col cols="12" md="6" class="DataCard HospitalizedNumberCard">
<client-only>
<dashed-rectangle-time-bar-chart
<chart
:title="$t('モニタリング項目(6)')"
:title-id="'number-of-hospitalized'"
:info-titles="[$t('入院患者数')]"
Expand Down Expand Up @@ -33,19 +33,19 @@
</li>
</ul>
</template>
</dashed-rectangle-time-bar-chart>
</chart>
</client-only>
</v-col>
</template>

<script>
import DashedRectangleTimeBarChart from '@/components/DashedRectangleTimeBarChart.vue'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM後にすみません、一部カードのimport時のネーミングルールがミスっている気がします....

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

フォローありがとうございます!ここは削除行のようですが、どうなんでしょう?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

すみません、範囲選択ミスなんですが、Chartとしてimport、使用されています

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

私の理解では CardChart を配置する、というルールかと思っているのですが、どうなんでしょう? @nard-tech

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他では

import MonitoringConfirmedCasesNumberChart from '@/components/index/CardsMonitoring/MonitoringConfirmedCasesNumber/Chart.vue'

と言った形でimportされている箇所があるようです。
Chartと言った形でimportされているところと、このようにフルネームでimportされているところで、ネーミングルールのばらつきがあるのはどうなんだろう?といった指摘でした。

Copy link
Contributor

@y-chan y-chan May 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このコメントでは、区別する必要がなければChartとしてimportすれば良いというように結論づいているように見えましたが、どうなんでしょうか...(つまり、このコメントに従うなら私が指摘すべき所をミスってるわけ(Chartとしてimportしていない所を指摘すべき)ですが...)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そうですね!おそらく後者が修正もれですね。
また後日の修正でも大丈夫なので、いったんここでマージしますね!
@y-chan フォロー感謝です!!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@y-chan @kaizumaki キャッチアップできずすみません.merge ありがとうございます.後ほど確認して必要なら修正します.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nard-tech ぜんぜん後日で大丈夫です!よろしくお願いします 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@y-chan @kaizumaki #6368 を作成しました.ご確認ください.

import Chart from '@/components/index/CardsMonitoring/HospitalizedNumber/Chart.vue'
import positiveStatus from '@/data/positive_status.json'
import formatGraph from '@/utils/formatGraph'

export default {
components: {
DashedRectangleTimeBarChart,
Chart,
},
data() {
const formatData = positiveStatus.data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ import Vue from 'vue'
import { ThisTypedComponentOptionsWithRecordProps } from 'vue/types/options'
import { TranslateResult } from 'vue-i18n'

import DataView from '@/components/DataView.vue'
import DataViewDataSetPanel from '@/components/DataViewDataSetPanel.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import DataViewDataSetPanel from '@/components/index/_shared/DataViewDataSetPanel.vue'
import DataViewTable, {
TableHeader,
TableItem,
} from '@/components/DataViewTable.vue'
import OpenDataLink from '@/components/OpenDataLink.vue'
import ScrollableChart from '@/components/ScrollableChart.vue'
} from '@/components/index/_shared/DataViewTable.vue'
import OpenDataLink from '@/components/index/_shared/OpenDataLink.vue'
import ScrollableChart from '@/components/index/_shared/ScrollableChart.vue'
import {
DataSets,
DataSetsPoint,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<v-col cols="12" md="6" class="DataCard MonitoringConfirmedCasesNumberCard">
<client-only>
<monitoring-confirmed-cases-chart
<monitoring-confirmed-cases-number-chart
:title="$t('モニタリング項目(1)')"
title-id="monitoring-number-of-confirmed-cases"
:info-titles="[$t('新規陽性者数')]"
chart-id="monitoring-confirmed-cases-chart"
chart-id="monitoring-confirmed-cases-number-chart"
:chart-data="chartData"
:get-formatter="getFormatter"
:date="date"
Expand Down Expand Up @@ -36,13 +36,13 @@
</li>
</ul>
</template>
</monitoring-confirmed-cases-chart>
</monitoring-confirmed-cases-number-chart>
</client-only>
</v-col>
</template>

<script>
import MonitoringConfirmedCasesChart from '@/components/MonitoringConfirmedCasesChart.vue'
import MonitoringConfirmedCasesNumberChart from '@/components/index/CardsMonitoring/MonitoringConfirmedCasesNumber/Chart.vue'
import Data from '@/data/daily_positive_detail.json'
import {
getNumberToFixedFunction,
Expand All @@ -51,7 +51,7 @@ import {

export default {
components: {
MonitoringConfirmedCasesChart,
MonitoringConfirmedCasesNumberChart,
},
data() {
const [patientsCount, sevenDayMoveAverages, labels] = Data.data.reduce(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ import Vue from 'vue'
import { ThisTypedComponentOptionsWithRecordProps } from 'vue/types/options'
import { TranslateResult } from 'vue-i18n'

import DataView from '@/components/DataView.vue'
import DataViewDataSetPanel from '@/components/DataViewDataSetPanel.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import DataViewDataSetPanel from '@/components/index/_shared/DataViewDataSetPanel.vue'
import DataViewTable, {
TableHeader,
TableItem,
} from '@/components/DataViewTable.vue'
import OpenDataLink from '@/components/OpenDataLink.vue'
import ScrollableChart from '@/components/ScrollableChart.vue'
} from '@/components/index/_shared/DataViewTable.vue'
import OpenDataLink from '@/components/index/_shared/OpenDataLink.vue'
import ScrollableChart from '@/components/index/_shared/ScrollableChart.vue'
import { DisplayData, yAxesBgPlugin } from '@/plugins/vue-chart'
import calcDayBeforeRatio from '@/utils/calcDayBeforeRatio'
import { getGraphSeriesColor, SurfaceStyle } from '@/utils/colors'
Expand Down Expand Up @@ -182,7 +182,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
},
chartId: {
type: String,
default: 'monitoring-confirmed-cases-chart',
default: 'monitoring-confirmed-cases-number-chart',
},
chartData: {
type: Array,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
</template>
<section>
<h4>{{ $t('感染状況') }}</h4>
<monitoring-items-overview-table-infection-status
<infection-status
:aria-label="$t('感染状況')"
:items="monitoringItems"
/>
</section>
<section>
<h4>{{ $t('医療提供体制') }}</h4>
<monitoring-items-overview-table-medical-system
<medical-system
:aria-label="$t('医療提供体制')"
:items="monitoringItems"
/>
Expand All @@ -75,18 +75,18 @@
</template>

<script>
import AppLink from '@/components/AppLink.vue'
import DataView from '@/components/DataView.vue'
import MonitoringItemsOverviewTableInfectionStatus from '@/components/MonitoringItemsOverviewTableInfectionStatus.vue'
import MonitoringItemsOverviewTableMedicalSystem from '@/components/MonitoringItemsOverviewTableMedicalSystem.vue'
import AppLink from '@/components/_shared/AppLink.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import InfectionStatus from '@/components/index/CardsMonitoring/MonitoringItemsOverview/Table/InfectionStatus.vue'
import MedicalSystem from '@/components/index/CardsMonitoring/MonitoringItemsOverview/Table/MedicalSystem.vue'
import monitoringItemsData from '@/data/monitoring_items.json'
import { formatMonitoringItems } from '@/utils/formatMonitoringItems'

export default {
components: {
DataView,
MonitoringItemsOverviewTableInfectionStatus,
MonitoringItemsOverviewTableMedicalSystem,
InfectionStatus,
MedicalSystem,
AppLink,
},
data() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<li :class="[$style.box]">
<div :class="$style.content">
<span>{{ $t('(1)新規陽性者数') }}</span>
<monitoring-items-overview-table-value-with-translatable-unit
<value-with-translatable-unit
:value="items['(1)新規陽性者数'].value"
:unit="items['(1)新規陽性者数'].unit"
:bold="items['(1)新規陽性者数'].bold"
Expand All @@ -24,7 +24,7 @@
)
}}
</span>
<monitoring-items-overview-table-value-with-translatable-unit
<value-with-translatable-unit
:value="
items[
'(2)#7119(東京消防庁救急相談センター)における発熱等相談件数 '
Expand All @@ -51,7 +51,7 @@
<li :class="[$style.box]">
<div :class="$style.content">
<span>{{ $t('人数') }}</span>
<monitoring-items-overview-table-value-with-translatable-unit
<value-with-translatable-unit
:value="
items['(3)新規陽性者における接触歴等不明者(人数)'].value
"
Expand All @@ -67,7 +67,7 @@
<li :class="[$style.box]">
<div :class="$style.content">
<span>{{ $t('増加比') }}</span>
<monitoring-items-overview-table-value-with-translatable-unit
<value-with-translatable-unit
:value="
items['(3)新規陽性者における接触歴等不明者(増加比)'].value
"
Expand All @@ -90,12 +90,12 @@
<script lang="ts">
import Vue, { PropType } from 'vue'

import MonitoringItemsOverviewTableValueWithTranslatableUnit from '@/components/MonitoringItemsOverviewTableValueWithTranslatableUnit.vue'
import ValueWithTranslatableUnit from '@/components/index/CardsMonitoring/MonitoringItemsOverview/Table/ValueWithTranslatableUnit.vue'
import { MonitoringItems } from '@/utils/formatMonitoringItems'

export default Vue.extend({
components: {
MonitoringItemsOverviewTableValueWithTranslatableUnit,
ValueWithTranslatableUnit,
},
props: {
items: {
Expand Down
Loading