Skip to content

Commit

Permalink
Merge branch 'development' into feature/municipality_map
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue-Tone committed Aug 18, 2020
2 parents ec03f55 + 7122410 commit 4d367a2
Show file tree
Hide file tree
Showing 13 changed files with 53,178 additions and 442 deletions.
14 changes: 11 additions & 3 deletions assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,18 @@
"宿泊療養": "recuperation in special facilities",
"陰性確認済(退院者累計数)": "Negative Confirmed (Total Number of Discharged Patients)",
"入院": "Negative Confirmed (Total Number of Discharged Patients)",
"入院調整中": "Need to be hospitalized",
"入院調整中": "Total of (1) and (2)",
"※現在陽性者数には状況確認中の方を含む": "The current number of the testing positive includes the number of people whose situations are being confirmed.\n\n",
"療養等調整中": "Patients whose recuperation facilities are not decided yet.",
"検査陽性者の状況: 検査実施人数は{inspected}人、うち累積の陽性者数は{positive}人で、現在陽性者数は{currentlyPositive}人です。入院中は{hospitalized}人で、重症は{critically}人です、また入院調整中は{hospitalizeAdjust}人です。自宅療養は{recuperatingHome}人、宿泊療養は{recuperatingLodging}人、また療養等調整中は{recuperatingAdjust}人です。さらに死亡は{deceased}人、退院・解除済累計は{discharged}人です。": "Details of people testing positive: The number of people tested:{inspected}, Total of people tested:{positive}, the current number of those tested positive:{currentlyPositive}, Hospitalized:{hospitalized}, Severe symptoms:{critically}, Need to be hospitalized:{hospitalizeAdjust}, recuperation at home:{recuperatingHome}, recuperation in special facilities:{recuperatingLodging}, patients whose recuperation facilities are not decided yet:{recuperatingAdjust}, Deaths:{deceased}, Discharged:{discharged}.",
"本サイトの構築に関することについては、大阪府総務部スマートシティ戦略総務課にお問い合わせください。": "If you have any questions about the construction of this website, please contact:\n\nGeneral Affairs Division, \nDepartment of Smart City Strategy,\nOsaka Prefectural Government",
"本サイトの構築に関することについては、大阪府スマートシティ戦略部スマートシティ戦略総務課にお問い合わせください。": "If you have any questions about the construction of this website, please contact:\n\nGeneral Affairs Division,\nDepartment of Smart City Strategy,\nOsaka Prefectural Government"
}
"本サイトの構築に関することについては、大阪府スマートシティ戦略部スマートシティ戦略総務課にお問い合わせください。": "If you have any questions about the construction of this website, please contact:\n\nGeneral Affairs Division,\nDepartment of Smart City Strategy,\nOsaka Prefectural Government",
"※現在陽性者数には、府外で健康観察を実施している方を含む": "※現在陽性者数には、府外で健康観察を実施している方を含む",
"※再陽性者を除く": "※再陽性者を除く",
"問い合わせ先": "Contact information",
"新型コロナウイルス感染症の発生に伴う各種電話相談窓口について": "Helplines in response to the outbreak of COVID-19",
"大阪府では、府民からの各種相談に応えるため、専用の府民相談窓口を設置しています。": "Osaka Prefecture has set up several dedicated helplines to respond to various concerns from Osaka residents.",
"詳しくは上記リンクより案内をご覧下さい。": "Please see the link above for further details.",
"入院待機中": "(1)Number of people waiting to be hospitalized",
"入院もしくは療養方法の調整中": "(2)Number of people who are not decided yet where to stay for the recuperation"
}
14 changes: 11 additions & 3 deletions assets/locales/ja-Hira.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,18 @@
"宿泊療養": "ホテルで からだを 休(やす)めて 病気(びょうき)を なおす",
"陰性確認済(退院者累計数)": "コロナウイルスにかかっていないとわかった(いえにかえった人(ひと)のかず(ぜんぶで)",
"入院": "病院(びょういん)に いる 人(ひと)",
"入院調整中": "病院(びょういん)にこれから入(はい)る",
"入院調整中": "次(つぎ)の (1) と (2)を 合(あ)わせた かず",
"※現在陽性者数には状況確認中の方を含む": "いま コロナウイルスの 病気(びょうき)の 人(ひと)の かずには状況(じょうきょう)を 確認中(かくにんちゅう)の 人(ひと)も います",
"療養等調整中": "これから 家(いえ) または ホテルで 病気(びょうき)を なおす 人(ひと)",
"検査陽性者の状況: 検査実施人数は{inspected}人、うち累積の陽性者数は{positive}人で、現在陽性者数は{currentlyPositive}人です。入院中は{hospitalized}人で、重症は{critically}人です、また入院調整中は{hospitalizeAdjust}人です。自宅療養は{recuperatingHome}人、宿泊療養は{recuperatingLodging}人、また療養等調整中は{recuperatingAdjust}人です。さらに死亡は{deceased}人、退院・解除済累計は{discharged}人です。": "あたらしいコロナウイルスの 病気(びょうき)になった ひと について: しらべたひと は{inspected}人(にん)、びょうきのひと は{positive}人(にん)で、いま コロナウイルスの 病気(びょうき)の 人(ひと)のかず は{currentlyPositive}人(人)です。病院(びょういん)に いるひと は{hospitalized}人で、そのなかで たいへんなひと は{critically}人(にん)。病院(びょういん)にこれから入(はい)る は{hospitalizeAdjust}人(人)、家(いえ)で からだを 休(やす)めて 病気(びょうき)を なおす は{recuperatingHome}人(にん)、ホテルで からだを 休(やす)めて 病気(びょうき)を なおす は{recuperatingLodging}人(にん)、またこれから 家(いえ) または ホテルで 病気(びょうき)を なおす 人(ひと) は{recuperatingAdjust}人(にん)です。さらになくなったひと は{deceased}人(にん)、いえに かえった ひと は{discharged}人(にん)です。",
"本サイトの構築に関することについては、大阪府総務部スマートシティ戦略総務課にお問い合わせください。": "このウェブサイトのことを 聞(き)きたい ときは 大阪府(おおさかふ)スマートシティ戦略総務課(せんりゃくそうむか)06-6944-6826に電話(でんわ)してください。",
"本サイトの構築に関することについては、大阪府スマートシティ戦略部スマートシティ戦略総務課にお問い合わせください。": "このウェブサイトのことを 聞(き)きたい ときは 大阪府(おおさかふ)スマートシティ戦略部(せんりゃくぶ)スマートシティ戦略総務課(せんりゃくそうむか)06-6944-6826に電話(でんわ)してください。"
}
"本サイトの構築に関することについては、大阪府スマートシティ戦略部スマートシティ戦略総務課にお問い合わせください。": "このウェブサイトのことを 聞(き)きたい ときは 大阪府(おおさかふ)スマートシティ戦略部(せんりゃくぶ)スマートシティ戦略総務課(せんりゃくそうむか)06-6944-6826に電話(でんわ)してください。",
"※現在陽性者数には、府外で健康観察を実施している方を含む": "※現在陽性者数には、府外で健康観察を実施している方を含む",
"※再陽性者を除く": "※ふたたびコロナウイルスの 病気(びょうき)の 人(ひと)はのぞく",
"問い合わせ先": "こまった ときに 聞(き)くところ",
"新型コロナウイルス感染症の発生に伴う各種電話相談窓口について": "あたらしいコロナウイルスの病気(びょうき)のことで わからないことが あるとき",
"大阪府では、府民からの各種相談に応えるため、専用の府民相談窓口を設置しています。": "あたらしいコロナウイルスの病気(びょうき)に 関することで、みなさんが 知りたいことを、大阪府(おおさかふ)が お答(こた)えしています。",
"詳しくは上記リンクより案内をご覧下さい。": "詳(くわ)しくは 上(うえ)のリンクを 見(み)てください。",
"入院待機中": "(1)病院(びょういん)に 入(はい)るための 準備(じゅんび)を している",
"入院もしくは療養方法の調整中": "(2)どこで 病気(びょうき)を なおすか 決(き)まっていない"
}
8 changes: 7 additions & 1 deletion assets/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -478,5 +478,11 @@
"本サイトの構築に関することについては、大阪府総務部スマートシティ戦略総務課にお問い合わせください。": "本サイトの構築に関することについては、大阪府総務部スマートシティ戦略総務課にお問い合わせください。",
"本サイトの構築に関することについては、大阪府スマートシティ戦略部スマートシティ戦略総務課にお問い合わせください。": "本サイトの構築に関することについては、大阪府スマートシティ戦略部スマートシティ戦略総務課にお問い合わせください。",
"※現在陽性者数には、府外で健康観察を実施している方を含む": "※現在陽性者数には、府外で健康観察を実施している方を含む",
"※再陽性者を除く": "※再陽性者を除く"
"※再陽性者を除く": "※再陽性者を除く",
"問い合わせ先": "問い合わせ先",
"新型コロナウイルス感染症の発生に伴う各種電話相談窓口について": "新型コロナウイルス感染症の発生に伴う各種電話相談窓口について",
"大阪府では、府民からの各種相談に応えるため、専用の府民相談窓口を設置しています。": "大阪府では、府民からの各種相談に応えるため、専用の府民相談窓口を設置しています。",
"詳しくは上記リンクより案内をご覧下さい。": "詳しくは上記リンクより案内をご覧下さい。",
"入院待機中": "入院待機中",
"入院もしくは療養方法の調整中": "入院もしくは療養方法の調整中"
}
155 changes: 120 additions & 35 deletions components/ConfirmedCasesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
退院,
現在陽性者数,
入院調整中,
入院待機中,
入院もしくは療養方法の調整中,
自宅療養,
宿泊療養,
療養等調整中,
Expand All @@ -20,31 +22,49 @@
"
>
<li>
<div :class="[$style.row, $style['is-black']]">
<div :class="[$style.row, $style['is-conducted']]">
<span v-text="$t('検査実施件数')">)"></span>
<span :class="$style.value"
>{{ 検査実施人数 }}{{ $t('件.tested') }}</span
>
</div>
</li>
<li>
<div :class="$style.row">
<div :class="[$style.row, $style['is-positive']]">
<span>{{ $t('陽性者数(累積)') }}</span>
<span :class="$style.value">{{ 陽性物数 }}{{ $t('人') }}</span>
</div>
<ul :class="$style.container">
<ul
:class="[
$style.container,
$style['sub-container'],
$style['is-positive']
]"
>
<li>
<div :class="[$style.row, $style['is-positive']]">
<div :class="[$style.row, $style['is-current-positive']]">
<span>{{ $t('現在陽性者数') }}</span>
<span :class="$style.value">{{ 現在陽性者数 }}{{ $t('人') }}</span>
</div>
<ul :class="$style.container">
<ul
:class="[
$style.container,
$style['sub-container'],
$style['is-current-positive']
]"
>
<li>
<div :class="[$style.row, $style['is-gray']]">
<span v-text="$t('入院')" />
<span :class="$style.value">{{ 入院中 }}{{ $t('人') }}</span>
</div>
<ul :class="$style.container">
<ul
:class="[
$style.container,
$style['sub-container'],
$style['is-gray']
]"
>
<li>
<div :class="[$style.row, $style['is-gray']]">
<span>{{ $t('重症') }}</span>
Expand All @@ -60,6 +80,30 @@
>{{ 入院調整中 }}{{ $t('人') }}</span
>
</div>
<ul
:class="[
$style.container,
$style['sub-container'],
$style['is-gray']
]"
>
<li>
<div :class="[$style.row, $style['is-gray']]">
<span>{{ $t('入院待機中') }}</span>
<span :class="$style.value"
>{{ 入院待機中 }}{{ $t('人') }}</span
>
</div>
</li>
<li>
<div :class="[$style.row, $style['is-gray']]">
<span>{{ $t('入院もしくは療養方法の調整中') }}</span>
<span :class="$style.value"
>{{ 入院もしくは療養方法の調整中 }}{{ $t('人') }}</span
>
</div>
</li>
</ul>
</li>
<li>
<div :class="[$style.row, $style['is-gray']]">
Expand Down Expand Up @@ -140,6 +184,14 @@ export default {
type: Number,
required: true
},
入院待機中: {
type: Number,
required: true
},
入院もしくは療養方法の調整中: {
type: Number,
required: true
},
自宅療養: {
type: Number,
required: true
Expand Down Expand Up @@ -196,37 +248,68 @@ export default {
</script>

<style lang="scss" module>
$rowSidePadding: 1.5em;
$rowNestPadding: 2em;
$borderWidth: 2px;
$itemGap: 0.25em;
.container {
&,
ul {
padding-left: 0 !important;
}
$positiveColor: lighten($green-1, 50%);
$currentPositiveColor: #e6e6e6;
$deceasedColor: #ccc;
$conductedColor: #333;
// for .sub-container
@mixin scBoxShadow($color) {
box-shadow: $color 0px 2px 0px 0px inset;
}
ul.container {
padding: 0;
letter-spacing: 0.05em;
&,
li {
list-style: none;
}
> * + *,
.container {
margin-top: 4px;
> li + li {
margin-top: $itemGap;
}
}
// ネスト用のスタイルを吐き出す
@for $i from 1 to 4 {
$selector: '.container';
ul.sub-container {
padding: $itemGap 0 0 2.25em;
position: relative;
@for $j from 1 to $i {
$selector: $selector + ' .container';
}
&::before {
content: '';
width: 2em;
$selector: $selector + ' .row';
border: solid $green-1;
border-width: 0 $borderWidth $borderWidth;
#{$selector} {
padding-left: $rowNestPadding * $i + $rowSidePadding;
@include scBoxShadow(#fff);
position: absolute;
top: -2px;
left: 0;
bottom: 0;
}
&.is-positive::before {
background: $positiveColor;
@include scBoxShadow($positiveColor);
}
&.is-current-positive {
&::before,
.sub-container::before {
background: $currentPositiveColor;
@include scBoxShadow($currentPositiveColor);
}
.row {
background: $currentPositiveColor;
}
}
}
Expand All @@ -236,35 +319,37 @@ $rowNestPadding: 2em;
align-items: center;
justify-content: space-between;
padding: 0.25em $rowSidePadding;
padding: 0.5em 1em;
font-weight: bold;
border: solid 2px $green-1;
color: $green-1;
color: darken($green-1, 15%);
&.is-black {
border-color: #333;
color: #4d4d4d;
&.is-positive {
background: $positiveColor;
}
&.is-deceased {
background: rgba(#333, 30%);
background: $deceasedColor;
}
&.is-positive {
background: rgba($green-1, 20%);
&.is-current-positive {
background: $currentPositiveColor;
}
&.is-gray {
background: rgba(#333, 10%);
&.is-conducted {
border-color: $conductedColor;
color: $conductedColor;
}
}
.value {
flex: none;
margin-left: 1em;
letter-spacing: 0.075em;
}
</style>
6 changes: 5 additions & 1 deletion components/TimeStackedBarChart2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,13 @@ export default {
const lastRatio = this.formatDayBeforeRatio(
lastArray[0] - lastlastArray[0]
)
const lastPercent =
let lastPercent =
Math.floor((lastNum / this.sum(lastArray)) * 100 * 10 ** 2) / 10 ** 2
if (isNaN(lastPercent)) {
lastPercent = 0
}
return {
lText: lastNum.toLocaleString(),
sText1: `${this.$t('リンク不明率:{rate} %', {
Expand Down
Binary file modified data/contacts1.xlsx
Binary file not shown.
Binary file modified data/contacts2.xlsx
Binary file not shown.
Loading

0 comments on commit 4d367a2

Please sign in to comment.