components

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AboutModal

type AboutModal struct {
	app.Compo

	Open  bool
	Close func()

	ID string

	LogoSrc string
	LogoAlt string
	Title   string

	Body   app.UI
	Footer string
}

func (*AboutModal) OnMount

func (c *AboutModal) OnMount(ctx app.Context)

func (*AboutModal) Render

func (c *AboutModal) Render() app.UI

type Autofocused

type Autofocused struct {
	app.Compo

	Component app.UI
}

func (*Autofocused) OnUpdate

func (c *Autofocused) OnUpdate(ctx app.Context)

func (*Autofocused) Render

func (c *Autofocused) Render() app.UI
type Breadcrumbs struct {
	app.Compo

	PathComponents []string

	CurrentPath    string
	SetCurrentPath func(string)

	SelectedPath    string
	SetSelectedPath func(string)
}
func (c *Breadcrumbs) Render() app.UI

type CopyableInput

type CopyableInput struct {
	app.Compo

	Component app.UI
	ID        string
}

func (*CopyableInput) Render

func (c *CopyableInput) Render() app.UI

type DataShell

type DataShell struct {
	app.Compo

	// Config file editor
	ConfigFile    string
	SetConfigFile func(string)

	FormatConfigFile  func()
	RefreshConfigFile func()
	SaveConfigFile    func()

	ConfigFileError       error
	IgnoreConfigFileError func()

	// File explorer
	CurrentPath    string
	SetCurrentPath func(string)

	Index        []os.FileInfo
	RefreshIndex func()
	WriteToPath  func(string, []byte)

	HTTPShareLink url.URL
	TFTPShareLink url.URL
	SharePath     func(string)

	CreatePath      func(string)
	CreateEmptyFile func(string)
	DeletePath      func(string)
	MovePath        func(string, string)
	CopyPath        func(string, string)

	EditPathContents    string
	SetEditPathContents func(string)
	EditPath            func(string)

	WebDAVAddress  url.URL
	WebDAVUsername string
	WebDAVPassword string

	OperationIndex []os.FileInfo

	OperationCurrentPath    string
	OperationSetCurrentPath func(string)

	FileExplorerError        error
	RecoverFileExplorerError func(app.Context)
	IgnoreFileExplorerError  func()

	Events []providers.Event

	EventsError        error
	RecoverEventsError func(app.Context)
	IgnoreEventsError  func()

	// Identity
	UserInfo oidc.UserInfo
	Logout   func(app.Context)

	// Metadata
	UseAdvertisedIP    bool
	SetUseAdvertisedIP func(bool)

	UseAdvertisedIPForWebDAV    bool
	SetUseAdvertisedIPForWebDAV func(bool)

	SetUseHTTPS func(bool)
	SetUseDavs  func(bool)
	// contains filtered or unexported fields
}

func (*DataShell) Render

func (c *DataShell) Render() app.UI

type EmptyState

type EmptyState struct {
	app.Compo

	Action app.UI
}

func (*EmptyState) Render

func (c *EmptyState) Render() app.UI

type ExpandableSection

type ExpandableSection struct {
	app.Compo

	Open        bool
	OnToggle    func()
	Title       string
	ClosedTitle string
	OpenTitle   string
	Body        []app.UI
}

func (*ExpandableSection) Render

func (c *ExpandableSection) Render() app.UI

type FileExplorer

type FileExplorer struct {
	app.Compo

	CurrentPath    string
	SetCurrentPath func(string)

	Index        []os.FileInfo
	RefreshIndex func()
	WriteToPath  func(string, []byte)

	HTTPShareLink url.URL
	TFTPShareLink url.URL
	SharePath     func(string)

	CreatePath      func(string)
	CreateEmptyFile func(string)
	DeletePath      func(string)
	MovePath        func(string, string)
	CopyPath        func(string, string)

	EditPathContents    string
	SetEditPathContents func(string)
	EditPath            func(string)

	WebDAVAddress  url.URL
	WebDAVUsername string
	WebDAVPassword string

	OperationIndex []os.FileInfo

	OperationCurrentPath    string
	OperationSetCurrentPath func(string)

	UseAdvertisedIP    bool
	SetUseAdvertisedIP func(bool)

	UseAdvertisedIPForWebDAV    bool
	SetUseAdvertisedIPForWebDAV func(bool)

	SetUseHTTPS func(bool)
	SetUseDavs  func(bool)

	Nested bool

	GetContentType func(os.FileInfo) string
	// contains filtered or unexported fields
}

func (*FileExplorer) Render

func (c *FileExplorer) Render() app.UI

type FileGrid

