Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5503073
Merge pull request #392 from cmu-delphi/bot/sync-main-dev
krivard Jun 24, 2021
c53b347
Fix thank typo in coe
krivard Jun 28, 2021
214c7fa
Merge pull request #393 from cmu-delphi/krivard/coe-typo
krivard Jun 28, 2021
5522e43
build(deps-dev): bump hugo-bin from 0.71.1 to 0.72.3
dependabot[bot] Jun 28, 2021
c733e3a
feat: apply new survey name
sgratzl Jul 1, 2021
da3cba0
fix: restore line breaks
sgratzl Jul 1, 2021
8b9d0c2
fix: also rename footer
sgratzl Jul 1, 2021
225c19d
feat: add covidcast-classic
sgratzl Jul 1, 2021
9992427
build: fix package resolution
sgratzl Jul 1, 2021
0c0e164
Merge pull request #396 from cmu-delphi/dependabot/npm_and_yarn/dev/h…
sgratzl Jul 1, 2021
153a266
build: update dependencies
sgratzl Jul 1, 2021
891cc34
Merge pull request #399 from cmu-delphi/sgratzl/prettier
sgratzl Jul 1, 2021
5eb6cf4
Merge branch 'dev' into sgratzl/covidcast-classic
sgratzl Jul 1, 2021
db9dd65
build: use published version of covidcast-classic
sgratzl Jul 1, 2021
54449a1
Merge pull request #398 from cmu-delphi/sgratzl/covidcast-classic
sgratzl Jul 1, 2021
9a806c5
build(deps-dev): bump hugo-bin from 0.72.4 to 0.72.5
dependabot[bot] Jul 5, 2021
baa9ee0
build(deps): bump actions/setup-node from 2.1.5 to 2.2.0
dependabot[bot] Jul 5, 2021
3c46d5d
Merge pull request #400 from cmu-delphi/dependabot/npm_and_yarn/dev/h…
sgratzl Jul 6, 2021
c1df711
Merge pull request #401 from cmu-delphi/dependabot/github_actions/dev…
sgratzl Jul 6, 2021
9d6b13b
fix: Apply suggestions from code review
sgratzl Jul 7, 2021
87cb092
build(deps-dev): bump hugo-bin from 0.71.1 to 0.72.3
dependabot[bot] Jun 28, 2021
3c74e4c
build: update dependencies
sgratzl Jul 1, 2021
5c523f2
feat: add covidcast-classic
sgratzl Jul 1, 2021
40277b5
build: fix package resolution
sgratzl Jul 1, 2021
53f2aec
build: use published version of covidcast-classic
sgratzl Jul 1, 2021
de25119
build(deps-dev): bump hugo-bin from 0.72.4 to 0.72.5
dependabot[bot] Jul 5, 2021
6eabdeb
build(deps): bump actions/setup-node from 2.1.5 to 2.2.0
dependabot[bot] Jul 5, 2021
9c4db71
fix: avoid CTIS survey
sgratzl Jul 7, 2021
c9e4b30
fix: avoid CTIS survey
sgratzl Jul 7, 2021
e326ff7
Apply suggestions from code review
krivard Jul 9, 2021
71d7791
Merge pull request #397 from cmu-delphi/sgratzl/survey_rename
krivard Jul 9, 2021
40eb57a
feat: update to COVIDcast v2.5.3
krivard Jul 9, 2021
56299ea
Merge pull request #402 from cmu-delphi/bot/update-covidcast
krivard Jul 9, 2021
cf3eb8a
chore: release v2.9.1
krivard Jul 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/blog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
./content/blog
./static/blog

- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v2.2.0
with:
node-version: "12"
- uses: actions/cache@v2.1.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 3 # Fetch all history for .GitInfo and .Lastmod

- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v2.2.0
with:
node-version: "14"
- uses: actions/cache@v2.1.6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v2.2.0
with:
node-version: "14"
- name: Extract version
Expand All @@ -43,7 +43,7 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v2.2.0
with:
node-version: "14"
- name: Cache Node.js modules
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ relativeURLs = false
weight = 50
[[menu.main]]
parent = "covidcast"
name = "Survey Results"
name = "CTIS Results Dashboard"
url = "/covidcast/survey-results"
weight = 51
[[menu.main]]
Expand Down
4 changes: 2 additions & 2 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ carousel:
alt: Explore the new COVID-19 forecast evaluation dashboard
image: forecast_evaluation_dashboard.jpg
- pre: Our Tools
title: National COVID Survey Dashboard
title: CTIS Results Dashboard
ref: covidcast/survey-results
alt: Explore the Survey Results
alt: Explore the COVID-19 Trends and Impact Survey Results
image: covidcast_survey.jpg
- pre: Our Blog Post
title: New and improved COVID Symptom Survey Tracks Testing and Mask-Wearing
Expand Down
3 changes: 1 addition & 2 deletions content/covidcast/classic.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: COVIDcast | Classic Map
linkTitle: Classic Map
description: COVIDcast tracks and forecasts the spread of COVID-19. By Carnegie Mellon's Delphi Research Group.
layout: covidcast_app
app_mode: classic
layout: covidcast_classic_app
order: 3
heroImage: images/landing-page/hero-images/covidcast_v2.jpg
feedback: true
Expand Down
6 changes: 3 additions & 3 deletions content/covidcast/surveys.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: Delphi's COVID-19 Surveys
title: Delphi's COVID-19 Trends and Impact Surveys (CTIS)
---

{{< alert category="primary">}}
Summary results for the survey are now available. [Click here to explore]({{< relref "covidcast/survey-results" >}})
{{< /alert >}}

