Skip to content

v1.2.7

Compare
Choose a tag to compare
@chenhg5 chenhg5 released this 30 Mar 00:30
· 710 commits to master since this release

Do a lot of reflector work making the code robustness. Also, open the CI tests APIs to complete the developing process.

Recommendation Index: ⭐⭐⭐

BUG Fixes

  • Fixed file driver get files with full path error.
  • Fixed custom login logic API error.
  • Fixed custom form components error.
  • Fixed SetPostHook API error.
  • A fixed detail page contains join table fields display error.
  • Others.

Improvement

  • Support add table column field / column buttons directly. #187
info.AddColumn("Custom", func(value types.FieldModel) interface{} { return "hello" })
info.AddColumnButtons("Custom", types.GetColumnButton(...))
  • Add LimitLoginIP config switch item.
  • Improve action handlers loading logic.
  • Make admin as a built-in plugin.
  • Add nav button API.
  • Support custom login page URL.
  • Add footer info config item.
config.Config{
      ....
      NoLimitLoginIP  bool
      LoginUrl   string
      FooterInfo  template.HTML
      ....
}
  • Add CI tests APIs
import (
        ....
	"github.com/GoAdminGroup/go-admin/tests"
	"github.com/GoAdminGroup/go-admin/tests/web"
)

// Black box testing
func TestDemoBlackBox(t *testing.T) {
	tests.BlackBoxTestSuit()
}

// User acceptance testing
func TestDemoUserAcceptance(t *testing.T) {
	web.UserAcceptanceTestSuit()
}