Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "List View" item on sidebar and remove "Word counts" item #3146

Open
wants to merge 4 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions site/gatsby-site/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ const config = {
{ title: 'Discover Incidents', label: 'discover', url: '/apps/discover/', items: [] },
{ title: 'Spatial View', label: 'spatial', url: '/summaries/spatial/', items: [] },
{ title: 'Table View', label: 'incidents', url: '/apps/incidents/', items: [] },
{ title: 'List View', label: 'list', url: '/summaries/incidents/', items: [] },
{ title: 'Entities', label: 'entities', url: '/entities/', items: [] },
{ title: 'Taxonomies', label: 'taxonomies', url: '/taxonomies/', items: [] },
{ title: 'Random Incident', label: 'random', url: '/random/', items: [] },
{ title: 'Word Counts', label: 'wordcounts', url: '/summaries/wordcounts/', items: [] },
{ title: 'Submit Incident Reports', label: 'submit', url: '/apps/submit/', items: [] },
{ title: 'Risk Checklists', label: 'checklists', url: '/apps/checklists/', items: [] },
{
Expand Down Expand Up @@ -137,7 +137,7 @@ const config = {
items: [
{ title: 'About', label: 'about', url: '/about', items: [] },
{ title: 'Contact and Follow', label: 'contact', url: '/contact' },
{ title: 'About Apps', label: 'about_apps', url: '/about_apps' },
{ title: 'Apps and Summaries', label: 'about_apps', url: '/about_apps' },
{ title: 'Editor’s Guide', label: 'editors-guide', url: '/editors-guide' },
],
},
Expand Down
2 changes: 1 addition & 1 deletion site/gatsby-site/i18n/locales/es/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"About": "Acerca de",
"Contact and Follow": "Contactar y Seguir",
"Launch Announcement": "Anuncio de lanzamiento",
"About Apps": "Acerca de las aplicaciones",
"Apps and Summaries": "Aplicaciones y resúmenes",
"Editor’s Guide": "Guía del editor",
"Incidents": "Incidencias",
"All Incidents in List Form": "Todos los incidentes en forma de lista",
Expand Down
2 changes: 1 addition & 1 deletion site/gatsby-site/i18n/locales/fr/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"About": "À propos de",
"Contact and Follow": "Contacter et suivre",
"Launch Announcement": "Annonce de lancement",
"About Apps": "À propos des applications",
"Apps and Summaries": "Applications et résumés",
"Editor’s Guide": "Guide de l'éditeur",
"Incidents": "Incidents",
"All Incidents in List Form": "Tous les incidents sous forme de liste",
Expand Down
2 changes: 1 addition & 1 deletion site/gatsby-site/i18n/locales/ja/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"About": "AIIDについて",
"Contact and Follow": "コンタクトとフォロー",
"Launch Announcement": "開始のアナウンス",
"About Apps": "アプリについて",
"Apps and Summaries": "アプリと要約",
"Editor’s Guide": "エディタのためのガイド",
"Incidents": "インシデント",
"All Incidents in List Form": "全インシデントの一覧",
Expand Down
10 changes: 2 additions & 8 deletions site/gatsby-site/src/components/sidebar/treeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
faSearch,
faPlusCircle,
faMedal,
faSortAlphaDown,
faList,
faNewspaper,
faChartPie,
faTable,
Expand Down Expand Up @@ -141,13 +141,7 @@ function getIcon(label, current = false) {
leaderboard: (
<FontAwesomeIcon titleId="leaderboard" icon={faMedal} className={fontAwesomeStyles} />
),
wordcounts: (
<FontAwesomeIcon
titleId="wordcounts"
icon={faSortAlphaDown}
className={fontAwesomeStyles}
/>
),
list: <FontAwesomeIcon titleId="list" icon={faList} className={fontAwesomeStyles} />,
blog: <FontAwesomeIcon titleId="blog" icon={faNewspaper} className={fontAwesomeStyles} />,
taxonomies: (
<FontAwesomeIcon titleId="taxonomies" icon={faChartPie} className={fontAwesomeStyles} />
Expand Down
2 changes: 1 addition & 1 deletion site/gatsby-site/src/utils/Translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Translator {
.find(reportsQuery)
.toArray();

this.reporter.log(`Processing traslation of ${reports.length} incident reports`);
this.reporter.log(`Processing translation of ${reports.length} incident reports`);

const concurrency = 10;

Expand Down