In collaboration with Facebook, along with a consortium of universities and public health officials, the [Delphi group]({{< relref "/" >}}) at [Carnegie Mellon University](https://www.cmu.edu/) conducts research surveys to monitor the spread and impact of the COVID-19 pandemic in the United States. This survey is advertised through Facebook. It has run continuously since early April 2020, and about 50,000 people in the United States participate **every day**. Survey results are publicly available on our [National COVID Survey Dashboard]({{< relref "covidcast/survey-results" >}}), [COVIDcast Map]({{< relref "covidcast" >}}), [COVIDcast Exporter]({{< relref "covidcast/export" >}}), and in our [COVIDcast API]({{< apiref "api/covidcast.html" >}}).
In collaboration with Facebook, along with a consortium of universities and public health officials, the [Delphi group]({{< relref "/" >}}) at [Carnegie Mellon University](https://www.cmu.edu/) conducts the COVID-19 Trends and Impact Survey to monitor the spread and impact of the COVID-19 pandemic in the United States. This survey is advertised through Facebook. It has run continuously since early April 2020, and about 50,000 people in the United States participate **every day**. Survey results are publicly available on our [CTIS Results Dashboard]({{< relref "covidcast/survey-results" >}}), [COVIDcast Map]({{< relref "covidcast" >}}), [COVIDcast Exporter]({{< relref "covidcast/export" >}}), and in our [COVIDcast API]({{< apiref "api/covidcast.html" >}}).

Such detailed data has never before been available during a public health emergency, and it will help public health officials understand how to save lives and how to safely reopen public life. The data will also help researchers understand the social, economic, and health effects of the COVID-19 pandemic.

Expand Down Expand Up @@ -38,7 +38,7 @@ To account for the differences between Facebook users and the United States popu

## Where can I see the results?

Our [National COVID Survey Dashboard]({{< relref "covidcast/survey-results" >}}) shows aggregate survey results, ranging from rates of COVID-like symptoms over mask usage to mental health. In addition, our [COVIDcast dashboard]({{< relref "covidcast" >}}) shows basic aggregate survey results, revealing the rates of mask usage and COVID-like symptoms across the United States. The data used by both tools is also freely available for download through the [COVIDcast API]({{< apiref "api/covidcast.html">}}) and our [COVIDcast Exporter]({{< relref "covidcast/export" >}}). Facebook also publishes [a map](https://covid-survey.dataforgood.fb.com/) based on the United States and international aggregate data.
Our [CTIS Results Dashboard]({{< relref "covidcast/survey-results" >}}) shows aggregate survey results, ranging from rates of COVID-like symptoms over mask usage to mental health. In addition, our [COVIDcast dashboard]({{< relref "covidcast" >}}) shows basic aggregate survey results, revealing the rates of mask usage and COVID-like symptoms across the United States. The data used by both tools is also freely available for download through the [COVIDcast API]({{< apiref "api/covidcast.html">}}) and our [COVIDcast Exporter]({{< relref "covidcast/export" >}}). Facebook also publishes [a map](https://covid-survey.dataforgood.fb.com/) based on the United States and international aggregate data.

### Blog posts and reports

Expand Down
75 changes: 49 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"name": "www-main",
"version": "2.9.0",
"version": "2.9.1",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.3",
"highlight.js": "^11.0.1",
"katex": "^0.13.11",
"uikit": "^3.6.22",
"www-covidcast": "https://github.com/cmu-delphi/www-covidcast/releases/download/v2.5.2/www-covidcast-2.5.2.tgz",
"uikit": "^3.7.0",
"www-covidcast": "https://github.com/cmu-delphi/www-covidcast/releases/download/v2.5.3/www-covidcast-2.5.3.tgz",
"www-covidcast-classic": "https://github.com/cmu-delphi/www-covidcast-classic/releases/download/v2.5.3/www-covidcast-classic-2.5.3.tgz",
"www-epivis": "https://github.com/cmu-delphi/www-epivis/releases/download/v2.0.1/www-epivis-2.0.1.tgz"
},
"devDependencies": {
"hugo-bin": "^0.71.1",
"husky": "^6.0.0",
"hugo-bin": "^0.72.5",
"husky": "^7.0.0",
"lint-staged": "^11.0.0",
"prettier": "~2.2.1",
"prettier-plugin-go-template": "^0.0.10",
"prettier": "^2.3.2",
"prettier-plugin-go-template": "^0.0.11",
"rimraf": "^3.0.2",
"shx": "^0.3.3"
},
Expand All @@ -26,8 +27,9 @@
"clean": "rimraf \"*.tgz\" public",
"copy_fonts": "shx cp -r \"node_modules/katex/dist/fonts/*\" themes/delphi/static/css/fonts/",
"copy_covidcast": "shx rm -rf \"static/covidcast/*\" && shx cp \"node_modules/www-covidcast/public/**/*.{js,txt,css,map}\" static/covidcast/",
"copy_covidcast_classic": "shx rm -rf \"static/covidcast/classic/*\" && shx mkdir -p static/covidcast/classic/ && shx cp \"node_modules/www-covidcast-classic/public/**/*.{js,txt,css,map}\" static/covidcast/classic/",
"copy_epivis": "shx rm -rf \"static/epivis/*\" && shx cp \"node_modules/www-epivis/public/**/*.{js,txt,css,map}\" static/epivis/",
"postinstall": "npm run copy_fonts && npm run copy_covidcast && npm run copy_epivis",
"postinstall": "npm run copy_fonts && npm run copy_covidcast && npm run copy_epivis && npm run copy_covidcast_classic",
"build:blog": "Rscript -e \"blogdown::build_site(local=FALSE, run_hugo=FALSE, build_rmd='md5sum')\"",
"prebuild": "npm run clean",
"build": "hugo --gc --minify",
Expand Down
2 changes: 2 additions & 0 deletions themes/delphi/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ window.UIkit = UIkit;
// define for covidcast at which base url it is embedded
window.DELPHI_COVIDCAST_PAGE = "/covidcast/";
// define for covidcast at which base url it is embedded
window.DELPHI_COVIDCAST_CLASSIC_PAGE = "/covidcast/classic/";
// define for covidcast at which base url it is embedded
window.DELPHI_EPIVIS_PAGE = "/epivis/";
6 changes: 3 additions & 3 deletions themes/delphi/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<head>
{{ partial "head/meta.html" . }}
{{ partial "head/styles.html" . }}
{{ block "styles" . }} {{ end }}
{{ block "styles" . }}{{ end }}
</head>
<body class="{{ block "body_class" . }}{{ end }}">
{{ partial "nav.html" . }}
{{ block "breadcrumb" . }}{{ partial "menu/breadcrumb.html" . }}{{ end }}
{{ block "main" . }} {{ end }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}
{{ block "scripts" . }} {{ end }}
{{ block "scripts" . }}{{ end }}
</body>
</html>
3 changes: 2 additions & 1 deletion themes/delphi/layouts/_default/coe.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ <h2>We work closely with</h2>

{{ partial "coe/research-papers.html" . }}


<div class="about-collaborators coe-section about-collaborators-v2">
<div class="uk-container">
<h2>Supporters</h2>
Expand All @@ -38,7 +39,7 @@ <h2>Supporters</h2>
</ul>
</div>
<div class="about-collaborator-special">
<h3>Special thank to</h3>
<h3>Special thanks to</h3>
<ul>
<li>U.S. Centers for Disease Control and Prevention (US CDC)</li>
</ul>
Expand Down
18 changes: 18 additions & 0 deletions themes/delphi/layouts/_default/covidcast_classic_app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{ define "styles" }}
<link rel="stylesheet" href="{{ (partial "covidcast_classic/find-file.html" "styles.*\\.css$")| relURL }}" />
{{ end }}
{{ define "scripts" }}
<script src="{{ (partial "covidcast_classic/find-file.html" "bundle.*\\.js$")| relURL }}"></script>
{{ end }}
{{ define "breadcrumb" }}<!-- no breadcrumb -->{{ end }}
{{ define "body_class" }}{{ if eq .Params.footer false }}covidcast_wrapper{{ end }}{{ end }}
{{ define "main" }}
<div id="covidcast-classic">
<div class="ie-banner" style="display: none">
<div>
Internet Explorer 11 is no longer supported. We encourage you to use a more modern web browser, such as Firefox,
Chrome, or Safari.
</div>
</div>
</div>
{{ end }}
1 change: 1 addition & 0 deletions themes/delphi/layouts/_default/team.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ <h1 class="team-header">

{{ .Content }}


<hr />

<strong>Abbreviations</strong>
Expand Down
14 changes: 7 additions & 7 deletions themes/delphi/layouts/_internal/pagination.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 -}}
<ul class="uk-pagination uk-flex-center">
<li class="{{ if not $pag.HasPrev }} uk-disabled{{ end }}">
<li class="{{ if not $pag.HasPrev }}uk-disabled{{ end }}">
{{ if $pag.HasPrev }}
<a href="{{ $pag.Prev.URL }}" aria-label="Previous"><span uk-pagination-previous></span></a>
{{ else }}
{{ else }}
<a aria-label="Previous"><span uk-pagination-previous></span></a>
{{ end }}
</li>
Expand All @@ -18,24 +18,24 @@
{{- if $showNumber -}}
{{- $ellipsed = false -}}
{{- $shouldEllipse = false -}}
{{- else -}}
{{- else -}}
{{- $shouldEllipse = not $ellipsed -}}
{{- $ellipsed = true -}}
{{- end -}}
{{- if $showNumber }}
<li class="{{ if eq . $pag }} uk-active{{ end }}">
<li class="{{ if eq . $pag }}uk-active{{ end }}">
<a href="{{ .URL }}">{{ .PageNumber }}</a>
</li>
{{- else if $shouldEllipse }}
{{- else if $shouldEllipse }}
<li class="uk-disabled">
<span aria-hidden="true">&nbsp;&hellip;&nbsp;</span>
</li>
{{- end -}}
{{- end }}
<li class="{{ if not $pag.HasNext }} uk-disabled{{ end }}">
<li class="{{ if not $pag.HasNext }}uk-disabled{{ end }}">
{{ if $pag.HasNext }}
<a href="{{ $pag.Next.URL }}" aria-label="Next"><span uk-pagination-next></span></a>
{{ else }}
{{ else }}
<a aria-label="Next"><span uk-pagination-next></span></a>
{{ end }}
</li>
Expand Down
Loading