fileTree

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 0 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 RenderCreator

func RenderCreator() protocol.CompRender

Types

type AddSceneOperation

type AddSceneOperation struct {
	OperationBase
}

type ComponentFileTree

type ComponentFileTree struct {
	CtxBdl protocol.ContextBundle

	CompName   string                 `json:"name"`
	Data       []SceneSet             `json:"data"`
	Operations map[string]interface{} `json:"operations"`
	State      State                  `json:"state"`
	Props      map[string]interface{} `json:"props"`
}

func (*ComponentFileTree) DragScene

func (i *ComponentFileTree) DragScene(from, to int) error

func (*ComponentFileTree) DragSceneSet

func (i *ComponentFileTree) DragSceneSet(from, to int, projectId uint64) error

func (*ComponentFileTree) DragSceneToSceneSet

func (i *ComponentFileTree) DragSceneToSceneSet(from, to int) error

func (*ComponentFileTree) GenComponentState

func (i *ComponentFileTree) GenComponentState(c *apistructs.Component) error

GenComponentState 获取state

func (*ComponentFileTree) RenderAddScene

func (i *ComponentFileTree) RenderAddScene(event apistructs.ComponentEvent) error

func (*ComponentFileTree) RenderClickScene

func (i *ComponentFileTree) RenderClickScene(event apistructs.ComponentEvent) error

func (*ComponentFileTree) RenderClickSceneSet

func (i *ComponentFileTree) RenderClickSceneSet(event apistructs.ComponentEvent) error

func (*ComponentFileTree) RenderCopyScene

func (i *ComponentFileTree) RenderCopyScene(inParams InParams, event apistructs.ComponentEvent) error

func (*ComponentFileTree) RenderDeleteScene

func (i *ComponentFileTree) RenderDeleteScene(event apistructs.ComponentEvent) error

func (*ComponentFileTree) RenderDeleteSceneSet

func (i *ComponentFileTree) RenderDeleteSceneSet(event apistructs.ComponentEvent, inParams InParams) error

func (*ComponentFileTree) RenderDragHelper

func (i *ComponentFileTree) RenderDragHelper(inParams InParams) error

func (*ComponentFileTree) RenderExpandSceneSet

func (i *ComponentFileTree) RenderExpandSceneSet(event apistructs.ComponentEvent) error

func (*ComponentFileTree) RenderFileTree

func (i *ComponentFileTree) RenderFileTree(inParams InParams) error

func (*ComponentFileTree) RenderProtocol

func (*ComponentFileTree) RenderRefSceneSet

func (i *ComponentFileTree) RenderRefSceneSet(event apistructs.ComponentEvent) error

func (*ComponentFileTree) RenderSceneSets

func (i *ComponentFileTree) RenderSceneSets(inParams InParams) error

func (*ComponentFileTree) RenderUpdateScene

func (i *ComponentFileTree) RenderUpdateScene(event apistructs.ComponentEvent) error

func (*ComponentFileTree) RenderUpdateSceneSet

func (i *ComponentFileTree) RenderUpdateSceneSet(event apistructs.ComponentEvent) error

func (*ComponentFileTree) SetCtxBundle

func (i *ComponentFileTree) SetCtxBundle(b protocol.ContextBundle) error

SetCtxBundle 设置bundle

func (*ComponentFileTree) SetSceneSetClick

func (i *ComponentFileTree) SetSceneSetClick(setID int)

type DeleteOperation

type DeleteOperation struct {
	Key     string                `json:"key"`
	Text    string                `json:"text"`
	Confirm string                `json:"confirm"`
	Reload  bool                  `json:"reload"`
	Show    bool                  `json:"show"`
	Meta    SceneSetOperationMeta `json:"meta"`
}

type DeleteOperationData

type DeleteOperationData struct {
	Key string `json:"key"`
}

type DragParams

type DragParams struct {
	DragKey  string `json:"dragKey"`
	DropKey  string `json:"dropKey"`
	Position int64  `json:"position"`
	DragType string `json:"dragType"`
	DropType string `json:"dropType"`
}

type InParams

type InParams struct {
	SpaceId      uint64 `json:"spaceId"`
	SelectedKeys string `json:"selectedKeys"`
	SceneID      string `json:"sceneId__urlQuery"`
	SetID        string `json:"setId__urlQuery"`
	ProjectId    uint64 `json:"projectId"`
}

type Operation

type Operation struct {
	Key    string `json:"key"`
	Reload bool   `json:"reload"`
}

type OperationBase

type OperationBase struct {
	Key    string `json:"key"`
	Text   string `json:"text"`
	Reload bool   `json:"reload"`
}

type Scene

type Scene struct {
	Key        string                 `json:"key"`
	Title      string                 `json:"title"`
	Icon       string                 `json:"icon"`
	IsLeaf     bool                   `json:"isLeaf"`
	Operations map[string]interface{} `json:"operations"`
	Type       string                 `json:"type"`
}

type SceneSet

type SceneSet struct {
	Key           string                 `json:"key"`
	Title         string                 `json:"title"`
	Icon          string                 `json:"icon"`
	IsColorIcon   bool                   `json:"isColorIcon"`
	IsLeaf        bool                   `json:"isLeaf"`
	ClickToExpand bool                   `json:"clickToExpand"`
	Selectable    bool                   `json:"selectable"`
	Operations    map[string]interface{} `json:"operations"`
	Children      []Scene                `json:"children"`
	Type          string                 `json:"type"`
}

type SceneSetOperation

type SceneSetOperation struct {
	Key    string                `json:"key"`
	Text   string                `json:"text"`
	Reload bool                  `json:"reload"`
	Show   bool                  `json:"show"`
	Meta   SceneSetOperationMeta `json:"meta"`
}

type SceneSetOperationMeta

type SceneSetOperationMeta struct {
	ParentKey int `json:"parentKey,omitempty"`
	Key       int `json:"key,omitempty"`
}

type State

type State struct {
	ExpandedKeys            []string   `json:"expandedKeys"`
	SelectedKeys            []string   `json:"selectedKeys"`
	FormVisible             bool       `json:"formVisible"`
	SceneSetKey             int        `json:"sceneSetKey"`
	ActionType              string     `json:"actionType"`
	SetId__urlQuery         string     `json:"setId__urlQuery"`
	SceneId__urlQuery       string     `json:"sceneId__urlQuery"`
	SceneId                 uint64     `json:"sceneId"`
	DragParams              DragParams `json:"dragParams"`
	PageNo                  int        `json:"pageNo"`
	IsClickScene            bool       `json:"isClickScene"`
	IsClickFolderTable      bool       `json:"isClickFolderTable"`
	ClickFolderTableSceneID uint64     `json:"clickFolderTableSceneID"`
}

Jump to

Keyboard shortcuts

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