rendering

package
v0.0.0-...-d51db54 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID           int
	PathToAvatar string
	Name         string
	Email        string
	Role         string
}

type Comment

type Comment struct {
	Name      string
	TimeAgo   string
	Text      string
	ID        int
	Avatar    string
	CanRemove bool
}

type Core

type Core struct {
	Statuses            map[string]string
	IssueStatuses       map[string]string
	Priorities          map[string]string
	TaskDependencyTypes map[string]string

	CSSVariables    map[string]string
	JSVariablesJSON template.JS

	Account Account
	Options []Option
}

type DependentTask

type DependentTask struct {
	Name           string
	ID             int
	DependencyType string
}

type GenericUserWrapper

type GenericUserWrapper struct {
	generic.User
	Admin, Director, Active bool
}

type Issue

type Issue struct {
	Name        string
	Description string
	ID          int
	Status      string
	Registrar   string
	Reporter    string
	Attachments []string
	StartDate   string
	DueDate     string

	EditCapability bool

	Created bool
	Closed  bool
}

type IssueRoot

type IssueRoot struct {
	ProjectData ProjectData
	Core        Core
	Issue       Issue
}

type LinkedIssue

type LinkedIssue struct {
	Name string
	ID   int
}

type ListIssue

type ListIssue struct {
	ProjectName  string
	ProjectID    int
	Name         string
	ID           int
	Status       string
	Description  string
	VisibleClass string
	Registrar    Account
	Reporter     string
}

type ListIssueViewRoot

type ListIssueViewRoot struct {
	// JSVariablesJSON   template.JS
	// Account           Account
	ProjectData       ProjectData
	Core              Core
	Issues            []ListIssue
	AvailableProjects []TreeNode
}

type ListProjectViewRoot

type ListProjectViewRoot struct {
	Core     Core
	Projects []Project
}

type ListTask

type ListTask struct {
	FirePriority bool
	ProjectName  string
	ProjectID    int
	Name         string
	ID           int
	Status       string
	Description  string
	VisibleClass string
	Assigner     Account
	Assignees    []Account
}

type ListUserViewRoot

type ListUserViewRoot struct {
	Core    Core
	Users   []GenericUserWrapper
	IsAdmin bool
}

type ListViewRoot

type ListViewRoot struct {
	// JSVariablesJSON   template.JS
	// Account           Account
	ProjectData       ProjectData
	Core              Core
	Tasks             []ListTask
	AvailableProjects []TreeNode
}

type Option

type Option struct {
	Href  string
	Label string
}

type Project

type Project struct {
	Name        string
	ID          int
	Description string
	Role        string
	Owner       Account
	Users       []Account
}

type ProjectData

type ProjectData struct {
	Assigners map[int]string
	Assignees map[int]string
	Supports  map[int]string
	ID        int
	InProject bool
}

type ProjectRoot

type ProjectRoot struct {
	Core    Core
	Project Project
	IsOwner bool
}

type ReportRoot

type ReportRoot struct {
	Tasks          []generic.TasksReport
	TimeEfficiency []TimeEfficiencyReport
}

type Task

type Task struct {
	Name            string
	Description     string
	ID              int
	Status          string
	Priority        string
	Assigner        string
	AssignerID      int
	Assignee        string
	AssigneeID      int
	Attachments     []string
	StartDate       string
	DueDate         string
	DependentTasks  []DependentTask
	LinkedIssues    []LinkedIssue
	Comments        []Comment
	TrackingRecords []TrackingRecord
	OverallDuration string

	ChangeCapability bool
	EditCapability   bool
	ManageCapability bool

	Created bool
}

type TaskRoot

type TaskRoot struct {
	ProjectData ProjectData
	Core        Core
	Task        Task
}

type TimeEfficiencyReport

type TimeEfficiencyReport struct {
	ID              int
	Username        string
	Firstname       string
	Lastname        string
	TrackedRecords  int
	SummaryHours    string
	AveragePerDay   string
	AveragePerMonth string
}

type TrackingRecord

type TrackingRecord struct {
	Text     string
	Duration string
}

type TreeNode

type TreeNode struct {
	ID           int
	Name         string
	Children     *[]TreeNode
	VisibleClass string
}

type UserRoot

type UserRoot struct {
	User  generic.User
	ItsMe bool
	Core  Core
}

Jump to

Keyboard shortcuts

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