Skip to content

Commit

Permalink
Merge branch 'censusreporter:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacloud1 committed Mar 19, 2024
2 parents c1c3635 + dfd2644 commit 23fc58d
Show file tree
Hide file tree
Showing 51 changed files with 1,489 additions and 1,653 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8
FROM python:3.11

ADD requirements.txt requirements.txt
RUN pip install -r requirements.txt gunicorn
Expand All @@ -9,4 +9,4 @@ ENV DJANGO_SETTINGS_MODULE=censusreporter.config.prod.settings \
ADD . .
RUN ./manage.py collectstatic --noinput

CMD gunicorn --workers 5 --bind 0.0.0.0:$PORT --statsd-host telegraf.web:8125 --statsd-prefix censusreporter censusreporter.config.prod.wsgi
CMD gunicorn --workers 10 --bind 0.0.0.0:$PORT --statsd-host telegraf.web:8125 --statsd-prefix censusreporter censusreporter.config.prod.wsgi
273 changes: 161 additions & 112 deletions censusreporter/apps/census/profile.py

Large diffs are not rendered by default.

18 changes: 5 additions & 13 deletions censusreporter/apps/census/static/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -1428,18 +1428,10 @@ h1.article-header-right {
float: right;
}

.leaflet-label.hovercard {
white-space: normal;
width: 250px;
}

.leaflet-label.hovercard .value {
font-weight: normal;
}

.leaflet-label.hovercard {
font-size: 13px;
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
.mapboxgl-popup {
max-width: 400px;
font: 13/1.4em "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: bold;
padding: .83em 1em;
}

Expand Down Expand Up @@ -3528,4 +3520,4 @@ a.ui-button:active,
.yt-embed {
width: 100%;
height: 200px;
}
}
8 changes: 8 additions & 0 deletions censusreporter/apps/census/static/css/charts.css
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@ uncomment for separate inclusion into embed iframes */
-moz-border-radius: 4px;
border-radius: 4px;
}

.mapboxgl-popup-content .hovercard {
position: relative;
border: none;
padding: 0;
}


.chart .hovercard {
pointer-events: auto;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@font-face {
font-family: 'FontAwesome';
src: url('./fontawesome-webfont-4.7.0.eot');
src: url('./fontawesome-webfont-4.7.0.eot') format('embedded-opentype'), url('./fontawesome-webfont-4.7.0.woff2') format('woff2'), url('./fontawesome-webfont-4.7.0.woff') format('woff'), url('./fontawesome-webfont-4.7.0.ttf') format('truetype'), url('.fontawesome-webfont-4.7.0.svg') format('svg');
src: url('./fontawesome-webfont-4.7.0.eot') format('embedded-opentype'), url('./fontawesome-webfont-4.7.0.woff2') format('woff2'), url('./fontawesome-webfont-4.7.0.woff') format('woff'), url('./fontawesome-webfont-4.7.0.ttf') format('truetype'), url('./fontawesome-webfont-4.7.0.svg') format('svg');
font-weight: normal;
font-style: normal;
font-display: swap;
Expand Down
68 changes: 0 additions & 68 deletions censusreporter/apps/census/static/css/vendor/leaflet.label.css

This file was deleted.

11 changes: 6 additions & 5 deletions censusreporter/apps/census/static/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
<base target="_parent" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="css/charts.css" id="chart-styles">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J4KYS0SFEW"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

ga('create', 'UA-43018828-1', 'auto');
gtag('config', 'G-J4KYS0SFEW');
</script>
<!-- Inline these styles to defeat IE's weird CSS caching for multiple iframes at different widths -->
<style type="text/css">
Expand Down
12 changes: 7 additions & 5 deletions censusreporter/apps/census/static/iframe_distribution_chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://s3.amazonaws.com/embed.censusreporter.org/1.0/css/charts.css" id="chart-styles">
<script src="//cdn.jsdelivr.net/g/respond@1.4"></script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J4KYS0SFEW"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

ga('create', 'UA-43018828-1', 'auto');
gtag('config', 'G-J4KYS0SFEW');
</script>
<!-- Inline these styles to defeat IE's weird CSS caching for multiple iframes at different widths -->
<style type="text/css">
Expand Down
Loading

0 comments on commit 23fc58d

Please sign in to comment.