Skip to content

Commit

Permalink
Merge pull request #282 from qor5/feat/oneline-activity
Browse files Browse the repository at this point in the history
activity
  • Loading branch information
sunfmin authored Jul 5, 2024
2 parents 005d163 + fb7fb99 commit 1c7c86f
Show file tree
Hide file tree
Showing 48 changed files with 1,701 additions and 1,622 deletions.
File renamed without changes.
416 changes: 414 additions & 2 deletions .gitignore

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
- It maximize the reusability of Components. since it uses Go to write components, You can abstract component very easy, and use component from a third party Go package is also like using normal Go packages.

## Documentation

[Documentation](https://docs.qor5.com/)
2 changes: 1 addition & 1 deletion activity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
activity.RegisterModel(presetModel).AddIgnoredFields("UpdateAt") // will ignore the UpdateAt field when recording activity log for update operation
activity.RegisterModel(presetModel).AddTypeHanders(
time.Time{},
func(old, now interface{}, prefixField string) []Diff {
func(old, now any, prefixField string) []Diff {
oldString := old.(time.Time).Format(time.RFC3339)
nowString := now.(time.Time).Format(time.RFC3339)
if oldString != nowString {
Expand Down
Loading

0 comments on commit 1c7c86f

Please sign in to comment.