-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: add web console for operations #728
Conversation
Signed-off-by: ansjsun <[email protected]>
Signed-off-by: ansjsun <[email protected]>
Signed-off-by: ansjsun <[email protected]>
Greate job! How about commit the source code of html and javascript? After webpack,we can'nt understand and modify the web console. |
Signed-off-by: ansjsun <[email protected]>
Signed-off-by: ansjsun <[email protected]>
Signed-off-by: ansjsun <[email protected]>
"errors" | ||
"fmt" | ||
"github.com/chubaofs/chubaofs/proto" | ||
client2 "github.com/chubaofs/chubaofs/sdk/graphql/client" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use graphqlClient replace client 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is recommended to name it like gqlclient
.
|
||
ctx := r.Context() | ||
|
||
if r.RequestURI != "/login" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use const variable
cmd/cfg/console.json
Outdated
"192.168.0.12:17010", | ||
"192.168.0.13:17010" | ||
], | ||
"monitor_addr": "http://cfsthanos-yf01.cfsmon.svc.zyx02.n.jd.local", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
master_instance and monitor_addr and monitor_addr config variable Suggest to merge into one variable
Signed-off-by: ansjsun <[email protected]>
Signed-off-by: ansjsun <[email protected]>
@hooklee2000 The current submission is webpack. In the future, we may create a new respository to store page source code. |
Signed-off-by: ansjsun <[email protected]>
Signed-off-by: ansjsun <[email protected]>
Signed-off-by: ansjsun <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review+1
What this PR does / why we need it:
Which issue this PR fixes:
Special notes for your reviewer:
None.
Release note: