ui

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2016 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package ui contains UI-related functions

Package ui contains UI-related functions

Index

Constants

View Source
const Global = "global"

Global is the global network name

Variables

This section is empty.

Functions

func AcceptInvite

func AcceptInvite(network, channel string)

AcceptInvite accepts an invite

func Autocomplete

func Autocomplete()

Autocomplete things

func CancelChannelAdding

func CancelChannelAdding(network string)

CancelChannelAdding closes the channel adder

func CancelNewNetwork

func CancelNewNetwork()

CancelNewNetwork cancels adding a new network

func CancelNewScript

func CancelNewScript()

CancelNewScript cancels adding a new script

func ChannelFilter

func ChannelFilter(channel string) string

ChannelFilter filters the given channel name into a string usable in jQuery

func ChannelHasNewMessages

func ChannelHasNewMessages(network, channel string)

ChannelHasNewMessages adds the new-messages class to the channel switcher

func ClearActiveHistory

func ClearActiveHistory()

ClearActiveHistory clears the history of the active channel

func ClearHistory

func ClearHistory(network, channel string)

ClearHistory clears the history of the given channel on the given network

func CloseChannel

func CloseChannel(network, channel string)

CloseChannel closes a channel

func CloseNetworkEditor

func CloseNetworkEditor()

CloseNetworkEditor closes the network editor

func CloseRawIO

func CloseRawIO()

CloseRawIO closes the raw io panel

func CloseScriptEditor

func CloseScriptEditor()

CloseScriptEditor closes the script editor

func CloseSettings

func CloseSettings()

CloseSettings closes the settings view

func ContextChannel

func ContextChannel(event *js.Object)

ContextChannel shows the context menu for a channel message container

func ContextChannelSwitcher

func ContextChannelSwitcher(event *js.Object, network, channel string)

ContextChannelSwitcher shows the context menu for a channel switcher

func ContextMessage

func ContextMessage(event *js.Object, id int64)

ContextMessage shows the context menu for a message

func ContextMessageClick

func ContextMessageClick(command string, id int64)

ContextMessageClick ...

func ContextNetworkSwitcher

func ContextNetworkSwitcher(event *js.Object, network string)

ContextNetworkSwitcher shows the context menu for a network switcher

func ContextNetworkSwitcherClick

func ContextNetworkSwitcherClick(command, network string)

ContextNetworkSwitcherClick ...

func ContextUserlistEntry

func ContextUserlistEntry(event *js.Object, network, user string)

ContextUserlistEntry shows the context menu for an userlist entry

func ContextUserlistEntryClick

func ContextUserlistEntryClick(command, network, user string)

ContextUserlistEntryClick ...

func CreateRawIO

func CreateRawIO(network string)

CreateRawIO creates a raw io box for the given network

func DeleteNetwork

func DeleteNetwork(net string)

DeleteNetwork deletes a network

func DeleteScript

func DeleteScript()

DeleteScript deletes a script

func FinishChannelAdding

func FinishChannelAdding(network string)

FinishChannelAdding finishes adding a channel

func FinishInvite

func FinishInvite()

FinishInvite invites the person given and closes the invite box

func FinishNewNetwork

func FinishNewNetwork()

FinishNewNetwork ...

func FinishNewScript

func FinishNewScript()

FinishNewScript creates the script with the name in the adder box and closes the adder

func FinishTitleEdit

func FinishTitleEdit()

FinishTitleEdit finishes editing the title

func GetActiveChannel

func GetActiveChannel() string

GetActiveChannel gets the name of the active channel

func GetActiveChannelObj

func GetActiveChannelObj() jquery.JQuery

GetActiveChannelObj gets the active channel container

func GetActiveNetwork

func GetActiveNetwork() string

GetActiveNetwork gets the name of the active network

func GetActiveNetworkObj

func GetActiveNetworkObj() jquery.JQuery

GetActiveNetworkObj gets the active network container

func GetChannel

func GetChannel(network, channel string) jquery.JQuery

GetChannel returns the container for the channel with the given name

func GetHighlight

func GetHighlight(network, message string) *data.HighlightMatch

GetHighlight gets the first highlight match

func GetHistory

func GetHistory(network, channel string, n int)

GetHistory gets n messages of the history of channel @ network

func GetNetwork

func GetNetwork(network string) jquery.JQuery

GetNetwork returns the container for the network with the given name

func HideContextMenu

func HideContextMenu()

HideContextMenu hides the context menu

func HideModal

func HideModal()

HideModal hides the modal container and deletes the contents of the modal

func IsUserlistHidden

func IsUserlistHidden() bool

IsUserlistHidden checks if the userlist is currently hidden by user action or lack of content

func NetworkFilter

func NetworkFilter(network string) string

NetworkFilter filters the given network name into a string usable in jQuery

func NotifyMessage

func NotifyMessage(network, channel, sender, message string, highlight bool)

NotifyMessage shows necessary notifications

func OnChangeFont

func OnChangeFont()

OnChangeFont changes the website font

func OnChangeHighlights

func OnChangeHighlights()

OnChangeHighlights updates the highlights in the data store

func OnChangeNick

func OnChangeNick()

OnChangeNick updates the IRC nick

