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.
import"github.com/qor/admin"funcmain() {
Admin:=admin.New(&qor.Config{DB: db})
order:=Admin.AddResource(&models.Order{})
// Register Activity for Order resourceactivity.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:
Released under the MIT License.