Skip to content

Commit

Permalink
Update: 東京都版に追従してcomponentsディレクトリを整理
Browse files Browse the repository at this point in the history
  • Loading branch information
a01sa01to committed Jun 6, 2021
1 parent 8aa46fb commit 127d702
Show file tree
Hide file tree
Showing 71 changed files with 301 additions and 342 deletions.
51 changes: 0 additions & 51 deletions components/CardsReferenceInfection.vue

This file was deleted.

92 changes: 0 additions & 92 deletions components/PrinterButton.vue

This file was deleted.

Empty file removed components/SimpleMixedChart.vue
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,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.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import Vue from 'vue'
import { ThisTypedComponentOptionsWithRecordProps } from 'vue/types/options'
import VueI18n from 'vue-i18n'
import DataTable from '@/components/DataTable.vue'
import DataTable from '@/components/index/CardsInfection/ConfirmedCasesAttributes/DataTable.vue'
import Data from '@/data/data.json'
import formatGraph from '@/utils/formatGraph'
import { DataType, formatTable, TableDateType } from '@/utils/formatTable'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@
</template>
<template #footer>
<open-data-link :url="url" />
<p class="FooterNote">
{{ $t('下記更新日時はオープンデータAPIの反映日時に準じています') }}
</p>
</template>
</data-view>
</template>
Expand All @@ -91,9 +88,9 @@ import { mdiAlert } from '@mdi/js'
import Vue from 'vue'
import ScaleLoader from 'vue-spinner/src/ScaleLoader.vue'
import DataView from '@/components/DataView.vue'
import DataViewDataSetPanel from '@/components/DataViewDataSetPanel.vue'
import OpenDataLink from '@/components/OpenDataLink.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import DataViewDataSetPanel from '@/components/index/_shared/DataViewDataSetPanel.vue'
import OpenDataLink from '@/components/index/_shared/OpenDataLink.vue'
export default Vue.extend({
components: { DataView, DataViewDataSetPanel, OpenDataLink, ScaleLoader },
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">
<client-only>
<confirmed-cases-by-age
<chart
:title="$t('年代別の感染状況')"
:title-id="'number-of-confirmed-cases-by-age'"
:chart-data="ageTable"
Expand All @@ -27,23 +27,23 @@
</li>
</ul>
</template>
</confirmed-cases-by-age>
</chart>
</client-only>
</v-col>
</template>

<script>
import dayjs from 'dayjs'
import ConfirmedCasesByAge from '@/components/ConfirmedCasesByAge.vue'
import Chart from '@/components/index/CardsInfection/ConfirmedCasesByAge/Chart.vue'
import Data from '@/data/data.json'
import { getCommaSeparatedNumberToFixedFunction } from '~/utils/valueFormatter'
import { getCommaSeparatedNumberToFixedFunction } from '@/utils/valueFormatter'
const countFormatter = getCommaSeparatedNumberToFixedFunction()
export default {
components: {
ConfirmedCasesByAge,
Chart,
},
data() {
const { data, date } = Data.patients_age
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
<script lang="ts">
import Vue from 'vue'
import DataView from '@/components/DataView.vue'
import DataViewDataSetPanel from '@/components/DataViewDataSetPanel.vue'
import OpenDataLink from '@/components/OpenDataLink.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import DataViewDataSetPanel from '@/components/index/_shared/DataViewDataSetPanel.vue'
import OpenDataLink from '@/components/index/_shared/OpenDataLink.vue'
export default Vue.extend({
components: { DataView, DataViewDataSetPanel, OpenDataLink },
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 ConfirmedCasesByMunicipalitiesCard">
<client-only>
<confirmed-cases-by-municipalities-table
<chart
:title="$t('陽性者数(市町村別)')"
:title-id="'number-of-confirmed-cases-by-municipalities'"
:chart-data="municipalitiesTable"
Expand All @@ -20,15 +20,15 @@
</li>
</ul>
</template>
</confirmed-cases-by-municipalities-table>
</chart>
</client-only>
</v-col>
</template>

<script>
import dayjs from 'dayjs'
import ConfirmedCasesByMunicipalitiesTable from '@/components/ConfirmedCasesByMunicipalitiesTable.vue'
import Chart from '@/components/index/CardsInfection/ConfirmedCasesByMunicipalities/Chart.vue'
import CityData from '@/data/cities.json'
import Data from '@/data/data.json'
import { getCommaSeparatedNumberToFixedFunction } from '@/utils/valueFormatter'
Expand All @@ -37,7 +37,7 @@ const countFormatter = getCommaSeparatedNumberToFixedFunction()
export default {
components: {
ConfirmedCasesByMunicipalitiesTable,
Chart,
},
data() {
const { data, date } = Data.patients_city
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<script lang="ts">
import Vue from 'vue'
import DataView from '@/components/DataView.vue'
import DataViewDataSetPanel from '@/components/DataViewDataSetPanel.vue'
import OpenDataLink from '@/components/OpenDataLink.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import DataViewDataSetPanel from '@/components/index/_shared/DataViewDataSetPanel.vue'
import OpenDataLink from '@/components/index/_shared/OpenDataLink.vue'
export default Vue.extend({
components: { DataView, DataViewDataSetPanel, OpenDataLink },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
</li>
</ul>
</template>
<confirmed-cases-details-table
:aria-label="$t('検査陽性者の状況')"
v-bind="confirmedCases"
/>
<chart :aria-label="$t('検査陽性者の状況')" v-bind="confirmedCases" />
<horizontal-bar-chart
:chart-id="'horizontal-bar-chart-details'"
:chart-data="confirmedDetailCases"
Expand All @@ -55,19 +52,19 @@
<script>
import dayjs from 'dayjs'
import ConfirmedCasesDetailsTable from '@/components/ConfirmedCasesDetailsTable.vue'
import DataView from '@/components/DataView.vue'
import DataViewDataSetPanel from '@/components/DataViewDataSetPanel.vue'
import HorizontalBarChart from '@/components/HorizontalBarChart.vue'
import OpenDataLink from '@/components/OpenDataLink.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import DataViewDataSetPanel from '@/components/index/_shared/DataViewDataSetPanel.vue'
import HorizontalBarChart from '@/components/index/_shared/HorizontalBarChart.vue'
import OpenDataLink from '@/components/index/_shared/OpenDataLink.vue'
import Chart from '@/components/index/CardsInfection/ConfirmedCasesDetails/Chart.vue'
import Data from '@/data/data.json'
import formatConfirmedCases from '@/utils/formatConfirmedCases'
import formatDetailConfirmedCases from '@/utils/formatDetailGraph'
const options = {
components: {
DataView,
ConfirmedCasesDetailsTable,
Chart,
HorizontalBarChart,
DataViewDataSetPanel,
OpenDataLink,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</template>

<script>
import ConfirmedCasesNumberChart from '@/components/TimeBarWithAverageChart.vue'
import ConfirmedCasesNumberChart from '@/components/index/_shared/TimeBarWithAverageChart.vue'
import Data from '@/data/data.json'
import formatGraph from '@/utils/formatGraph'
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</template>

<script>
import TimeBarChart from '@/components/TimeBarChart.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 @@ -190,8 +190,8 @@
</template>

<script>
import DataView from '@/components/DataView.vue'
import OpenDataLink from '@/components/OpenDataLink.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import OpenDataLink from '@/components/index/_shared/OpenDataLink.vue'
import Data from '@/data/data.json'
export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<script>
import IbarakiMap from '@/assets/ibaraki-map.svg'
import DataView from '@/components/DataView.vue'
import DataView from '@/components/index/_shared/DataView.vue'
import CityData from '@/data/cities.json'
import Data from '@/data/data.json'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</template>

<script>
import ConfirmedCasesNumberChart from '@/components/TimeBarWithAverageChart.vue'
import ConfirmedCasesNumberChart from '@/components/index/_shared/TimeBarWithAverageChart.vue'
import Data from '@/data/data.json'
import formatGraph from '@/utils/formatGraph'
import {
Expand Down
Loading

0 comments on commit 127d702

Please sign in to comment.