Yurii [Sat, 20 Jul 2019 20:51:31 +0000 (23:51 +0300)]
luci-base: Update Ukrainian translation
Update Ukrainian translation according the latest translation resync.
Signed-off-by: Yurii <yuripet@gmail.com>
Hannu Nyman [Sat, 20 Jul 2019 16:16:55 +0000 (19:16 +0300)]
Merge pull request #2893 from tano-systems/pr/ru-i18n-update
luci-base: update Russian translation
Anton Kikin [Sat, 20 Jul 2019 12:32:10 +0000 (15:32 +0300)]
luci-base: update Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Jo-Philipp Wich [Fri, 19 Jul 2019 22:26:27 +0000 (00:26 +0200)]
Merge pull request #2886 from castillofrancodamian/base
luci-base: Update Spanish translation
Franco Castillo [Fri, 19 Jul 2019 20:25:25 +0000 (17:25 -0300)]
luci-base: Update Spanish translation
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Jo-Philipp Wich [Fri, 19 Jul 2019 19:50:48 +0000 (21:50 +0200)]
luci-mod-status: luci-bwc: use 64bit traffic counters
Fixes: #2659
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 19 Jul 2019 16:18:25 +0000 (18:18 +0200)]
luci-base: update german translation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 19 Jul 2019 16:07:04 +0000 (18:07 +0200)]
luci-base: resync base translations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 19 Jul 2019 15:59:05 +0000 (17:59 +0200)]
luci-mod-network: improve wifi scan status reporting
Attempt to properly report the scan status by treating 404 replies as
not yet completed scans and empty array replies as successful scans
that did not yield any results.
Fixes: #2874
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 19 Jul 2019 15:19:24 +0000 (17:19 +0200)]
luci-base: render default values for all server side cbi map widgets
Fixes:
9c7eb1dec ("luci-base: switch from server side to client side widget markup")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 19 Jul 2019 08:45:50 +0000 (10:45 +0200)]
Merge pull request #2882 from TDT-AG/pr/
20190718-ovpn-tls-ciphersuites
luci-app-openvpn: add new tls_ciphersuites option
Jo-Philipp Wich [Fri, 19 Jul 2019 08:39:54 +0000 (10:39 +0200)]
luci-base: ui.js: fix multi vs. multiple keyword confusion
The "luci.form" and "luci.tools.widgets" classes use the "multiple"
keyword while ui.js uses "multi" internally, leading to single-value
dropdowns widget values getting stored as uci lists.
Fix the issue by using "multiple" everywhere.
Fixes: #2871
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Martin Schiller [Thu, 18 Jul 2019 10:38:06 +0000 (12:38 +0200)]
luci-app-openvpn: add new tls_ciphersuites option
This is used to configure ciphers for TLS 1.3 or newer.
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Jo-Philipp Wich [Thu, 18 Jul 2019 10:28:42 +0000 (12:28 +0200)]
Merge pull request #2880 from tano-systems/pr/fix-for-2878
luci-app-firewall: format protocol family for forwards and rules
Anton Kikin [Wed, 17 Jul 2019 16:19:45 +0000 (19:19 +0300)]
luci-app-firewall: format protocol family for forwards and rules
Fixes: #2878
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Dirk Brenken [Wed, 17 Jul 2019 19:50:36 +0000 (21:50 +0200)]
Merge pull request #2879 from systemcrash/patch
luci-app-adblock: English grammar fix
Paul Dee [Wed, 17 Jul 2019 14:40:50 +0000 (16:40 +0200)]
English grammar fix
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
jose1711 [Sun, 25 Jun 2017 22:06:57 +0000 (00:06 +0200)]
luci-app-openvpn: fix client_disconnect OpenVPN option
This option is not a flag.
Signed-off-by: Jose Riha <jose1711@gmail.com>
[Changed commit message and add missing Singed-off-by]
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Hannu Nyman [Tue, 16 Jul 2019 19:43:30 +0000 (22:43 +0300)]
Merge pull request #2877 from YuriPet/master
luci-base & luci-app-firewall: update Ukrainian translation.
Yurii [Tue, 16 Jul 2019 18:18:01 +0000 (21:18 +0300)]
luci-app-firewall: update Ukrainian translation
Updates, fixes and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Yurii [Tue, 16 Jul 2019 18:16:53 +0000 (21:16 +0300)]
luci-base: update Ukrainian translation
Updates, fixes and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Florian Eckert [Tue, 16 Jul 2019 16:45:45 +0000 (18:45 +0200)]
Merge pull request #2869 from tano-systems/pr/luci-base-fix-ru-translation
luci-base: fix Russian translation
Florian Eckert [Tue, 16 Jul 2019 05:43:10 +0000 (07:43 +0200)]
Merge pull request #2872 from musashino205/l10n/fw-upd-ja
luci-app-firewall: update Japanese translation
INAGAKI Hiroshi [Tue, 16 Jul 2019 04:21:06 +0000 (13:21 +0900)]
luci-app-firewall: update Japanese translation
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Anton Kikin [Mon, 15 Jul 2019 12:16:47 +0000 (15:16 +0300)]
luci-base: fix Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Florian Eckert [Mon, 15 Jul 2019 07:16:39 +0000 (09:16 +0200)]
Merge pull request #2749 from dibdot/wg
luci-app-wireguard: QR-Code enhancements
Florian Eckert [Sun, 14 Jul 2019 11:53:57 +0000 (13:53 +0200)]
Merge pull request #2863 from castillofrancodamian/rosy-file-server
luci-app-rosy-file-server: Add template
Florian Eckert [Sun, 14 Jul 2019 11:53:18 +0000 (13:53 +0200)]
Merge pull request #2862 from castillofrancodamian/lxc
luci-app-lxc: Add template
Florian Eckert [Sun, 14 Jul 2019 11:52:36 +0000 (13:52 +0200)]
Merge pull request #2860 from castillofrancodamian/opkg
luci-app-opkg: Update Spanish translation
Florian Eckert [Sun, 14 Jul 2019 11:51:44 +0000 (13:51 +0200)]
Merge pull request #2859 from castillofrancodamian/base
luci-base: Update Spanish translation
Florian Eckert [Sun, 14 Jul 2019 11:50:46 +0000 (13:50 +0200)]
Merge pull request #2861 from castillofrancodamian/firewall
luci-app-firewall: Update Spanish translation
Florian Eckert [Sun, 14 Jul 2019 11:49:39 +0000 (13:49 +0200)]
Merge pull request #2858 from tano-systems/pr/update-russian-translation
Update Russian translation
Franco Castillo [Sun, 14 Jul 2019 02:43:09 +0000 (23:43 -0300)]
luci-app-rosy-file-server: Add template
Add template.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Franco Castillo [Sun, 14 Jul 2019 02:34:07 +0000 (23:34 -0300)]
luci-app-lxc: Add template
Add template.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Franco Castillo [Sun, 14 Jul 2019 02:10:50 +0000 (23:10 -0300)]
luci-app-firewall: Update Spanish translation
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Franco Castillo [Sun, 14 Jul 2019 02:06:51 +0000 (23:06 -0300)]
luci-app-opkg: Update Spanish translation
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Franco Castillo [Sun, 14 Jul 2019 01:55:39 +0000 (22:55 -0300)]
luci-base: Update Spanish translation
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Anton Kikin [Sat, 13 Jul 2019 20:08:40 +0000 (23:08 +0300)]
luci-app-firewall: update Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Anton Kikin [Sat, 13 Jul 2019 20:03:09 +0000 (23:03 +0300)]
luci-base: update Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
INAGAKI Hiroshi [Sat, 13 Jul 2019 09:31:02 +0000 (18:31 +0900)]
luci-base: update Japanese translation
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
INAGAKI Hiroshi [Sat, 13 Jul 2019 06:50:53 +0000 (15:50 +0900)]
i18n: sync translations
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
INAGAKI Hiroshi [Sat, 13 Jul 2019 06:41:23 +0000 (15:41 +0900)]
luci-base: fix translatable text in ui.js
Removed unnecessary symbols ("%>") at the end of the text.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Jo-Philipp Wich [Fri, 12 Jul 2019 08:42:41 +0000 (10:42 +0200)]
luci-base: luci.js: add Promise.finally polyfill
Fixes: #2854
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Yurii [Thu, 11 Jul 2019 17:20:51 +0000 (20:20 +0300)]
luci-app-wol: update Ukrainian translation
Signed-off-by: Yurii <yuripet@gmail.com>
Yurii [Thu, 11 Jul 2019 17:19:33 +0000 (20:19 +0300)]
luci-app-upnp: update Ukrainian translation
Signed-off-by: Yurii <yuripet@gmail.com>
Yurii [Thu, 11 Jul 2019 17:18:12 +0000 (20:18 +0300)]
luci-app-samba4: update Ukrainian translation
Updates, fixes and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Yurii [Thu, 11 Jul 2019 17:16:41 +0000 (20:16 +0300)]
luci-app-samba: update Ukrainian translation
Updates, fixes and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Yurii [Thu, 11 Jul 2019 17:15:11 +0000 (20:15 +0300)]
luci-app-opkg: update Ukrainian translation
Signed-off-by: Yurii <yuripet@gmail.com>
Yurii [Thu, 11 Jul 2019 17:13:18 +0000 (20:13 +0300)]
luci-app-firewall: update Ukrainian translation
Signed-off-by: Yurii <yuripet@gmail.com>
Yurii [Thu, 11 Jul 2019 17:10:27 +0000 (20:10 +0300)]
luci-base: update Ukrainian translation
Updates, fixes and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Jo-Philipp Wich [Fri, 12 Jul 2019 07:17:14 +0000 (09:17 +0200)]
luci-base: ui.js: fix UISelect.setValue()
Fixes: #2852
Fixes:
ce04d7f ("luci-base: fix label-to-input association in js cbi maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 11 Jul 2019 13:06:13 +0000 (15:06 +0200)]
luci-base: luci.js: only use overrideMimeType when supported
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 11 Jul 2019 13:04:54 +0000 (15:04 +0200)]
luci-base: validation.js: fix nested function declarations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 11 Jul 2019 12:39:42 +0000 (14:39 +0200)]
luci-base: ui.js: fix UISelect.getValue()
Fixes: #2852
Fixes:
ce04d7f04 ("luci-base: fix label-to-input association in js cbi maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Dirk Brenken [Tue, 4 Jun 2019 20:20:29 +0000 (22:20 +0200)]
luci-app-wireguard: QR-Code enhancements
* explain the QR-Code 'use case' and the transfered information
* limit the QR-Code information to bare minimum (per interface):
* [Interface] A random, on the fly generated 'PrivateKey',
the key will not be saved on the router
* [Peer] The 'PublicKey' of that wg interface and the
'AllowedIPs' with the default of '0.0.0.0/0, ::/0'
to allow sending traffic to any IPv4 and IPv6 address
* the QR-Code logic will be processed only once per page load,
and not every 5 seconds with the regular XHR refresh
See corresponding forum thread:
https://forum.openwrt.org/t/luci-app-wireguard-qr-code-shows-private-key/38133
Signed-off-by: Dirk Brenken <dev@brenken.org>
Paul Spooren [Fri, 5 Jul 2019 23:25:07 +0000 (01:25 +0200)]
luci-app-bmx7: transfer from routing
The Makefile is minified as the LuCi build system does most of the job.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Jo-Philipp Wich [Wed, 10 Jul 2019 11:30:52 +0000 (13:30 +0200)]
luci-base: luci.js: fix undefined "this" when /ubus/ is unavailable
Fixes: #2850
Fixes:
66dfe64ca ("luci-base: luci.js: cache determined RPC base url in session storage")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Florian Eckert [Fri, 28 Jun 2019 11:54:43 +0000 (13:54 +0200)]
luci-app-mwan3: rename ubus values
Update status view because of ubus value rename
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Jo-Philipp Wich [Wed, 10 Jul 2019 05:13:00 +0000 (07:13 +0200)]
luci-mod-status: show all interface addresses on index page
Insteado f displaying only the primary/delegated address, display all
configured IP addresses in the upstream interface boxes, similar to
the interface overview page.
Fixes: #2757
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 9 Jul 2019 05:31:40 +0000 (07:31 +0200)]
luci-base: luci.js: cache determined RPC base url in session storage
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 9 Jul 2019 15:48:46 +0000 (17:48 +0200)]
luci-base: properly handle getWifiNetidBySid() return value
The getWifiNetidBySid() helper returns an array containing the network id
and the corresponding radio name, not just the id.
Fixes: #2846.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Tue, 9 Jul 2019 15:25:58 +0000 (18:25 +0300)]
Merge pull request #2839 from stangri/master-luci-app-advanced-reboot
luci-app-advanced-reboot: fix README url in Makefile
Jo-Philipp Wich [Tue, 9 Jul 2019 12:07:09 +0000 (14:07 +0200)]
luci-base: fix label-to-input association in js cbi maps
Fixes: #2845
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Florian Eckert [Tue, 9 Jul 2019 11:59:24 +0000 (13:59 +0200)]
Merge pull request #2844 from TDT-AG/pr/
20190709-luci-app-statistics
luci-app-statistics: fix collectd config generation
Florian Eckert [Tue, 9 Jul 2019 10:47:37 +0000 (12:47 +0200)]
luci-app-statistics: fix collectd config generation
Fix config generation for the following sections:
* curl
* exec
* network
* iptables
Ref: https://github.com/openwrt/packages/issues/9427
Fixes:
c1380ab ("make luci-app-statistics more extensible")
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Stan Grishin [Mon, 8 Jul 2019 19:44:55 +0000 (12:44 -0700)]
luci-app-advanced-reboot: fix README url in Makefile
Signed-off-by: Stan Grishin <stangri@melmac.net>
Paul Spooren [Sun, 7 Jul 2019 20:14:13 +0000 (22:14 +0200)]
build: add circleci
This automatically performs formal checks and also checks and compiles
the packages. The resulting packages are then stored as artifacts and
easily testable on running machines.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Jo-Philipp Wich [Mon, 8 Jul 2019 15:39:24 +0000 (17:39 +0200)]
luci-base: use native ubus HTTP gateway if available
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 8 Jul 2019 15:07:11 +0000 (17:07 +0200)]
luci-base,luci-mod-system: split ubus localtime into get and set call
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 8 Jul 2019 14:25:30 +0000 (16:25 +0200)]
luci-base: add rpcd ACL rules
Add required ACL rules to allow access to the native ubus HTTP
interface directly.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 20:03:21 +0000 (22:03 +0200)]
Revert "luci-base: luasrcdiet: switch to scm clone and fix tarball name"
This reverts commit
faa5f0eacd2b2c90c33a75ee1e7fd3ec776601af.
Fixes: #2834
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 19:26:24 +0000 (21:26 +0200)]
luci-base: mvalue.htm: fix reading back multi value options
Fixes:
2a229e50c ("luci-base: fix cbi mvalue templates")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 19:13:02 +0000 (21:13 +0200)]
luci-base: fix cbi mvalue templates
Fixes:
9c7eb1dec ("luci-base: switch from server side to client side widget markup")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 18:14:18 +0000 (20:14 +0200)]
luci-mod-network: switch hostname configuration to client side js
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 18:12:42 +0000 (20:12 +0200)]
luci-base: network.js: dynamically calculate IPv4 netmasks
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 18:11:35 +0000 (20:11 +0200)]
treewide: switch to shared isObject(), toArray() and sortedKeys() helpers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 18:10:13 +0000 (20:10 +0200)]
luci-base: luci.js: add isObject(), toArray() and sortedKeys() helper
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 17:11:37 +0000 (19:11 +0200)]
luci-mod-network: switch route configuration page to client side view
Also implement extended route attributes via modal dialog.
Fixes: #2695
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 17:09:12 +0000 (19:09 +0200)]
luci-base: form.js: reload map data when saving modal forms
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 17:08:03 +0000 (19:08 +0200)]
luci-base: widgets.js: add textvalude representation for network select
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 7 Jul 2019 13:39:56 +0000 (15:39 +0200)]
Merge pull request #2806 from dibdot/magic
system-wide: fix escaping of magic chars
Jo-Philipp Wich [Sun, 7 Jul 2019 13:10:30 +0000 (15:10 +0200)]
luci-base: uci.js: track packages affected by reorder operations
This is required to properly reload the configurations after applying uci
changes that solely consist of uci section ordering operations.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 5 Jul 2019 13:39:03 +0000 (15:39 +0200)]
luci-theme-bootstrap: add CBI order drag/drop styles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 5 Jul 2019 12:11:18 +0000 (14:11 +0200)]
luci-theme-bootstrap: add various CSS tweaks
- Apply the same style to <button> and <input type="button"> elements
- Increase width of modal CBI dialogs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 5 Jul 2019 10:00:11 +0000 (12:00 +0200)]
luci-base: fix regular expression in network.Protocol.getDevices()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 13 Jun 2019 13:23:26 +0000 (15:23 +0200)]
luci-app-firewall: switch to client side CBI views
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 13 Jun 2019 17:06:02 +0000 (19:06 +0200)]
luci-base: add tools.widgets JS library
Add a tools.widgets library which bundles a number of useful, higher
level CBI widgets like firewall zone list or network interface dropdowns
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 13 Jun 2019 13:16:12 +0000 (15:16 +0200)]
luci-base: validation.js: rework translation labels
Rework validation error translations for compount operators such
as list() or neg() to not rely that much on specific native language
grammar.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 13 Jun 2019 13:13:11 +0000 (15:13 +0200)]
luci-base: uci.js: add extended section syntax support, improve loading
Add support for extended section syntax notation in @type[#] format and
refactor the package loading function to not load configurations twice
when a package load operation is already pending and another load request
is made for the same package.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 13 Jun 2019 13:01:00 +0000 (15:01 +0200)]
luci-base: {ui,form}.js: allow passing additional CSS classes to modals
Add the ability to pass additional CSS classes to modal dialogs and
make use of this facility in form.js to annotate CBI map modals.
This can be used later by themes to apply additional CSS rules.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 7 Jun 2019 10:51:27 +0000 (12:51 +0200)]
luci-base: luci.js: don't abort finished xhr objects
Calling abort() on a finished xhr object will clear properties such
as status which can confuse code relying on legacy LuCI request
helper functions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 6 Jun 2019 19:06:25 +0000 (21:06 +0200)]
luci-base: cbi.js: fix number rounding in string.format()
Ensure that patterns like %d, %x, %o or %b properly truncate their
operands to whole integers.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 6 Jun 2019 19:05:34 +0000 (21:05 +0200)]
luci-base: form.js: support placeholders for DynamicList widgets
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 6 Jun 2019 19:05:15 +0000 (21:05 +0200)]
luci-base: form.js: fix rendering flag values in modals
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 6 Jun 2019 19:04:04 +0000 (21:04 +0200)]
luci-base: form.js: trigger validation before saving cbi map
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 6 Jun 2019 19:02:04 +0000 (21:02 +0200)]
luci-base: form.js: prevent section creation on modal cbi save failure
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 6 Jun 2019 18:49:19 +0000 (20:49 +0200)]
luci-base: ui.js: fix rendering of rich dropdown placeholders
Placeholders may be HTML elements instead of plain strings, so do
not use innerHTML to assign them but rely on L.dom.content() instead.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 6 Jun 2019 17:24:10 +0000 (19:24 +0200)]
luci-base: implement further ubus calls
Implement new ubus rpcd backend calls for later use in the frontend:
- netdevs: dump information about Linux network devices present
- boardjson: dump /etc/board.json if present
- offload_support: query whether netfilter offloading is supported
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 6 Jun 2019 17:19:31 +0000 (19:19 +0200)]
luci-base: fix handling of large ubus HTTP requests
Properly handle ubus POST requests exceeding the default chunk size
and fix a possible nil dereference when rejecting incoming requests
due to bad JSON message framing.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 28 May 2019 15:49:00 +0000 (17:49 +0200)]
luci-base: add client-side implementation of luci.model.firewall
Introduce firewall.js, a client side reimplementation of the
luci.model.firewall class.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>