Skip to content

Commit

Permalink
feat(plugins): update plugins api
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Aug 3, 2020
1 parent 3467571 commit 3a40d03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions controller/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/GoAdminGroup/filemanager/modules/util"
"github.com/GoAdminGroup/go-admin/context"
"github.com/GoAdminGroup/go-admin/modules/config"
"github.com/GoAdminGroup/go-admin/plugins"
"github.com/GoAdminGroup/go-admin/plugins/admin/modules/paginator"
"github.com/GoAdminGroup/go-admin/plugins/admin/modules/parameter"
"github.com/GoAdminGroup/go-admin/template"
Expand All @@ -29,7 +28,7 @@ type Handler struct {
roots root.Roots
permissions permission.Permission

HTML func(ctx *context.Context, panel types.Panel, options ...plugins.HTMLOptions)
HTML func(ctx *context.Context, panel types.Panel, options ...template.ExecuteOptions)
}

func NewHandler(root root.Roots, p permission.Permission) *Handler {
Expand Down Expand Up @@ -97,7 +96,7 @@ func (h *Handler) preview(ctx *context.Context, content template2.HTML, relative
GetContent(),
Title: language.GetHTML(h.roots.GetTitleFromPrefix(ctx)),
Description: fixedDescription(relativePath),
}, plugins.HTMLOptions{
}, template.ExecuteOptions{
Animation: false,
NoCompress: true,
})
Expand Down
6 changes: 3 additions & 3 deletions filemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@ var info = plugins.Info{
Website: "http://www.go-admin.cn/plugins/detail/DDN7VxZDTHTeaF8HUU",
Title: "FileManager",
Description: "A plugin help you manage files in your server",
Version: "v0.0.5",
Version: "v0.0.6",
Author: "Official",
Url: "https://github.com/GoAdminGroup/filemanager/archive/v0.0.5.zip",
Url: "https://github.com/GoAdminGroup/filemanager/archive/v0.0.6.zip",
Cover: "",
Agreement: "",
Uuid: "DDN7VxZDTHTeaF8HUU",
Name: "filemanager",
ModulePath: "github.com/GoAdminGroup/filemanager",
CreateDate: utils.ParseTime("2020-04-05"),
UpdateDate: utils.ParseTime("2020-07-29"),
UpdateDate: utils.ParseTime("2020-08-03"),
}

type Table struct {
Expand Down

0 comments on commit 3a40d03

Please sign in to comment.