8000 Feat UI reborn by danni-cool · Pull Request #501 · qor5/admin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat UI reborn #501

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

Merged
merged 5 commits into from
Aug 21, 2024
Merged
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
35 changes: 26 additions & 9 deletions presets/presets.go
8000
Original file line number Diff line number Diff line change
Expand Up @@ -1121,14 +1121,38 @@ func (b *Builder) defaultLayout(in web.PageFunc, cfg *LayoutConfig) (out web.Pag
}),
).Class("d-flex align-center mx-6 border-b w-100").Style("padding-bottom:24px")
pr.Body = VCard(
VProgressLinear().
Attr(":active", "vars.grobalProgressBarValue !== 100").
Attr(":model-value", "vars.grobalProgressBarValue").
Attr("style", "position: fixed; z-index: 2000;").
Attr("v-on-created", `({ watch, window })=> {
let timer = null
watch(()=>isFetching, (newVal)=>{
vars.grobalProgressBarValue = 20
if(!isFetching) {
vars.grobalProgressBarValue = 60
if(timer) window.clearTimeout(timer)
timer = window.setTimeout(()=>{
vars.grobalProgressBarValue = 100
timer = null
},100)
}
}, { immediate: true })
}`).
// Indeterminate(true).
Height(2).
Color(b.progressBarColor),
h.Template(
VSnackbar(h.Text("{{vars.presetsMessage.message}}")).
VSnackbar(
h.Text("{{vars.presetsMessage.message}}")).
Attr("v-model", "vars.presetsMessage.show").
Attr(":color", "vars.presetsMessage.color").
Attr("style", "bottom: 48px;").
Timeout(2000).
Location(LocationTop),
Location(LocationBottom),
).Attr("v-if", "vars.presetsMessage"),
VLayout(

web.Portal().Name(RightDrawerPortalName),

// App(true).
Expand Down Expand Up @@ -1171,13 +1195,6 @@ func (b *Builder) defaultLayout(in web.PageFunc, cfg *LayoutConfig) (out web.Pag
Elevation(0),

VMain(
VProgressLinear().
Attr(":active", "isFetching").
Class("ml-4").
Attr("style", "position: fixed; z-index: 99;").
Indeterminate(true).
Height(2).
Color(b.progressBarColor),
VAppBar(
pageTitleComp,
).Elevation(0).Attr("height", 100),
Expand Down
Loading
0