trash

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	Browse *browse.Actions

	TrashRootPage          *TrashRootPage
	TrashWithSelectionPage *TrashWithSelectionPage

	TrashListPartial            *TrashListPartial
	TrashContextMenuWidget      *TrashContextMenuWidget
	FileDetailsSideSheetPartial *FileDetailsSideSheetPartial
	FileTabsPartial             *FileTabsPartial
	FileMetadataPartial         *FileMetadataPartial
	FileTagsPartial             *FileTagsPartial
	FileInfoPartial             *FileInfoPartial

	RestoreFileCmd *RestoreFileCmd
}

func NewActions

func NewActions(infra *common.Infra, browseActions *browse.Actions) *Actions

func (*Actions) Route

func (qq *Actions) Route(path string) string

type Download

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

func NewDownload

func NewDownload(infra *common.Infra) *Download

func (*Download) Handler

func (qq *Download) Handler(
	rw httpx.ResponseWriter,
	req *httpx.Request,
	ctx ctxx.Context,
) error

type FileDetailsSideSheetPartial

type FileDetailsSideSheetPartial struct {
	*actionx.Config
	// contains filtered or unexported fields
}

func NewFileDetailsSideSheetPartial

func NewFileDetailsSideSheetPartial(infra *common.Infra, actions *Actions) *FileDetailsSideSheetPartial

func (*FileDetailsSideSheetPartial) Data

func (*FileDetailsSideSheetPartial) Handler

func (*FileDetailsSideSheetPartial) ID

func (*FileDetailsSideSheetPartial) Widget

type FileDetailsSideSheetPartialData

type FileDetailsSideSheetPartialData struct {
	FileID string
}

type FileInfoPartial

type FileInfoPartial struct {
	*actionx.Config
	// contains filtered or unexported fields
}

func NewFileInfoPartial

func NewFileInfoPartial(infra *common.Infra, actions *Actions) *FileInfoPartial

func (*FileInfoPartial) Data

func (qq *FileInfoPartial) Data(fileID string) *FileInfoPartialData

func (*FileInfoPartial) Handler

func (qq *FileInfoPartial) Handler(rw httpx.ResponseWriter, req *httpx.Request, ctx ctxx.Context) error

func (*FileInfoPartial) Widget

type FileInfoPartialData

type FileInfoPartialData struct {
	FileID string
}

type FileMetadataPartial

type FileMetadataPartial struct {
	*actionx.Config
	// contains filtered or unexported fields
}

func NewFileMetadataPartial

func NewFileMetadataPartial(infra *common.Infra, actions *Actions) *FileMetadataPartial

func (*FileMetadataPartial) Data

func (*FileMetadataPartial) Handler

func (*FileMetadataPartial) Widget

type FileMetadataPartialData

type FileMetadataPartialData struct {
	FileID string
}

type FileTabsPartial

type FileTabsPartial struct {
	*actionx.Config
	// contains filtered or unexported fields
}

func NewFileTabsPartial

func NewFileTabsPartial(infra *common.Infra, actions *Actions) *FileTabsPartial

func (*FileTabsPartial) Data

func (qq *FileTabsPartial) Data(fileID, activeTab string) *FileTabsPartialData

func (*FileTabsPartial) Handler

func (qq *FileTabsPartial) Handler(rw httpx.ResponseWriter, req *httpx.Request, ctx ctxx.Context) error

func (*FileTabsPartial) Widget

func (qq *FileTabsPartial) Widget(
	ctx ctxx.Context,
	state *FileTabsPartialState,
	fileID string,
) *wx.TabBar

type FileTabsPartialData

type FileTabsPartialData struct {
	FileID    string
	ActiveTab string
}

type FileTabsPartialState

type FileTabsPartialState struct {
	ActiveTab       string `url:"tab,omitempty"`
	ActiveSideSheet string `url:"side_sheet,omitempty"`
}

type FileTagsPartial

type FileTagsPartial struct {
	*actionx.Config
	// contains filtered or unexported fields
}

func NewFileTagsPartial

func NewFileTagsPartial(infra *common.Infra, actions *Actions) *FileTagsPartial

func (*FileTagsPartial) Data

func (qq *FileTagsPartial) Data(fileID string) *FileTagsPartialData

func (*FileTagsPartial) Handler

func (qq *FileTagsPartial) Handler(rw httpx.ResponseWriter, req *httpx.Request, ctx ctxx.Context) error

func (*FileTagsPartial) Widget

type FileTagsPartialData

type FileTagsPartialData struct {
	FileID string
}

type RestoreFileCmd

type RestoreFileCmd struct {
	*actionx.Config
	// contains filtered or unexported fields
}

func NewRestoreFileCmd

func NewRestoreFileCmd(infra *common.Infra, actions *Actions) *RestoreFileCmd

func (*RestoreFileCmd) Data

func (qq *RestoreFileCmd) Data(fileID string) *RestoreFileCmdData

func (*RestoreFileCmd) DataWithOptions

func (qq *RestoreFileCmd) DataWithOptions(fileID string) *RestoreFileCmdData

func (*RestoreFileCmd) Handler

func (qq *RestoreFileCmd) Handler(rw httpx.ResponseWriter, req *httpx.Request, ctx ctxx.Context) error

type RestoreFileCmdData

type RestoreFileCmdData struct {
	FileID string
}

type TrashContextMenuWidget added in v1.8.0

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

func NewTrashContextMenuWidget added in v1.8.0

func NewTrashContextMenuWidget(actions *Actions) *TrashContextMenuWidget

func (*TrashContextMenuWidget) Widget added in v1.8.0

func (qq *TrashContextMenuWidget) Widget(ctx ctxx.Context, filex *enttenant.File) *wx.Menu

type TrashListPartial

type TrashListPartial struct {
	*actionx.Config
	// contains filtered or unexported fields
}

func NewTrashListPartial

func NewTrashListPartial(infra *common.Infra, actions *Actions) *TrashListPartial

func (*TrashListPartial) Data

func (qq *TrashListPartial) Data(selectedFileID string) *TrashListPartialData

func (*TrashListPartial) Handler

func (qq *TrashListPartial) Handler(rw httpx.ResponseWriter, req *httpx.Request, ctx ctxx.Context) error

func (*TrashListPartial) ListID

func (qq *TrashListPartial) ListID() string

func (*TrashListPartial) Widget

type TrashListPartialData

type TrashListPartialData struct {
	SelectedFileID string
}

type TrashRootPage

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

func NewTrashRootPage

func NewTrashRootPage(infra *common.Infra, actions *Actions) *TrashRootPage

func (*TrashRootPage) Handler

func (qq *TrashRootPage) Handler(
	rw httpx.ResponseWriter,
	req *httpx.Request,
	ctx ctxx.Context,
) error

type TrashWithSelectionPage

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

func NewTrashWithSelectionPage

func NewTrashWithSelectionPage(infra *common.Infra, actions *Actions) *TrashWithSelectionPage

func (*TrashWithSelectionPage) Handler

func (qq *TrashWithSelectionPage) Handler(
	rw httpx.ResponseWriter,
	req *httpx.Request,
	ctx ctxx.Context,
) error

Jump to

Keyboard shortcuts

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