oweals/luci.git
5 years agoluci-app-olsr-viz: Add template 2907/head
Franco Castillo [Mon, 22 Jul 2019 18:32:49 +0000 (15:32 -0300)]
luci-app-olsr-viz: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-base: widgets.js: CBIZoneSelect: improve initial rendering
Jo-Philipp Wich [Mon, 22 Jul 2019 06:58:59 +0000 (08:58 +0200)]
luci-base: widgets.js: CBIZoneSelect: improve initial rendering

Ref: https://github.com/openwrt/luci/issues/2889
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: widgets.js: CBIZoneSelect: fix availability of "device" choice
Jo-Philipp Wich [Mon, 22 Jul 2019 06:40:38 +0000 (08:40 +0200)]
luci-base: widgets.js: CBIZoneSelect: fix availability of "device" choice

Ref: https://github.com/openwrt/luci/issues/2889
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-firewall: fix cbi form for rules
Jo-Philipp Wich [Sun, 21 Jul 2019 09:12:13 +0000 (11:12 +0200)]
luci-app-firewall: fix cbi form for rules

 - Set src/dest defaults only in initial section create state, otherwise it
   is impossible to specify output rules
 - Get rid of dest_remote/dest_local widget switching and implement change
   logic directly in tools.widgets.CBIZoneSelect
 - Remove leftover debug code

Ref: https://github.com/openwrt/luci/issues/2889
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2896 from YuriPet/master
Hannu Nyman [Sun, 21 Jul 2019 11:37:54 +0000 (14:37 +0300)]
Merge pull request #2896 from YuriPet/master

luci-base: correct spelling mistake in Ukrainian translation

5 years agoluci-base: correct spelling mistake in Ukrainian translation 2896/head
Yurii [Sun, 21 Jul 2019 10:27:19 +0000 (13:27 +0300)]
luci-base: correct spelling mistake in Ukrainian translation

Signed-off-by: Yurii <yuripet@gmail.com>
5 years agoluci-mod-network: fix typo in wifi scan JS code
Jo-Philipp Wich [Sun, 21 Jul 2019 07:42:15 +0000 (09:42 +0200)]
luci-mod-network: fix typo in wifi scan JS code

Fixes: 8dd2df29c ("luci-mod-network: improve wifi scan status reporting")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2895 from YuriPet/master
Jo-Philipp Wich [Sun, 21 Jul 2019 07:33:21 +0000 (09:33 +0200)]
Merge pull request #2895 from YuriPet/master

luci-base: Update Ukrainian translation

5 years agoluci-base: Update Ukrainian translation 2895/head
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>
5 years agoMerge pull request #2893 from tano-systems/pr/ru-i18n-update
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

5 years agoluci-base: update Russian translation 2893/head
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>
5 years agoMerge pull request #2886 from castillofrancodamian/base
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

5 years agoluci-base: Update Spanish translation 2886/head
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>
5 years agoluci-mod-status: luci-bwc: use 64bit traffic counters
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>
5 years agoluci-base: update german translation
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>
5 years agoluci-base: resync base translations
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>
5 years agoluci-mod-network: improve wifi scan status reporting
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>
5 years agoluci-base: render default values for all server side cbi map widgets
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>
5 years agoMerge pull request #2882 from TDT-AG/pr/20190718-ovpn-tls-ciphersuites
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

5 years agoluci-base: ui.js: fix multi vs. multiple keyword confusion
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>
5 years agoluci-app-openvpn: add new tls_ciphersuites option 2882/head
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>
5 years agoMerge pull request #2880 from tano-systems/pr/fix-for-2878
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

5 years agoluci-app-firewall: format protocol family for forwards and rules 2880/head
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>
5 years agoMerge pull request #2879 from systemcrash/patch
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

5 years agoEnglish grammar fix 2879/head
Paul Dee [Wed, 17 Jul 2019 14:40:50 +0000 (16:40 +0200)]
English grammar fix

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
5 years agoluci-app-openvpn: fix client_disconnect OpenVPN option
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>
5 years agoMerge pull request #2877 from YuriPet/master
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.

5 years agoluci-app-firewall: update Ukrainian translation 2877/head
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>
5 years agoluci-base: update Ukrainian translation
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>
5 years agoMerge pull request #2869 from tano-systems/pr/luci-base-fix-ru-translation
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

5 years agoMerge pull request #2872 from musashino205/l10n/fw-upd-ja
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

5 years agoluci-app-firewall: update Japanese translation 2872/head
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>
5 years agoluci-base: fix Russian translation 2869/head
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>
5 years agoMerge pull request #2749 from dibdot/wg
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

5 years agoMerge pull request #2863 from castillofrancodamian/rosy-file-server
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

5 years agoMerge pull request #2862 from castillofrancodamian/lxc
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

