ui

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenAlbumCreateComponent

func OpenAlbumCreateComponent(uiApp *App, originPrimitive cview.Primitive)

func OpenAlbumEditComponent

func OpenAlbumEditComponent(uiApp *App, albumId restApiV1.AlbumId, albumMeta *restApiV1.AlbumMeta, originPrimitive cview.Primitive)

func OpenArtistCreateComponent

func OpenArtistCreateComponent(uiApp *App, originPrimitive cview.Primitive)

func OpenArtistEditComponent

func OpenArtistEditComponent(uiApp *App, artistId restApiV1.ArtistId, artistMeta *restApiV1.ArtistMeta, originPrimitive cview.Primitive)

func OpenPlaylistContentSaveAsComponent added in v0.4.0

func OpenPlaylistContentSaveAsComponent(uiApp *App, songIds []restApiV1.SongId, srcPlaylistId *restApiV1.PlaylistId, originPrimitive cview.Primitive)

func OpenPlaylistEditComponent

func OpenPlaylistEditComponent(uiApp *App, playlistId restApiV1.PlaylistId, playlistMeta *restApiV1.PlaylistMeta, originPrimitive cview.Primitive)

func OpenSongEditComponent

func OpenSongEditComponent(uiApp *App, song *restApiV1.Song, originPrimitive cview.Primitive)

func OpenUserCreateComponent

func OpenUserCreateComponent(uiApp *App, originPrimitive cview.Primitive)

func OpenUserEditComponent

func OpenUserEditComponent(uiApp *App, userId restApiV1.UserId, userMeta *restApiV1.UserMeta, originPrimitive cview.Primitive)

Types

type AlbumEditComponent

type AlbumEditComponent struct {
	*cview.Form
	// contains filtered or unexported fields
}

type App

type App struct {
	config.ClientConfig
	// contains filtered or unexported fields
}

func NewApp

func NewApp(clientConfig config.ClientConfig, restClient *restClientV1.RestClient) *App

func (*App) ClientErrorMessage

func (a *App) ClientErrorMessage(message string, cliErr restClientV1.ClientError)

func (*App) ConfirmAlbumDelete

func (a *App) ConfirmAlbumDelete(album *restApiV1.Album)

func (*App) ConfirmArtistDelete

func (a *App) ConfirmArtistDelete(artist *restApiV1.Artist)

func (*App) ConfirmExit

func (a *App) ConfirmExit()

func (*App) ConfirmPlaylistDelete

func (a *App) ConfirmPlaylistDelete(playlist *restApiV1.Playlist)

func (*App) ConfirmSongDelete

func (a *App) ConfirmSongDelete(song *restApiV1.Song)

func (*App) ConfirmUserDelete

func (a *App) ConfirmUserDelete(user *restApiV1.User)

func (*App) ConnectedUserId

func (a *App) ConnectedUserId() restApiV1.UserId

func (*App) CurrentComponent

func (a *App) CurrentComponent() *CurrentComponent

func (*App) HideExplicitSongForConnectedUser

func (a *App) HideExplicitSongForConnectedUser() bool

func (*App) IsConnectedUserAdmin

func (a *App) IsConnectedUserAdmin() bool

func (*App) LocalDb

func (a *App) LocalDb() *localdb.LocalDb

func (*App) Message

func (a *App) Message(message string)

func (*App) OpenModalMessage added in v0.4.1

func (a *App) OpenModalMessage(message string) *MfModal

func (*App) Play

func (a *App) Play(songId restApiV1.SongId)

func (*App) Reload

func (a *App) Reload()

func (*App) Start

func (a *App) Start()

func (*App) WarningMessage

func (a *App) WarningMessage(message string)

type ArtistEditComponent

type ArtistEditComponent struct {
	*cview.Form
	// contains filtered or unexported fields
}

type CurrentComponent

type CurrentComponent struct {
	*cview.Flex
	// contains filtered or unexported fields
}

