Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Rename components
Browse files Browse the repository at this point in the history
  • Loading branch information
shgtkshruch committed Mar 20, 2020
1 parent da5ceb4 commit 9f2eea3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-col cols="12" md="6" class="DataCard">
<shinjuku-bar-chart
<visitors-bar-chart
:title="$t('新宿区エリアの来訪者推移(参考値)')"
:title-id="'shinjuku-visitors'"
:chart-id="'shinjuku-visitors'"
Expand All @@ -15,15 +15,15 @@

<script>
import ShinjukuData from '@/data/13104_daily_visitors.json'
import ShinjukuBarChart from '@/components/ShinjukuBarChart.vue'
import VisitorsBarChart from '@/components/VisitorsBarChart.vue'
export default {
components: {
ShinjukuBarChart
VisitorsBarChart
},
data() {
// ツールチップ label 文字列
// this.$t を使うため shinjuku-bar-chart の外側へ
// this.$t を使うため visitors-bar-chart の外側へ
const tooltipTitle = tooltipItems => {
const label = tooltipItems[0].label
return this.$t('期間: {duration}', {
Expand Down
8 changes: 5 additions & 3 deletions pages/cards/_card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"
/>
<agency-card v-else-if="this.$route.params.card == 'agency'" />
<shinjuku-card v-else-if="this.$route.params.card == 'shinjuku-visitors'" />
<shinjuku-visitors-card
v-else-if="this.$route.params.card == 'shinjuku-visitors'"
/>
</div>
</template>

Expand All @@ -55,7 +57,7 @@ import TelephoneAdvisoryReportsNumberCard from '@/components/cards/TelephoneAdvi
import ConsultationDeskReportsNumberCard from '@/components/cards/ConsultationDeskReportsNumberCard.vue'
import MetroCard from '@/components/cards/MetroCard.vue'
import AgencyCard from '@/components/cards/AgencyCard.vue'
import ShinjukuCard from '@/components/cards/ShinjukuCard.vue'
import ShinjukuVisitorsCard from '@/components/cards/ShinjukuVisitorsCard.vue'
export default {
components: {
Expand All @@ -69,7 +71,7 @@ export default {
ConsultationDeskReportsNumberCard,
MetroCard,
AgencyCard,
ShinjukuCard
ShinjukuVisitorsCard
},
data() {
let title, updatedAt
Expand Down
6 changes: 3 additions & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<consultation-desk-reports-number-card />
<metro-card />
<agency-card />
<shinjuku-card />
<shinjuku-visitors-card />
</v-row>
</div>
</template>
Expand All @@ -46,7 +46,7 @@ import TelephoneAdvisoryReportsNumberCard from '@/components/cards/TelephoneAdvi
import ConsultationDeskReportsNumberCard from '@/components/cards/ConsultationDeskReportsNumberCard.vue'
import MetroCard from '@/components/cards/MetroCard.vue'
import AgencyCard from '@/components/cards/AgencyCard.vue'
import ShinjukuCard from '@/components/cards/ShinjukuCard.vue'
import ShinjukuVisitorsCard from '@/components/cards/ShinjukuVisitorsCard.vue'
export default Vue.extend({
components: {
Expand All @@ -63,7 +63,7 @@ export default Vue.extend({
ConsultationDeskReportsNumberCard,
MetroCard,
AgencyCard,
ShinjukuCard
ShinjukuVisitorsCard
},
data() {
const data = {
Expand Down

0 comments on commit 9f2eea3

Please sign in to comment.