covid19 icon indicating copy to clipboard operation
covid19 copied to clipboard

component に対する型の指定と Vuex による JSON データの読み込み

Open nard-tech opened this issue 3 years ago • 1 comments

改善詳細 / Details of Improvement

#6102 で quicktype による型を導入したので,各 component に対して静的型付けをしていく.

また,Vuex を介した JSON データの読み込みを行っていない箇所があるので,対応する.

関連 issue, PR

  • issue: https://github.com/tokyo-metropolitan-gov/covid19/issues/1100, https://github.com/tokyo-metropolitan-gov/covid19/issues/2790
  • pull request: https://github.com/tokyo-metropolitan-gov/covid19/pull/3008, https://github.com/tokyo-metropolitan-gov/covid19/pull/6102

期待する見せ方・挙動 / Expected behavior

  • Vuex を介した JSON データの読み込みを行い,各 component に対して静的型付けをしていく.

nard-tech avatar Jun 07 '21 12:06 nard-tech

Repositories

AgencyRepository

  • [x] その他 参考指標 > 都庁来庁者数の推移
    • components/index/CardsReference/Agency/Card.vue
    • #6423

ConsultationAboutFeverRepository

  • [x] モニタリング項目 > モニタリング項目(2) #7119における発熱等相談件数
    • components/index/CardsMonitoring/ConsultationAboutFeverNumber/Card.vue
      • #6449
    • cf. components/index/_shared/MixedBarAndLineChart.vue
      • 別途対応

DailyPositiveDetailRepository

  • [x] モニタリング項目 > モニタリング項目(1) 新規陽性者数
    • components/index/CardsMonitoring/MonitoringConfirmedCasesNumber/Card.vue
      • #6456
  • [x] モニタリング項目 > モニタリング項目(3) 新規陽性者における接触歴等不明者数/増加比
    • components/index/CardsMonitoring/UntrackedRate/Card.vue
      • #6456

DataRepository

  • [ ] layouts/default.vue
  • [ ] トップページ上部
    • components/index/SiteTopUpper.vue
  • [ ] モニタリング項目 > 検査陽性者の状況
    • components/index/CardsMonitoring/ConfirmedCasesDetails/Card.vue
  • [ ] モニタリング項目 > 報告日別による陽性者数の推移
    • components/index/CardsMonitoring/ConfirmedCasesNumber/Card.vue
  • [ ] その他 参考指標 > 陽性者の属性
    • components/index/CardsReference/ConfirmedCasesAttributes/Card.vue
  • [ ] その他 参考指標 > 検査実施件数
    • components/index/CardsReference/TestedNumber/Card.vue
  • [ ] その他 参考指標 > 新型コロナコールセンター相談件数
    • components/index/CardsReference/TelephoneAdvisoryReportsNumber/Card.vue
  • [ ] その他 参考指標 > 受診相談窓口における相談件数
    • components/index/CardsReference/MonitoringConsultationDeskReportsNumber/Card.vue

FeverConsultationCenterRepository

  • [x] その他 参考指標 > 東京都発熱相談センターにおける相談件数
    • components/index/CardsReference/TokyoFeverConsultationCenterReportsNumber/Card.vue
      • #6484

InfectionMedicalcareprovisionStatusRepository

  • [ ] 感染状況・医療提供体制(サマリ)
    • components/InfectionMedicalcareprovisionStatus.vue

MetroRepository

  • [X] その他 参考指標 > 都営地下鉄の利用者数の推移
    • components/index/CardsReference/Metro/Card.vue
      • #6305

MonitoringCommentImageRepository

  • [x] 感染状況・医療提供体制の分析(導入済み
    • components/index/SiteTopUpper/MonitoringComment/Card.vue -> components/index/SiteTopUpper/MonitoringComment/ImageSwipe.vue

MonitoringItemsRepository

  • [ ] 感染状況・医療提供体制の分析
    • components/index/SiteTopUpper/MonitoringComment/Card.vue
  • [ ] モニタリング項目
    • components/index/CardsMonitoring/MonitoringItemsOverview/Card.vue

NewsRepository

  • [x] トップページ上部(導入済み
    • components/index/SiteTopUpper.vue

PatientRepository

  • [ ] その他 参考指標 > 陽性者数(区市町村別)
    • components/index/CardsReference/ConfirmedCasesByMunicipalities/Card.vue

PositiveByDevelopedRepository

  • [ ] その他 参考指標 > 発症日別による陽性者数の推移
    • components/index/CardsReference/PositiveNumberByDevelopedDate/Card.vue

PositiveByDiagnosedRepository

  • [ ] その他 参考指標 > 確定日別による陽性者数の推移
    • components/index/CardsReference/PositiveNumberByDiagnosedDate/Card.vue

PositiveRateRepository

  • [ ] モニタリング項目 > モニタリング項目(4) 検査の陽性率/検査人数
    • components/index/CardsMonitoring/PositiveRate/Card.vue

PositiveStatusRepository

  • [ ] モニタリング項目 > モニタリング項目(6) 入院患者数
    • components/index/CardsMonitoring/HospitalizedNumber/Card.vue
  • [ ] モニタリング項目 > モニタリング項目(7) 重症患者数
    • components/index/CardsMonitoring/SevereCase/Card.vue

StayingPopulationRepository

  • [X] 緊急事態宣言中の都内の滞在人口の増減状況(導入済み
    • components/StayingPopulation.vue

TokyoRuleRepository

  • [x] モニタリング項目 > モニタリング項目(5) 救急医療の東京ルールの適用件数
    • components/index/CardsMonitoring/TokyoRulesApplicationNumber/Card.vue
      • #6449
    • cf. components/index/_shared/MixedBarAndLineChart.vue
      • 別途対応

VaccinationRepository

  • [X] その他 参考指標 > ワクチン接種回数(高齢者・累計)(導入済み
    • components/index/CardsReference/Vaccination/Card.vue

VariantRepository

  • [X] その他 参考指標 > N501Y変異株スクリーニングの実施状況(導入済み
    • components/index/CardsReference/Variant/Card.vue

Repository 未作成

  • [ ] その他 参考指標 > 死亡日別による死亡者数の推移
    • components/index/CardsReference/DeathsByDeathDate/Card.vue

複数の Card で共通して使用されている component の対応

  • [ ] components/index/_shared/MixedBarAndLineChart.vue
    • cf. ConsultationAboutFeverRepository - モニタリング項目 > モニタリング項目(2) #7119における発熱等相談件数
    • cf. TokyoRuleRepository - モニタリング項目 > モニタリング項目(5) 救急医療の東京ルールの適用件数

nard-tech avatar Jun 07 '21 12:06 nard-tech