[add] load dashboard
This commit is contained in:
parent
98a6da979f
commit
c65bc6cd17
1 changed files with 7 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import (
|
||||||
"github.com/yaoapp/yao/widgets/app"
|
"github.com/yaoapp/yao/widgets/app"
|
||||||
"github.com/yaoapp/yao/widgets/chart"
|
"github.com/yaoapp/yao/widgets/chart"
|
||||||
"github.com/yaoapp/yao/widgets/component"
|
"github.com/yaoapp/yao/widgets/component"
|
||||||
|
"github.com/yaoapp/yao/widgets/dashboard"
|
||||||
"github.com/yaoapp/yao/widgets/expression"
|
"github.com/yaoapp/yao/widgets/expression"
|
||||||
"github.com/yaoapp/yao/widgets/field"
|
"github.com/yaoapp/yao/widgets/field"
|
||||||
"github.com/yaoapp/yao/widgets/form"
|
"github.com/yaoapp/yao/widgets/form"
|
||||||
|
|
@ -75,6 +76,12 @@ func Load(cfg config.Config) error {
|
||||||
messages = append(messages, err.Error())
|
messages = append(messages, err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// dashboard widget
|
||||||
|
err = dashboard.LoadAndExport(cfg)
|
||||||
|
if err != nil {
|
||||||
|
messages = append(messages, err.Error())
|
||||||
|
}
|
||||||
|
|
||||||
if len(messages) > 0 {
|
if len(messages) > 0 {
|
||||||
err = fmt.Errorf(strings.Join(messages, ";\n"))
|
err = fmt.Errorf(strings.Join(messages, ";\n"))
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue