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

feat: support progressBar drived by isReloadingPage param #503

Merged
merged 1 commit into from
Aug 21, 2024
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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/pquerna/otp v1.4.0
github.com/qor/oss v0.0.0-20240729105053-88484a799a79
github.com/qor5/web/v3 v3.0.7-0.20240820073152-c8eaf32af2a1
github.com/qor5/web/v3 v3.0.7-0.20240821051857-359165e78fdf
github.com/qor5/x/v3 v3.0.8-0.20240820090846-b906516969c0
github.com/samber/lo v1.47.0
github.com/shurcooL/sanitized_anchor_name v1.0.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ github.com/qor5/web v1.3.2 h1:zw796YJeDLe8vRwGR1cM+uS1ZuSkPutchBEXv2GgOhI=
github.com/qor5/web v1.3.2/go.mod h1:LszskQJbFQDJwOeZC6j6afOiHxxyjrzz8B3zuBwfgKQ=
github.com/qor5/web/v3 v3.0.7-0.20240820073152-c8eaf32af2a1 h1:e/OzQ2MSw295aG3QYULxj7Jd0zww67L3h6krjX2F6Ok=
github.com/qor5/web/v3 v3.0.7-0.20240820073152-c8eaf32af2a1/go.mod h1:32vdHHcZb2JimlcaclW9hLUyimdXjrllZDHTh3rl6d0=
github.com/qor5/web/v3 v3.0.7-0.20240821051857-359165e78fdf h1:MdRWa0EZpCgl9Fe+3/Y3JiOe2SsQCqOXl7rBI64n7xs=
github.com/qor5/web/v3 v3.0.7-0.20240821051857-359165e78fdf/go.mod h1:32vdHHcZb2JimlcaclW9hLUyimdXjrllZDHTh3rl6d0=
github.com/qor5/x/v3 v3.0.8-0.20240820090846-b906516969c0 h1:kiRM0lhisdFXqN6dN1ZbHsU+t9VdTbiJOpP3T+Qw0Oc=
github.com/qor5/x/v3 v3.0.8-0.20240820090846-b906516969c0/go.mod h1:aLBRfhcgVnpGmMOTyXLCoOyPOYUpYNZ9T8YyNPqCuVM=
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
Expand Down
4 changes: 2 additions & 2 deletions presets/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,9 @@ func (b *Builder) defaultLayout(in web.PageFunc, cfg *LayoutConfig) (out web.Pag
Attr("style", "position: fixed; z-index: 2000;").
Attr("v-on-created", `({ watch, window })=> {
let timer = null
watch(()=>isFetching, (newVal)=>{
watch(()=>isReloadingPage, (newVal)=>{
vars.grobalProgressBarValue = 20
if(!isFetching) {
if(!isReloadingPage) {
vars.grobalProgressBarValue = 60
if(timer) window.clearTimeout(timer)
timer = window.setTimeout(()=>{
Expand Down
Loading