5 years agoMerge pull request #2860 from castillofrancodamian/opkg
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

5 years agoMerge pull request #2859 from castillofrancodamian/base
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

5 years agoMerge pull request #2861 from castillofrancodamian/firewall
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

5 years agoMerge pull request #2858 from tano-systems/pr/update-russian-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

5 years agoluci-app-rosy-file-server: Add template 2863/head
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>
5 years agoluci-app-lxc: Add template 2862/head
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>
5 years agoluci-app-firewall: Update Spanish translation 2861/head
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>
5 years agoluci-app-opkg: Update Spanish translation 2860/head
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>
5 years agoluci-base: Update Spanish translation 2859/head
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>
5 years agoluci-app-firewall: update Russian translation 2858/head
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>
5 years agoluci-base: update Russian translation
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>
5 years agoluci-base: update Japanese translation
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>
5 years agoi18n: sync translations
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>
5 years agoluci-base: fix translatable text in ui.js
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>
5 years agoluci-base: luci.js: add Promise.finally polyfill
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>
5 years agoluci-app-wol: update Ukrainian translation
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>
5 years agoluci-app-upnp: update Ukrainian translation
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>
5 years agoluci-app-samba4: update Ukrainian translation
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>
5 years agoluci-app-samba: update Ukrainian translation
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>
5 years agoluci-app-opkg: update Ukrainian translation
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>
5 years agoluci-app-firewall: update Ukrainian translation
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>
5 years agoluci-base: update Ukrainian translation
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>
5 years agoluci-base: ui.js: fix UISelect.setValue()
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>
5 years agoluci-base: luci.js: only use overrideMimeType when supported
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>
5 years agoluci-base: validation.js: fix nested function declarations
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>
5 years agoluci-base: ui.js: fix UISelect.getValue()
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>
5 years agoluci-app-wireguard: QR-Code enhancements 2749/head
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>
5 years agoluci-app-bmx7: transfer from routing
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>
5 years agoluci-base: luci.js: fix undefined "this" when /ubus/ is unavailable
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>
5 years agoluci-app-mwan3: rename ubus values
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>
5 years agoluci-mod-status: show all interface addresses on index page
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>
5 years agoluci-base: luci.js: cache determined RPC base url in session storage
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>
5 years agoluci-base: properly handle getWifiNetidBySid() return value
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>
5 years agoMerge pull request #2839 from stangri/master-luci-app-advanced-reboot
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

5 years agoluci-base: fix label-to-input association in js cbi maps
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>
5 years agoMerge pull request #2844 from TDT-AG/pr/20190709-luci-app-statistics
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

5 years agoluci-app-statistics: fix collectd config generation 2844/head
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>
5 years agoluci-app-advanced-reboot: fix README url in Makefile 2839/head
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>
5 years agobuild: add circleci
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>
5 years agoluci-base: use native ubus HTTP gateway if available
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>
5 years agoluci-base,luci-mod-system: split ubus localtime into get and set call
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>
5 years agoluci-base: add rpcd ACL rules
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>
5 years agoRevert "luci-base: luasrcdiet: switch to scm clone and fix tarball name"
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>
5 years agoluci-base: mvalue.htm: fix reading back multi value options
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>
5 years agoluci-base: fix cbi mvalue templates
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>
5 years agoluci-mod-network: switch hostname configuration to client side js
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>
5 years agoluci-base: network.js: dynamically calculate IPv4 netmasks
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>
5 years agotreewide: switch to shared isObject(), toArray() and sortedKeys() helpers
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>
5 years agoluci-base: luci.js: add isObject(), toArray() and sortedKeys() helper
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>
5 years agoluci-mod-network: switch route configuration page to client side view
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>
5 years agoluci-base: form.js: reload map data when saving modal forms
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>
5 years agoluci-base: widgets.js: add textvalude representation for network select
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>
5 years agoMerge pull request #2806 from dibdot/magic
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

5 years agoluci-base: uci.js: track packages affected by reorder operations
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>
5 years agoluci-theme-bootstrap: add CBI order drag/drop styles
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>
5 years agoluci-theme-bootstrap: add various CSS tweaks
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>
5 years agoluci-base: fix regular expression in network.Protocol.getDevices()
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>
5 years agoluci-app-firewall: switch to client side CBI views
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>
5 years agoluci-base: add tools.widgets JS library
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>
5 years agoluci-base: validation.js: rework translation labels
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>
5 years agoluci-base: uci.js: add extended section syntax support, improve loading
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>
5 years agoluci-base: {ui,form}.js: allow passing additional CSS classes to modals
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>
5 years agoluci-base: luci.js: don't abort finished xhr objects
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>
5 years agoluci-base: cbi.js: fix number rounding in string.format()
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>