-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Ebubeker/indicators
feat: changes done the the frontend
- Loading branch information
Showing
51 changed files
with
3,528 additions
and
1,895 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
60 changes: 60 additions & 0 deletions
60
apps/web/components/map/panels/common/ToolboxActionButtons.tsx
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,60 @@ | ||
import React from "react"; | ||
import { Box, Button, useTheme } from "@mui/material"; | ||
import { useTranslation } from "@/i18n/client"; | ||
|
||
interface ToolboxActionButtonsProps { | ||
resetFunction: () => void; | ||
resetDisabled?: boolean; | ||
runFunction: () => void; | ||
runDisabled?: boolean; | ||
} | ||
|
||
const ToolboxActionButtons = (props: ToolboxActionButtonsProps) => { | ||
const { resetFunction, resetDisabled, runFunction, runDisabled } = props; | ||
const { t } = useTranslation("maps"); | ||
|
||
const theme = useTheme(); | ||
|
||
return ( | ||
<Box | ||
sx={{ | ||
position: "relative", | ||
maxHeight: "5%", | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
display: "flex", | ||
gap: theme.spacing(2), | ||
alignItems: "center", | ||
position: "absolute", | ||
bottom: "-25px", | ||
left: "-8px", | ||
width: "calc(100% + 16px)", | ||
padding: "16px", | ||
background: "white", | ||
boxShadow: "0px -5px 10px -5px rgba(58, 53, 65, 0.1)", | ||
}} | ||
> | ||
<Button | ||
color="error" | ||
variant="outlined" | ||
sx={{ flexGrow: "1" }} | ||
onClick={resetFunction} | ||
disabled={resetDisabled ? resetDisabled : false} | ||
> | ||
{t("panels.tools.reset")} | ||
</Button> | ||
<Button | ||
sx={{ flexGrow: "1" }} | ||
onClick={runFunction} | ||
disabled={runDisabled ? runDisabled : false} | ||
> | ||
{t("panels.tools.run")} | ||
</Button> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default ToolboxActionButtons; |
43 changes: 43 additions & 0 deletions
43
apps/web/components/map/panels/filter/BoundingBoxInput.tsx
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,43 @@ | ||
import React from 'react' | ||
import { Box, TextField, useTheme } from '@mui/material' | ||
|
||
interface BoundingProps { | ||
bounds: string; | ||
} | ||
|
||
const BoundingBoxInput = (props: BoundingProps) => { | ||
const {bounds} = props; | ||
|
||
const theme = useTheme(); | ||
console.log(bounds) | ||
return ( | ||
<Box sx={{display: "flex", flexDirection: "column", gap: theme.spacing(4)}}> | ||
<Box sx={{display: "flex", gap: theme.spacing(3)}}> | ||
<TextField | ||
sx={{flexGrow: 1}} | ||
label="North (lon)" | ||
value={11.435354} | ||
/> | ||
<TextField | ||
sx={{flexGrow: 1}} | ||
label="West (lat)" | ||
value={11.435354} | ||
/> | ||
</Box> | ||
<Box sx={{display: "flex", gap: theme.spacing(3)}}> | ||
<TextField | ||
sx={{flexGrow: 1}} | ||
label="South (lon)" | ||
value={11.435354} | ||
/> | ||
<TextField | ||
sx={{flexGrow: 1}} | ||
label="East (lat)" | ||
value={11.435354} | ||
/> | ||
</Box> | ||
</Box> | ||
) | ||
} | ||
|
||
export default BoundingBoxInput |
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
File renamed without changes.
Oops, something went wrong.