type FileGrid struct {
	app.Compo

	Index []os.FileInfo

	SelectedPath    string
	SetSelectedPath func(string)

	CurrentPath    string
	SetCurrentPath func(string)

	Standalone bool
	// contains filtered or unexported fields
}

func (*FileGrid) Render

func (c *FileGrid) Render() app.UI

type FormGroup

type FormGroup struct {
	app.Compo

	Required     bool
	Label        app.UI
	Input        app.UI
	NoTopPadding bool
}

func (*FormGroup) Render

func (c *FormGroup) Render() app.UI

type Home

type Home struct {
	app.Compo
}

func (*Home) Render

func (c *Home) Render() app.UI
type Modal struct {
	app.Compo

	Open  bool
	Close func()

	ID      string
	Classes string

	Title  string
	Body   []app.UI
	Footer []app.UI

	Large        bool
	PaddedBottom bool
	Overlay      bool

	Nested bool
}

func (*Modal) OnMount

func (c *Modal) OnMount(ctx app.Context)

func (*Modal) Render

func (c *Modal) Render() app.UI
type Navbar struct {
	app.Compo

	NotificationsDrawerOpen       bool
	ToggleNotificationsDrawerOpen func()

	ToggleAbout func()

	OverflowMenuExpanded       bool
	ToggleOverflowMenuExpanded func()

	UserMenuExpanded       bool
	ToggleUserMenuExpanded func()

	UserEmail string
	Logout    func(app.Context)
}
func (c *Navbar) Render() app.UI

type Notification

type Notification struct {
	Message   string
	CreatedAt string
}

type NotificationDrawer

type NotificationDrawer struct {
	app.Compo

	Notifications []Notification
	EmptyState    app.UI
}

func (*NotificationDrawer) Render

func (c *NotificationDrawer) Render() app.UI

type PathPickerToolbar

type PathPickerToolbar struct {
	app.Compo

	Index        []os.FileInfo
	RefreshIndex func()

	PathComponents []string

	CurrentPath    string
	SetCurrentPath func(string)

	SelectedPath    string
	SetSelectedPath func(string)

	OpenCreateDirectoryModal func()
}

func (*PathPickerToolbar) Render

func (c *PathPickerToolbar) Render() app.UI

type SetupForm

type SetupForm struct {
	app.Compo

	Error        error
	ErrorMessage string

	BackendURL    string
	SetBackendURL func(string, app.Context)

	OIDCIssuer    string
	SetOIDCIssuer func(string, app.Context)

	OIDCClientID    string
	SetOIDCClientID func(string, app.Context)

	OIDCRedirectURL    string
	SetOIDCRedirectURL func(string, app.Context)

	Submit func(app.Context)
}

func (*SetupForm) Render

func (c *SetupForm) Render() app.UI

type SetupShell

type SetupShell struct {
	app.Compo

	LogoSrc          string
	Title            string
	ShortDescription string
	LongDescription  string
	HelpLink         string
	Links            map[string]string

	BackendURL      string
	OIDCIssuer      string
	OIDCClientID    string
	OIDCRedirectURL string

	SetBackendURL,
	SetOIDCIssuer,
	SetOIDCClientID,
	SetOIDCRedirectURL func(string, app.Context)
	ApplyConfig func(app.Context)

	Error error
}

func (*SetupShell) Render

func (c *SetupShell) Render() app.UI

type Status

type Status struct {
	app.Compo

	Error       error
	ErrorText   string
	Recover     func(app.Context)
	RecoverText string
	Ignore      func()
}

func (*Status) Render

func (c *Status) Render() app.UI

type Switch

type Switch struct {
	app.Compo

	ID string

	Open       bool
	ToggleOpen func()

	OnMessage  string
	OffMessage string
}

func (*Switch) Render

func (c *Switch) Render() app.UI

type TextEditor

type TextEditor struct {
	app.Compo

	Content    string
	SetContent func(string)

	Format  func()
	Refresh func()
	Save    func()

	Language       string
	VariableHeight bool
}

func (*TextEditor) Render

func (c *TextEditor) Render() app.UI

type TextEditorWrapper

type TextEditorWrapper struct {
	app.Compo

	Title    string
	HelpLink string

	Children app.UI

	Error            error
	ErrorDescription string
	Ignore           func()
}

func (*TextEditorWrapper) Render

func (c *TextEditorWrapper) Render() app.UI

type UpdateNotification

type UpdateNotification struct {
	app.Compo

	UpdateTitle       string
	UpdateDescription string

	StartUpdateText  string
	IgnoreUpdateText string
	// contains filtered or unexported fields
}

func (*UpdateNotification) OnMount

func (c *UpdateNotification) OnMount(ctx app.Context)

func (*UpdateNotification) Render

func (c *UpdateNotification) Render() app.UI

Jump to

Keyboard shortcuts

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