fileTree

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSceneOperation

type AddSceneOperation struct {
	OperationBase
}

type ComponentFileTree

type ComponentFileTree struct {
	CompName   string                 `json:"name"`
	Data       []SceneSet             `json:"data"`
	Operations map[string]interface{} `json:"operations"`
	State      State                  `json:"state"`
	Props      map[string]interface{} `json:"props"`
	// contains filtered or unexported fields
}

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 *cptype.Component) error

GenComponentState 获取state

func (*ComponentFileTree) Render

func (*ComponentFileTree) RenderAddScene

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

func (*ComponentFileTree) RenderClickScene

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

func (*ComponentFileTree) RenderClickSceneSet

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

func (*ComponentFileTree) RenderCopyScene

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

func (*ComponentFileTree) RenderDeleteScene

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

func (*ComponentFileTree) RenderDeleteSceneSet

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

func (*ComponentFileTree) RenderDragHelper

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

func (*ComponentFileTree) RenderExpandSceneSet

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

func (*ComponentFileTree) RenderExportSceneSet

func (i *ComponentFileTree) RenderExportSceneSet(event cptype.ComponentEvent, inParams InParams) error

func (*ComponentFileTree) RenderFileTree

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

func (*ComponentFileTree) RenderProtocol

func (i *ComponentFileTree) RenderProtocol(c *cptype.Component, g *cptype.GlobalStateData)

func (*ComponentFileTree) RenderRefSceneSet

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

func (*ComponentFileTree) RenderSceneSets

func (i *ComponentFileTree) RenderSceneSets(inParams InParams, operationKey apistructs.OperationKey) error

func (*ComponentFileTree) RenderUpdateScene

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

func (*ComponentFileTree) RenderUpdateSceneSet

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

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"`
	Draggable    bool                   `json:"draggable"`
	DropPosition []int                  `json:"dropPosition"`
}

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"`
	Draggable     bool                   `json:"draggable"`
	DropPosition  []int                  `json:"dropPosition"`
}

type SceneSetOperation

type SceneSetOperation struct {
	Key        string                `json:"key"`
	Text       string                `json:"text"`
	Reload     bool                  `json:"reload"`
	Show       bool                  `json:"show"`
	SuccessMsg string                `json:"successMsg"`
	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"`
	IsAddParallel           bool       `json:"isAddParallel"`
}

Jump to

Keyboard shortcuts

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