Skip to content

qor/activity

Repository files navigation

Activity

Activity is dependant on QOR Admin. It provides QOR Admin with an activity tracking feature for any Resource.

Applying Activity to a Resource will add Comment and Track data/state changes within the QOR Admin interface.

GoDoc Build Status

Usage

import "github.com/qor/admin"

func main() {
  Admin := admin.New(&qor.Config{DB: db})
  order := Admin.AddResource(&models.Order{})

  // Register Activity for Order resource
  activity.Register(order)
}

The above code snippet will add an activity tracking feature to the Order resource in a hypothetical project, which would look a bit like the screenshot below in QOR Admin:

License

Released under the MIT License.

About

Qor Activity: add Comment and Track data/state changes to any Qor Resource support to admin interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published