Skip to content
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

Merged
merged 12 commits into from
Jul 7, 2020

Conversation

ansjsun
Copy link
Contributor

@ansjsun ansjsun commented Jul 3, 2020

What this PR does / why we need it:

  • Add console component for operation.

Which issue this PR fixes:

Special notes for your reviewer:
None.

Release note:

Enhancement:
- Add web console for operations.

@mervinkid mervinkid changed the title Add console Enhancement: add console for operation Jul 3, 2020
@mervinkid mervinkid added enhancement New feature or request priority/high labels Jul 3, 2020
@mervinkid mervinkid changed the title Enhancement: add console for operation Enhancement: add web console for operations Jul 3, 2020
@hooklee2000
Copy link
Collaborator

hooklee2000 commented Jul 3, 2020

Greate job! How about commit the source code of html and javascript? After webpack,we can'nt understand and modify the web console.

@awzhgw awzhgw added the DO NOT MERGE DO not merge or merge later label Jul 6, 2020
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"
Copy link
Member

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

Copy link
Member

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" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const variable

"192.168.0.12:17010",
"192.168.0.13:17010"
],
"monitor_addr": "http://cfsthanos-yf01.cfsmon.svc.zyx02.n.jd.local",
Copy link
Member

@awzhgw awzhgw Jul 6, 2020

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

@ansjsun
Copy link
Contributor Author

ansjsun commented Jul 6, 2020

@hooklee2000 The current submission is webpack. In the future, we may create a new respository to store page source code.

@awzhgw awzhgw removed the DO NOT MERGE DO not merge or merge later label Jul 7, 2020
Copy link
Member

@awzhgw awzhgw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review+1

@awzhgw awzhgw merged commit 622e57e into cubefs:master Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide dashboard Feature request: web console for operations
4 participants