Skip to content

Commit

Permalink
(vup) deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed May 30, 2024
1 parent c6e0ae3 commit a9efec8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
:src="`//${url}/progress?org=${org}&repo=${repo}&branch=${branch}&type=${t.name}&theme=dark&style=bar`"
/>
<img
class="inline select-none rounded-xl p-10 mb-5"
class="inline select-none rounded-xl p-2 mb-5"
is:raw
:src="`//${url}/progress?org=${org}&repo=${repo}&branch=${branch}&type=${t.name}&theme=dark&style=circle`"
/>
Expand Down
2 changes: 1 addition & 1 deletion app/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/fbiville/markdown-table-formatter v0.3.0
github.com/go-echarts/statsview v0.3.4
github.com/go-playground/validator v9.31.0+incompatible
github.com/kevincobain2000/go-progress-svg v1.0.1
github.com/kevincobain2000/go-progress-svg v1.0.2
github.com/kevincobain2000/instachart v1.0.20
github.com/labstack/echo/v4 v4.12.0
github.com/mcuadros/go-defaults v1.2.0
Expand Down
11 changes: 2 additions & 9 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 All @@ -56,8 +55,6 @@ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+l
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
github.com/imroc/req/v3 v3.43.5 h1:fL7dOEfld+iEv1rwnIxseJz2/Y7JZ/HgbAURLZkat80=
github.com/imroc/req/v3 v3.43.5/go.mod h1:SQIz5iYop16MJxbo8ib+4LnostGCok8NQf8ToyQc2xA=
github.com/imroc/req/v3 v3.43.6 h1:DDbN6sIBfZliQXbtmhAhlPcCDxmx9awthbVKw29dAyQ=
github.com/imroc/req/v3 v3.43.6/go.mod h1:SQIz5iYop16MJxbo8ib+4LnostGCok8NQf8ToyQc2xA=
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
Expand All @@ -68,10 +65,8 @@ 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.0 h1:vtW+leSe34gew6NegXOjZFgglg8m3McLxsB0fjGULhs=
github.com/kevincobain2000/go-progress-svg v1.0.0/go.mod h1:EgVTknvGHrate4BkvANG2QRqrClN3BHIFO666bwqz8A=
github.com/kevincobain2000/go-progress-svg v1.0.1 h1:Pv8B7UJWUuij+VIWbbkwL/mIjvydEt6mcrEXTZMVabE=
github.com/kevincobain2000/go-progress-svg v1.0.1/go.mod h1:EgVTknvGHrate4BkvANG2QRqrClN3BHIFO666bwqz8A=
github.com/kevincobain2000/go-progress-svg v1.0.2 h1:iAU7vcXtpuIuWNA6Sy7izmUOTWt0ZOfQIyHOSLlR+oc=
github.com/kevincobain2000/go-progress-svg v1.0.2/go.mod h1:EgVTknvGHrate4BkvANG2QRqrClN3BHIFO666bwqz8A=
github.com/kevincobain2000/instachart v1.0.20 h1:pGhgXYE5rlhBHXqwIc1UBLhdOM/EkAnKPA9rzq3J7Ik=
github.com/kevincobain2000/instachart v1.0.20/go.mod h1:Bey/ZhZCD3jweAKwDXw5Jz9c9yJEJgW9HLjJTqXOZmw=
github.com/klauspost/compress v1.17.8 h1:YcnTYrq7MikUT7k0Yb5eceMmALQPYBW/Xltxn0NAMnU=
Expand Down Expand Up @@ -155,8 +150,6 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
golang.org/x/exp v0.0.0-20240525044651-4c93da0ed11d h1:N0hmiNbwsSNwHBAvR3QB5w25pUwH4tK0Y/RltD1j1h4=
golang.org/x/exp v0.0.0-20240525044651-4c93da0ed11d/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc=
golang.org/x/exp v0.0.0-20240529005216-23cca8864a10 h1:vpzMC/iZhYFAjJzHU0Cfuq+w1vLLsF2vLkDrPjzKYck=
golang.org/x/exp v0.0.0-20240529005216-23cca8864a10/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc=
golang.org/x/image v0.11.0/go.mod h1:bglhjqbqVuEb9e9+eNR45Jfu7D+T4Qan+NhQk8Ck2P8=
Expand Down
10 changes: 6 additions & 4 deletions app/pkg/progress.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package pkg

import (
"fmt"

"github.com/kevincobain2000/action-coveritup/models"
gps "github.com/kevincobain2000/go-progress-svg"
)
Expand Down Expand Up @@ -51,14 +53,14 @@ func (b *Progress) Get(req *ProgressRequest, t *models.Type) ([]byte, error) {
backgroundColor = "#FFD1A4"
}
if req.Style == "bar" {
bar, err := gps.NewBar(func(o *gps.BarOptions) error {
bar, err := gps.NewBattery(func(o *gps.BatteryOptions) error {
o.Progress = int(ret.Score)
o.Width = 180
o.Height = 40
o.ProgressColor = progressColor
o.TextColor = textColor
o.TextSize = 14
o.ShowPercentage = true
o.ProgressCaption = fmt.Sprintf("%d%%", int(ret.Score))
o.Caption = t.Name
o.CaptionSize = 14
o.CaptionColor = captionColor
Expand All @@ -71,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 = 120
o.Size = 100
o.CircleWidth = 15
o.ProgressWidth = 15
o.CircleColor = circleColor
Expand All @@ -81,9 +83,9 @@ func (b *Progress) Get(req *ProgressRequest, t *models.Type) ([]byte, error) {
o.ShowPercentage = true
o.BackgroundColor = backgroundColor
o.Caption = t.Name
o.CaptionPos = "bottom"
o.CaptionSize = 30
o.CaptionColor = captionColor
o.SegmentGap = 0
return nil
})

Expand Down

0 comments on commit a9efec8

Please sign in to comment.