-
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.
Add an API endpoint and UI to "add" a table to config (#75)
- Loading branch information
1 parent
e861c40
commit aa97cab
Showing
14 changed files
with
304 additions
and
78 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
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
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,52 @@ | ||
export type Column = { | ||
original_column: string; | ||
sql_column: string; | ||
}; | ||
|
||
export type AlertRecord = { | ||
territory_name: string; | ||
alert_type: string; | ||
month_detec: string; | ||
year_detec: string; | ||
area_alert_ha: string; | ||
_topic: string; | ||
}; | ||
|
||
export type Metadata = { | ||
type_alert: string; | ||
month: number; | ||
year: number; | ||
total_alerts: string; | ||
description_alerts: string; | ||
}; | ||
|
||
export type AlertsPerMonth = Record<string, number>; | ||
|
||
export interface ViewConfig { | ||
VIEWS: string; | ||
FILTER_BY_COLUMN: string; | ||
FILTER_OUT_VALUES_FROM_COLUMN: string; | ||
FRONT_END_FILTER_COLUMN: string; | ||
MAPBOX_ACCESS_TOKEN: string; | ||
MAPBOX_STYLE: string; | ||
MAPBOX_PROJECTION: string; | ||
MAPBOX_CENTER_LATITUDE: string; | ||
MAPBOX_CENTER_LONGITUDE: string; | ||
MAPBOX_ZOOM: string; | ||
MAPBOX_PITCH: string; | ||
MAPBOX_BEARING: string; | ||
MAPBOX_3D: string; | ||
MAPEO_TABLE: string; | ||
MAPEO_CATEGORY_IDS: string; | ||
MAP_LEGEND_LAYER_IDS: string; | ||
MEDIA_BASE_PATH: string; | ||
MEDIA_BASE_PATH_ALERTS: string; | ||
LOGO_URL: string; | ||
PLANET_API_KEY: string; | ||
UNWANTED_COLUMNS?: string; | ||
UNWANTED_SUBSTRINGS?: string; | ||
} | ||
|
||
export interface Views { | ||
[key: string]: ViewConfig; | ||
} |
Oops, something went wrong.