oweals/luci.git
5 years agoMerge pull request #2904 from castillofrancodamian/mosquitto
Florian Eckert [Tue, 23 Jul 2019 06:33:38 +0000 (08:33 +0200)]
Merge pull request #2904 from castillofrancodamian/mosquitto

luci-app-mosquitto: Add template

5 years agoMerge pull request #2903 from castillofrancodamian/ltqtapi
Florian Eckert [Tue, 23 Jul 2019 06:33:09 +0000 (08:33 +0200)]
Merge pull request #2903 from castillofrancodamian/ltqtapi

luci-app-ltqtapi: Add template

5 years agoMerge pull request #2902 from castillofrancodamian/dump1090
Florian Eckert [Tue, 23 Jul 2019 06:32:40 +0000 (08:32 +0200)]
Merge pull request #2902 from castillofrancodamian/dump1090

luci-app-dump1090: Add template

5 years agoMerge pull request #2901 from castillofrancodamian/cshark
Florian Eckert [Tue, 23 Jul 2019 06:31:41 +0000 (08:31 +0200)]
Merge pull request #2901 from castillofrancodamian/cshark

luci-app-cshark: Add template

5 years agoMerge pull request #2898 from castillofrancodamian/att
Florian Eckert [Tue, 23 Jul 2019 06:31:03 +0000 (08:31 +0200)]
Merge pull request #2898 from castillofrancodamian/att

luci-app-attendedsysupgrade: Add template

5 years agoMerge pull request #2900 from castillofrancodamian/banip
Florian Eckert [Tue, 23 Jul 2019 06:30:07 +0000 (08:30 +0200)]
Merge pull request #2900 from castillofrancodamian/banip

luci-app-banip: Add template

5 years agoMerge pull request #2899 from castillofrancodamian/bmx7
Florian Eckert [Tue, 23 Jul 2019 06:29:44 +0000 (08:29 +0200)]
Merge pull request #2899 from castillofrancodamian/bmx7

luci-app-bmx7: Add template

5 years agoMerge pull request #2897 from castillofrancodamian/e2
Florian Eckert [Tue, 23 Jul 2019 06:28:08 +0000 (08:28 +0200)]
Merge pull request #2897 from castillofrancodamian/e2

luci-app-e2guardian: Add template

5 years agoluci-app-mosquitto: Add template 2904/head
Franco Castillo [Mon, 22 Jul 2019 17:58:45 +0000 (14:58 -0300)]
luci-app-mosquitto: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-ltqtapi: Add template 2903/head
Franco Castillo [Mon, 22 Jul 2019 17:49:19 +0000 (14:49 -0300)]
luci-app-ltqtapi: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-dump1090: Add template 2902/head
Franco Castillo [Mon, 22 Jul 2019 17:25:12 +0000 (14:25 -0300)]
luci-app-dump1090: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-cshark: Add template 2901/head
Franco Castillo [Mon, 22 Jul 2019 17:20:23 +0000 (14:20 -0300)]
luci-app-cshark: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-banip: Add template 2900/head
Franco Castillo [Mon, 22 Jul 2019 17:11:30 +0000 (14:11 -0300)]
luci-app-banip: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-bmx7: Add template 2899/head
Franco Castillo [Mon, 22 Jul 2019 16:43:56 +0000 (13:43 -0300)]
luci-app-bmx7: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-attendedsysupgrade: Add template 2898/head
Franco Castillo [Mon, 22 Jul 2019 15:09:01 +0000 (12:09 -0300)]
luci-app-attendedsysupgrade: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-e2guardian: Add template 2897/head
Franco Castillo [Mon, 22 Jul 2019 15:00:26 +0000 (12:00 -0300)]
luci-app-e2guardian: Add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-base: remove accidentally committed code
Jo-Philipp Wich [Mon, 22 Jul 2019 14:48:35 +0000 (16:48 +0200)]
luci-base: remove accidentally committed code

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-firewall: add support for further per-zone options
Jo-Philipp Wich [Mon, 22 Jul 2019 14:38:03 +0000 (16:38 +0200)]
luci-app-firewall: add support for further per-zone options

This commit introduces support for zone devices, subnets, conntrack helpers
and iptables extra options.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: add conntrack_helpers ubus procedure
Jo-Philipp Wich [Mon, 22 Jul 2019 14:35:58 +0000 (16:35 +0200)]
luci-base: add conntrack_helpers ubus procedure

Also move firewall specific ACLs into separate group.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: widgets.js: implement CBIDeviceSelect netdev picker
Jo-Philipp Wich [Mon, 22 Jul 2019 14:31:25 +0000 (16:31 +0200)]
luci-base: widgets.js: implement CBIDeviceSelect netdev picker

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: widgets.js: handle devices or subnets in CBIZoneForwards
Jo-Philipp Wich [Mon, 22 Jul 2019 14:30:33 +0000 (16:30 +0200)]
luci-base: widgets.js: handle devices or subnets in CBIZoneForwards

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters
Jo-Philipp Wich [Mon, 22 Jul 2019 14:29:42 +0000 (16:29 +0200)]
luci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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>