examples_presets

package
v3.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

@snippet_begin(PresetHelloWorldSample)

Index

Constants

View Source
const PresetsDetailPageCardsPath = "/samples/presets-detail-page-cards"

Variables

View Source
var Messages_en_US = &Messages{
	Admin:                   "Admin",
	Customers:               "Customers",
	Companies:               "Companies",
	CustomersName:           "Name",
	CustomersCompanyID:      "Company",
	CustomersDescription:    "Description",
	CompaniesName:           "Name",
	CustomersID:             "ID",
	CustomersCompany:        "Company",
	CustomersEmail:          "Email",
	Customer:                "Customer",
	CustomersFilterCreated:  "Created",
	CustomersFilterApproved: "Approved",
	CustomersFilterName:     "Name",
	CustomersFilterCompany:  "Company",
}
View Source
var Messages_zh_CN = &Messages{
	Admin:                   "管理系统",
	Customers:               "客户",
	Companies:               "公司",
	CustomersName:           "姓名",
	CustomersCompanyID:      "公司",
	CustomersDescription:    "描述",
	CompaniesName:           "公司名称",
	CustomersID:             "ID",
	CustomersCompany:        "公司",
	CustomersEmail:          "电子邮件",
	Customer:                "客户",
	CustomersFilterCreated:  "创建日",
	CustomersFilterApproved: "承认日",
	CustomersFilterName:     "名称",
	CustomersFilterCompany:  "属于公司",
}

Functions

func NotifierComponent

func NotifierComponent() func(ctx *web.EventContext) h.HTMLComponent

func NotifierCount

func NotifierCount() func(ctx *web.EventContext) int

func PresetsCustomizeMenu added in v3.0.3

func PresetsCustomizeMenu(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsDetailInlineEditDetails

func PresetsDetailInlineEditDetails(b *presets.Builder, db *gorm.DB) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsDetailInlineEditFieldSections

func PresetsDetailInlineEditFieldSections(b *presets.Builder, db *gorm.DB) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsDetailInlineEditInspectTables

func PresetsDetailInlineEditInspectTables(b *presets.Builder, db *gorm.DB) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsDetailInlineEditValidate added in v3.0.2

func PresetsDetailInlineEditValidate(b *presets.Builder, db *gorm.DB) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsDetailNestedMany added in v3.0.2

func PresetsDetailNestedMany(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsDetailSectionLabel added in v3.0.2

func PresetsDetailSectionLabel(b *presets.Builder, db *gorm.DB) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsEditingCustomizationDescription

func PresetsEditingCustomizationDescription(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsEditingCustomizationFileType

func PresetsEditingCustomizationFileType(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsEditingCustomizationValidation

func PresetsEditingCustomizationValidation(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsEditingSetter added in v3.0.3

func PresetsEditingSetter(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsEditingValidate added in v3.0.2

func PresetsEditingValidate(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsKeywordSearchOff added in v3.0.2

func PresetsKeywordSearchOff(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsListingCustomizationBulkActions

func PresetsListingCustomizationBulkActions(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsListingCustomizationSearcher

func PresetsListingCustomizationSearcher(b *presets.Builder, db *gorm.DB) (
	mb *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	dp *presets.DetailingBuilder,
)

func PresetsProfile

@snippet_begin(ProfileSample)

func SamplesHandler

func SamplesHandler(mux examples.Muxer)

Types

type Address

type Address struct {
	ID       int
	Province string
	City     string
	District string
}

type Company

type Company struct {
	ID   int
	Name string
}

type CreditCard

type CreditCard struct {
	ID              int
	CustomerID      int
	Number          string
	ExpireYearMonth string
	Name            string
	Type            string
	Phone           string
	Email           string
}

type Customer

type Customer struct {
	ID              int
	Name            string
	Email           string
	Description     string
	CompanyID       int
	CreatedAt       time.Time
	UpdatedAt       time.Time
	ApprovedAt      *time.Time
	TermAgreedAt    *time.Time
	ApprovalComment string
	Avatar          media_library.MediaBox
	CreditCards     []*CreditCard `gorm:"-"`
	Notes           []*Note       `gorm:"-"`
}

type Group

type Group struct {
	ID   uint
	Name string
}

type Messages

type Messages struct {
	Admin                   string
	Customers               string
	Companies               string
	CustomersName           string
	CustomersCompanyID      string
	CustomersDescription    string
	CompaniesName           string
	CustomersID             string
	CustomersCompany        string
	CustomersEmail          string
	Customer                string
	CustomersFilterCreated  string
	CustomersFilterApproved string
	CustomersFilterName     string
	CustomersFilterCompany  string
}

type MyFile

type MyFile string

type Note

type Note struct {
	ID         int
	SourceType string
	SourceID   int
	Content    string
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

type Page

type Page struct {
	ID   int
	Name string
}

type Post

type Post struct {
	ID        uint
	Title     string
	Body      string
	UpdatedAt time.Time
	CreatedAt time.Time
	Disabled  bool

	Status string

	CategoryID uint
}

type Product

type Product struct {
	ID        int
	Title     string
	MainImage MyFile
}

type User

type User struct {
	ID       uint
	Username string
}

@snippet_begin(PresetsPermissionsSample)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL