Hello. I am currently trying to add my own menu item to my router and see through official wiki luci/applications/luci-app-example/README.md at openwrt-24.10 · openwrt/luci · GitHub
I installed luci-app-example and found all necessary files, like:
root@OpenWrt:~# find /usr -name "*luci-app-example*"
/usr/lib/opkg/info/luci-app-example.control
/usr/lib/opkg/info/luci-app-example.postinst
/usr/lib/opkg/info/luci-app-example.postinst-pkg
/usr/lib/opkg/info/luci-app-example.prerm
/usr/lib/opkg/info/luci-app-example.list
/usr/share/luci/menu.d/luci-app-example.json
/usr/share/rpcd/acl.d/luci-app-example.json
I open /usr/share/luci/menu.d/luci-app-example.json
{
"admin/example/": {
"title": "Example",
"order": 60,
"action": {
"type": "firstchild"
},
"depends": {
"acl": [ "luci-app-example" ]
}
},
"admin/example/form": {
"title": "Form View",
"order": 1,
"action": {
"type": "view",
"path": "example/form"
}
},
"admin/example/html": {
"title": "HTML Page",
"order": 2,
"action": {
"type": "view",
"path": "example/htmlview"
}
},
"admin/example/rpc-array": {
"title": "RPC Array Example",
"order": 3,
"action": {
"type": "view",
"path": "example/rpc"
}
},
"admin/example/rpc-jsonmap-table": {
"title": "RPC JSONMap Table Example",
"order": 4,
"action": {
"type": "view",
"path": "example/rpc-jsonmap-tablesection"
}
},
"admin/example/rpc-jsonmap-typed": {
"title": "RPC JSONMap Typed Example",
"order": 5,
"action": {
"type": "view",
"path": "example/rpc-jsonmap-typedsection"
}
}
}
but to not understand some lines. For example what means line
"order": 60
It is some code number? Where I can see through all code numbers?
Also I would be appreciated if you explain to me all other lines may be. For I understand some obvious like
"title": "Example",
but I do not have clear understanding of
"admin/example/"
for example.
Thank you.