Skip to content

Commit

Permalink
build frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
no13bus committed Jun 12, 2022
1 parent 0318613 commit a229b2a
Show file tree
Hide file tree
Showing 8 changed files with 291 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ frontend/node_modules/
env/
build/
develop-eggs/
dist/
# dist/
downloads/
eggs/
lib/
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ we use `redis info` to monitor the redis usage. PAPA means a father who is monit
- [Ant Design Charts](https://charts.ant.design/)
- [Vite](https://vitejs.dev/)

## demo website

[https://redispapa.v2j.tech](https://redispapa.v2j.tech)

## Project Details
- we do not use any database to store the redis information, we store the data in the memory.
Expand Down
15 changes: 15 additions & 0 deletions frontend/dist/assets/favicon.17e50649.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
253 changes: 253 additions & 0 deletions frontend/dist/assets/index.0ca9331e.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/dist/assets/index.738c46dc.css

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions frontend/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/assets/favicon.17e50649.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RedisPapa</title>
<script type="module" crossorigin src="/assets/index.0ca9331e.js"></script>
<link rel="stylesheet" href="/assets/index.738c46dc.css">
</head>
<body>
<div id="root"></div>

</body>
</html>
6 changes: 3 additions & 3 deletions frontend/src/pages/Main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Main: React.FC = () => {


const handler_cmd = (data) => {
let result = []
let result : ChartData[] = []
for (var i = 0; i < data.length; i++) {
let item = {
time: data[i].x.substring(11),
Expand All @@ -51,7 +51,7 @@ const Main: React.FC = () => {
}

const handler_cpu = (data) => {
let result = [];
let result: ChartData[] = [];
for (var i = 0; i < data.length; i++) {
result.push({
time: data[i].x.substring(11),
Expand All @@ -68,7 +68,7 @@ const Main: React.FC = () => {
}

const handler_mem = (data) => {
let result = []
let result:ChartData[] = []
for (var i = 0; i < data.length; i++) {
result.push({
time: data[i].x.substring(11),
Expand Down
1 change: 1 addition & 0 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"noImplicitAny": false,
"target": "ESNext",
"baseUrl": ".",
"paths": {
Expand Down

0 comments on commit a229b2a

Please sign in to comment.