Yurii [Sat, 21 Sep 2019 19:14:38 +0000 (22:14 +0300)]
luci-app-firewall: update Ukrainian translation
Update Ukrainian translation according the latest sync translation.
Signed-off-by: Yurii <yuripet@gmail.com>
Hannu Nyman [Sat, 21 Sep 2019 18:59:05 +0000 (21:59 +0300)]
Merge pull request #3095 from YuriPet/patch-3
luci-base: update Ukrainian translation
Yurii [Sat, 21 Sep 2019 18:58:26 +0000 (21:58 +0300)]
luci-base: update Ukrainian translation
Corrected my typo.
Signed-off-by: Yurii <yuripet@gmail.com>
Florian Eckert [Sat, 21 Sep 2019 18:53:08 +0000 (20:53 +0200)]
Merge pull request #3042 from muink/patch-1
luci-base: hosts.js: Update chinese translations
Florian Eckert [Sat, 21 Sep 2019 18:50:38 +0000 (20:50 +0200)]
Merge pull request #3094 from YuriPet/patch-2
luci-base: update Ukrainian translation
Yurii [Sat, 21 Sep 2019 18:49:11 +0000 (21:49 +0300)]
luci-base: update Ukrainian translation
Update Ukrainian translation according the latest translation resync. Сorrections and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Hannu Nyman [Sat, 21 Sep 2019 17:47:32 +0000 (20:47 +0300)]
Merge pull request #3093 from castillofrancodamian/master
luci-base: update Spanish translation
Franco Castillo [Sat, 21 Sep 2019 17:29:54 +0000 (14:29 -0300)]
luci-base: update Spanish translation
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Jo-Philipp Wich [Sat, 21 Sep 2019 17:06:30 +0000 (19:06 +0200)]
luci-mod-system: remove unused controller actions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 16:46:17 +0000 (18:46 +0200)]
luci-mod-system: mounts.js: preload fstab uci
Preload the uci configuration on page load to avoid accidential double
rendering of the globals section and mount overview table.
Fixes:
e39ab8725 ("luci-mod-system: mounts.js: implicitely create globals section")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 16:43:42 +0000 (18:43 +0200)]
luci-mod-system: mounts.js: implicitely create globals section
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 16:36:31 +0000 (18:36 +0200)]
luci-mod-system: remplement fstab settings as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 16:30:34 +0000 (18:30 +0200)]
luci-base: add rpc methods for mount management
This commit introduces the new methods luci/getBlockDevices,
luci/setBlockDetect, luci/getMountPoints, luci/setUmount in
preparation for the reworked mount point management.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 08:55:54 +0000 (10:55 +0200)]
luci-base: tie cached system features to user session
Store the cached system feature flags keyed by the current session id,
this ensures that the features are refreshed on login.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 08:23:15 +0000 (10:23 +0200)]
luci-base: network.js: don't batch wireless scan requests
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 08:21:15 +0000 (10:21 +0200)]
luci-base: rpc.js: increase default timeout to 20s, allow batch prevention
Support a new option "nobatch: true" in rpc.declare() which prevents the
underlying RPC call from being batched with other calls.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 08:19:22 +0000 (10:19 +0200)]
luci-base: luci.js: improve XHR issue diagnostics
Differentiate between request timeouts and other error reasons.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Sat, 21 Sep 2019 08:21:01 +0000 (11:21 +0300)]
Merge pull request #3091 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
INAGAKI Hiroshi [Sat, 21 Sep 2019 08:09:25 +0000 (17:09 +0900)]
luci-base: update Japanese translation
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
INAGAKI Hiroshi [Sat, 21 Sep 2019 07:59:44 +0000 (16:59 +0900)]
luci-base: use old translation for "Gateway Ports"
This text is replaced from "Gateway ports" in
f878b21c8c4ef9444a9de6bc02b58ed4f91b0b2d.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
INAGAKI Hiroshi [Sat, 21 Sep 2019 05:26:49 +0000 (14:26 +0900)]
luci-base: sync translations
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Jo-Philipp Wich [Fri, 20 Sep 2019 15:11:38 +0000 (17:11 +0200)]
luci-mod-network: sort wifi encryption by strength and popularity
Fixes: #3082
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 11:39:22 +0000 (13:39 +0200)]
luci-mod-network: fix key option quirk when switching wep and wpa modes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 09:30:09 +0000 (11:30 +0200)]
luci-mod-network: default to ieee80211w=2 for OWE
Ref: https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/services/hostapd/files/hostapd.sh;h=
46acbefeeeb771de879dd9926ad170042dff2473;hb=HEAD#l327
Fixes:
63f28fd06 luci-mod-network: default to ieee80211w=1 for OWE
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 07:58:31 +0000 (09:58 +0200)]
luci-base: form.js: only update option default if cfgvalue is null
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 07:55:51 +0000 (09:55 +0200)]
luci-mod-network: default to ieee80211w=1 for OWE
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 07:36:23 +0000 (09:36 +0200)]
luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 19 Sep 2019 13:48:27 +0000 (15:48 +0200)]
luci-mod-network: wireless.js: fix disabled state on disabled radio
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 19 Sep 2019 13:46:39 +0000 (15:46 +0200)]
luci-mod-network: wireless.js: select proper 11w default for WPA3 modes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 19 Sep 2019 13:40:57 +0000 (15:40 +0200)]
luci-base: form.js: add support for dynamic default values
Many uci options have different implicit defaults, depending on the
values of other related options. A prominent example is the wireless
ieee80211w option which defaults to 2, 1 or 0 depending on whether
the encryption is set to wpa3-sae, wpa2/wpa2 mixed or any other mode
respectively.
Add the ability to specify a dictionary of default values and their
corresponding dependencies in order to be able to express such
configurations.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 19 Sep 2019 13:39:46 +0000 (15:39 +0200)]
luci-base: ui.js: mark user-changed widgets
Set a `data-changed=true` attribute on the widget element when the user
did any change to the default value.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 18 Sep 2019 13:08:19 +0000 (15:08 +0200)]
luci-base: form.js: fix default click action of button options
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 18 Sep 2019 11:51:16 +0000 (13:51 +0200)]
luci-base: ensure that button labels are properly html escaped
Fixes: #3067
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
muink [Wed, 18 Sep 2019 11:35:09 +0000 (19:35 +0800)]
luci-base: proto_dhcp.lua: Update chinese translations
Signed-off-by: muink <hukk1996@gmail.com>
Jo-Philipp Wich [Wed, 18 Sep 2019 06:16:41 +0000 (08:16 +0200)]
luci-mod-system: system.js: simplify btn actions, use feature flags
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Wed, 18 Sep 2019 06:07:33 +0000 (09:07 +0300)]
Merge pull request #3080 from castillofrancodamian/master
luci-base and apps: update Spanish translation
Jo-Philipp Wich [Wed, 18 Sep 2019 05:46:33 +0000 (07:46 +0200)]
luci-base: network.js: filter invalid mac addresses
Only consider valid ethernet mac addresses when building the device state
from raw getifaddrs() information.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 18 Sep 2019 05:33:25 +0000 (07:33 +0200)]
luci-mod-network: interfaces.js: derive status from layer 3 device
Align the status column device selection logic with the approach used for
rendering the interface status boxes; first try to obtain the active
layer3 device as reported by ubus, only then fall back to the protocol
specific device hint which might or might not point to an existing device.
Fixes: #3076
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 18 Sep 2019 05:19:18 +0000 (07:19 +0200)]
luci-base: network.js: get low level device details from getifaddr() info
Fixes: #3078
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 18 Sep 2019 05:23:01 +0000 (07:23 +0200)]
luci-mod-system: disable redundant page actions in crontab, startup views
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Franco Castillo [Wed, 18 Sep 2019 02:40:37 +0000 (23:40 -0300)]
luci-base and apps: update Spanish translation
Update of the Spanish translation of luci-base and some LuCI applications.
* luci-base
* adblock
* advanced-reboot
* aria2
* banip
* ddns
* firewall
* mjpg-streamer
* mwan3
* ntpc
* simple-adblock
* travelmate
* vpnbypass
* wifischedule
* wireguard
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Florian Eckert [Tue, 17 Sep 2019 18:59:51 +0000 (20:59 +0200)]
Merge pull request #3074 from TDT-AG/pr/
20190916-flashops-german-translation
luci-base: fix german translation for factory reset hint
Florian Eckert [Tue, 17 Sep 2019 08:09:23 +0000 (10:09 +0200)]
Merge pull request #3063 from TDT-AG/pr/
20190908-luci-app-statistics
luci-app-statistics: Add new plugin options
Jo-Philipp Wich [Tue, 17 Sep 2019 06:28:45 +0000 (08:28 +0200)]
luci-proto-wireguard: fix preshared key validation
Ensure that the preshared key option remains optional.
Fixes: #3075
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 17 Sep 2019 05:43:48 +0000 (07:43 +0200)]
luci-mod-system: remplement dropbear settings as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Martin Schiller [Mon, 16 Sep 2019 07:32:25 +0000 (09:32 +0200)]
luci-base: fix german translation for factory reset hint
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Jo-Philipp Wich [Mon, 16 Sep 2019 05:54:25 +0000 (07:54 +0200)]
luci-mod-system: remplement password change as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 15 Sep 2019 18:00:36 +0000 (20:00 +0200)]
luci-mod-system: reimplement SSH key mgmt as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 16 Sep 2019 05:49:05 +0000 (07:49 +0200)]
luci-base: add luci/setPassword rpc method, dropbear feature flag
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 17 Sep 2019 05:03:27 +0000 (07:03 +0200)]
luci-base: luci.js: render view buttons depending on available functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 16 Sep 2019 05:55:45 +0000 (07:55 +0200)]
luci-base: form.js: implement JSONMap
Implement a new map type JSONMap which uses a JSON data structure instead
of uci as configuration data backend.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Sun, 15 Sep 2019 16:38:59 +0000 (19:38 +0300)]
Merge pull request #3069 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
INAGAKI Hiroshi [Sun, 15 Sep 2019 11:08:14 +0000 (20:08 +0900)]
luci-base: update Japanese translation
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
INAGAKI Hiroshi [Sun, 15 Sep 2019 10:15:17 +0000 (19:15 +0900)]
i18n: sync translations
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Jo-Philipp Wich [Sat, 14 Sep 2019 15:44:32 +0000 (17:44 +0200)]
luci-base: luci.js: append version when dynamically loading classes
This allows for some naive cache busting when the LuCI version changes,
to avoid loading outdated classes from cache.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 14 Sep 2019 15:20:41 +0000 (17:20 +0200)]
luci-base: cbi.js: update dependencies after widgets have been rendered
Fixes: #3066
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 14 Sep 2019 15:03:23 +0000 (17:03 +0200)]
luci-base: network.js: register "none" protocol
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Florian Eckert [Fri, 13 Sep 2019 12:20:44 +0000 (14:20 +0200)]
Merge pull request #3024 from TDT-AG/pr/
20190829-material-logo
luci-theme-material: show logo also on login page
Jo-Philipp Wich [Fri, 13 Sep 2019 12:19:33 +0000 (14:19 +0200)]
luci-mod-network: wireless.js: restore mac hints in mac list widget
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 13 Sep 2019 12:18:43 +0000 (14:18 +0200)]
luci-base: network.js: implement Hosts.getMACHints()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Florian Eckert [Fri, 13 Sep 2019 12:10:01 +0000 (14:10 +0200)]
luci-app-statistics: add ping stddev definition
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Florian Eckert [Fri, 13 Sep 2019 12:01:36 +0000 (14:01 +0200)]
luci-app-statistics: cleanup ping definitions
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Florian Eckert [Fri, 13 Sep 2019 10:56:39 +0000 (12:56 +0200)]
luci-app-statistics: update license header in memory definition
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Florian Eckert [Fri, 13 Sep 2019 10:51:13 +0000 (12:51 +0200)]
luci-app-statistics: add new memory plugin option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Florian Eckert [Fri, 13 Sep 2019 09:55:36 +0000 (11:55 +0200)]
luci-app-statistics: add new cpu plugin options
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Jo-Philipp Wich [Fri, 13 Sep 2019 10:57:08 +0000 (12:57 +0200)]
luci-base: fix ip6hint option dependencies and validation
Ref: https://forum.openwrt.org/t/odhcpd-make-lease-file-persistent/44118/8
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 13 Sep 2019 09:06:30 +0000 (11:06 +0200)]
Merge pull request #3060 from tano-systems/pr/update-ru-i18n
luci-base: Update Russian translation
Anton Kikin [Thu, 12 Sep 2019 21:13:04 +0000 (00:13 +0300)]
luci-base: Update Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Hannu Nyman [Thu, 12 Sep 2019 19:41:08 +0000 (22:41 +0300)]
Merge pull request #3059 from castillofrancodamian/master
luci-base: update Spanish translation
Franco Castillo [Thu, 12 Sep 2019 19:34:11 +0000 (16:34 -0300)]
luci-base: update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Franco Castillo [Thu, 12 Sep 2019 19:06:32 +0000 (16:06 -0300)]
luci-base: update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Jo-Philipp Wich [Thu, 12 Sep 2019 17:22:59 +0000 (19:22 +0200)]
luci-mod-system: improve LED configuration page
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 16:56:24 +0000 (18:56 +0200)]
luci-base: sys.lua: fix init script enable action
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 16:55:50 +0000 (18:55 +0200)]
luci-mod-system: add heading to startup page, improve error reporting
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 16:48:58 +0000 (18:48 +0200)]
luci-mod-system: reimplent system/crontab as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 12:42:12 +0000 (14:42 +0200)]
luci-base: whitelist file/write actions on /etc/rc.local
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 12:41:30 +0000 (14:41 +0200)]
luci-mod-system: restore rc.local editing functionality
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 12:13:08 +0000 (14:13 +0200)]
luci-mod-system: reimplent system/startup as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 12:02:06 +0000 (14:02 +0200)]
luci-base: rpc.js: fix list requests, handle aborted http requests
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 12:00:47 +0000 (14:00 +0200)]
luci-base: fix list method handling in ubus-rpc protocol proxy
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 09:10:19 +0000 (11:10 +0200)]
luci-theme-bootstrap: tune .alert-message padding and margin
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 09:09:20 +0000 (11:09 +0200)]
luci-base: drop unused tools.status.switch_status() call
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 09:06:38 +0000 (11:06 +0200)]
luci-mod-network: reimplement switch configuration as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 09:01:19 +0000 (11:01 +0200)]
luci-base: add luci/getSwconfigFeatures and luci/getSwconfigPortState
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 08:49:04 +0000 (10:49 +0200)]
luci-base: form.js: handle non-string values in stripTags()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 12 Sep 2019 08:12:33 +0000 (10:12 +0200)]
Merge pull request #3056 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
INAGAKI Hiroshi [Thu, 12 Sep 2019 07:52:41 +0000 (16:52 +0900)]
luci-base: update Japanese translation
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Jo-Philipp Wich [Thu, 12 Sep 2019 04:52:27 +0000 (06:52 +0200)]
Merge pull request #3055 from YuriPet/patch-1
luci-base: update Ukrainian translation
Yurii [Wed, 11 Sep 2019 23:46:17 +0000 (02:46 +0300)]
luci-base: update Ukrainian translation
Update Ukrainian translation according the latest translation resync. Сorrections and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Jo-Philipp Wich [Wed, 11 Sep 2019 11:19:00 +0000 (13:19 +0200)]
luci-base: restore some lost translations and update german
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 11 Sep 2019 10:58:18 +0000 (12:58 +0200)]
luci-base: resync translations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Nicholas Smith [Mon, 2 Sep 2019 01:43:33 +0000 (11:43 +1000)]
luci-app-firewall: display "this new zone" instead of "undefined"
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
Jo-Philipp Wich [Wed, 11 Sep 2019 10:46:59 +0000 (12:46 +0200)]
luci-app-firewall: disallow creating zone without name
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 11 Sep 2019 10:44:34 +0000 (12:44 +0200)]
luci-base: widgets.js: fix display quirk in tools.widgets.DeviceSelect
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 11 Sep 2019 10:28:58 +0000 (12:28 +0200)]
luci-base: validation.js: implement length() datatype validator
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 11 Sep 2019 10:27:02 +0000 (12:27 +0200)]
luci-mod-network: add missing dependency on rpcd-mod-iwinfo
Fixes:
963b7636b ("luci-mod-network: switch to client side wifi configuration pages")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 11 Sep 2019 10:21:51 +0000 (12:21 +0200)]
luci-base: view.htm: catch and render exceptions on view instantiation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 11 Sep 2019 07:30:00 +0000 (09:30 +0200)]
luci-base: luci.js: register rpc interceptor to catch expired sessions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 11 Sep 2019 07:28:21 +0000 (09:28 +0200)]
luci-base: luci.js: rework error handling
- Capture stack trace in L.raise() if passed type is not an Error instance
- Use L.ui.addNotification in L.error() to render the error message
- Prevent duplicate error reporting in the ui
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 11 Sep 2019 07:25:11 +0000 (09:25 +0200)]
luci-base: rpc.js: revamp error handling, add interceptor support
Add two new functions L.rpc.addInterceptor() and L.rpc.removeInterceptor()
which allow to register and remove interceptor functions which are invoked
before the rpc reply result promise is fulfilled.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>