-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2197983
commit 54f2ed7
Showing
12 changed files
with
243 additions
and
36 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export const config = { | ||
apiUri: "http://localhost:4000", | ||
// apiUri: "http://localhost:4000", | ||
apiUri: "https://test.verification.rocks", | ||
} |
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,67 @@ | ||
export const CubeIcon = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
strokeWidth={1.5} | ||
stroke="currentColor" | ||
className="w-6 h-6" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9" | ||
/> | ||
</svg> | ||
) | ||
|
||
export const UserIcon = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
strokeWidth={1.5} | ||
stroke="currentColor" | ||
className="w-6 h-6" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z" | ||
/> | ||
</svg> | ||
) | ||
|
||
export const BugIcon = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
strokeWidth={1.5} | ||
stroke="currentColor" | ||
className="w-6 h-6" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082" | ||
/> | ||
</svg> | ||
) | ||
|
||
export const InfoIcon = ({ style }: { style?: string }) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
strokeWidth={1.5} | ||
stroke="currentColor" | ||
className={`w-6 h-6 ${style}`} | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" | ||
/> | ||
</svg> | ||
) |
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 |
---|---|---|
@@ -1,7 +1,75 @@ | ||
import React from "react" | ||
import ReactEcharts from "echarts-for-react" | ||
import { InfoIcon } from "../icons" | ||
|
||
const Blockchain = () => { | ||
return <div>Blockchain</div> | ||
const data = [ | ||
{ day: "may1", positive: 28, negative: 2 }, | ||
{ day: "may2", positive: 12, negative: 3 }, | ||
{ day: "may3", positive: 19, negative: 3 }, | ||
{ day: "may4", positive: 20, negative: 3 }, | ||
{ day: "may5", positive: 21, negative: 3 }, | ||
{ day: "may6", positive: 29, negative: 3 }, | ||
{ day: "may7", positive: 30, negative: 3 }, | ||
] | ||
|
||
const chartData = data.map((item) => ({ | ||
name: item.day, | ||
value: [item.negative, item.positive], | ||
})) | ||
|
||
const option = { | ||
// legend: { | ||
// data: ["Olumsuz", "Olumlu"], | ||
// }, | ||
tooltip: {}, | ||
grid: { | ||
left: "5%", | ||
right: "5%", | ||
top: "10%", | ||
bottom: "10%", | ||
}, | ||
xAxis: { | ||
type: "category", | ||
data: data.map((item) => item.day), | ||
}, | ||
yAxis: { | ||
type: "value", | ||
}, | ||
series: [ | ||
{ | ||
name: "Olumlu", | ||
stack: "total", | ||
type: "bar", | ||
data: chartData.map((item) => item.value[1]), | ||
itemStyle: { | ||
color: "#2196F3", | ||
}, | ||
barWidth: 60, | ||
}, | ||
{ | ||
name: "Olumsuz", | ||
stack: "total", | ||
type: "bar", | ||
data: chartData.map((item) => item.value[0]), | ||
itemStyle: { | ||
color: "#FF5722", | ||
}, | ||
barWidth: 60, | ||
}, | ||
], | ||
} | ||
|
||
return ( | ||
<div className="bg-white rounded-md flex flex-col p-4"> | ||
<div className="flex justify-between px-10"> | ||
<h4 className="text-lg font-semibold">Proposal</h4> | ||
|
||
<InfoIcon /> | ||
</div> | ||
|
||
<ReactEcharts option={option} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Blockchain |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import React from "react" | ||
|
||
const User = () => { | ||
return <div>User</div> | ||
} | ||
|