managers

package
v0.0.0-...-ea45840 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateBoardRoute = version + "/board/new"
View Source
const CreateTaskRoute = version + "/task/new"
View Source
const DeleteBoardRoute = version + "/board/delete"
View Source
const DeleteTaskRoute = version + "/task/delete"
View Source
const GetBoardRoute = version + "/board/last"
View Source
const GetPointsRoute = version + "/points/week"
View Source
const GetTaskHistoryRoute = version + "/history/last"
View Source
const GetTaskRoute = version + "/task/last"
View Source
const UpdateBoardRoute = version + "/board/save"
View Source
const UpdateTaskRoute = version + "/task/save"

Variables

This section is empty.

Functions

func AddCycleFocus

func AddCycleFocus(flex *tview.Flex, app *tview.Application, inputs []tview.List, globalAppState *models.GlobalAppState)

func CycleFocus

func CycleFocus(app *tview.Application, elements []tview.List, reverse bool, globalAppState *models.GlobalAppState)

func GetRune

func GetRune(index int) rune

func IndexOf

func IndexOf(element string, data []string) int

Types

type ActionsViewManager

type ActionsViewManager struct {
	ApiManager        ApiManager
	UpdateTaskManager UpdateTaskManager
}

func (*ActionsViewManager) AddActionsPage

func (m *ActionsViewManager) AddActionsPage(app *tview.Application, pages *tview.Pages, globalAppState *models.GlobalAppState) *tview.Frame

type ApiManager

type ApiManager struct {
	Url string
}

func (*ApiManager) ArchiveTasks

func (m *ApiManager) ArchiveTasks(tasks *[]models.Task) error

func (*ApiManager) CreateBoard

func (m *ApiManager) CreateBoard(board models.CreateBoard) (*[]models.Board, error)

func (*ApiManager) CreateTask

func (m *ApiManager) CreateTask(task models.CreateTask) (*[]models.Task, error)

func (*ApiManager) DeleteTask

func (m *ApiManager) DeleteTask(taskId string) (*[]models.Task, error)

func (*ApiManager) GetBoards

func (m *ApiManager) GetBoards() (*[]models.Board, error)

func (*ApiManager) GetPointsCurrentWeek

func (m *ApiManager) GetPointsCurrentWeek(boardId string) (*[]models.PointsReport, error)

func (*ApiManager) GetPointsWeek

func (m *ApiManager) GetPointsWeek(boardId string, week int) (*[]models.PointsReport, error)

func (*ApiManager) GetTasksHistory

func (m *ApiManager) GetTasksHistory(limit int) (*[]models.TaskHistory, error)

func (*ApiManager) GetTasksHistoryInBoard

func (m *ApiManager) GetTasksHistoryInBoard(boardId string, limit int) (*[]models.TaskHistory, error)

func (*ApiManager) GetTasksInBoard

func (m *ApiManager) GetTasksInBoard(boardId string) (*[]models.Task, error)

func (*ApiManager) UpdateBoard

func (m *ApiManager) UpdateBoard(board models.CreateBoard) (*[]models.Board, error)

func (*ApiManager) UpdateTask

func (m *ApiManager) UpdateTask(task models.CreateTask) (*[]models.Task, error)

type ButtonBarViewManager

type ButtonBarViewManager struct {
	ApiManager ApiManager
}

func (*ButtonBarViewManager) CreateButtonBarWithPoints

func (m *ButtonBarViewManager) CreateButtonBarWithPoints(globalAppState *models.GlobalAppState) *tview.Frame

func (*ButtonBarViewManager) PointsCurrentWeekText

func (m *ButtonBarViewManager) PointsCurrentWeekText(pointsReport models.PointsReport) string

type HistoryViewManager

type HistoryViewManager struct {
	ApiManager ApiManager
}

func (*HistoryViewManager) AddHistoryPage

func (m *HistoryViewManager) AddHistoryPage(app *tview.Application, pages *tview.Pages, globalAppState *models.GlobalAppState) *tview.List
type MenusManager struct {
	ApiManager           ApiManager
	UiTasksManager       UiTasksManager
	HistoryViewManager   HistoryViewManager
	ButtonBarViewManager ButtonBarViewManager
	ActionsViewManager   ActionsViewManager
}
func (m *MenusManager) LoadMenus(app *tview.Application, pages *tview.Pages, updatedSelectedBoard *chan string, globalAppState *models.GlobalAppState, horizontalView bool)

type TimerManager

type TimerManager struct {
}

func (*TimerManager) SetTimer

func (m *TimerManager) SetTimer(app *tview.Application, globalAppState *models.GlobalAppState)

type UiBoardsManager

type UiBoardsManager struct {
}

func (*UiBoardsManager) GetBoardsListUi

func (m *UiBoardsManager) GetBoardsListUi(boards *[]models.Board, app *tview.Application, pages *tview.Pages, globalAppState *models.GlobalAppState, updatedSelectedBoard *chan string) (*tview.List, error)

type UiTasksManager

type UiTasksManager struct {
	ApiManager ApiManager
}

func (*UiTasksManager) GetTasksListUi

func (m *UiTasksManager) GetTasksListUi(app *tview.Application, pages *tview.Pages, globalAppState *models.GlobalAppState) (taskLists []tview.List, err error)

type UpdateTaskManager

type UpdateTaskManager struct {
	ApiManager ApiManager
}

func (*UpdateTaskManager) CreateTaskChanges

func (m *UpdateTaskManager) CreateTaskChanges(task models.Task)

func (*UpdateTaskManager) GenerateUpdateTaskForm

func (m *UpdateTaskManager) GenerateUpdateTaskForm(app *tview.Application, pages *tview.Pages, globalAppState *models.GlobalAppState) (tview.Primitive, error)

func (*UpdateTaskManager) RefreshAndClose

func (m *UpdateTaskManager) RefreshAndClose(app *tview.Application, globalAppState *models.GlobalAppState, pages *tview.Pages, task *models.Task)

func (*UpdateTaskManager) UpdateTaskChanges

func (m *UpdateTaskManager) UpdateTaskChanges(task models.Task)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