Skip to content

Commit

Permalink
Frontend & Backend Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanShakir committed Dec 4, 2021
1 parent 06e9be4 commit 3b8b7c0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 60 deletions.
Binary file modified Web App/Backend/Backend.tar
Binary file not shown.
2 changes: 1 addition & 1 deletion Web App/Backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"start": "nodemon ./bin/www"
"start": "node ./bin/www"
},
"dependencies": {
"axios": "^0.22.0",
Expand Down
Binary file added Web App/Frontend/Frontend.tar
Binary file not shown.
7 changes: 5 additions & 2 deletions Web App/Frontend/src/components/layout/Sidenav.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Menu, Upload, message, Button, Form, Input } from "antd";
import { Menu, Upload, message, Button, Form, Input, Divider } from "antd";
import { UploadOutlined } from "@ant-design/icons";
import React, { useState } from "react";

Expand Down Expand Up @@ -157,6 +157,8 @@ function Sidenav({ color }) {
</Form>
</Menu.Item>
</Menu>
<Divider style={{ marginTop: "5px" }} />

<Button type="primary" style={btnPublish} onClick={handleRe1}>
Realy 1
</Button>
Expand All @@ -166,6 +168,7 @@ function Sidenav({ color }) {
<Button type="primary" style={btnPublish} onClick={handleRe3}>
Realy 3
</Button>
<Divider style={{ marginTop: "40px" }} />
<Form
onFinish={onFinish}
onFinishFailed={onFinishFailed}
Expand All @@ -185,7 +188,7 @@ function Sidenav({ color }) {
>
<Input
placeholder="Enter Settings"
style={{ width: "100%", borderRadius: "50px", marginTop: "50px" }}
style={{ width: "100%", borderRadius: "50px", marginTop: "20px" }}
/>
</Form.Item>
<Form.Item>
Expand Down
57 changes: 0 additions & 57 deletions Web App/Frontend/src/pages/Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,63 +254,6 @@ const Data = () => {

return (
<>
<div className="flex-container" style={{ marginBottom: "10px" }}>
<Button
type="primary"
style={btnPublish}
// onClick={executeScroll}
>
Realy 1
</Button>
<Button
type="primary"
style={btnPublish}
// onClick={executeScroll}
>
Realy 2
</Button>
<Button
type="primary"
style={btnPublish}
// onClick={executeScroll}
>
Realy 3
</Button>
<Form
onFinish={onFinish}
onFinishFailed={onFinishFailed}
layout="vertical"
className="row-col"
>
<Form.Item
className="username"
label=""
name="settings"
rules={[
{
required: true,
message: "Please Enter Settings",
},
]}
>
<Input
placeholder="Enter Settings"
style={{ width: "30%", borderRadius: "50px", marginTop: "10px" }}
// style={{ paddingTop: 23.5, paddingBottom: 23.5}}
/>
</Form.Item>
<Form.Item>
<Button
type="primary"
htmlType="submit"
style={btnPublish}
// onClick={executeScroll}
>
Send Setting
</Button>
</Form.Item>
</Form>
</div>
<div className="flex-container" style={{ marginBottom: "10px" }}>
<Button
type="primary"
Expand Down

0 comments on commit 3b8b7c0

Please sign in to comment.