Add cells to card and tidy up

This commit is contained in:
Franc Camps-Febrer
2018-12-06 14:08:47 +00:00
parent 7c707ababf
commit d64a085fb2
12 changed files with 89 additions and 67 deletions

View File

@@ -137,6 +137,7 @@
"tags": "Tags",
"notags": "No known tags for this event.",
"source": "Source",
"unknown_source": "Unknown source. The relability of this event cannot be confirmed.",
"category": "Category",
"communication": "Communication",
"transmitter": "Transmitter",

View File

@@ -36,6 +36,14 @@ export function isNotNullNorUndefined(variable) {
return (typeof variable !== 'undefined' && variable !== null);
}
/*
* Capitalizes _only_ the first letter of a string
* Taken from: https://stackoverflow.com/questions/1026069/how-do-i-make-the-first-letter-of-a-string-uppercase-in-javascript
*/
export function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
/**
* Return a Date object given a datetime string of the format: "2016-09-10T07:00:00"
* @param {string} datetime