diff --git a/app/contagens/configuration.js b/app/contagens/configuration.js index 09e6187..7a192c1 100644 --- a/app/contagens/configuration.js +++ b/app/contagens/configuration.js @@ -4,13 +4,13 @@ export const colors = ["#24CBE5", "#E02F31", "#DDDF00", "#6AF9C4"]; export const allCountsStatistics = (summaryData) => { - const { total, number_counts, where_max_count, different_counts_points } = { + const { total_cyclists , number_counts, where_max_count, different_counts_points } = { ...summaryData, }; return [ { title: "Total de ciclistas", - value: IntlNumber(total), + value: IntlNumber(total_cyclists), }, { title: "Contagens Realizadas", diff --git a/servers.js b/servers.js index 1a254b4..bd7dc40 100644 --- a/servers.js +++ b/servers.js @@ -10,11 +10,11 @@ export const IDECICLO_STRUCTURES_DATA = `https://api.ideciclo.ameciclo.org/struc export const IDECICLO_FORMS_DATA = `https://api.ideciclo.ameciclo.org/forms` export const PERFIL_DATA = `https://api.perfil.ameciclo.org/v1/cyclist-profile/summary/` -export const COUNTINGS_SUMMARY_DATA =`http://135.148.32.138:8080/cyclist-counts` -export const COUNTINGS_DATA =`http://135.148.32.138:8080/cyclist-counts/edition` +export const COUNTINGS_SUMMARY_DATA =`http://api.garfo.ameciclo.org/cyclist-counts` +export const COUNTINGS_DATA =`http://api.garfo.ameciclo.org/cyclist-counts/edition` -export const OBSERVATORY_DATA =`http://135.148.32.138:8080/cyclist-infra/relationsByCity` -export const OBSERVATORY_DATA_WAYS =`http://135.148.32.138:8080/cyclist-infra/ways` -export const OBSERVATORY_DATA_ALL_WAYS = `http://135.148.32.138:8080/cyclist-infra/ways/all-ways` -export const OBSERVATORY_DATA_WAYS_SUMMARY =`http://135.148.32.138:8080/cyclist-infra/ways/summary` -export const CITIES_DATA =`http://135.148.32.138:8080/cities` +export const OBSERVATORY_DATA =`http://api.garfo.ameciclo.org/cyclist-infra/relationsByCity` +export const OBSERVATORY_DATA_WAYS =`http://api.garfo.ameciclo.org/cyclist-infra/ways` +export const OBSERVATORY_DATA_ALL_WAYS = `http://api.garfo.ameciclo.org/cyclist-infra/ways/all-ways` +export const OBSERVATORY_DATA_WAYS_SUMMARY =`http://api.garfo.ameciclo.org/cyclist-infra/ways/summary` +export const CITIES_DATA =`http://api.garfo.ameciclo.org/cities` diff --git a/typings.d.ts b/typings.d.ts index 7d83c5b..52a955a 100644 --- a/typings.d.ts +++ b/typings.d.ts @@ -82,7 +82,7 @@ export interface CountEditionSummary { total_ride: number; total_service: number; total_shared_bike: number; - total_sidewalk: number; + total_sidewalk: number; total_women: number; total_wrong_way: number; }