Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #68 from qor5/hotfix
Browse files Browse the repository at this point in the history
fixed compile error: UseDefaultTab is undefined.
  • Loading branch information
sunfmin authored Oct 9, 2023
2 parents 4622cd0 + 08e5d12 commit 476e966
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 243 deletions.
2 changes: 1 addition & 1 deletion docsrc/examples/e00_basics/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewActivitySample() {
}
productModel := presetsBuilder.Model(&Product{})

activityBuilder.RegisterModel(productModel).UseDefaultTab().AddKeys("Title").AddIgnoredFields("Code").SkipDelete()
activityBuilder.RegisterModel(productModel).EnableActivityInfoTab().AddKeys("Title").AddIgnoredFields("Code").SkipDelete()
// @snippet_end

// @snippet_begin(ActivityRecordLogSample)
Expand Down
6 changes: 3 additions & 3 deletions docsrc/examples/example_basics/worker_mock_que.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func WorkerExampleMock(b *presets.Builder) {
const WorkerExamplePath = "/samples/worker"

var Que = &mock.QueueMock{
AddFunc: func(job worker.QueJobInterface) error {
AddFunc: func(ctx context.Context, job worker.QueJobInterface) error {
jobInfo, err := job.GetJobInfo()

if err != nil {
Expand All @@ -45,13 +45,13 @@ var Que = &mock.QueueMock{
}
return nil
},
KillFunc: func(job worker.QueJobInterface) error {
KillFunc: func(ctx context.Context, job worker.QueJobInterface) error {
return job.SetStatus(worker.JobStatusKilled)
},
ListenFunc: func(jobDefs []*worker.QorJobDefinition, getJob func(qorJobID uint) (worker.QueJobInterface, error)) error {
return nil
},
RemoveFunc: func(job worker.QueJobInterface) error {
RemoveFunc: func(ctx context.Context, job worker.QueJobInterface) error {
return job.SetStatus(worker.JobStatusCancelled)
},
}
Expand Down
85 changes: 41 additions & 44 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,53 @@ require (
github.com/fatih/color v1.13.0
github.com/go-chi/chi v1.5.4
github.com/manifoldco/promptui v0.9.0
github.com/markbates/goth v1.76.0
github.com/markbates/goth v1.77.0
github.com/ory/ladon v1.2.0
github.com/qor/oss v0.0.0-20210412121326-3c5583a62015
github.com/qor5/admin v0.0.0-20230420031413-a0401013364a
github.com/qor5/ui v1.0.1-0.20230518014109-9c84f1e3851f
github.com/qor5/web v1.2.4
github.com/qor5/x v1.2.1-0.20230420023921-8f986dddfeaf
github.com/qor/oss v0.0.0-20230717083721-c04686f83630
github.com/qor5/admin v0.0.0-20231009020927-485bb3c7c83b
github.com/qor5/ui v1.0.1-0.20230913083355-743825ff29b1
github.com/qor5/web v1.3.0
github.com/qor5/x v1.2.1-0.20230907054212-50b1a850acf6
github.com/shurcooL/sanitized_anchor_name v1.0.0
github.com/sunfmin/reflectutils v1.0.3
github.com/theplant/docgo v0.0.15
github.com/theplant/htmlgo v1.0.3
github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4
golang.org/x/text v0.8.0
gorm.io/driver/postgres v1.4.5
gorm.io/driver/sqlite v1.4.3
golang.org/x/text v0.9.0
gorm.io/driver/postgres v1.4.8
gorm.io/driver/sqlite v1.4.4
gorm.io/gorm v1.24.2
)

require (
cloud.google.com/go v0.67.0 // indirect
cloud.google.com/go v0.67.0 // indirectj
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/aws/aws-sdk-go v1.38.62 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
github.com/boombuler/barcode v1.0.1 // indirect
github.com/chzyer/readline v1.5.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/disintegration/imaging v1.6.2 // indirect
github.com/dlclark/regexp2 v1.7.0 // indirect
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/go-playground/form v3.1.4+incompatible // indirect
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/context v1.1.1 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/gorilla/mux v1.6.2 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/securecookie v1.1.1 // indirect
github.com/gorilla/sessions v1.2.0 // indirect
github.com/gosimple/slug v1.9.0 // indirect
github.com/gorilla/sessions v1.2.1 // indirect
github.com/gosimple/slug v1.13.1 // indirect
github.com/gosimple/unidecode v1.0.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/iancoleman/strcase v0.2.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.13.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.1 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.12.0 // indirect
github.com/jackc/pgx/v4 v4.17.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgx/v5 v5.3.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/mattn/go-colorable v0.1.9 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-sqlite3 v1.14.16 // indirect
Expand All @@ -66,10 +61,9 @@ require (
github.com/pborman/uuid v1.2.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pquerna/otp v1.3.0 // indirect
github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be // indirect
github.com/pquerna/otp v1.4.0 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/rs/xid v1.4.0 // indirect
github.com/rs/xid v1.5.0 // indirect
github.com/russross/blackfriday v1.6.0 // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/shurcooL/github_flavored_markdown v0.0.0-20210228213109-c3a9aa474629 // indirect
Expand All @@ -78,24 +72,27 @@ require (
github.com/shurcooL/octicon v0.0.0-20191102190552-cbb32d6a785c // indirect
github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
github.com/stretchr/testify v1.8.1 // indirect
github.com/stretchr/testify v1.8.3 // indirect
github.com/theplant/sliceutils v0.0.0-20200406042209-89153d988eb1 // indirect
github.com/thoas/go-funk v0.9.2 // indirect
github.com/tnclong/go-que v0.0.0-20201111043106-1fc5fa2b9761 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.24.0 // indirect
goji.io v2.0.2+incompatible // indirect
golang.org/x/crypto v0.5.0 // indirect
golang.org/x/image v0.6.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 // indirect
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/protobuf v1.26.0 // indirect
golang.org/x/crypto v0.9.0 // indirect
golang.org/x/image v0.7.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

// replace github.com/qor5/web => ../web
// replace github.com/qor5/ui => ../ui
replace github.com/qor5/web => ../web

replace github.com/qor5/ui => ../ui

//replace github.com/qor5/admin => ../admin
Loading

0 comments on commit 476e966

Please sign in to comment.