Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #281 from covid19-miyazaki/staging
Browse files Browse the repository at this point in the history
Release 2020-08-03 00:12:14 +0900
  • Loading branch information
korosuke613 authored Aug 2, 2020
2 parents 9996eea + 6931e2a commit 027c174
Show file tree
Hide file tree
Showing 10 changed files with 1,572 additions and 223 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/news_scraping.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: scraping news
# サイト構造がリニューアルしてスクレイピングに失敗しているので一時的に無効にする
on:
push:
branches-ignore:
- '**'
# on:
# schedule:
# - cron: '0 */6 * * *'
schedule:
- cron: '0 */6 * * *'
jobs:
scraping:
runs-on: ubuntu-latest
Expand All @@ -21,10 +16,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.5'
ruby-version: '2.5.8'
- name: Scraping News
env:
URL: "https://www.pref.miyazaki.lg.jp/kenko/hoken/kansensho/covid19/hassei.html"
URL: "https://www.pref.miyazaki.lg.jp/covid-19/index.html"
SELENIUM_HOST: localhost
TZ: Asia/Tokyo
run: |
Expand All @@ -49,7 +44,7 @@ jobs:
if: steps.cpr.outputs.pr_number != 0
- name: Scraping Data
env:
URL: "https://www.pref.miyazaki.lg.jp/kenko/hoken/kansensho/covid19/hassei.html"
URL: "https://www.pref.miyazaki.lg.jp/kansensho-taisaku/covid-19/hassei_list.html"
SELENIUM_HOST: localhost
TZ: Asia/Tokyo
run: |
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.5.8
12 changes: 5 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
GEM
remote: https://rubygems.org/
specs:
childprocess (2.0.0)
rake (< 13.0)
rake (12.3.3)
rubyzip (1.3.0)
selenium-webdriver (3.142.4)
childprocess (>= 0.5, < 3.0)
rubyzip (~> 1.2, >= 1.2.2)
childprocess (3.0.0)
rubyzip (2.3.0)
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)

PLATFORMS
ruby
Expand Down
53 changes: 15 additions & 38 deletions components/ConfirmedCasesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
</div>
</div>
<ul class="group">
<li class="item in-hospital">
<div class="gutter oneThird">
<li class="item deceased">
<div class="gutter">
<div class="box">
<t-i18n>{{ $t('入院中') }}</t-i18n>
<span>
Expand All @@ -36,32 +36,17 @@
</span>
</div>
</div>
<ul class="group">
<li class="item mild">
<div class="gutter">
<div class="box short">
<!-- eslint-disable vue/no-v-html-->
<span v-html="$t('軽症・<br />中等症')" />
<!-- eslint-enable vue/no-v-html-->
<span>
<b>{{ 軽症中等症 }}</b>
<t-i18n class="unit">{{ $t('人') }}</t-i18n>
</span>
</div>
</div>
</li>
<li class="item serious">
<div class="gutter">
<div class="box short">
<t-i18n>{{ $t('重症') }}</t-i18n>
<span>
<b>{{ 重症 }}</b>
<t-i18n class="unit">{{ $t('人') }}</t-i18n>
</span>
</div>
</div>
</li>
</ul>
</li>
<li class="item deceased">
<div class="gutter">
<div class="box">
<t-i18n>{{ $t('宿泊療養中') }}</t-i18n>
<span>
<b>{{ 宿泊療養中 }}</b>
<t-i18n class="unit">{{ $t('人') }}</t-i18n>
</span>
</div>
</div>
</li>
<li class="item deceased">
<div class="gutter">
Expand Down Expand Up @@ -97,15 +82,7 @@ export default {
components: {
TI18n
},
props: [
'検査実施人数',
'陽性者数',
'入院中',
'軽症中等症',
'重症',
'死亡',
'退院'
],
props: ['検査実施人数', '陽性者数', '入院中', '宿泊療養中', '死亡', '退院'],
methods: {
/** 桁数に応じて位置の調整をする */
getAdjustX(input) {
Expand Down Expand Up @@ -277,7 +254,7 @@ export default {
width: 200%;
}
.item.recovered > .gutter > .box::before {
width: 520%;
width: 400%;
}
@function px2vw($px, $vw) {
Expand Down
6 changes: 0 additions & 6 deletions components/WhatsNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
target="_blank"
rel="noopener"
>
<time
class="WhatsNew-list-item-anchor-time px-2"
:datetime="formattedDate(item.date)"
>
{{ item.date }}
</time>
<span class="WhatsNew-list-item-anchor-link">
<!-- @todo t-i18n化が必要 -->
{{ item.text }}
Expand Down
Loading

0 comments on commit 027c174

Please sign in to comment.