func NewCurrentComponent

func NewCurrentComponent(uiApp *App) *CurrentComponent

func (*CurrentComponent) AddSong

func (c *CurrentComponent) AddSong(songId restApiV1.SongId)

func (*CurrentComponent) AddSongsFromAlbum

func (c *CurrentComponent) AddSongsFromAlbum(album *restApiV1.Album)

func (*CurrentComponent) AddSongsFromArtist

func (c *CurrentComponent) AddSongsFromArtist(artist *restApiV1.Artist)

func (*CurrentComponent) AddSongsFromPlaylist

func (c *CurrentComponent) AddSongsFromPlaylist(playlist *restApiV1.Playlist)

func (*CurrentComponent) Clear

func (c *CurrentComponent) Clear()

func (*CurrentComponent) Disable

func (c *CurrentComponent) Disable()

func (*CurrentComponent) Enable

func (c *CurrentComponent) Enable()

func (*CurrentComponent) Focus

func (c *CurrentComponent) Focus(delegate func(cview.Primitive))

func (*CurrentComponent) GetNextSong

func (c *CurrentComponent) GetNextSong() *restApiV1.SongId

func (*CurrentComponent) IsModified added in v0.3.0

func (c *CurrentComponent) IsModified() bool

func (*CurrentComponent) LoadSong

func (c *CurrentComponent) LoadSong(songId restApiV1.SongId)

func (*CurrentComponent) LoadSongsFromAlbum

func (c *CurrentComponent) LoadSongsFromAlbum(album *restApiV1.Album)

func (*CurrentComponent) LoadSongsFromArtist

func (c *CurrentComponent) LoadSongsFromArtist(artist *restApiV1.Artist)

func (*CurrentComponent) LoadSongsFromPlaylist

func (c *CurrentComponent) LoadSongsFromPlaylist(playlist *restApiV1.Playlist)

func (*CurrentComponent) RefreshView

func (c *CurrentComponent) RefreshView()

func (*CurrentComponent) SetModified

func (c *CurrentComponent) SetModified(modified bool)

type HelpComponent

type HelpComponent struct {
	*cview.Flex
	// contains filtered or unexported fields
}

func NewHelpComponent

func NewHelpComponent(uiApp *App) *HelpComponent

type LibraryComponent

type LibraryComponent struct {
	*cview.Flex
	// contains filtered or unexported fields
}

func NewLibraryComponent

func NewLibraryComponent(uiApp *App) *LibraryComponent

func (*LibraryComponent) Disable

func (c *LibraryComponent) Disable()

func (*LibraryComponent) Enable

func (c *LibraryComponent) Enable()

func (*LibraryComponent) Focus

func (c *LibraryComponent) Focus(delegate func(cview.Primitive))

func (*LibraryComponent) GoToAllAlbumsFilter

func (c *LibraryComponent) GoToAllAlbumsFilter()

func (*LibraryComponent) GoToAllArtistsFilter

func (c *LibraryComponent) GoToAllArtistsFilter()

func (*LibraryComponent) GoToAllPlaylistsFilter

func (c *LibraryComponent) GoToAllPlaylistsFilter()

func (*LibraryComponent) GoToAllSongsFilter

func (c *LibraryComponent) GoToAllSongsFilter()

func (*LibraryComponent) GoToAllUsersFilter

func (c *LibraryComponent) GoToAllUsersFilter()

func (*LibraryComponent) GoToFavoriteAlbumsFromUserFilter

func (c *LibraryComponent) GoToFavoriteAlbumsFromUserFilter(userId restApiV1.UserId)

func (*LibraryComponent) GoToFavoriteArtistsFromUserFilter

func (c *LibraryComponent) GoToFavoriteArtistsFromUserFilter(userId restApiV1.UserId)

func (*LibraryComponent) GoToFavoritePlaylistsFromUserFilter

func (c *LibraryComponent) GoToFavoritePlaylistsFromUserFilter(userId restApiV1.UserId)

