2021-04-21 16:21:30 +00:00
|
|
|
import React from "react"
|
2021-04-25 15:22:52 +00:00
|
|
|
import Style from "./PageDashboard.module.css"
|
2021-04-21 16:21:30 +00:00
|
|
|
import classNames from "classnames"
|
2021-04-29 14:58:31 +00:00
|
|
|
import BoxHeader from "../components/base/BoxHeader"
|
|
|
|
import BoxFull from "../components/base/BoxFull"
|
|
|
|
import InputWithIcon from "../components/base/InputWithIcon"
|
2021-04-22 17:10:36 +00:00
|
|
|
import { faFolder, faPlus } from "@fortawesome/free-solid-svg-icons"
|
2021-04-29 14:58:31 +00:00
|
|
|
import Radio from "../components/base/Radio"
|
|
|
|
import Button from "../components/base/Button"
|
|
|
|
import FormLabelled from "../components/base/FormLabelled"
|
|
|
|
import FormLabel from "../components/base/formparts/FormLabel"
|
2021-04-29 15:04:56 +00:00
|
|
|
import RepositoryEditor from "../components/providers/RepositoryEditor"
|
|
|
|
import BoxConditionHashtag from "../components/interactive/BoxConditionHashtag"
|
|
|
|
import BoxConditions from "../components/interactive/BoxConditions"
|
2021-04-30 14:37:28 +00:00
|
|
|
import BoxConditionDatetime from "../components/interactive/BoxConditionDatetime"
|
2021-04-30 20:10:00 +00:00
|
|
|
import BoxConditionMap from "../components/interactive/BoxConditionMap"
|
2021-05-07 02:48:03 +00:00
|
|
|
import BoxConditionUser from "../components/interactive/BoxConditionUser"
|
2021-04-21 16:21:30 +00:00
|
|
|
|
|
|
|
|
2021-04-25 15:22:52 +00:00
|
|
|
export default function PageDashboard({ children, className, ...props }) {
|
2021-04-21 16:21:30 +00:00
|
|
|
return (
|
|
|
|
<div className={classNames(Style.PageHome, className)} {...props}>
|
2021-04-29 15:04:56 +00:00
|
|
|
<RepositoryEditor>
|
|
|
|
<BoxHeader className={Style.Header}>
|
|
|
|
Create a new repository
|
|
|
|
</BoxHeader>
|
2021-04-30 20:10:00 +00:00
|
|
|
<BoxConditionMap className={Style.SearchByZone}/>
|
2021-04-29 15:04:56 +00:00
|
|
|
<BoxConditionHashtag className={Style.SearchByHashtags}/>
|
2021-05-07 02:48:03 +00:00
|
|
|
<BoxConditionUser className={Style.SearchByUser}/>
|
2021-04-30 20:10:00 +00:00
|
|
|
<BoxConditionDatetime className={Style.SearchByTimePeriod}/>
|
2021-04-29 15:04:56 +00:00
|
|
|
<BoxConditions className={Style.Conditions}/>
|
|
|
|
<BoxFull className={Style.CreateDialog} header={"Create repository"}>
|
|
|
|
<FormLabelled>
|
|
|
|
<FormLabel htmlFor={"repo-name"} text={"Repository name"}>
|
|
|
|
<InputWithIcon id={"repo-name"} icon={faFolder}/>
|
|
|
|
</FormLabel>
|
|
|
|
<FormLabel htmlFor={"filter-mode"} text={"Add tweets if they satisfy"}>
|
|
|
|
<label>
|
|
|
|
<Radio name={"filter-mode"} value={"or"}/> At least one filter
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label>
|
|
|
|
<Radio name={"filter-mode"} value={"and"}/> Every filter
|
|
|
|
</label>
|
|
|
|
</FormLabel>
|
|
|
|
<Button style={{"gridColumn": "1 / 3"}} icon={faPlus} color={"Green"}>
|
|
|
|
Create repository
|
|
|
|
</Button>
|
|
|
|
</FormLabelled>
|
|
|
|
</BoxFull>
|
|
|
|
</RepositoryEditor>
|
2021-04-21 16:21:30 +00:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|