Modules

ДОВІДНИК З NODE-RED українською мовою

Modules

Page

image-20230517161049382

Button1 (Create Parent Module)

onClick


ButtonGroupParent

Edit Parent

Disabled


onClick


Delete Parent

Disabled


onClick

{ { deleteParentModule.run(
    () => getModules.run(), 
    () => {}) } }

TableParent

Table Data


Button5 (Create Child Module)

onClick


ButtonGroupChild

Edit Child

Disabled


onClick

{ { deleteChildModule.run(() => getModules.run(), () => {}) } }

Delete Child

Disabled


onClick

{ { deleteChildModule.run(() => getModules.run(), () =>  {}) } }

TableChild

Table Data


ModalEditChild

image-20230517180456780

Text10Copy

Text

Edit: "" Child Module

positionChild_edit

Default Text


FormButton2Copy (Submit)

onClick

{ { updateChildModule.run(
    () => getModules.run(
        ()=> closeModal("ModalEditChild")), 
    () =>  {}
) } }

ModalEditParent

image-20230517180611862

name_field_edit

Default Text


position_field_edit

Default Text


icon_field_edit

Default Text


FormButton1Copy (Submit)

onClick

{ { updateParentModule.run(
    () => getModules.run(
        ()=>closeModal("ModalEditParent")), 
    () =>  {}
) } }

ModalCreateChild

image-20230517180630039

parentModule1_field

Options


)}}

childModule_field

Options


)}}

positionChild

FormButton2 (Submit)

onClick

{ { createChildModule.run(
    () => getModules.run(
        ()=> closeModal("ModalCreateChild")), 
    () => {}
) } }

ModalCreateParent

image-20230517180727707

name_field

FormCreateParent

icon_field

FormButton1 (Submit)

onClick

{ { createParentModule.run(
    () => getModules.run(
        ()=>closeModal("ModalCreateParent")), () => {}
) } }

APIs

createChildModule

POST /createChildModule

body

{
	"childModule":"",
	"parentModule":"",
	"position":
}

Node-RED

createParentModule

POST /createParentModule

body

{
	"name": "",
	"position": ,
	"icon": ""
}

Node-RED

deleteChildModule

DELETE /deleteChildModule

body

{
	"_id":"",
	"childModule_id":""
}

Node-RED

deleteParentModule

DELETE /deleteModule

body

{
	"_id": ""
}

Node-RED

getAppPages

GET /api/v1/pages

getModules

GET /getModules

Node-RED

updateChildModule

PUT /updateChildModule

body

{
	"_id": "",
	"position": "",
	"name": ""
}

Node-RED

updateParentModule

PUT /updateParentModule

body

{
	"name": "",
	"position": ,
	"icon": "",
	"_id": ""
}

Node-RED