webui

package
v0.0.0-...-ae579cc Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: GPL-3.0 Imports: 34 Imported by: 0

README

WebUI development docs

To build:

> OUTDIR=/path/to/binary/output npm run build 

This will compile all assets through webpack and build the Go binary to run the web server. The binary will be placed into $OUTDIR.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(repo, host string, port int, features []string) error

Types

type ApiActionSetStatus

type ApiActionSetStatus struct {
	Ticket string
	Status string
}

type Bookmark

type Bookmark struct {
	Label string
	Query string
}

type BookmarkGroup

type BookmarkGroup struct {
	Group     string
	Bookmarks []Bookmark
}

type CreateTicketAction

type CreateTicketAction struct {
	Title      string
	Message    string
	Workflow   string
	Repo       string
	AssignedTo *entity.Id
	Ccb        []string
	Labels     []string
	Checklists []string
}

func (CreateTicketAction) Validate

type FeatureFlag

type FeatureFlag string
const (
	TicketCreate FeatureFlag = "ticket_create"
)

func (FeatureFlag) IsEnabled

func (f FeatureFlag) IsEnabled(ctx context.Context) bool

type FeatureFlagSet

type FeatureFlagSet map[FeatureFlag]interface{}

func (FeatureFlagSet) ContextKey

func (f FeatureFlagSet) ContextKey() string

type SideBarData

type SideBarData struct {
	SelectedQuery      string
	BookmarkGroups     []BookmarkGroup
	ColorKey           map[string]string
	EnableCreateTicket bool
}

type WebUiConfig

type WebUiConfig struct {
	Xref
	BookmarkGroups []BookmarkGroup
}

Configuration for the web UI.

type Xref

type Xref struct {
	FullPattern *regexp.Regexp
	Rules       []XrefRule
}

type XrefRule

type XrefRule struct {
	Pattern *regexp.Regexp
	Link    *template.Template
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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