diff --git a/nest_frontend/components/base/BoxChart.js b/nest_frontend/components/base/BoxChart.js index 7acf9bd..0e84ab1 100644 --- a/nest_frontend/components/base/BoxChart.js +++ b/nest_frontend/components/base/BoxChart.js @@ -52,7 +52,7 @@ export default function BoxChart({ chartProps, ...props }) { {...chartProps} /> ), - [chartProps] + [chartProps], ) return ( diff --git a/nest_frontend/components/base/BoxMap.js b/nest_frontend/components/base/BoxMap.js index 12b4093..4c0577f 100644 --- a/nest_frontend/components/base/BoxMap.js +++ b/nest_frontend/components/base/BoxMap.js @@ -60,7 +60,7 @@ export default function BoxMap( map.off("zoom", onMapZoom) } }, - [map, mapViewHook] + [map, mapViewHook], ) return ( diff --git a/nest_frontend/components/base/Button.js b/nest_frontend/components/base/Button.js index 0a94884..3bac77d 100644 --- a/nest_frontend/components/base/Button.js +++ b/nest_frontend/components/base/Button.js @@ -26,7 +26,7 @@ export default function Button({ children, disabled, onClick, className, color, disabled={disabled} {...props} > - {children} {makeIcon(icon, {className: Style.Icon})} + {children} {makeIcon(icon, { className: Style.Icon })} ) } diff --git a/nest_frontend/components/base/ButtonSidebar.js b/nest_frontend/components/base/ButtonSidebar.js index 7e3911b..cfa4a14 100644 --- a/nest_frontend/components/base/ButtonSidebar.js +++ b/nest_frontend/components/base/ButtonSidebar.js @@ -31,7 +31,7 @@ export default function ButtonSidebar({ icon, children, to, className, ...props return (
- {makeIcon(icon, {className: Style.ButtonIcon})} + {makeIcon(icon, { className: Style.ButtonIcon })}
{children}
diff --git a/nest_frontend/components/interactive/BoxConditionDatetime.js b/nest_frontend/components/interactive/BoxConditionDatetime.js index 2b11fe9..070c546 100644 --- a/nest_frontend/components/interactive/BoxConditionDatetime.js +++ b/nest_frontend/components/interactive/BoxConditionDatetime.js @@ -22,7 +22,7 @@ export default function BoxConditionDatetime({ ...props }) { const submit = useCallback( timeRay => addCondition(new ConditionTime(timeRay)), - [addCondition] + [addCondition], ) return ( diff --git a/nest_frontend/components/interactive/BoxConditionHashtag.js b/nest_frontend/components/interactive/BoxConditionHashtag.js index d2c8df7..0cbd18a 100644 --- a/nest_frontend/components/interactive/BoxConditionHashtag.js +++ b/nest_frontend/components/interactive/BoxConditionHashtag.js @@ -22,7 +22,7 @@ export default function BoxConditionHashtag({ ...props }) { const submit = useCallback( value => addCondition(new ConditionHashtag(value)), - [addCondition] + [addCondition], ) return ( diff --git a/nest_frontend/components/interactive/BoxConditionLocation.js b/nest_frontend/components/interactive/BoxConditionLocation.js index 10f426c..c4443d6 100644 --- a/nest_frontend/components/interactive/BoxConditionLocation.js +++ b/nest_frontend/components/interactive/BoxConditionLocation.js @@ -24,7 +24,7 @@ export default function BoxConditionLocation({ ...props }) { const onButtonClick = useCallback( () => addCondition(new ConditionLocation(mapViewHook.mapArea)), - [mapViewHook, addCondition] + [mapViewHook, addCondition], ) return ( diff --git a/nest_frontend/components/interactive/BoxConditionUser.js b/nest_frontend/components/interactive/BoxConditionUser.js index 00bddd9..3e1483c 100644 --- a/nest_frontend/components/interactive/BoxConditionUser.js +++ b/nest_frontend/components/interactive/BoxConditionUser.js @@ -5,7 +5,7 @@ import { faAt } from "@fortawesome/free-solid-svg-icons" import useRepositoryEditor from "../../hooks/useRepositoryEditor" import ContextLanguage from "../../contexts/ContextLanguage" import FormInlineUser from "./FormInlineUser" -import { ConditionHashtag, ConditionUser } from "../../objects/Condition" +import { ConditionUser } from "../../objects/Condition" /** @@ -22,7 +22,7 @@ export default function BoxConditionUser({ ...props }) { const submit = useCallback( value => addCondition(new ConditionUser(value)), - [addCondition] + [addCondition], ) return ( diff --git a/nest_frontend/components/interactive/BoxFilterHasImage.js b/nest_frontend/components/interactive/BoxFilterHasImage.js index 75569d2..c712636 100644 --- a/nest_frontend/components/interactive/BoxFilterHasImage.js +++ b/nest_frontend/components/interactive/BoxFilterHasImage.js @@ -41,7 +41,7 @@ export default function BoxFilterHasImage({ ...props }) { {...props} > -
+
{strings.hasImageExplaination}
-
+
{strings.hasPlaceExplaination}
) } }, - [tweets] + [tweets], ) diff --git a/nest_frontend/components/interactive/BoxVisualizationChart.js b/nest_frontend/components/interactive/BoxVisualizationChart.js index 4449afa..213369c 100644 --- a/nest_frontend/components/interactive/BoxVisualizationChart.js +++ b/nest_frontend/components/interactive/BoxVisualizationChart.js @@ -35,10 +35,10 @@ export default function BoxVisualizationChart({ ...props }) { data: hourlyTweetCount, }, ], - } + }, } }, - [tweets] + [tweets], ) if(tweets.length === 0) { diff --git a/nest_frontend/components/interactive/BoxVisualizationMap.js b/nest_frontend/components/interactive/BoxVisualizationMap.js index 3eea7b6..24e461a 100644 --- a/nest_frontend/components/interactive/BoxVisualizationMap.js +++ b/nest_frontend/components/interactive/BoxVisualizationMap.js @@ -20,7 +20,9 @@ export default function BoxVisualizationMap({ ...props }) { const markers = useMemo( () => { return tweets.filter(tweet => tweet.location).map(tweet => { - if(!tweet.location) return null + if(!tweet.location) { + return null + } const coords = Coordinates.fromCrawlerString(tweet.location) diff --git a/nest_frontend/components/interactive/BoxVisualizationWordcloud.js b/nest_frontend/components/interactive/BoxVisualizationWordcloud.js index 2cfe97b..31be76b 100644 --- a/nest_frontend/components/interactive/BoxVisualizationWordcloud.js +++ b/nest_frontend/components/interactive/BoxVisualizationWordcloud.js @@ -23,7 +23,7 @@ export default function BoxVisualizationWordcloud({ ...props }) { word => { appendFilter(new FilterContains(word.text)) }, - [appendFilter] + [appendFilter], ) return ( diff --git a/nest_frontend/components/interactive/FormInlineText.js b/nest_frontend/components/interactive/FormInlineText.js index 2fe0190..dc17c2a 100644 --- a/nest_frontend/components/interactive/FormInlineText.js +++ b/nest_frontend/components/interactive/FormInlineText.js @@ -34,7 +34,9 @@ export default function FormInlineText( const _onSubmit = event => { event.preventDefault() - if(!value) return + if(!value) { + return + } submit(value) setValue("") } diff --git a/nest_frontend/components/interactive/FormInlineTimeRay.js b/nest_frontend/components/interactive/FormInlineTimeRay.js index dd7b7ac..c8dcc69 100644 --- a/nest_frontend/components/interactive/FormInlineTimeRay.js +++ b/nest_frontend/components/interactive/FormInlineTimeRay.js @@ -40,7 +40,9 @@ export default function FormInlineTimeRay( const _onSubmit = event => { event.preventDefault() - if(!value) return + if(!value) { + return + } console.debug(value) submit(new TimeRay(isBefore, new Date(value))) setValue("") diff --git a/nest_frontend/components/interactive/PickerFilter.js b/nest_frontend/components/interactive/PickerFilter.js index 6850e88..e55bc7b 100644 --- a/nest_frontend/components/interactive/PickerFilter.js +++ b/nest_frontend/components/interactive/PickerFilter.js @@ -4,10 +4,10 @@ import { faAt, faClock, faFont, - faHashtag, faImage, + faHashtag, + faImage, faLocationArrow, faMapMarkerAlt, - faMapPin, } from "@fortawesome/free-solid-svg-icons" import ButtonPicker from "./ButtonPicker" import ContextRepositoryViewer from "../../contexts/ContextRepositoryViewer" diff --git a/nest_frontend/components/providers/GlobalLanguage.js b/nest_frontend/components/providers/GlobalLanguage.js index be5408e..508d41b 100644 --- a/nest_frontend/components/providers/GlobalLanguage.js +++ b/nest_frontend/components/providers/GlobalLanguage.js @@ -35,10 +35,10 @@ export default function GlobalLanguage({ children }) { return MISSING STRING } }, - [lang] + [lang], ) - const strings = new Proxy({}, {get: getString}) + const strings = new Proxy({}, { get: getString }) return ( diff --git a/nest_frontend/objects/Condition.js b/nest_frontend/objects/Condition.js index aa94979..2166cff 100644 --- a/nest_frontend/objects/Condition.js +++ b/nest_frontend/objects/Condition.js @@ -1,10 +1,10 @@ import { - IconDefinition, - faQuestionCircle, - faHashtag, faAt, faClock, + faHashtag, faLocationArrow, + faQuestionCircle, + IconDefinition, } from "@fortawesome/free-solid-svg-icons" diff --git a/nest_frontend/objects/Filter.js b/nest_frontend/objects/Filter.js index a0d13cc..03c18ea 100644 --- a/nest_frontend/objects/Filter.js +++ b/nest_frontend/objects/Filter.js @@ -3,10 +3,10 @@ import { faClock, faFilter, faFont, - faHashtag, faImage, + faHashtag, + faImage, faLocationArrow, faMapMarkerAlt, - faMapPin, } from "@fortawesome/free-solid-svg-icons" @@ -47,7 +47,7 @@ export class Filter { return { color: "Grey", icon: faFilter, - children: this.negate ? "False" : "True" + children: this.negate ? "False" : "True", } } } @@ -72,7 +72,7 @@ export class FilterContains extends Filter { return { color: "Grey", icon: faFont, - children: this.string + children: this.string, } } } @@ -93,7 +93,7 @@ export class FilterHashtag extends FilterContains { return { color: "Grey", icon: faHashtag, - children: this.hashtag + children: this.hashtag, } } } @@ -118,7 +118,7 @@ export class FilterPoster extends Filter { return { color: "Green", icon: faAt, - children: this.poster + children: this.poster, } } } @@ -140,7 +140,7 @@ export class FilterWithLocation extends Filter { return { color: "Red", icon: faLocationArrow, - children: "" + children: "", } } } @@ -162,7 +162,7 @@ export class FilterWithPlace extends Filter { return { color: "Red", icon: faMapMarkerAlt, - children: "" + children: "", } } } @@ -191,7 +191,7 @@ export class FilterInsideMapArea extends FilterWithLocation { return { color: "Red", icon: faLocationArrow, - children: this.mapArea.toHumanString() + children: this.mapArea.toHumanString(), } } } @@ -216,7 +216,7 @@ export class FilterInsideTimeRay extends Filter { return { color: "Yellow", icon: faClock, - children: this.timeRay.toString() + children: this.timeRay.toString(), } } } @@ -238,7 +238,7 @@ export class FilterWithImage extends Filter { return { color: "Grey", icon: faImage, - children: "" + children: "", } } } \ No newline at end of file diff --git a/nest_frontend/objects/MapArea.js b/nest_frontend/objects/MapArea.js index f1f21ac..c3408ef 100644 --- a/nest_frontend/objects/MapArea.js +++ b/nest_frontend/objects/MapArea.js @@ -1,4 +1,4 @@ -import {getDistance} from "geolib" +import { getDistance } from "geolib" import osmZoomLevels from "../utils/osmZoomLevels" diff --git a/nest_frontend/objects/TimeRay.js b/nest_frontend/objects/TimeRay.js index fcd2184..1df07c4 100644 --- a/nest_frontend/objects/TimeRay.js +++ b/nest_frontend/objects/TimeRay.js @@ -23,6 +23,8 @@ export default class TimeRay { } includes(date) { - return Boolean((this.date > date) ^ this.isBefore) + return Boolean(( + this.date > date + ) ^ this.isBefore) } } diff --git a/nest_frontend/routes/PageSettings.js b/nest_frontend/routes/PageSettings.js index 40c6e27..a1f132c 100644 --- a/nest_frontend/routes/PageSettings.js +++ b/nest_frontend/routes/PageSettings.js @@ -1,7 +1,6 @@ import React, { useContext } from "react" import Style from "./PageSettings.module.css" import classNames from "classnames" -import BoxHeader from "../components/base/BoxHeader" import BoxFull from "../components/base/BoxFull" import SelectTheme from "../components/interactive/SelectTheme" import BoxLoggedIn from "../components/interactive/BoxLoggedIn" diff --git a/nest_frontend/utils/makeIcon.js b/nest_frontend/utils/makeIcon.js index 4a364ed..7604331 100644 --- a/nest_frontend/utils/makeIcon.js +++ b/nest_frontend/utils/makeIcon.js @@ -1,6 +1,6 @@ import React, { isValidElement } from "react" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import {IconDefinition} from "@fortawesome/fontawesome-svg-core" +import { IconDefinition } from "@fortawesome/fontawesome-svg-core" /**