releaseTable

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	DataIndex string `json:"dataIndex,omitempty"`
	Title     string `json:"title,omitempty"`
	Sorter    bool   `json:"sorter"`
	Align     string `json:"align,omitempty"`
}

type Command

type Command struct {
	JumpOut bool   `json:"jumpOut,omitempty"`
	Key     string `json:"key,omitempty"`
	Target  string `json:"target,omitempty"`
}

type ComponentReleaseTable

type ComponentReleaseTable struct {
	Type       string                 `json:"type,omitempty"`
	Data       Data                   `json:"data"`
	Props      Props                  `json:"props"`
	State      State                  `json:"state"`
	Operations map[string]interface{} `json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentReleaseTable) DecodeURLQuery

func (r *ComponentReleaseTable) DecodeURLQuery() error

func (*ComponentReleaseTable) EncodeURLQuery

func (r *ComponentReleaseTable) EncodeURLQuery() error

func (*ComponentReleaseTable) GenComponentState

func (r *ComponentReleaseTable) GenComponentState(component *cptype.Component) error

func (*ComponentReleaseTable) InitComponent

func (r *ComponentReleaseTable) InitComponent(ctx context.Context)

func (*ComponentReleaseTable) Render

func (*ComponentReleaseTable) RenderTable

func (*ComponentReleaseTable) SetComponentValue

func (r *ComponentReleaseTable) SetComponentValue()

func (*ComponentReleaseTable) Transfer

func (r *ComponentReleaseTable) Transfer(c *cptype.Component)

type Creator

type Creator struct {
	RenderType string   `json:"renderType,omitempty"`
	Value      []string `json:"value,omitempty"`
}

type Data

type Data struct {
	List []Item `json:"list,omitempty"`
}

type DoubleRowWithIcon

type DoubleRowWithIcon struct {
	RenderType   string       `json:"renderType,omitempty"`
	Value        string       `json:"value,omitempty"`
	ExtraContent ExtraContent `json:"extraContent"`
}

type ExtraContent

type ExtraContent struct {
	RenderType string     `json:"renderType,omitempty"`
	ShowCount  int        `json:"showCount,omitempty"`
	Value      []TagValue `json:"value"`
}

type FilterValues

type FilterValues struct {
	BranchID          string   `json:"branchID,omitempty"`
	CommitID          string   `json:"commitID,omitempty"`
	UserIDs           []string `json:"userIDs,omitempty"`
	CreatedAtStartEnd []int64  `json:"createdAtStartEnd,omitempty"`
	ReleaseID         string   `json:"releaseID,omitempty"`
	ApplicationIDs    []string `json:"applicationIDs,omitempty"`
	Latest            string   `json:"latest,omitempty"`
	Version           string   `json:"version,omitempty"`
	Tags              []uint64 `json:"tags,omitempty"`
}

type Item

type Item struct {
	ID              string            `json:"id,omitempty"`
	Version         DoubleRowWithIcon `json:"version,omitempty"`
	Formal          *TagsRow          `json:"formal,omitempty"`
	Application     string            `json:"application,omitempty"`
	Desc            string            `json:"desc,omitempty"`
	Creator         Creator           `json:"creator,omitempty"`
	CreatedAt       string            `json:"createdAt,omitempty"`
	Operations      TableOperations   `json:"operations"`
	BatchOperations []string          `json:"batchOperations,omitempty"`
}

type Operation

type Operation struct {
	Command     Command                `json:"command"`
	Confirm     string                 `json:"confirm,omitempty"`
	Key         string                 `json:"key,omitempty"`
	Reload      bool                   `json:"reload"`
	Text        string                 `json:"text,omitempty"`
	Meta        map[string]interface{} `json:"meta,omitempty"`
	SuccessMsg  string                 `json:"successMsg,omitempty"`
	Disabled    bool                   `json:"disabled,omitempty"`
	DisabledTip string                 `json:"disabledTip,omitempty"`
}

type Props

type Props struct {
	RequestIgnore   []string `json:"requestIgnore"`
	BatchOperations []string `json:"batchOperations,omitempty"`
	Selectable      bool     `json:"selectable"`
	Columns         []Column `json:"columns,omitempty"`
	PageSizeOptions []string `json:"pageSizeOptions,omitempty"`
	RowKey          string   `json:"rowKey,omitempty"`
}

type Sorter

type Sorter struct {
	Field string `json:"field,omitempty"`
	Order string `json:"order,omitempty"`
}

type State

type State struct {
	ReleaseTableURLQuery string       `json:"releaseTable__urlQuery"`
	PageNo               int64        `json:"pageNo"`
	PageSize             int64        `json:"pageSize"`
	Total                int64        `json:"total"`
	SelectedRowKeys      []string     `json:"selectedRowKeys,omitempty"`
	Sorter               Sorter       `json:"sorterData"`
	IsProjectRelease     bool         `json:"isProjectRelease"`
	ProjectID            int64        `json:"projectID"`
	IsFormal             *bool        `json:"isFormal,omitempty"`
	FilterValues         FilterValues `json:"filterValues"`
	ApplicationID        int64        `json:"applicationID"`
}

type TableOperations

type TableOperations struct {
	Operations map[string]interface{} `json:"operations,omitempty"`
	RenderType string                 `json:"renderType,omitempty"`
}

type TagValue

type TagValue struct {
	Label string `json:"label,omitempty"`
	Color string `json:"color,omitempty"`
}

type TagsRow

type TagsRow struct {
	RenderType string   `json:"renderType,omitempty"`
	Size       string   `json:"size,omitempty"`
	Value      TagValue `json:"value"`
}

Jump to

Keyboard shortcuts

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