Skip to content

Commit

Permalink
feat(new version): ready for v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Mar 15, 2020
1 parent 949bb35 commit a38d9ad
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
GOCMD = go
GOBUILD = $(GOCMD) build
BINARY_NAME = adm
LAST_VERSION = v1.2.4
VERSION = v1.2.5
LAST_VERSION = v1.2.5
VERSION = v1.2.6
CLI = adm

TEST_CONFIG_PATH=./../../common/config.json
Expand Down
9 changes: 6 additions & 3 deletions examples/gin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ func main() {
Path: "./uploads",
Prefix: "uploads",
},
Language: language.CN,
IndexUrl: "/",
Debug: true,
Language: language.CN,
IndexUrl: "/",
Debug: true,
Animation: config.PageAnimation{
Type: "fadeInUp",
},
ColorScheme: adminlte.ColorschemeSkinBlack,
}

Expand Down
2 changes: 1 addition & 1 deletion modules/system/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package system

const version = "v1.2.5"
const version = "v1.2.6"

// Version return the version of framework.
func Version() string {
Expand Down
2 changes: 1 addition & 1 deletion plugins/admin/controller/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (h *Handler) showTable(ctx *context.Context, prefix string, params paramete
}, h.config, menu.GetGlobalMenu(user, h.conn).SetActiveClass(h.config.URLRemovePrefix(ctx.Path())))
}

paramStr := params.GetRouteParamStr()
paramStr := params.DeleteIsAll().GetRouteParamStr()

editUrl := modules.AorEmpty(panel.GetEditable(), h.routePathWithPrefix("show_edit", prefix)+paramStr)
newUrl := modules.AorEmpty(panel.GetCanAdd(), h.routePathWithPrefix("show_new", prefix)+paramStr)
Expand Down
5 changes: 5 additions & 0 deletions plugins/admin/modules/parameter/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ func (param Parameters) WithIsAll(isAll bool) Parameters {
return param
}

func (param Parameters) DeleteIsAll() Parameters {
delete(param.Fields, IsAll)
return param
}

func (param Parameters) GetFilterFieldValueStart(field string) string {
return param.GetFieldValue(field + FilterRangeParamStartSuffix)
}
Expand Down

0 comments on commit a38d9ad

Please sign in to comment.