Skip to content

Commit

Permalink
Merge pull request #3628 from ProjectSidewalk/develop
Browse files Browse the repository at this point in the history
7.20.4
  • Loading branch information
misaugstad authored Aug 22, 2024
2 parents 084e882 + 3c34ea1 commit d15deae
Show file tree
Hide file tree
Showing 76 changed files with 870 additions and 1,091 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Make sure Docker is running on your machine. You should see a Docker whale in yo

On Windows, we recommend [Windows Powershell](https://docs.microsoft.com/en-us/powershell/scripting/overview?view=powershell-7) (built in to Win10). On Mac, use the basic terminal or, even better, [iTerm2](https://www.iterm2.com/). On Linux (or if you're using WSL2 on Windows), the default Linux Shell (such as [Bash](https://www.gnu.org/software/bash/)) is a great choice.

1. Email Mikey (michaelssaugstad@gmail.com) and ask for a database dump, a Mapbox API key, and a Google Maps API key & secret (if you are not part of our team, you'll have to [create a Google Maps API key](https://developers.google.com/maps/documentation/javascript/get-api-key) yourself).
1. Email Mikey (saugstad@cs.washington.edu) and ask for a database dump, a Mapbox API key, and a Google Maps API key & secret (if you are not part of our team, you'll have to [create a Google Maps API key](https://developers.google.com/maps/documentation/javascript/get-api-key) yourself).
1. If your computer has an Apple Silicon (M1 or M2) chip, then you should modify the `platform` line in the `docker-compose.yml`, changing it to `linux/arm64`.
1. Modify the `MAPBOX_API_KEY`, `GOOGLE_MAPS_API_KEY`, and `GOOGLE_MAPS_SECRET` lines in the `docker-compose.yml` using the keys and secret you've acquired.
1. Modify the `SIDEWALK_CITY_ID` line in the `docker-compose.yml` to use the ID of the appropriate city, listed [here](https://github.com/ProjectSidewalk/SidewalkWebpage/wiki/Docker-Troubleshooting#first-heres-a-table-that-youll-reference-when-setting-up-your-dev-env) (it's the city that matches your database dump, so check the name of the db dump file).
Expand Down
9 changes: 4 additions & 5 deletions app/views/accessScoreDemo.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,19 @@ <h3 id="access-score-header"><span id="access-score-neighborhood"></span><small
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/d3-3.5.6.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/common/detectMobileBrowser.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/common/UtilitiesSidewalk.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf.min-6.5.0.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf-7.1.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/accessScoreDemo.js")'></script>
<script src='https://api.mapbox.com/mapbox.js/v3.3.1/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v3.3.1/mapbox.css' rel='stylesheet' />
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>
<link href='@routes.Assets.at("stylesheets/accessScoreDemo.css")' rel="stylesheet"/>
<link href='@routes.Assets.at("stylesheets/choropleth.css")' rel="stylesheet"/>

<script>
$(document).ready(function () {
// Gets all translations before loading the demo map.
i18next.use(i18nextXHRBackend);
i18next.init({
i18next.use(i18nextHttpBackend).init({
backend: { loadPath: '/assets/locales/{{lng}}/{{ns}}.json' },
fallbackLng: 'en',
ns: ['common'],
Expand Down
15 changes: 7 additions & 8 deletions app/views/admin/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ <h1>Label Search</h1>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/d3-3.5.6.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/Admin/build/Admin.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/PSMap/build/PSMap.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf.min-6.5.0.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf-7.1.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/jquery.dataTables.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/dataTables.bootstrap.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/SVValidate/src/util/PanoProperties.js")'></script>
Expand All @@ -927,11 +927,11 @@ <h1>Label Search</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-lite/2.0.0-beta.4/vega-lite.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-beta.17/vega-embed.js"></script>

<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.0.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.1.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>

<link href='@routes.Assets.at("stylesheets/dataTables.bootstrap.min.css")' rel="stylesheet"/>
<link href='@routes.Assets.at("stylesheets/choropleth.css")' rel="stylesheet"/>
Expand All @@ -941,8 +941,7 @@ <h1>Label Search</h1>
<script>
$(document).ready(function () {
// Gets all translations before loading the choropleths.
i18next.use(i18nextXHRBackend);
i18next.init({
i18next.use(i18nextHttpBackend).init({
backend: { loadPath: '/assets/locales/{{lng}}/{{ns}}.json' },
fallbackLng: 'en',
ns: ['common', 'labelmap'],
Expand Down
7 changes: 3 additions & 4 deletions app/views/admin/label.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ <h1>Label Search</h1>
<div style="height: 237px;"></div> <!-- Just included to fill the page by default at usual zoom. -->
</div>

<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/common/timestampLocalization.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/Admin/build/Admin.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/SVValidate/src/util/PanoProperties.js")'></script>
Expand All @@ -28,8 +28,7 @@ <h1>Label Search</h1>
<link href='@routes.Assets.at("stylesheets/admin.css")' rel="stylesheet"/>
<script>
$(document).ready(function () {
i18next.use(i18nextXHRBackend);
i18next.init({
i18next.use(i18nextHttpBackend).init({
backend: { loadPath: '/assets/locales/{{lng}}/{{ns}}.json' },
fallbackLng: 'en',
ns: ['common', 'labelmap'],
Expand Down
13 changes: 6 additions & 7 deletions app/views/admin/task.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,18 @@
<script type="text/javascript" src='@routes.Assets.at("javascripts/common/UtilitiesSidewalk.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/common/Panomarker.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/bootstrap-3.3.5/js/bootstrap-slider.min.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.0.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.css")' rel="stylesheet"/>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.1.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.css")' rel="stylesheet"/>
<link href='@routes.Assets.at("javascripts/lib/bootstrap-3.3.5/css/bootstrap-slider.min.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>
<link href='@routes.Assets.at("stylesheets/admin.css")' rel="stylesheet"/>
<link href='@routes.Assets.at("stylesheets/adminTask.css")' rel="stylesheet"/>
<link href='@routes.Assets.at("stylesheets/choropleth.css")' rel="stylesheet"/>
<script>
$(document).ready(function () {
i18next.use(i18nextXHRBackend);
i18next.init({
i18next.use(i18nextHttpBackend).init({
backend: { loadPath: '/assets/locales/{{lng}}/{{ns}}.json' },
fallbackLng: 'en',
ns: ['common'],
Expand Down
15 changes: 7 additions & 8 deletions app/views/admin/user.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ <h1>Feedback</h1>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/d3-3.5.6.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/jquery.dataTables.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/dataTables.bootstrap.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf.min-6.5.0.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.0.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf-7.1.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.1.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.css")' rel="stylesheet"/>

<script type="text/javascript" src='@routes.Assets.at("javascripts/Admin/build/Admin.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/common/UtilitiesSidewalk.js")'></script>
Expand All @@ -257,8 +257,7 @@ <h1>Feedback</h1>
<script>
$(document).ready(function () {
// Gets all translations before loading the choropleth.
i18next.use(i18nextXHRBackend);
i18next.init({
i18next.use(i18nextHttpBackend).init({
backend: { loadPath: '/assets/locales/{{lng}}/{{ns}}.json' },
fallbackLng: 'en',
ns: ['dashboard', 'common', 'labelmap'],
Expand Down
13 changes: 6 additions & 7 deletions app/views/api.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -624,17 +624,16 @@ <h2 class="permalink-anchor" id="license">License
<script type="text/javascript" src='@routes.Assets.at("javascripts/common/detectMobileBrowser.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/api.js")'></script>

<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.0.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.1.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>

<script>
$(document).ready(function () {
// Gets all translations before loading the example maps.
i18next.use(i18nextXHRBackend);
i18next.init({
i18next.use(i18nextHttpBackend).init({
backend: { loadPath: '/assets/locales/{{lng}}/{{ns}}.json' },
fallbackLng: 'en',
ns: ['common'],
Expand Down
16 changes: 8 additions & 8 deletions app/views/explore.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -839,13 +839,13 @@ <h3 id="modal-mission-complete-progress-title"></h3>
<script type="text/javascript" src='@routes.Assets.at("javascripts/common/detectMobileBrowser.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/d3-3.5.6.js")'></script>

<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf.min-6.5.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/wellknown-0.5.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.0.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf-7.1.0.min.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/betterknown-1.0.4.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.1.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.css")' rel="stylesheet"/>

<script type="text/javascript">
// Todo. Try to move the following code to Main.js
Expand Down Expand Up @@ -1034,7 +1034,7 @@ <h3 id="modal-mission-complete-progress-title"></h3>

mainParam.regionId = @region.regionId;
mainParam.regionName = '@region.name';
mainParam.regionGeoJSON = window.wellknown.parse("@region.geom");
mainParam.regionGeoJSON = window.betterknown.wktToGeoJSON("@region.geom");

mainParam.nextTemporaryLabelId = @nextTempLabelId;
mainParam.mission = @Html(mission.toJSON.toString);
Expand Down
4 changes: 2 additions & 2 deletions app/views/gallery.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

@main(title) {
<script type="text/javascript" src='@routes.Assets.at("javascripts/Gallery/build/Gallery.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("/javascripts/common/Utilities.js")'></script>
<div id="page-loading"><img id="loading-gif" src='@routes.Assets.at("images/project_sidewalk_page_load.gif")'/></div>

Expand Down
15 changes: 7 additions & 8 deletions app/views/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,20 +263,19 @@

<script type="text/javascript" src='@routes.Assets.at("javascripts/common/detectMobileBrowser.js")'></script>
<script src='@routes.Assets.at("javascripts/homepage.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.0.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.1.0.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf.min-6.5.0.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-21.9.1.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextXHRBackend.min.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/mapbox-gl-language-1.0.1.js")'></script>
<link href='@routes.Assets.at("javascripts/lib/mapbox-gl-3.6.0.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/turf-7.1.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18next-23.14.0.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/i18nextHttpBackend-2.6.0.min.js")'></script>
<link href='@routes.Assets.at("stylesheets/choropleth.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/PSMap/build/PSMap.js")'></script>

<script>
$(document).ready(function () {
// Gets all translations before loading the choropleth.
i18next.use(i18nextXHRBackend);
i18next.init({
i18next.use(i18nextHttpBackend).init({
backend: { loadPath: '/assets/locales/{{lng}}/{{ns}}.json' },
fallbackLng: 'en',
ns: ['common'],
Expand Down
Loading

0 comments on commit d15deae

Please sign in to comment.