components

package
v0.0.0-...-15a64de Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DesktopMode bool
)
View Source
var DrawerOpen bool

Functions

func GetIdentityFromState

func GetIdentityFromState(ctx app.Context) (identity *saltyim.Identity, err error)

func GetStateFromState

func GetStateFromState(ctx app.Context) (state *saltyim.State, err error)
func NavigationUpdate(ctx app.Context)

func PageBody

func PageBody(pageContent ...app.UI) app.UI

PageBody applies the navigation, update banner, and demo page layout to the provided pageContent.

func SetIdentityToState

func SetIdentityToState(ctx app.Context, identity *saltyim.Identity) (err error)

func SetStateToState

func SetStateToState(ctx app.Context, state *saltyim.State) (err error)

Types

type AppUpdateBanner

type AppUpdateBanner struct {
	app.Compo
	// contains filtered or unexported fields
}

AppUpdateBanner prompts the user to update the application when the version changes

func (*AppUpdateBanner) OnAppUpdate

func (d *AppUpdateBanner) OnAppUpdate(ctx app.Context)

func (*AppUpdateBanner) OnMount

func (d *AppUpdateBanner) OnMount(ctx app.Context)

func (*AppUpdateBanner) Render

func (d *AppUpdateBanner) Render() app.UI

type ChatBox

type ChatBox struct {
	app.Compo
	base.JsUtil
	// User is who we're conversing with
	User string
	// contains filtered or unexported fields
}

func (*ChatBox) OnMount

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

func (*ChatBox) OnResize

func (c *ChatBox) OnResize(ctx app.Context)

func (*ChatBox) Render

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

func (*ChatBox) UpdateMessages

func (c *ChatBox) UpdateMessages(ctx app.Context)

type ChatMessage

type ChatMessage struct {
	app.Compo
	Self bool

	Message *lextwt.SaltyText
	// contains filtered or unexported fields
}

func (*ChatMessage) OnMount

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

func (*ChatMessage) Render

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

type Configuration

type Configuration struct {
	app.Compo
	base.JsUtil

	// to support removal
	Contacts []string
	// contains filtered or unexported fields
}

func (*Configuration) OnMount

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

func (*Configuration) Render

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

type ModalDialog

type ModalDialog struct {
	app.Compo
	// contains filtered or unexported fields
}

func (*ModalDialog) Render

func (m *ModalDialog) Render() app.UI

func (*ModalDialog) ShowDialog

func (m *ModalDialog) ShowDialog(title string, msg ...string)

func (*ModalDialog) ShowError

func (m *ModalDialog) ShowError(msg ...string)
type Navigation struct {
	app.Compo
	Type drawer.Type

	Contacts []string
	// contains filtered or unexported fields
}
func (n *Navigation) HasContact(addr string) bool
func (n *Navigation) LoadFromStorage(ctx app.Context)
func (n *Navigation) OnMount(ctx app.Context)
func (n *Navigation) Render() app.UI

type NewChat

type NewChat struct {
	app.Compo
	base.JsUtil
	// contains filtered or unexported fields
}

func (*NewChat) Render

func (n *NewChat) Render() app.UI

type SaltyChat

type SaltyChat struct {
	app.Compo
	base.JsUtil
	// contains filtered or unexported fields
}

SaltyChat ...

func (*SaltyChat) OnAppInstallChange

func (h *SaltyChat) OnAppInstallChange(ctx app.Context)

func (*SaltyChat) OnMount

func (h *SaltyChat) OnMount(ctx app.Context)

func (*SaltyChat) OnNav

func (h *SaltyChat) OnNav(ctx app.Context)

func (*SaltyChat) OnPreRender

func (h *SaltyChat) OnPreRender(ctx app.Context)

func (*SaltyChat) OnResize

func (h *SaltyChat) OnResize(ctx app.Context)

func (*SaltyChat) Render

func (h *SaltyChat) Render() app.UI

Jump to

Keyboard shortcuts

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