-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: repo structure + formatting issues
- Loading branch information
Showing
49 changed files
with
1,183 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SERVER_ENDPOINT=https://api.hungermapdata.org/v2 | ||
NEXT_PUBLIC_API_URL=https://api.hungermapdata.org/v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SERVER_ENDPOINT=https://api.hungermapdata.org/v2 | ||
NEXT_PUBLIC_API_URL=https://api.hungermapdata.org/v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ yarn-error.log* | |
|
||
# local env files | ||
.env*.local | ||
.env | ||
|
||
# vercel | ||
.vercel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
yarn commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {} | ||
const nextConfig = {}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
import { Suspense } from 'react'; | ||
|
||
import { ClientChart } from '@/components/Charts/ClientChart'; | ||
|
||
import Providers from './providers'; | ||
import { Chart } from '@/components/Charts/Chart'; | ||
import container from '@/container'; | ||
import CountryRepository from '@/domain/repositories/CountryRepository'; | ||
/** | ||
* You can use this page to try and show off your components. | ||
* It's not accessible from the UI, but you can reach it by manually navigating to /elements | ||
*/ | ||
|
||
export default function Elements() { | ||
return ( | ||
<Suspense fallback={<div className="w-full h-full flex justify-center items-center">Loading...</div>}> | ||
<Providers> | ||
<ClientChart /> | ||
</Providers> | ||
</Suspense> | ||
); | ||
export default async function Elements() { | ||
const countryData = await container.resolve<CountryRepository>('CountryRepository').getCountryData(50); | ||
return <Chart chartData={countryData.fcsGraph} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Coordinate } from './common/Coordinate'; | ||
import { Feature } from './common/Feature'; | ||
|
||
/** | ||
* Not really sure what this represents... | ||
*/ | ||
export type Adm0Data = Feature<{ | ||
OBJECTID: number; | ||
adm0_name: string; | ||
map_lab: string; | ||
adm0_altnm: string; | ||
iso3: string; | ||
disp_area: string; | ||
adm0_id: number; | ||
source: string; | ||
validity: number; | ||
last_modif: string; | ||
STSCOD: string; | ||
MAPCLR: string; | ||
source_adm: string; | ||
Shape_Leng: number; | ||
Shape_Area: number; | ||
interactive?: boolean; | ||
fcs?: number; | ||
fcs_people_total?: number; | ||
undernourishment?: number; | ||
ipcPopulation?: number; | ||
ipcAreasAnalysis?: string; | ||
incomeLevel?: string; | ||
alerts: { | ||
covid: boolean; | ||
fcs: boolean; | ||
marketAccess: boolean; | ||
conflict: boolean; | ||
ndvi: boolean; | ||
climateDry: boolean; | ||
climateWet: boolean; | ||
}; | ||
centroid: Coordinate; | ||
dataType?: string; | ||
}>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface ChangeLogItem { | ||
id_log: number; | ||
date_log: string; | ||
description: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Feature } from './common/Feature'; | ||
|
||
export interface DisputedAreas { | ||
type: string; | ||
features: Feature<{ | ||
Code: number; | ||
CodeISO3166_1A2: unknown; | ||
CodeISO3166_1A3: string; | ||
DataSource: string; | ||
DisputedArea: boolean; | ||
CreateDate: string; | ||
Name: string; | ||
}>[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface YearInReview { | ||
label: string; | ||
url: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ConflictType } from '@/domain/enums/ConflictType'; | ||
|
||
import { Feature } from '../common/Feature'; | ||
|
||
export type Conflict = Feature<{ | ||
count: number; | ||
event_type: ConflictType; | ||
}>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export interface Hazard { | ||
Id: number; | ||
type: string; | ||
severity_id: string; | ||
hazard_name: string; | ||
latitude: number; | ||
longitude: number; | ||
create_date: string; | ||
last_update: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { ChartData } from '../common/ChartData'; | ||
|
||
export interface BalanceOfTradeGraph { | ||
data: ChartData[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ChartData } from '../common/ChartData'; | ||
|
||
export interface CurrencyExchangeGraph { | ||
name: string; | ||
source: string; | ||
updated: string; | ||
data: ChartData[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ChartData } from '../common/ChartData'; | ||
|
||
export interface InflationGraphs { | ||
headline: { | ||
data: ChartData[]; | ||
}; | ||
food: { | ||
data: ChartData[]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export interface RegionFcsChartData { | ||
x: string; | ||
fcs: number; | ||
fcsHigh: number; | ||
fcsLow: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface ChartData { | ||
y: number; | ||
x: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface Coordinate { | ||
latitude: number; | ||
longitude: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Geometry } from './Geometry'; | ||
|
||
export interface Feature<T> { | ||
type: string; | ||
geometry: Geometry; | ||
properties: T; | ||
} |
Oops, something went wrong.