func (*LibraryComponent) GoToFavoriteSongsFromUserFilter

func (c *LibraryComponent) GoToFavoriteSongsFromUserFilter(userId restApiV1.UserId)

func (*LibraryComponent) GoToMenuFilter

func (c *LibraryComponent) GoToMenuFilter()

func (*LibraryComponent) GoToPreviousFilter

func (c *LibraryComponent) GoToPreviousFilter()

func (*LibraryComponent) GoToSongsFromAlbumFilter

func (c *LibraryComponent) GoToSongsFromAlbumFilter(albumId restApiV1.AlbumId)

func (*LibraryComponent) GoToSongsFromArtistFilter

func (c *LibraryComponent) GoToSongsFromArtistFilter(artistId restApiV1.ArtistId)

func (*LibraryComponent) GoToSongsFromPlaylistFilter

func (c *LibraryComponent) GoToSongsFromPlaylistFilter(playlistId restApiV1.PlaylistId)

func (*LibraryComponent) GoToSongsFromUnknownAlbumFilter

func (c *LibraryComponent) GoToSongsFromUnknownAlbumFilter()

func (*LibraryComponent) GoToSongsFromUnknownArtistFilter

func (c *LibraryComponent) GoToSongsFromUnknownArtistFilter()

func (*LibraryComponent) RefreshList

func (c *LibraryComponent) RefreshList()

func (*LibraryComponent) RefreshView

func (c *LibraryComponent) RefreshView()

func (*LibraryComponent) ResetToMenuFilter

func (c *LibraryComponent) ResetToMenuFilter()

type MessageComponent

type MessageComponent struct {
	*cview.TextView
	// contains filtered or unexported fields
}

func NewMessageComponent

func NewMessageComponent(uiApp *App) *MessageComponent

func (*MessageComponent) SetMessage

func (c *MessageComponent) SetMessage(message string)

func (*MessageComponent) SetWarningMessage

func (c *MessageComponent) SetWarningMessage(message string)

type MfModal added in v0.4.1

type MfModal struct {
	*cview.Modal
	// contains filtered or unexported fields
}

func (*MfModal) Close added in v0.4.1

func (m *MfModal) Close()

type PlayerComponent

type PlayerComponent struct {
	*cview.Flex
	// contains filtered or unexported fields
}

func NewPlayerComponent

func NewPlayerComponent(uiApp *App, volume int) *PlayerComponent

func (*PlayerComponent) Disable

func (c *PlayerComponent) Disable()

func (*PlayerComponent) Enable

func (c *PlayerComponent) Enable()

func (*PlayerComponent) GetVolume

func (c *PlayerComponent) GetVolume() int

func (*PlayerComponent) GoBackward added in v0.3.0

func (c *PlayerComponent) GoBackward()

func (*PlayerComponent) GoForward added in v0.3.0

func (c *PlayerComponent) GoForward()

func (*PlayerComponent) PauseResume

func (c *PlayerComponent) PauseResume()

func (*PlayerComponent) Play

func (c *PlayerComponent) Play(songId restApiV1.SongId)

func (*PlayerComponent) SetVolume

func (c *PlayerComponent) SetVolume(volume int)

func (*PlayerComponent) VolumeDown

func (c *PlayerComponent) VolumeDown()

func (*PlayerComponent) VolumeUp

func (c *PlayerComponent) VolumeUp()

type PlaylistContentSaveAsComponent added in v0.4.0

type PlaylistContentSaveAsComponent struct {
	*cview.Form
	// contains filtered or unexported fields
}

type PlaylistEditComponent

type PlaylistEditComponent struct {
	*cview.Form
	// contains filtered or unexported fields
}

type SongEditComponent

type SongEditComponent struct {
	*cview.Form
	// contains filtered or unexported fields
}

type UserEditComponent

type UserEditComponent struct {
	*cview.Form
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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