File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package controller
2
2
3
3
import (
4
4
"github.com/GoAdminGroup/go-admin/context"
5
- "github.com/GoAdminGroup/go-admin/plugins "
5
+ "github.com/GoAdminGroup/go-admin/template "
6
6
"github.com/GoAdminGroup/go-admin/template/types"
7
7
"github.com/GoAdminGroup/librarian/modules/constant"
8
8
"github.com/GoAdminGroup/librarian/modules/root"
@@ -12,7 +12,7 @@ type Handler struct {
12
12
roots * root.Roots
13
13
theme string
14
14
15
- HTML func (ctx * context.Context , panel types.Panel , options ... plugins. HTMLOptions )
15
+ HTML func (ctx * context.Context , panel types.Panel , options ... template. ExecuteOptions )
16
16
}
17
17
18
18
func NewHandler (root * root.Roots , theme string ) * Handler {
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ package controller
3
3
import (
4
4
"io/ioutil"
5
5
6
+ "github.com/GoAdminGroup/go-admin/template"
7
+
6
8
"github.com/GoAdminGroup/go-admin/context"
7
- "github.com/GoAdminGroup/go-admin/plugins"
8
9
"github.com/GoAdminGroup/go-admin/template/types"
9
10
"github.com/GoAdminGroup/librarian/guard"
10
11
"github.com/GoAdminGroup/librarian/modules/theme"
@@ -28,7 +29,7 @@ func (h *Handler) View(ctx *context.Context) {
28
29
Content : theme .Get (h .theme ).HTML (md ),
29
30
CSS : theme .Get (h .theme ).CSS (),
30
31
JS : theme .Get (h .theme ).JS (),
31
- }, plugins. HTMLOptions {
32
+ }, template. ExecuteOptions {
32
33
NoCompress : true ,
33
34
Animation : true ,
34
35
})
Original file line number Diff line number Diff line change @@ -161,16 +161,16 @@ var info = plugins.Info{
161
161
Website : "http://www.go-admin.cn/plugins/detail/TzgE2RAYGqnCgEt7TK" ,
162
162
Title : "Librarian" ,
163
163
Description : "Help you quickly build a online markdown viewer." ,
164
- Version : "v0.0.4 " ,
164
+ Version : "v0.0.5 " ,
165
165
Author : "Official" ,
166
- Url : "https://github.com/GoAdminGroup/librarian/archive/v0.0.4 .zip" ,
166
+ Url : "https://github.com/GoAdminGroup/librarian/archive/v0.0.5 .zip" ,
167
167
Cover : "" ,
168
168
Agreement : "" ,
169
169
Uuid : "TzgE2RAYGqnCgEt7TK" ,
170
170
Name : Name ,
171
171
ModulePath : "github.com/GoAdminGroup/librarian" ,
172
172
CreateDate : utils .ParseTime ("2020-04-19" ),
173
- UpdateDate : utils .ParseTime ("2020-08-02 " ),
173
+ UpdateDate : utils .ParseTime ("2020-08-03 " ),
174
174
}
175
175
176
176
func (l * Librarian ) AddRoot (key string , value root.Root ) * Librarian {
You can’t perform that action at this time.
0 commit comments