Skip to content

Commit

Permalink
(init) smaller size
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jun 2, 2024
1 parent 38aadb6 commit 133e34b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions app/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ github.com/go-playground/validator v9.31.0+incompatible/go.mod h1:yrEkQXlcI+Pugk
github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI=
github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
Expand Down Expand Up @@ -66,8 +65,6 @@ github.com/karrick/godirwalk v1.17.0 h1:b4kY7nqDdioR/6qnbHQyDvmA17u5G1cZ6J+CZXwS
github.com/karrick/godirwalk v1.17.0/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk=
github.com/kevincobain2000/go-badge v0.0.0-20240527052429-de9eb158774b h1:rszueD1SXo5shNhpRxP9s1JQz4urhf7E8kmjTgF4RJE=
github.com/kevincobain2000/go-badge v0.0.0-20240527052429-de9eb158774b/go.mod h1:m9BzkaxwU4IfPQi9ko23cmuFltayFe8iS0dlRlnEWiM=
github.com/kevincobain2000/go-progress-svg v1.0.3 h1:JRdC608vIWfbjtyLgdl3CBPnqj28SA4m1KFcfxzjYNg=
github.com/kevincobain2000/go-progress-svg v1.0.3/go.mod h1:EgVTknvGHrate4BkvANG2QRqrClN3BHIFO666bwqz8A=
github.com/kevincobain2000/go-progress-svg v1.0.4 h1:ZGRVAPNBcwdqP4knxqcTD5vM3IfOAvKbTqRaVPf2jDo=
github.com/kevincobain2000/go-progress-svg v1.0.4/go.mod h1:EgVTknvGHrate4BkvANG2QRqrClN3BHIFO666bwqz8A=
github.com/kevincobain2000/instachart v1.0.20 h1:pGhgXYE5rlhBHXqwIc1UBLhdOM/EkAnKPA9rzq3J7Ik=
Expand Down
8 changes: 4 additions & 4 deletions app/pkg/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func (b *Progress) Get(req *ProgressRequest, t *models.Type) ([]byte, error) {
if req.Style == "bar" {
bar, err := gps.NewBattery(func(o *gps.BatteryOptions) error {
o.Progress = int(ret.Score)
o.Width = 180
o.Height = 40
o.Width = 150
o.Height = 35
o.ProgressColor = progressColor
o.TextColor = textColor
o.TextSize = 14
Expand All @@ -73,7 +73,7 @@ func (b *Progress) Get(req *ProgressRequest, t *models.Type) ([]byte, error) {

circle, err := gps.NewCircular(func(o *gps.CircularOptions) error {
o.Progress = int(ret.Score)
o.Size = 100
o.Size = 80
o.CircleWidth = 15
o.ProgressWidth = 15
o.CircleColor = circleColor
Expand All @@ -83,7 +83,7 @@ func (b *Progress) Get(req *ProgressRequest, t *models.Type) ([]byte, error) {
o.ShowPercentage = true
o.BackgroundColor = backgroundColor
o.Caption = t.Name
o.CaptionSize = 30
o.CaptionSize = 35
o.CaptionColor = captionColor
o.SegmentGap = 0
return nil
Expand Down

0 comments on commit 133e34b

Please sign in to comment.