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

fix: go mod #305

Merged
merged 1 commit into from
Oct 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions app/pages/Welcome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,13 @@ function Welcome(props: IProps) {
</div>
<div className={styles.infoWrapper}>
<span>
{`${intl.get('import.edgeText')}: `}<strong>{dataset.detail.edgeCount}</strong>
{`${intl.get('import.edgeText')}: `}
<strong>{dataset.detail.edgeCount}</strong>
</span>
<span>
{`${intl.get('import.vertexText')}: `}
<strong>{dataset.detail.vertexCount}</strong>
</span>
<span>{`${intl.get('import.vertexText')}: `}<strong>{dataset.detail.vertexCount}</strong></span>
</div>
</div>
<div className={styles.contentTitle}>{dataset.spaceName}</div>
Expand Down Expand Up @@ -236,8 +240,8 @@ function Welcome(props: IProps) {
);

// @ts-ignore
const percent = ((initLoadingTime - spaceLoading?.leftTime) / initLoadingTime * 100) | 0;
const renderPercent = percent > 99 ? 99 : percent;
const percent = (((initLoadingTime - spaceLoading?.leftTime) / initLoadingTime) * 100) | 0;
const renderPercent = percent > 99 ? 99 : percent;

return (
<div className={styles.welcomeWrapper}>
Expand Down
2 changes: 1 addition & 1 deletion server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/vesoft-inc/nebula-studio/server
go 1.18

require (
github.com/samber/lo v1.28.2
github.com/vesoft-inc/go-pkg v0.0.0-20220714021138-c5edb9946837
github.com/vesoft-inc/nebula-http-gateway/ccore v0.0.0-20220720014538-1dd39bd43f6c
github.com/vesoft-inc/nebula-importer v1.0.1-0.20220719030708-8e376665042e
Expand All @@ -20,7 +21,6 @@ require (

require (
github.com/facebook/fbthrift v0.31.1-0.20211129061412-801ed7f9f295 // indirect
github.com/samber/lo v1.28.2 // indirect
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
github.com/thoas/go-funk v0.9.1 h1:O549iLZqPpTUQ10ykd26sZhzD+rmR5pWhuElrhbC20M=
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
github.com/vesoft-inc/go-pkg v0.0.0-20220714021138-c5edb9946837 h1:18LhwI/O7zbAboZC87N1YR+49EorwuCz65yrmEJqoGU=
Expand Down Expand Up @@ -799,8 +800,8 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gorm.io/driver/sqlite v1.3.2 h1:nWTy4cE52K6nnMhv23wLmur9Y3qWbZvOBz+V4PrGAxg=
gorm.io/driver/sqlite v1.3.2/go.mod h1:B+8GyC9K7VgzJAcrcXMRPdnMcck+8FgJynEehEPM16U=
gorm.io/gorm v1.23.4 h1:1BKWM67O6CflSLcwGQR7ccfmC4ebOxQrTfOQGRE9wjg=
Expand Down