Commit graph

10167 commits

Author SHA1 Message Date
Hannu Nyman
896892f9af
Merge pull request #2223 from TDT-AG/pr/20181012-luci-app-mwan3
luci-app-mwan3: fix typo
2018-10-12 16:30:42 +03:00
Dirk Brenken
57bdcbebda
Merge pull request #2204 from dibdot/wg-qrfix
luci-app-wireguard: clean up QR Code generation
2018-10-12 15:30:18 +02:00
Florian Eckert
d78be98cc4 luci-app-mwan3: fix typo
This has worked before because the interface variable is global. But
this is not nice. So this commit will fix this.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-12 08:45:42 +02:00
Hannu Nyman
c9e3e73c8c i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-10-11 19:57:32 +03:00
Hannu Nyman
4ab147e602 i18n: fix translations
fix .po files

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-10-11 19:55:52 +03:00
Hannu Nyman
fcb3915a1e luci-app-travelmate: fix translation fallout
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-10-11 19:53:57 +03:00
Hannu Nyman
febda2e4a7 luci-app-splash: fix translation fallout
Fix the fallout from recent changes

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-10-11 19:24:49 +03:00
Jo-Philipp Wich
c15d2d0474 luci-base: cbi.js: remove dead code
Remove some superfluous code which was added with a previous commit.

Fixes: 8270f10f1 ("luci-base: cbi.js: code cleanups")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-11 08:02:38 +02:00
Jo-Philipp Wich
0aff452d41 luci-lib-iptparser: fix packaging
The previous commit omitted a subdirectory.

Fixes: 94323a61e ("luci-base: move luci.sys.iptparser into separate package")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-11 08:00:03 +02:00
Jo-Philipp Wich
8270f10f16 luci-base: cbi.js: code cleanups
- unify code style
 - add matchesElem() helper
 - replace nodeName checks with selector tests
 - replace className manipulations with classList operations

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-11 07:58:51 +02:00
Jo-Philipp Wich
5f324264d7
Merge pull request #2220 from yangfl/packages
luci-mod-system: block install and search if no package lists
2018-10-11 07:00:13 +02:00
yangfl
74f52f22ff luci-mod-system: block install and search if no package lists
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-11 08:10:31 +08:00
Hannu Nyman
67fd6b6e5e
Merge pull request #2197 from yangfl/master
treewide: Fix typos in comments
2018-10-10 20:25:11 +03:00
Jo-Philipp Wich
a9948891a8 luci-mod-status: fix CDATA marker on iptables status page
Fixes: f6bfac211 ("luci-mod-status: rework iptables status page")
Reported-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-10 15:25:10 +02:00
Jo-Philipp Wich
94323a61e1 luci-base: move luci.sys.iptparser into separate package
Since commit f6bfac211 ("luci-mod-status: rework iptables status page"),
nothing in luci-base depends on the iptparser class anymore, so fold it
out into a separate package and let the few apps that require it depend
on the new library package.

Saves about 10K uncompressed in luci-base while the iptables status
rework enlarged the markup by roughly 5KB, saving roughly 5KB of size
overall.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-10 13:19:48 +02:00
Jo-Philipp Wich
f6bfac2117 luci-mod-status: rework iptables status page
- Parse and format iptables listing in client side JS
- Dynamically update packet counters

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-10 13:11:01 +02:00
yangfl
401382a459 treewide: Fix typos in comments
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-10 15:00:07 +08:00
Jo-Philipp Wich
24d1e7608b luci-base: show default forwarding policy in zone forwarding list
The zone forwarding list widget misleadingly displays the intra-zone
forwarding policy as default policy action when no forwardings exist
instead of the appropriate global defaults forwarding policy which is
the one applied to inter-zone forwarded traffic.

Fix the issue by displaying the defaults policy and not the per-zone
policy to match what the firewall implementation is actually doing.

