Skip to content

Commit

Permalink
feat: port Project Information widget from wasatch choice map
Browse files Browse the repository at this point in the history
Including:
* i18n setup
* MapWidget

Ref: #19
  • Loading branch information
stdavis committed Jul 8, 2022
1 parent 76d5219 commit 66b704c
Show file tree
Hide file tree
Showing 20 changed files with 843 additions and 183 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"streetsidesoftware.code-spell-checker-spanish"
]
}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
"fontawesome",
"fortawesome",
"immer",
"languagedetector",
"offcanvas",
"pluginutils",
"postbump",
"Sharrow",
"sherlock",
"softprops",
"TSQL"
]
],
"cSpell.language": "en,es-ES"
}
119 changes: 119 additions & 0 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,18 @@
"bootstrap": "^5.2.0-beta1",
"clsx": "^1.1.1",
"downshift": "^6.1.7",
"i18next": "^21.8.13",
"i18next-browser-languagedetector": "^6.1.4",
"jsonschema": "^1.4.1",
"lodash.debounce": "^4.0.8",
"lodash.escaperegexp": "^4.1.2",
"lodash.sortby": "^4.7.0",
"lodash.uniqwith": "^4.5.0",
"perfect-scrollbar": "^1.5.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
"react-i18next": "^11.18.0",
"react-number-format": "^4.9.3",
"reactstrap": "^9.1.1",
"sql-formatter": "^7.0.3",
Expand Down
41 changes: 41 additions & 0 deletions public/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,46 @@
"useAnd": true
}
}
},
"sherlock": {
"placeHolder": "trans:searchPlaceholder",
"serviceUrl": "https://gis.wfrc.org/arcgis/rest/services/General/ZoomToPlaceNames/FeatureServer/1",
"searchField": "NAME"
},
"openOnLoad": {
"projectInfo": true,
"filter": true
},
"translations": {
"en": {
"translation": {
"searchPlaceholder": "Search...",
"filter": "Filter",
"reset": "reset",
"filterByPhasing": "filter by phasing",
"transFilter": {
"transportation": "Transportation",
"roads": "Roads"
},
"projectInformation": "Project Information",
"projectInformationPrompt": "Click on a feature for more information",
"transportation": "Transportation"
}
},
"es": {
"translation": {
"searchPlaceholder": "Buscar...",
"filter": "Filtrar",
"reset": "reiniciar",
"filterByPhasing": "filtrar por fases",
"transFilter": {
"transportation": "Transporte",
"roads": "Carreteras"
},
"projectInformation": "Información del Proyecto",
"projectInformationPrompt": "Haga clic en una función para obtener más información",
"transportation": "Transporte"
}
}
}
}
Loading

0 comments on commit 66b704c

Please sign in to comment.