summaryrefslogtreecommitdiff
path: root/modules/luci-compat
Commit message (Collapse)AuthorAgeFilesLines
* luci-base: Make uci mode strings match iwinfo mode stringsEvan Benn2023-12-151-1/+1
| | | | | | | | | uci mesh was being displayed as 'Mesh', while iwinfo mesh was being reported as 'Mesh Point'. Unify those. Update getActiveModeI18n to deal with all the values iwinfo returns. Fix the incorrect 'Mash' translation. Signed-off-by: Evan Benn <evan.benn@morsemicro.com>
* treewide: separate Lua runtime resourcesJo-Philipp Wich2022-10-251-1/+1
| | | | | | | | | | | Move classes required for Lua runtime support into a new `luci-lua-runtime` package. Also replace the `luci.http` and `luci.util` classes in `luci-lib-base` with stubbed versions interacting with the ucode based runtime environment. Finally merge `luci-base-ucode` into the remainders of `luci-base`. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-compat: fix common cbi-page-actions positionFlorian Eckert2022-08-031-1/+1
| | | | | | | | | | | | With legacy applications, the common page actions "Save and Apply" are not displayed correctly, so that they are not aligned on the right as with javascript applications. To fix the alignment, the control-group css class is removed. This was determined with the application 'luci-app-nft-qos' with the theme 'luci-theme-bootstrap'. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* luci-compat: fix evaluating `or()` and `and()` datatype expressionsJo-Philipp Wich2022-03-101-13/+28
| | | | | Fixes: #5705 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-base: prevent empty field for adding new entryHelge Mader2021-08-112-4/+4
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* luci-compat: update markup for CBI TableSectionsJo-Philipp Wich2021-04-093-21/+21
| | | | | | | | | | Update legacy CBI markup to use actual table, tr, th and td elements instead of using div element corresponding table classes. Fixes compatibility with OpenWrt 2020 theme. Ref: https://github.com/openwrt/luci/issues/4972 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: removed trailing whitespaces and extra newlines in 'modules'Giovanni Giacobbi2021-01-202-10/+9
| | | | Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
* luci-compat: Fix typo in wildcard which is supposed to grant all perms.Mirko Vogt2020-12-061-2/+2
| | | | Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
* luci-compat: Replace legend element with h3.Oldřich Jedlička2020-10-243-4/+4
| | | | | | | | | The legend HTML element is allowed only as first element in fieldset, so use h3 instead, which is rendered the same within themes. Fixed #3149. Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
* luci-compat: add btn class to all button inputsFlorian Eckert2020-07-209-25/+25
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* luci-base: move old cbi icons to luci-compatJo-Philipp Wich2020-05-0719-0/+0
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-compat: apply permission constraints from dispatcherJo-Philipp Wich2020-04-202-23/+5
| | | | | | | | | Since template scopes aren't shared we cannot pass the writable state from the map templates to the page footer. Fixes: #3937 Fixes: ffd627f2a ("luci-compat: disable legacy cbi forms on insufficient ACLs") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-compat: disable legacy cbi forms on insufficient ACLsJo-Philipp Wich2020-04-193-4/+29
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-compat: add wildcard ACL allowing access to all uci configurationsJo-Philipp Wich2020-04-151-0/+11
| | | | | Ref: https://github.com/openwrt/luci/issues/3917 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-compat: footer.htm: tweak CSS classesJo-Philipp Wich2020-03-231-6/+6
| | | | | | | - Use .btn CSS class for page action buttons - Use .control-group class for page action div Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-compat: upload.htm: expose root_directory and initial_directoryJo-Philipp Wich2020-01-201-1/+2
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-base: move tools.webadmin to luci-compatJo-Philipp Wich2019-12-301-0/+105
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* Merge pull request #3434 from tano-systems/luci-base-network-fixHannu Nyman2019-12-271-1/+1
|\ | | | | luci-compat: network.lua: fix typo
| * luci-compat: network.lua: fix typoAnton Kikin2019-12-271-1/+1
| | | | | | | | | | | | Fixes: 72247ee09 Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
* | Merge pull request #1951 from tano-systems/luci-base-network-fixJo-Philipp Wich2019-12-251-5/+8
|\| | | | | luci-base: network.lua: bridge information request functions fixes
| * luci-base: network.lua: fix bridge related functionsAnton Kikin2019-12-071-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * luci-base: network.lua: fix interface.ports() function return valueAnton Kikin2019-12-071-0/+1
| | | | | | | | Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
* | luci-base: fix typosBalázs Úr2019-12-171-1/+1
|/ | | | Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
* treewide: fix "Unhandled token" errors with Lua CBI mapsJo-Philipp Wich2019-11-162-3/+3
| | | | | | | | | | | 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>
* luci-compat: network.lua: recognize wifi interfaces with nonstandard namesJo-Philipp Wich2019-11-141-1/+1
| | | | | Ref: https://github.com/openwrt/luci/issues/3306 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: move server side CBI support to luci-compatJo-Philipp Wich2019-11-0335-0/+4028
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: move templates and libraries not used by the core to luci-compatJo-Philipp Wich2019-11-0321-0/+3065
Signed-off-by: Jo-Philipp Wich <jo@mein.io>