From 7149b6a30fdcfaf10ea53d192d6cad9a54958868 Mon Sep 17 00:00:00 2001
From: Stefano Pigozzi <256895@studenti.unimore.it>
Date: Fri, 7 May 2021 17:30:10 +0200
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Implement=20BoxRepositoryCreate?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../interactive/BoxRepositoryCreate.js | 60 +++++++++++++++++++
.../BoxRepositoryCreate.module.css | 3 +
code/frontend/src/routes/PageDashboard.js | 28 +--------
.../src/routes/PageDashboard.module.css | 8 +--
4 files changed, 69 insertions(+), 30 deletions(-)
create mode 100644 code/frontend/src/components/interactive/BoxRepositoryCreate.js
create mode 100644 code/frontend/src/components/interactive/BoxRepositoryCreate.module.css
diff --git a/code/frontend/src/components/interactive/BoxRepositoryCreate.js b/code/frontend/src/components/interactive/BoxRepositoryCreate.js
new file mode 100644
index 0000000..da25577
--- /dev/null
+++ b/code/frontend/src/components/interactive/BoxRepositoryCreate.js
@@ -0,0 +1,60 @@
+import React, { useState } from "react"
+import Style from "./BoxRepositoryCreate.module.css"
+import classNames from "classnames"
+import BoxFull from "../base/BoxFull"
+import FormLabelled from "../base/FormLabelled"
+import FormLabel from "../base/formparts/FormLabel"
+import InputWithIcon from "../base/InputWithIcon"
+import { faFolder, faPlus } from "@fortawesome/free-solid-svg-icons"
+import Radio from "../base/Radio"
+import Button from "../base/Button"
+import useRepositoryEditor from "../../hooks/useRepositoryEditor"
+
+
+export default function BoxRepositoryCreate({ ...props }) {
+ const {
+ evaluationMode,
+ setEvaluationMode,
+ name,
+ setName,
+ save,
+ } = useRepositoryEditor()
+
+
+ return (
+
+
+
+ setName(e.target.value)}
+ />
+
+
+
+
+
+
+
+
+
+ )
+}
diff --git a/code/frontend/src/components/interactive/BoxRepositoryCreate.module.css b/code/frontend/src/components/interactive/BoxRepositoryCreate.module.css
new file mode 100644
index 0000000..3ba2249
--- /dev/null
+++ b/code/frontend/src/components/interactive/BoxRepositoryCreate.module.css
@@ -0,0 +1,3 @@
+.BoxRepositoryCreate {
+
+}
diff --git a/code/frontend/src/routes/PageDashboard.js b/code/frontend/src/routes/PageDashboard.js
index ce5dc81..fe4918d 100644
--- a/code/frontend/src/routes/PageDashboard.js
+++ b/code/frontend/src/routes/PageDashboard.js
@@ -2,19 +2,13 @@ import React from "react"
import Style from "./PageDashboard.module.css"
import classNames from "classnames"
import BoxHeader from "../components/base/BoxHeader"
-import BoxFull from "../components/base/BoxFull"
-import InputWithIcon from "../components/base/InputWithIcon"
-import { faFolder, faPlus } from "@fortawesome/free-solid-svg-icons"
-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"
import RepositoryEditor from "../components/providers/RepositoryEditor"
import BoxConditionHashtag from "../components/interactive/BoxConditionHashtag"
import BoxConditions from "../components/interactive/BoxConditions"
import BoxConditionDatetime from "../components/interactive/BoxConditionDatetime"
import BoxConditionMap from "../components/interactive/BoxConditionMap"
import BoxConditionUser from "../components/interactive/BoxConditionUser"
+import BoxRepositoryCreate from "../components/interactive/BoxRepositoryCreate"
export default function PageDashboard({ children, className, ...props }) {
@@ -29,25 +23,7 @@ export default function PageDashboard({ children, className, ...props }) {
-
-
-
-
-
-
-
-
-
-
-
-
-
+
)
diff --git a/code/frontend/src/routes/PageDashboard.module.css b/code/frontend/src/routes/PageDashboard.module.css
index 4c79208..704c1cd 100644
--- a/code/frontend/src/routes/PageDashboard.module.css
+++ b/code/frontend/src/routes/PageDashboard.module.css
@@ -3,13 +3,13 @@
grid-template-areas:
"a a a"
- "b c d"
- "b e e"
- "b f f"
+ "b c f"
+ "b d f"
+ "b e f"
"b g g"
;
grid-template-columns: 400px 1fr 1fr;
- grid-template-rows: auto auto auto 1fr auto;
+ grid-template-rows: auto 1fr 1fr 1fr auto;
grid-gap: 10px;