workspace

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRelationData added in v0.2.11

func GetRelationData(req *cutil.WorkspaceRequest, m *model.Model, data []any, sourceKey string, as *app.State) ([]*util.OrderedMap[any], error)

func ProjectMenu

func ProjectMenu(as *app.State, prj *project.View) (menu.Items, error)

func SourceMenuModel

func SourceMenuModel(m *model.Model, path string) *menu.Item

func SourceMenuPackage

func SourceMenuPackage(mp *model.Package, path string) menu.Items

func ToMenu

func ToMenu(as *app.State, path string, a action.Actions, view *project.View) (menu.Items, error)

Types

type Result

type Result struct {
	Title       string      `json:"title"`
	Redirect    string      `json:"redirect,omitempty"`
	Breadcrumbs []string    `json:"bc"`
	Data        any         `json:"data"`
	Page        layout.Page `json:"page"`
}

func ActionHandler

func ActionHandler(req *cutil.WorkspaceRequest, act *action.Action, as *app.State) (*Result, error)

func ErrResult

func ErrResult(req *cutil.WorkspaceRequest, act *action.Action, err error) (*Result, error)

func NewResult

func NewResult(title string, bc []string, req *cutil.WorkspaceRequest, act *action.Action, data any, page layout.Page) *Result

func RedirectResult

func RedirectResult(flashMessage string, redir string) *Result

Jump to

Keyboard shortcuts

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