Fixes: #2213
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-10 08:36:08 +02:00
Jo-Philipp Wich
cb7f9d2ed3 luci-base: validate name in firewall zone selector widget
When creating a new zone through the firewall zone selector widget,
validate the given name before creating new items.

Depends on commit 0b6ae96f2 ("luci-base: cbi.js: recognize invalid
input in dropdown create field").

Fixes: #2211
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-10 08:30:13 +02:00
Jo-Philipp Wich
0b6ae96f2d luci-base: cbi.js: recognize invalid input in dropdown create field
This is required to allow for validating the create field values in
later commits.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-10 08:29:02 +02:00
Jo-Philipp Wich
c126c7349d
Merge pull request #2216 from yangfl/ifacelist
luci-mod-network: show bridges in ifacelist when the interface itself is not a bridge
2018-10-10 07:49:23 +02:00
yangfl
645a555f39 luci-mod-network: show bridges in ifacelist when the interface itself is not a bridge
It's completely OK to select a bridge as the underlying interface of
other interfaces, say a tunnel or PPPoE. The only case which should be
forbidden is bridge over bridge.

Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-10 13:16:57 +08:00
xiongjie
fd3d2b468f luci-base: redirect root path to /cgi-bin/luci/
Fix openwrt/luci#1062
Signed-off-by: MonwF <boluo2@gmail.com>
2018-10-10 13:04:17 +08:00
Hannu Nyman
701f6b0819 timezone data: update to 2018e
Update timezone data to 2018e

http://mm.icann.org/pipermail/tz-announce/2018-May/000050.html

  North Korea switches back to +09 on 2018-05-05.
  The main format uses negative DST again, for Ireland

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-10-09 18:19:52 +03:00
Jo-Philipp Wich
582421f3e1
Merge pull request #2200 from pmelange/freifunk_profiles_nameserver
freifunk profiles: add nameserver 80.67.169.40
2018-10-09 08:35:34 +02:00
Jo-Philipp Wich
4f9e23f2b6
Merge pull request #2208 from remakeelectric/snmp-agentx
luci-app-snmpd: Allow turning off agentx
2018-10-08 13:34:07 +02:00
Karl Palsson
8f96cd8e36 luci-app-snmpd: Allow turning off agentx
AgentX support doesn't actually require TCP, it also works over unix
domain sockets, and UDS is the only method that's compiled in by
default.  Remove that misleading text, and make the section
add/removable so that you can remove it to disable agentx support.
Behaviour with multiple sections is undefined. (don't do that!)

This matches the current behaviour of the snmpd init script, which will
enable agentx with the compile time default settings if the agentx
socket config is blank/missing.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2018-10-08 11:27:53 +00:00
Dirk Brenken
38541eeafa luci-app-wireguard: clean up QR Code generation
* no longer baffle QR code import with "(none)" values from wg dump

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-07 07:46:29 +02:00
Dirk Brenken
a0cc0769d8
Merge pull request #2202 from dibdot/travelmate
luci-app-travelmate: sync with update 1.2.4
2018-10-05 12:30:23 +02:00
Dirk Brenken
bc974aab96
Merge pull request #2195 from dibdot/wg-qrcode
luci-app-wireguard: add QR Code support plus fixes
2018-10-05 12:30:02 +02:00
Dirk Brenken
8a1fe2ad6d luci-app-travelmate: sync with update 1.2.4
* with the config option 'trm_radio' you can now restrict travelmate
  to a single radio (e.g. 'radio1') or change the overall
  scanning order (e.g. 'radio1 radio2 radio0')
* LuCI: show QR codes now inline on the overview page
  (collapsed by default)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-05 10:27:36 +02:00
pmelange
400bb53e6e freifunk profiles: add nameserver 80.67.169.40 from www.fdn.fr/actions/dns
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-10-04 12:10:58 +02:00
Jo-Philipp Wich
280dd33980 luci-base: reword rollback notification dialog
Rename "Apply unchecked" to "Apply anyway" for better clarity and update
the base translation files accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-03 13:25:46 +02:00
Jo-Philipp Wich
fb859e602b luci-app-nlbwmon: fix nil value concat
Do not concatenate the yet undefined mtime variable to avoid a controller
error with backtrace.

Fixes: b3642f476 ("luci-app-nlbwmon: add proper file names for json and csv exports.")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-02 19:20:53 +02:00
Hannu Nyman
a90001419e
Merge pull request #2198 from TDT-AG/pr/20181002-luci-app-mwan3
luci-app-mwan3: fix i18n traceback
2018-10-02 18:00:26 +03:00
Florian Eckert
ea59480e4e luci-app-mwan3: fix i18n traceback
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-02 11:47:33 +02:00
Florian Eckert
0f8b5402a2 luci-theme-material: fix word wrap on german i18n for username
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-01 14:49:02 +02:00
Florian Eckert
5fc51693ac luci-theme-material: make font configurable
Move font selection into custom.css

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-01 14:46:37 +02:00
Jo-Philipp Wich
229c002272
Merge pull request #2191 from Ansuel/zram
luci-mod-system: add zram options
2018-10-01 14:27:15 +02:00
Ansuel Smith
ff5f68d868
luci-mod-system: add zram options
This adds option to configure zram size and compression algo

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-10-01 14:04:18 +02:00
Dirk Brenken
ca76ead1ba luci-app-wireguard: add QR Code support plus fixes
* add optional QR Code support to status page (per wg Interface),
  submitted information via QR code are:
  - [Interface] (list of) Address / PrivateKey
  - [Peer] Endpoint / PublicKey / (list of) AllowedIPs
  - support multiple interfaces and peers
* fix XHTML rendering errors with OpenWrt standard theme
* fix logical glitch with empty descriptions, remove needless variables
* left align the output for better viewing esp. with material theme
* freshen up design a little bit
* switch space indentation to tabs

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-01 11:57:38 +02:00
Jo-Philipp Wich
af96d94ad1
Merge pull request #2194 from yangfl/master
i18n: update Chinese translation
2018-10-01 10:53:35 +02:00
Jo-Philipp Wich
e24c897b88
Merge pull request #2192 from Ansuel/wifi
luci-app-network: add rekey option
2018-10-01 10:52:32 +02:00
yangfl
dc1c69ce4e i18n: update Chinese translation
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-01 11:39:57 +08:00
Florian Eckert
24cf28b5ec luci-proto-pppossh: move pppossh to own package
This is a special proto which should go into a separate package.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-30 17:49:09 +08:00
Florian Eckert
cd1bce5017 luci-proto-hnet: move hnet to own package
This is a special proto which should go into a separate package.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-30 17:49:09 +08:00
Rosy Song
258dc1312a luci-mod-system: add id for software/freespace div
Signed-off-by: Rosy Song <rosysong@rosinson.com>
2018-09-30 12:07:45 +08:00
Ansuel Smith
7d09ee81a0
luci-app-network: add rekey option and inactivity tweak
This option is usefull to solve some problems with ath10k-ct and random client disconnect. This also adds some extra option to tune inactivity settings

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-09-29 22:10:57 +02:00
Ameer Dawood
15fc6bf48d luci-app-nlbwmon: the default CSV delimiter should be a comma
Suggested-by: Ameer Dawood <ameer1234567890@gmail.com>
[slightly reword commit subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29 15:01:57 +02:00
Ameer Dawood
b3642f4762 luci-app-nlbwmon: add proper file names for json and csv exports.
Currently, the json and csv exports are just named `data` which is not
intuitive. This adds proper file name extensions using the
Content-disposition HTTP header.

Suggested-by: Ameer Dawood <ameer1234567890@gmail.com>
[slightly reword commit message, squash commits]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29 14:59:42 +02:00