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 #72 from qor5/fix-publish-doc
Browse files Browse the repository at this point in the history
fixed the issue of the publish doc's demo don't work properly
  • Loading branch information
iBakuman authored Oct 17, 2023
2 parents dd44240 + 45412a0 commit 0e4893e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/basics/publish.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ <h2><a name="usage" class="anchor" href="#usage" rel="nofollow" aria-hidden="tru
<highlightjs :language='"go"' :code='"var _ presets.SlugEncoder = (*Product)(nil)\nvar _ presets.SlugDecoder = (*Product)(nil)\n\nfunc (p *Product) PrimarySlug() string {\n\treturn fmt.Sprintf(\"%v_%v\", p.ID, p.Version.Version)\n}\n\nfunc (p *Product) PrimaryColumnValuesBySlug(slug string) map[string]string {\n\tsegs := strings.Split(slug, \"_\")\n\tif len(segs) != 2 {\n\t\tpanic(\"wrong slug\")\n\t}\n\n\treturn map[string]string{\n\t\t\"id\": segs[0],\n\t\t\"version\": segs[1],\n\t}\n}\n"'></highlightjs>
<p>Create publisher and configure Publish view for model, and remember to display Status and Schedule fields in Editing</p>

<highlightjs :language='"go"' :code='"mb := b.Model(\u0026Product{})\nmb.Editing(\"Status\", \"Schedule\", \"Name\", \"Price\")\n\npublisher := publish.New(DB, nil)\npublish_view.Configure(b, DB, nil, publisher, mb)\n\n// run the publisher job if Schedule is used\ngo publish.RunPublisher(DB, nil, publisher)"'></highlightjs>
<highlightjs :language='"go"' :code='"mb := b.Model(\u0026Product{})\nmb.Editing(\"StatusBar\", \"Schedule\", \"Name\", \"Price\")\n\npublisher := publish.New(DB, nil)\npublish_view.Configure(b, DB, nil, publisher, mb)\n\n// run the publisher job if Schedule is used\ngo publish.RunPublisher(DB, nil, publisher)"'></highlightjs>
<p>Implement the publish interfaces if there is a need to publish content to storage(filesystem, AWS S3, ...)</p>

