views

package
v1.0.60 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

Index

Constants

View Source
const (
	PublicationObject ActivityObject = iota
	DatasetObject

	CreateEvent ActivityEvent = iota
	PublishEvent
	RepublishEvent
	WithdrawEvent
	LockEvent
	UnlockEvent
	UpdateEvent
	MessageEvent
)

Variables

This section is empty.

Functions

func AddImpersonation added in v1.0.56

func AddImpersonation(c *ctx.Ctx) templ.Component

func AddImpersonationSuggest added in v1.0.56

func AddImpersonationSuggest(c *ctx.Ctx, firstName string, lastName string, hits []*models.Person) templ.Component

func BadgeLocked added in v1.0.56

func BadgeLocked() templ.Component

func BadgeStatus added in v1.0.56

func BadgeStatus(s string) templ.Component
func Breadcrumbs(c *ctx.Ctx, crumbs []Breadcrumb) templ.Component

func CSRFTag added in v1.0.56

func CSRFTag(c *ctx.Ctx) templ.Component

func Cat added in v1.0.56

func Cat(components ...templ.Component) templ.Component

func CloseModal added in v1.0.59

func CloseModal() templ.Component

func CloseModalAndReplace added in v1.0.56

func CloseModalAndReplace(selector string, component templ.Component) templ.Component

func ConfirmDeleteDialog added in v1.0.56

func ConfirmDeleteDialog(args ConfirmDeleteDialogArgs) templ.Component

func CreatedBy added in v1.0.56

func CreatedBy(c *ctx.Ctx, createdAt *time.Time, createdBy *models.Person) string

func DashboardIcon

func DashboardIcon(c *ctx.Ctx, notification bool) templ.Component

func ErrorDialog added in v1.0.56

func ErrorDialog(message string) templ.Component

func ErrorDialogWithOptions added in v1.0.56

func ErrorDialogWithOptions(message string, opts ErrorDialogOptions) templ.Component

func Facet added in v1.0.56

func Facet(c *ctx.Ctx, args FacetArgs, searchArgs *models.SearchArgs) templ.Component

func FacetLine added in v1.0.56

func FacetLine() templ.Component

func FacetSince added in v1.0.56

func FacetSince(c *ctx.Ctx, fieldName string, title string, description string, searchArgs *models.SearchArgs) templ.Component

func Facets added in v1.0.56

func Facets(c *ctx.Ctx, searchArgs *models.SearchArgs) templ.Component

func FlashMessages added in v1.0.59

func FlashMessages(c *ctx.Ctx) templ.Component

func FormErrorsDialog added in v1.0.56

func FormErrorsDialog(title string, errors []string) templ.Component

func Home

func Home(c *ctx.Ctx) templ.Component

func InternalServerError

func InternalServerError(c *ctx.Ctx) templ.Component

func NotFound

func NotFound(c *ctx.Ctx) templ.Component

func PageLayout added in v1.0.56

func PageLayout(c *ctx.Ctx, args PageLayoutArgs) templ.Component

func Pagination added in v1.0.56

func Pagination(c *ctx.Ctx, baseURL *url.URL, searchArgs *models.SearchArgs, p pag.Pagination) templ.Component

func PaginationCount added in v1.0.56

func PaginationCount(c *ctx.Ctx, p pag.Pagination) string

func Query added in v1.0.56

func Query(c *ctx.Ctx, searchArgs *models.SearchArgs) templ.Component

func RecentActivity

func RecentActivity(c *ctx.Ctx, acts []Activity) templ.Component

func Replace added in v1.0.56

func Replace(selector string, component templ.Component) templ.Component

func ReplaceModal added in v1.0.56

func ReplaceModal(component templ.Component) templ.Component

func ShowModal added in v1.0.56

func ShowModal(component templ.Component) templ.Component

func UpdatedBy added in v1.0.56

func UpdatedBy(c *ctx.Ctx, updatedAt *time.Time, updatedBy *models.Person, lastUpdatedBy *models.Person) string

func UserNotFound added in v1.0.55

func UserNotFound(c *ctx.Ctx) templ.Component

Types

type Activity

type Activity struct {
	Event     ActivityEvent
	User      *models.Person
	Object    ActivityObject
	Datestamp time.Time
	Status    string
	URL       string
	Title     string
}

type ActivityEvent

type ActivityEvent int

type ActivityObject

type ActivityObject int
type Breadcrumb struct {
	LabelID string
	URL     *url.URL
}

type ConfirmDeleteDialogArgs added in v1.0.56

type ConfirmDeleteDialogArgs struct {
	Context    *ctx.Ctx
	Question   string
	DeleteUrl  *url.URL
	SnapshotID string
}

type ErrorDialogOptions added in v1.0.56

type ErrorDialogOptions struct {
	RedirectURL string
}

type FacetArgs added in v1.0.56

type FacetArgs struct {
	FieldName      string
	Title          string
	LocPrefix      string
	LocPrefixShort string
	FacetValues    models.FacetValues
	HideSelectAll  bool
}

type PageLayoutArgs added in v1.0.59

type PageLayoutArgs struct {
	Title       string
	Meta        templ.Component
	Breadcrumbs []Breadcrumb
}

type URLBuilder added in v1.0.56

type URLBuilder struct {
	// contains filtered or unexported fields
}

func URL added in v1.0.56

func URL(base *url.URL) *URLBuilder

func URLFromString added in v1.0.56

func URLFromString(base string) *URLBuilder

func (*URLBuilder) AddQueryParam added in v1.0.56

func (builder *URLBuilder) AddQueryParam(key string, value string) *URLBuilder

func (*URLBuilder) ClearQuery added in v1.0.56

func (builder *URLBuilder) ClearQuery() *URLBuilder

func (*URLBuilder) Path added in v1.0.56

func (builder *URLBuilder) Path(path ...string) *URLBuilder

func (*URLBuilder) Query added in v1.0.56

func (builder *URLBuilder) Query(query interface{}) *URLBuilder

func (*URLBuilder) QueryAdd added in v1.0.56

func (builder *URLBuilder) QueryAdd(pairs ...string) *URLBuilder

func (*URLBuilder) QuerySet added in v1.0.56

func (builder *URLBuilder) QuerySet(pairs ...string) *URLBuilder

func (*URLBuilder) SafeURL added in v1.0.56

func (builder *URLBuilder) SafeURL() templ.SafeURL

func (*URLBuilder) SetQueryParam added in v1.0.56

func (builder *URLBuilder) SetQueryParam(key string, value string) *URLBuilder

func (*URLBuilder) String added in v1.0.56

func (builder *URLBuilder) String() string

func (*URLBuilder) URL added in v1.0.56

func (builder *URLBuilder) URL() *url.URL

Directories

Path Synopsis
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
pages
templ: version: v0.2.747
templ: version: v0.2.747
summary
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
pages
templ: version: v0.2.747
templ: version: v0.2.747
summary
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747

Jump to

Keyboard shortcuts

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