-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Version 0.4 - update the flask version to 2.x, socket-io version to 4.x, Python version to 3.x - use Vite and react to build the frontend.
- Loading branch information
Showing
85 changed files
with
542 additions
and
3,795 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,5 @@ docs/_build/ | |
# PyBuilder | ||
target/ | ||
.idea | ||
config_dev.py | ||
config_dev.py | ||
/.DS_Store |
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.chart-title{ | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: large; | ||
margin-bottom: 20px; | ||
} |
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,48 @@ | ||
import { Space, Table, Tag } from 'antd'; | ||
import React from 'react'; | ||
import { Line, LineConfig } from '@ant-design/charts'; | ||
import { ChartData, ChartType } from '@/data.d' | ||
import './index.less' | ||
|
||
interface PropsType { | ||
chartData: ChartData[]; | ||
chartTitle: string; | ||
} | ||
|
||
|
||
const Chart: React.FC<PropsType> = ({ chartTitle, chartData }) => { | ||
|
||
|
||
const chartConfig = { | ||
data: chartData, | ||
xField: 'time', | ||
yField: 'value', | ||
seriesField: 'category', | ||
point: { | ||
size: 5, | ||
shape: 'diamond', | ||
}, | ||
xAxis: { | ||
title: { | ||
text: 'time' | ||
} | ||
}, | ||
yAxis: { | ||
title: { | ||
text: 'value' | ||
} | ||
}, | ||
}; | ||
|
||
|
||
|
||
return ( | ||
<div className="charts-item"> | ||
<div className="chart-title">{chartTitle}</div> | ||
<Line {...chartConfig} /> | ||
|
||
</div> | ||
); | ||
}; | ||
|
||
export default Chart; |
File renamed without changes.
Oops, something went wrong.