<highlightjs :language='"go"' :code='"var _ publish.PublishInterface = (*Product)(nil)\nvar _ publish.UnPublishInterface = (*Product)(nil)\n\nfunc (p *Product) GetPublishActions(db *gorm.DB, ctx context.Context, storage oss.StorageInterface) (objs []*publish.PublishAction, err error) {\n\t// create publish actions\n\treturn\n}\n\nfunc (p *Product) GetUnPublishActions(db *gorm.DB, ctx context.Context, storage oss.StorageInterface) (objs []*publish.PublishAction, err error) {\n\t// create unpublish actions\n\treturn\n}\n"'></highlightjs>
Expand Down
2 changes: 1 addition & 1 deletion docs/search_indexes.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docsrc/examples/example_basics/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ func PublishExample(b *presets.Builder) {
b.URIPrefix(PublishExamplePath).
DataOperator(gorm2op.DataOperator(DB))

// @snippet_begin(PublishConfigureView)
// @snippet_begin(PublishConfigureView)
mb := b.Model(&Product{})
mb.Editing("Status", "Schedule", "Name", "Price")
mb.Editing("StatusBar", "Schedule", "Name", "Price")

publisher := publish.New(DB, nil)
publish_view.Configure(b, DB, nil, publisher, mb)
Expand Down
2 changes: 1 addition & 1 deletion docsrc/generated/g1.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var PermissionAddCustomPolicy = string([]byte{0x70, 0x65, 0x72, 0x6d, 0x2e, 0x50
var PublishInjectModules = string([]byte{0x74, 0x79, 0x70, 0x65, 0x20, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x20, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x7b, 0xa, 0x9, 0x67, 0x6f, 0x72, 0x6d, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0xa, 0xa, 0x9, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0xa, 0x9, 0x50, 0x72, 0x69, 0x63, 0x65, 0x20, 0x69, 0x6e, 0x74, 0xa, 0xa, 0x9, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0xa, 0x9, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0xa, 0x9, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0xa, 0x7d, 0xa})
var PublishImplementSlugInterfaces = string([]byte{0x76, 0x61, 0x72, 0x20, 0x5f, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x53, 0x6c, 0x75, 0x67, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x28, 0x2a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x29, 0x28, 0x6e, 0x69, 0x6c, 0x29, 0xa, 0x76, 0x61, 0x72, 0x20, 0x5f, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x53, 0x6c, 0x75, 0x67, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x28, 0x2a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x29, 0x28, 0x6e, 0x69, 0x6c, 0x29, 0xa, 0xa, 0x66, 0x75, 0x6e, 0x63, 0x20, 0x28, 0x70, 0x20, 0x2a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x29, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x6c, 0x75, 0x67, 0x28, 0x29, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x7b, 0xa, 0x9, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x6d, 0x74, 0x2e, 0x53, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x66, 0x28, 0x22, 0x25, 0x76, 0x5f, 0x25, 0x76, 0x22, 0x2c, 0x20, 0x70, 0x2e, 0x49, 0x44, 0x2c, 0x20, 0x70, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x29, 0xa, 0x7d, 0xa, 0xa, 0x66, 0x75, 0x6e, 0x63, 0x20, 0x28, 0x70, 0x20, 0x2a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x29, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x79, 0x53, 0x6c, 0x75, 0x67, 0x28, 0x73, 0x6c, 0x75, 0x67, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x29, 0x20, 0x6d, 0x61, 0x70, 0x5b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x7b, 0xa, 0x9, 0x73, 0x65, 0x67, 0x73, 0x20, 0x3a, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x28, 0x73, 0x6c, 0x75, 0x67, 0x2c, 0x20, 0x22, 0x5f, 0x22, 0x29, 0xa, 0x9, 0x69, 0x66, 0x20, 0x6c, 0x65, 0x6e, 0x28, 0x73, 0x65, 0x67, 0x73, 0x29, 0x20, 0x21, 0x3d, 0x20, 0x32, 0x20, 0x7b, 0xa, 0x9, 0x9, 0x70, 0x61, 0x6e, 0x69, 0x63, 0x28, 0x22, 0x77, 0x72, 0x6f, 0x6e, 0x67, 0x20, 0x73, 0x6c, 0x75, 0x67, 0x22, 0x29, 0xa, 0x9, 0x7d, 0xa, 0xa, 0x9, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x61, 0x70, 0x5b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x7b, 0xa, 0x9, 0x9, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x67, 0x73, 0x5b, 0x30, 0x5d, 0x2c, 0xa, 0x9, 0x9, 0x22, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x73, 0x65, 0x67, 0x73, 0x5b, 0x31, 0x5d, 0x2c, 0xa, 0x9, 0x7d, 0xa, 0x7d, 0xa})
var PublishImplementPublishInterfaces = string([]byte{0x76, 0x61, 0x72, 0x20, 0x5f, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x28, 0x2a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x29, 0x28, 0x6e, 0x69, 0x6c, 0x29, 0xa, 0x76, 0x61, 0x72, 0x20, 0x5f, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x55, 0x6e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x28, 0x2a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x29, 0x28, 0x6e, 0x69, 0x6c, 0x29, 0xa, 0xa, 0x66, 0x75, 0x6e, 0x63, 0x20, 0x28, 0x70, 0x20, 0x2a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x29, 0x20, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x64, 0x62, 0x20, 0x2a, 0x67, 0x6f, 0x72, 0x6d, 0x2e, 0x44, 0x42, 0x2c, 0x20, 0x63, 0x74, 0x78, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x6f, 0x73, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x29, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x73, 0x20, 0x5b, 0x5d, 0x2a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0xa, 0x9, 0x2f, 0x2f, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x20, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xa, 0x9, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0xa, 0x7d, 0xa, 0xa, 0x66, 0x75, 0x6e, 0x63, 0x20, 0x28, 0x70, 0x20, 0x2a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x29, 0x20, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x64, 0x62, 0x20, 0x2a, 0x67, 0x6f, 0x72, 0x6d, 0x2e, 0x44, 0x42, 0x2c, 0x20, 0x63, 0x74, 0x78, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x6f, 0x73, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x29, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x73, 0x20, 0x5b, 0x5d, 0x2a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0xa, 0x9, 0x2f, 0x2f, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x75, 0x6e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x20, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xa, 0x9, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0xa, 0x7d, 0xa})
var PublishConfigureView = string([]byte{0x6d, 0x62, 0x20, 0x3a, 0x3d, 0x20, 0x62, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x28, 0x26, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x7b, 0x7d, 0x29, 0xa, 0x6d, 0x62, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x28, 0x22, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2c, 0x20, 0x22, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x2c, 0x20, 0x22, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2c, 0x20, 0x22, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x29, 0xa, 0xa, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x20, 0x3a, 0x3d, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x4e, 0x65, 0x77, 0x28, 0x44, 0x42, 0x2c, 0x20, 0x6e, 0x69, 0x6c, 0x29, 0xa, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x28, 0x62, 0x2c, 0x20, 0x44, 0x42, 0x2c, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x2c, 0x20, 0x6d, 0x62, 0x29, 0xa, 0xa, 0x2f, 0x2f, 0x20, 0x72, 0x75, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x20, 0x6a, 0x6f, 0x62, 0x20, 0x69, 0x66, 0x20, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0xa, 0x67, 0x6f, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x28, 0x44, 0x42, 0x2c, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x29})
var PublishConfigureView = string([]byte{0x6d, 0x62, 0x20, 0x3a, 0x3d, 0x20, 0x62, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x28, 0x26, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x7b, 0x7d, 0x29, 0xa, 0x6d, 0x62, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x28, 0x22, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x61, 0x72, 0x22, 0x2c, 0x20, 0x22, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x2c, 0x20, 0x22, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2c, 0x20, 0x22, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x29, 0xa, 0xa, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x20, 0x3a, 0x3d, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x4e, 0x65, 0x77, 0x28, 0x44, 0x42, 0x2c, 0x20, 0x6e, 0x69, 0x6c, 0x29, 0xa, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x28, 0x62, 0x2c, 0x20, 0x44, 0x42, 0x2c, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x2c, 0x20, 0x6d, 0x62, 0x29, 0xa, 0xa, 0x2f, 0x2f, 0x20, 0x72, 0x75, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x20, 0x6a, 0x6f, 0x62, 0x20, 0x69, 0x66, 0x20, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0xa, 0x67, 0x6f, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x28, 0x44, 0x42, 0x2c, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x29})
var RolePermEnableDBPolicy = string([]byte{0x70, 0x65, 0x72, 0x6d, 0x2e, 0x4e, 0x65, 0x77, 0x28, 0x29, 0x2e, 0xa, 0x9, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x28, 0xa, 0x9, 0x2f, 0x2f, 0x20, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x20, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0xa, 0x9, 0x29, 0x2e, 0xa, 0x9, 0x44, 0x42, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x28, 0x70, 0x65, 0x72, 0x6d, 0x2e, 0x4e, 0x65, 0x77, 0x44, 0x42, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x28, 0x64, 0x62, 0x29, 0x29})
var RoleSetResources = string([]byte{0x72, 0x62, 0x20, 0x3a, 0x3d, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x4e, 0x65, 0x77, 0x28, 0x64, 0x62, 0x29, 0x2e, 0xa, 0x9, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x28, 0x5b, 0x5d, 0x2a, 0x76, 0x75, 0x65, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x7b, 0xa, 0x9, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x41, 0x6c, 0x6c, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x22, 0x2a, 0x22, 0x7d, 0x2c, 0xa, 0x9, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x22, 0x2a, 0x3a, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x3a, 0x2a, 0x22, 0x7d, 0x2c, 0xa, 0x9, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x22, 0x2a, 0x3a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x3a, 0x2a, 0x22, 0x7d, 0x2c, 0xa, 0x9, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x22, 0x2a, 0x3a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x3a, 0x2a, 0x22, 0x7d, 0x2c, 0xa, 0x9, 0x7d, 0x29})
var RoleSetActions = string([]byte{0x2f, 0x2f, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0xa, 0x72, 0x62, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x5b, 0x5d, 0x2a, 0x76, 0x75, 0x65, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x7b, 0xa, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x41, 0x6c, 0x6c, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x22, 0x2a, 0x22, 0x7d, 0x2c, 0xa, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x7d, 0x2c, 0xa, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x47, 0x65, 0x74, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x47, 0x65, 0x74, 0x7d, 0x2c, 0xa, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x7d, 0x2c, 0xa, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x7d, 0x2c, 0xa, 0x9, 0x7b, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x22, 0x2c, 0x20, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x7d, 0x2c, 0xa, 0x7d, 0x29})
Expand Down

0 comments on commit 0e4893e

Please sign in to comment.