Commit graph

11 commits

Author SHA1 Message Date
Jo-Philipp Wich
09b2d8a8ac luci-base: move tools.webadmin to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-30 10:37:48 +01:00
Hannu Nyman
06e6552c8a
Merge pull request from tano-systems/luci-base-network-fix
luci-compat: network.lua: fix typo
2019-12-27 12:13:15 +02:00
Anton Kikin
07925b253a luci-compat: network.lua: fix typo
Fixes: 72247ee09

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-12-27 02:32:15 +03:00
Jo-Philipp Wich
8362ab8d28
Merge pull request from tano-systems/luci-base-network-fix
luci-base: network.lua: bridge information request functions fixes
2019-12-25 18:32:05 +01:00
Balázs Úr
d0bc86bcc3 luci-base: fix typos
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-17 11:41:00 +01:00
Anton Kikin
72247ee09f luci-base: network.lua: fix bridge related functions
This commit fixes these bugs:

1. Functions interface.bridge_id() and interface.bridge_stp() uses self.br field
   that is not exists at all

2. Function interface.is_bridgeport() return true only for bridge interface, not for
   bridge port interfaces.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-12-07 22:28:17 +03:00
Anton Kikin
45725dfca6 luci-base: network.lua: fix interface.ports() function return value
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-12-07 22:28:17 +03:00
Jo-Philipp Wich
13e9e3e9e8 treewide: fix "Unhandled token" errors with Lua CBI maps
The `data-type` attribute is used to bind datatype validators to a widget
while some templates used the same attribute to denote the name of the
underlying widget.

Change the `data-type` attributes referring to the widget name to
`data-widget` in order to stop the JS token error spam.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-16 18:25:52 +01:00
Jo-Philipp Wich
857cd8c7fa luci-compat: network.lua: recognize wifi interfaces with nonstandard names
Ref: https://github.com/openwrt/luci/issues/3306
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-14 11:13:43 +01:00
Jo-Philipp Wich
d5dff8f9a5 treewide: move server side CBI support to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 20:49:31 +01:00
Jo-Philipp Wich
284918bfaf treewide: move templates and libraries not used by the core to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 17:56:58 +01:00