app

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export() error

Export export login api

func Load

func Load(cfg config.Config) error

Load the app DSL

func LoadAndExport

func LoadAndExport(cfg config.Config) error

LoadAndExport load app

func Permissions added in v0.10.3

func Permissions(process *process.Process, widget string, id string) map[string]bool

Permissions get the permission blacklist {"<widget>.<ID>":[<id...>]}

Types

type CFUN

type CFUN struct {
	Method string        `json:"method"`
	Args   []interface{} `json:"args,omitempty"`
}

CFUN cloud function

type DSL

type DSL struct {
	Name        string      `json:"name,omitempty"`
	Short       string      `json:"short,omitempty"`
	Version     string      `json:"version,omitempty"`
	Description string      `json:"description,omitempty"`
	Theme       string      `json:"theme,omitempty"`
	Lang        string      `json:"lang,omitempty"`
	Sid         string      `json:"sid,omitempty"`
	Favicon     string      `json:"favicon,omitempty"`
	Menu        MenuDSL     `json:"menu,omitempty"`
	AdminRoot   string      `json:"adminRoot,omitempty"`
	Optional    OptionalDSL `json:"optional,omitempty"`
	Setting     string      `json:"setting,omitempty"` // custom setting process
	Setup       string      `json:"setup,omitempty"`   // setup process
}

DSL the app DSL

var Setting *DSL

Setting the application setting

type MenuDSL struct {
	Process string        `json:"process,omitempty"`
	Args    []interface{} `json:"args,omitempty"`
}

MenuDSL the menu DSL

type OptionalDSL

type OptionalDSL map[string]interface{}

OptionalDSL the Optional DSL

Jump to

Keyboard shortcuts

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