func OnChangeNotifications

func OnChangeNotifications()

OnChangeNotifications updates the notification level in the data store

func OpenChannel

func OpenChannel(network, channel string, byUser bool)

OpenChannel opens a channel

func OpenChannelAdder

func OpenChannelAdder(network string)

OpenChannelAdder opens the channel adder for the given network

func OpenFullImageModal

func OpenFullImageModal(src string, id int64)

OpenFullImageModal ...

func OpenMessageView

func OpenMessageView()

OpenMessageView switches to the message view

func OpenNetwork

func OpenNetwork(network string)

OpenNetwork opens a network

func OpenNetworkEditor

func OpenNetworkEditor()

OpenNetworkEditor opens the network editor

func OpenNetworksView

func OpenNetworksView()

OpenNetworksView switches to the network list view

func OpenOper

func OpenOper(network string)

OpenOper opens the OPER authentication modal

func OpenPM

func OpenPM(network, user string)

OpenPM opens a private query with the given user on the given network

func OpenRawIO

func OpenRawIO(network string)

OpenRawIO opens the raw io panel

func OpenScriptEditor

func OpenScriptEditor(net string)

OpenScriptEditor opens the script editor

func OpenSettings

func OpenSettings()

OpenSettings opens the settings view

func OpenUserlistView

func OpenUserlistView()

OpenUserlistView switches to the userlist view

func OpenWhoisModal

func OpenWhoisModal(data messages.WhoisData)

OpenWhoisModal opens the WHOIS data modal

func OperSend

func OperSend()

OperSend sends oper authentication to the server

func PartActiveChannel

func PartActiveChannel()

PartActiveChannel leaves the active channel

func PartChannel

func PartChannel(network, channel string)

PartChannel leaves the given channel on the given network

func Receive

func Receive(msg messages.Message, isNew bool)

Receive messages

func RenameScript

func RenameScript()

RenameScript renames a script

func SaveNetwork

func SaveNetwork(net string)

SaveNetwork saves a network

func SaveScript

func SaveScript()

SaveScript saves the open script

func ScrollDown

func ScrollDown()

ScrollDown scrolls the message pane to the bottom

func Send

func Send()

Send messages

func SendNotification

func SendNotification(net, ch, user, message string)

SendNotification sends a notification to the desktop

func SendRaw

func SendRaw(net string)

SendRaw sends the message in the raw io input box

func SetNetworkConnected

func SetNetworkConnected(net string, connected bool)

SetNetworkConnected sets the connected status of a network

func ShowContextMenu

func ShowContextMenu(event *js.Object)

ShowContextMenu shows the context menu

func ShowModal

func ShowModal()

ShowModal shows the modal container

func StartInvite

func StartInvite()

StartInvite opens the invite box

func StartNewNetwork

func StartNewNetwork()

StartNewNetwork opens the network adder

func StartNewScript

func StartNewScript()

StartNewScript opens the script adder

func StartTitleEdit

func StartTitleEdit()

StartTitleEdit opens the title editor

func StopInvite

func StopInvite()

StopInvite closes the invite box

func StopTitleEdit

func StopTitleEdit()

StopTitleEdit stops editing the title

func SwitchClearScript

func SwitchClearScript()

SwitchClearScript clears the open script

func SwitchNetwork

func SwitchNetwork(net string)

SwitchNetwork switches the network being edited

func SwitchScript

func SwitchScript(name string)

SwitchScript switches the open script

func SwitchTo

func SwitchTo(network, channel string)

SwitchTo switches to the given channel on the given network

func SwitchToClear

func SwitchToClear()

SwitchToClear switches to a empty message view

func ToggleNetworksView

func ToggleNetworksView()

ToggleNetworksView toggles between the network and message view

func ToggleUserlist

func ToggleUserlist(manual bool)

ToggleUserlist opens or closes the userlist based on its current state

func ToggleUserlistView

func ToggleUserlistView()

ToggleUserlistView toggles between the userlist and message view

func TryJoinMessage

func TryJoinMessage(msg messages.Message) bool

TryJoinMessage tries to join the message with the one above

func UpdateTitle

func UpdateTitle()

UpdateTitle updates the title

func UpdateUserlist

func UpdateUserlist()

UpdateUserlist updates the userlist contents

func UpdateValues

func UpdateValues()

UpdateValues updates values within the settings view

func WasUserlistHiddenManually

func WasUserlistHiddenManually() bool

WasUserlistHiddenManually checks if the userlist was hidden by the user

Types

type MessageTemplateData

type MessageTemplateData struct {
	Sender   string
	Date     string
	DateFull string
	Message  string

	Class     string
	WrapClass string
	Clipboard string
	Highlight bool
	OwnMsg    bool
	Joined    bool
	IsAction  bool
	ID        int64
	Timestamp int64
	Preview   PreviewTemplateData
	// contains filtered or unexported fields
}

MessageTemplateData contains things

type PreviewTemplateData

type PreviewTemplateData struct {
	PreviewImage bool
	PreviewText  bool
	Image        string
	Title        string
	Sitename     string
	Description  string
}

PreviewTemplateData contains more things

Jump to

Keyboard shortcuts

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