project/luci.git
6 years agoluci-app-olsr: convert mid.htm to new json plugin
pmelange [Mon, 5 Nov 2018 15:37:19 +0000 (16:37 +0100)]
luci-app-olsr: convert mid.htm to new json plugin

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr: convert interfaces.htm to new json plugin
pmelange [Mon, 5 Nov 2018 10:44:53 +0000 (11:44 +0100)]
luci-app-olsr: convert interfaces.htm to new json plugin

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr: convert olsr.lua and overview.htm to new json plugin
pmelange [Mon, 5 Nov 2018 16:20:16 +0000 (17:20 +0100)]
luci-app-olsr: convert olsr.lua and overview.htm to new json plugin

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address
pmelange [Mon, 5 Nov 2018 13:03:35 +0000 (14:03 +0100)]
luci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr: cbi remove library version numbers in library search results
pmelange [Mon, 5 Nov 2018 09:24:15 +0000 (10:24 +0100)]
luci-app-olsr: cbi remove library version numbers in library search results

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-mod-network: move AHCP protocol model to AHCP application
Jo-Philipp Wich [Mon, 5 Nov 2018 10:16:54 +0000 (11:16 +0100)]
luci-mod-network: move AHCP protocol model to AHCP application

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: validate DHCP clientid as hexstring
Jo-Philipp Wich [Mon, 5 Nov 2018 10:19:17 +0000 (11:19 +0100)]
luci-base: validate DHCP clientid as hexstring

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: add client-side hexstring datatype validator
Jo-Philipp Wich [Mon, 5 Nov 2018 10:13:39 +0000 (11:13 +0100)]
luci-base: cbi.js: add client-side hexstring datatype validator

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: add heuristics to attribute handling in E()
Jo-Philipp Wich [Mon, 5 Nov 2018 10:11:46 +0000 (11:11 +0100)]
luci-base: cbi.js: add heuristics to attribute handling in E()

If a given attribute value is a function, register it as event listener,
if it is an object, filter it through JSON.stringify(), else set it
as-is.

This helps to reduce some boiler-plate code when building DOM structures.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-theme-material: add invalid input class
Jo-Philipp Wich [Sun, 21 Oct 2018 09:47:29 +0000 (11:47 +0200)]
luci-theme-material: add invalid input class

Fixes #1070.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base, themes: rework dynlist and dropdown widgets
Jo-Philipp Wich [Sat, 20 Oct 2018 15:56:02 +0000 (17:56 +0200)]
luci-base, themes: rework dynlist and dropdown widgets

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-theme-bootstrap: add flash animation
Jo-Philipp Wich [Sat, 20 Oct 2018 14:30:24 +0000 (16:30 +0200)]
luci-theme-bootstrap: add flash animation

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: rework dropdown implementation
Jo-Philipp Wich [Sat, 20 Oct 2018 08:06:57 +0000 (10:06 +0200)]
luci-base: cbi.js: rework dropdown implementation

 - Refactor event handler closures into class methods and bind them instead
 - Fix quirk in dropdown placement calculation
 - Different dropdown placement strategy on touch devices
 - Broadcast custom "cbi-dropdown-change" event when value is changed
 - Implement setValues() method to alter dropdown selection
 - Prevent creating empty custom values

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: utilize node.closest() if available
Jo-Philipp Wich [Sat, 20 Oct 2018 07:55:59 +0000 (09:55 +0200)]
luci-base: cbi.js: utilize node.closest() if available

Use node.closest() in findParent() when available since it should be faster
than manaually traversing the ancestor chain.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: drop cbi_bind()
Jo-Philipp Wich [Fri, 19 Oct 2018 17:16:00 +0000 (19:16 +0200)]
luci-base: cbi.js: drop cbi_bind()

Just use node.addEventListener() directly since all reasonably recent
browsers support it nowadays.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: rework client side input validation
Jo-Philipp Wich [Fri, 19 Oct 2018 06:39:23 +0000 (08:39 +0200)]
luci-base: cbi.js: rework client side input validation

 - Refactor and fix datatype validation functions
 - Turn the type compilation and validation into a proper class
 - Display tooltip with error hint on invalid inputs

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: fix corner case in IPv6() address parser
Jo-Philipp Wich [Fri, 19 Oct 2018 06:21:51 +0000 (08:21 +0200)]
luci-base: cbi.js: fix corner case in IPv6() address parser

The implementation allowed a hexadecimal string without any colons.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base, themes: add tooltip helpers & styles
Jo-Philipp Wich [Thu, 18 Oct 2018 14:14:35 +0000 (16:14 +0200)]
luci-base, themes: add tooltip helpers & styles

Add the required JS and CSS infrastructure to support rich hover/focus
tooltips for element.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: switch to client side translation
Jo-Philipp Wich [Thu, 18 Oct 2018 12:03:52 +0000 (14:03 +0200)]
luci-base: cbi.js: switch to client side translation

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agothemes: load client side translations
Jo-Philipp Wich [Thu, 18 Oct 2018 11:58:10 +0000 (13:58 +0200)]
themes: load client side translations

Extend the theme headers to include the translation string scripts,
allowing client side code to translate strings without server side
support.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: add client side translation infrastructure
Jo-Philipp Wich [Thu, 18 Oct 2018 11:48:05 +0000 (13:48 +0200)]
luci-base: cbi.js: add client side translation infrastructure

Implement the string hash algorithm used by LuCI's translation system in
JavaScript and provide a `_()` translation wrapper function to lookup
messages in the global string table.

Once client side translation loading is activated in a later commit,
JavaScript code can use the same string translation mechanism as server
side Lua code, e.g. `_("Static Routes")` would yield "Statische Routen"
when the German translation is loaded.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: expose system translations to JavaScript
Jo-Philipp Wich [Thu, 18 Oct 2018 11:44:39 +0000 (13:44 +0200)]
luci-base: expose system translations to JavaScript

Add a new /admin/translations/ endpoint which exposes the loaded system
translations as JavaScript file.

Once referenced by <script>, the endpoint will create a `window.TR` object
containing the entire translation string table for use on the client side.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: remove unused i18n functions
Jo-Philipp Wich [Thu, 18 Oct 2018 11:32:52 +0000 (13:32 +0200)]
luci-base: remove unused i18n functions

Drop load(), loadc(), string() and stringf() from the luci.i18n class since
these functions are either no longer unused or were never used to begin with.

Also slightly rework the module to only use local symbols and unify the
module require style.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: remove references to luci.i18n.loadc()
Jo-Philipp Wich [Thu, 18 Oct 2018 09:02:28 +0000 (11:02 +0200)]
luci-base: remove references to luci.i18n.loadc()

The i18n.loadc() function has been a no-op since almost six years so it
makes no sense to invoke it anymore.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-app-mjpg-streamer: remove reference to luci.i18n.loadc()
Jo-Philipp Wich [Thu, 18 Oct 2018 09:00:25 +0000 (11:00 +0200)]
luci-app-mjpg-streamer: remove reference to luci.i18n.loadc()

The i18n.loadc() function has been a no-op since almost six years.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: introduce luci.i18n.dump()
Jo-Philipp Wich [Thu, 18 Oct 2018 08:54:12 +0000 (10:54 +0200)]
luci-base: introduce luci.i18n.dump()

Add a new luci.i18n.dump() function which returns all currently loaded
translation strings as Lua table.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: fix luci.i18n.setlanguage()
Jo-Philipp Wich [Thu, 18 Oct 2018 07:52:07 +0000 (09:52 +0200)]
luci-base: fix luci.i18n.setlanguage()

Rework the setlanguage() implementation to actually switch catalogues
if another language has been loaded previously and change it to return
the effectively loaded language tag.

Also improve input parameter validation and accept tags in both lower
or upper case.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: template: add translation iterator function
Jo-Philipp Wich [Wed, 17 Oct 2018 10:57:34 +0000 (12:57 +0200)]
luci-base: template: add translation iterator function

Introduce a new luci.template.parser.get_translations() function which will
iterate all loaded translation entries and pass the to the given callback
function.

This is useful to expose the loaded translations in other formats, e.g. for
wrapping them into JSON feeds.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agobuild: i18n-scan.pl: *.js support, location annotations
Jo-Philipp Wich [Wed, 17 Oct 2018 10:47:20 +0000 (12:47 +0200)]
build: i18n-scan.pl: *.js support, location annotations

Extend i18n-scan.pl to scan JavaScript files for translation strings as
well and annotate produced *.po template files with source code location
markers.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoi18n: sync translations
Hannu Nyman [Sun, 4 Nov 2018 16:05:01 +0000 (18:05 +0200)]
i18n: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoMerge pull request #2246 from rosysong/rosy
Jo-Philipp Wich [Fri, 2 Nov 2018 13:06:03 +0000 (14:06 +0100)]
Merge pull request #2246 from rosysong/rosy

theme: add initial commit for rosy theme

6 years agoMerge pull request #2193 from rosysong/freespace
Jo-Philipp Wich [Fri, 2 Nov 2018 13:04:31 +0000 (14:04 +0100)]
Merge pull request #2193 from rosysong/freespace

luci-mod-system: add id for software/freespace div

6 years agocommunity-profiles: create profile for Fürstenwalde
Martin Hübner [Tue, 23 Oct 2018 16:43:58 +0000 (18:43 +0200)]
community-profiles: create profile for Fürstenwalde

New profile for Fürstenwalde. At the moment we use parts of the Berlin-
infrastructure. Thus I have not changed the ip-address-related things.

Signed-off-by: Martin Hübner <martin.hubner@web.de>
[reword and rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoMerge pull request #2250 from booo/remove-olsrd-library-version-numbers
Jo-Philipp Wich [Fri, 2 Nov 2018 12:53:08 +0000 (13:53 +0100)]
Merge pull request #2250 from booo/remove-olsrd-library-version-numbers

get rid of library version numbers in luci olsrd code

6 years agoMerge pull request #2252 from stweil/lgtm
Jo-Philipp Wich [Fri, 2 Nov 2018 12:52:37 +0000 (13:52 +0100)]
Merge pull request #2252 from stweil/lgtm

Add missing variable declarations in JavaScript code

6 years agoMerge pull request #2253 from dibdot/travelmate
Dirk Brenken [Tue, 30 Oct 2018 19:12:13 +0000 (20:12 +0100)]
Merge pull request #2253 from dibdot/travelmate

luci-app-travelmate: sync with travelmate 1.3.0

6 years agotimezone data: update to 2018g
Hannu Nyman [Tue, 30 Oct 2018 17:45:50 +0000 (19:45 +0200)]
timezone data: update to 2018g

Update timezone data to 2018g

http://mm.icann.org/pipermail/tz-announce/2018-October/000052.html

 * Morocco switches to permanent +01 on 2018-10-27.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoluci-app-travelmate: sync with travelmate 1.3.0 2253/head
Dirk Brenken [Tue, 30 Oct 2018 14:29:00 +0000 (15:29 +0100)]
luci-app-travelmate: sync with travelmate 1.3.0

* add support for the new 'trm_proactive' option

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agotheme: add initial commit for rosy theme 2246/head
Rosy Song [Thu, 25 Oct 2018 03:29:18 +0000 (11:29 +0800)]
theme: add initial commit for rosy theme

Signed-off-by: Rosy Song <rosysong@rosinson.com>
Signed-off-by: Yan Lan Shen <yanlan.shen@rosinson.com>
6 years agoAdd missing variable declarations in JavaScript code 2252/head
Stefan Weil [Sun, 28 Oct 2018 21:38:20 +0000 (22:38 +0100)]
Add missing variable declarations in JavaScript code

This fixes errors reported by LGTM.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
6 years agoget rid of library version numbers in luci olsrd code 2250/head
Philipp Borgers [Thu, 25 Oct 2018 19:54:42 +0000 (21:54 +0200)]
get rid of library version numbers in luci olsrd code

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
6 years agoMerge pull request #2248 from tano-systems/fstab-translateble-swap
Hannu Nyman [Thu, 25 Oct 2018 16:51:36 +0000 (19:51 +0300)]
Merge pull request #2248 from tano-systems/fstab-translateble-swap

luci-mod-system: fstab: "SWAP" section title is made translatable

6 years agoluci-mod-system: fstab: "SWAP" section title is made translatable 2248/head
Anton Kikin [Thu, 25 Oct 2018 16:40:23 +0000 (19:40 +0300)]
luci-mod-system: fstab: "SWAP" section title is made translatable

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
6 years agoMerge pull request #2247 from tano-systems/luci-base-upd-ru-i18n
Hannu Nyman [Thu, 25 Oct 2018 16:35:23 +0000 (19:35 +0300)]
Merge pull request #2247 from tano-systems/luci-base-upd-ru-i18n

luci-base: update and improve Russian translation

6 years agoluci-base: update and improve Russian translation 2247/head
Anton Kikin [Thu, 25 Oct 2018 16:30:54 +0000 (19:30 +0300)]
luci-base: update and improve Russian translation

Add missing translations and update existing not quite correct translations.
Also removed unnecessary dots at the end of some translations.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
6 years ago timezone data: update to 2018f
Hannu Nyman [Thu, 25 Oct 2018 15:44:48 +0000 (18:44 +0300)]
 timezone data: update to 2018f

Update timezone data to 2018f

http://mm.icann.org/pipermail/tz-announce/2018-October/000051.html

   Volgograd moves from +03 to +04 on 2018-10-28.
   Fiji ends DST 2019-01-13, not 2019-01-20.
   Most of Chile changes DST dates, effective 2019-04-06.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoMerge pull request #2243 from dibdot/ovpn-fix
Dirk Brenken [Tue, 23 Oct 2018 21:18:38 +0000 (23:18 +0200)]
Merge pull request #2243 from dibdot/ovpn-fix

luci-app-openvpn: file name fix

6 years agoluci-app-openvpn: file name fix 2243/head
Dirk Brenken [Tue, 23 Oct 2018 21:16:38 +0000 (23:16 +0200)]
luci-app-openvpn: file name fix

* fix shellquote oversight of the last commit

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agoMerge pull request #2235 from dibdot/ovpn-upload
Dirk Brenken [Tue, 23 Oct 2018 19:26:51 +0000 (21:26 +0200)]
Merge pull request #2235 from dibdot/ovpn-upload

luci-app-openvpn: add ovpn upload support & more

6 years agoluci-app-openvpn: add ovpn upload support & more 2235/head
Dirk Brenken [Sat, 20 Oct 2018 19:22:49 +0000 (21:22 +0200)]
luci-app-openvpn: add ovpn upload support & more

* add the ability to upload ovpn files directly,
  incl. appropriate uci entry in openvpn config
* add the ability to edit ovpn files directly ('file' mode),
  beside the 'basic' and 'advanced' modes for normal setups
* client side checks to validate instance name & template selection,
  incl. online error reporting
* automatically remove non-ascii characters & windows line endings
  from transfered ovpn file
* change from after_commit to after_apply hook
* remove misleading default values for Port & Protocol in Overview

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agoMerge pull request #2238 from mmouselli/fixed_ui_olsr_service_menu
Jo-Philipp Wich [Tue, 23 Oct 2018 11:20:45 +0000 (13:20 +0200)]
Merge pull request #2238 from mmouselli/fixed_ui_olsr_service_menu

luci-app-olsr-services: Don't use the nameservice with a specific ver…

6 years agoMerge pull request #2227 from YuriPet/master
Hannu Nyman [Mon, 22 Oct 2018 19:39:25 +0000 (20:39 +0100)]
Merge pull request #2227 from YuriPet/master

luci-base: update Ukrainian translation

6 years agoMerge pull request #2239 from dibdot/travelmate
Dirk Brenken [Sun, 21 Oct 2018 20:39:21 +0000 (22:39 +0200)]
Merge pull request #2239 from dibdot/travelmate

luci-app-travelmate: fix wireless scan

6 years agoluci-app-olsr-services: Don't use the nameservice with a specific version. 2238/head
mmouselli [Sun, 21 Oct 2018 16:47:57 +0000 (18:47 +0200)]
luci-app-olsr-services: Don't use the nameservice with a specific version.

The "Services" menu option of olsr on the top of the web interface
is not there.

A specific version of the App name was in the controller service
Removing the limitation will fix the problem

https://github.com/freifunk-berlin/firmware/issues/594

Signed-off-by: mmouselli <m.mouselli@syseleven.de>
6 years agoMerge pull request #2236 from simontretter/master
Jo-Philipp Wich [Sun, 21 Oct 2018 09:47:53 +0000 (11:47 +0200)]
Merge pull request #2236 from simontretter/master

luci-theme-material: Add main color variable

6 years agoluci-app-travelmate: fix wireless scan 2239/head
Dirk Brenken [Sun, 21 Oct 2018 06:37:56 +0000 (08:37 +0200)]
luci-app-travelmate: fix wireless scan

* fix possible crash during wireless scan
  when no valid WPA label was found

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agoluci-theme-material: Add main color variable 2236/head
Simon Tretter [Sun, 21 Oct 2018 03:50:55 +0000 (11:50 +0800)]
luci-theme-material: Add main color variable

Signed-off-by: Simon Tretter <simon@mediaarchitectu.re>
6 years agoMerge pull request #2233 from musashino205/l10n/base-upd-ja
Jo-Philipp Wich [Sat, 20 Oct 2018 16:04:29 +0000 (18:04 +0200)]
Merge pull request #2233 from musashino205/l10n/base-upd-ja

luci-base: update Japanese translation

6 years agoMerge pull request #2215 from MonwF/feature_root_redirect_path
Jo-Philipp Wich [Sat, 20 Oct 2018 16:04:11 +0000 (18:04 +0200)]
Merge pull request #2215 from MonwF/feature_root_redirect_path

luci-base: redirect root path to /cgi-bin/luci/

6 years agoMerge pull request #2196 from TDT-AG/pr/20181001-luci-theme-material
Jo-Philipp Wich [Sat, 20 Oct 2018 16:02:11 +0000 (18:02 +0200)]
Merge pull request #2196 from TDT-AG/pr/20181001-luci-theme-material

luci-theme-material: make font configurable and minor fixes

6 years agoluci-base: update Japanese translation 2233/head
INAGAKI Hiroshi [Fri, 19 Oct 2018 15:57:01 +0000 (00:57 +0900)]
luci-base: update Japanese translation

Added and updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
6 years agoluci-base: fix cbi dropdown quirks with MS Edge
Jo-Philipp Wich [Wed, 17 Oct 2018 05:43:54 +0000 (07:43 +0200)]
luci-base: fix cbi dropdown quirks with MS Edge

On MS Edge, the behaviour of "value" attributes on "li" elements is
unreliable, so use the "data-" prefix to circumvent the problem.

Ref: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/19320991/
Fixes: #2224
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-theme-material: fix css to show loading-img again 2196/head
Florian Eckert [Fri, 12 Oct 2018 08:58:14 +0000 (10:58 +0200)]
luci-theme-material: fix css to show loading-img again

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoluci-base: update Ukrainian translation 2227/head
Yurii [Sun, 14 Oct 2018 15:14:01 +0000 (18:14 +0300)]
luci-base: update Ukrainian translation

Updated with the latest sync translation, corrections.

Signed-off-by: Yurii yuripet@gmail.com
6 years agoMerge pull request #2209 from jinchizhong/luci-app-statistics-add-curl
Hannu Nyman [Sat, 13 Oct 2018 19:02:42 +0000 (22:02 +0300)]
Merge pull request #2209 from jinchizhong/luci-app-statistics-add-curl

luci-app-statistics: add support for cUrl

6 years agopp-statistics: add support for cUrl 2209/head
Chizhong Jin [Sat, 13 Oct 2018 18:34:49 +0000 (02:34 +0800)]
pp-statistics: add support for cUrl

Add collectd-mod-curl plugin support. Which can do some complex track,
such as grab stock, but by now, only response time are supported.

Signed-off-by: Chizhong Jin <pjincz@gmail.com>
6 years agoMerge pull request #2225 from tano-systems/luci-proto-3g-fix-missed-opt-name
Hannu Nyman [Sat, 13 Oct 2018 13:24:44 +0000 (16:24 +0300)]
Merge pull request #2225 from tano-systems/luci-proto-3g-fix-missed-opt-name

luci-proto-3g: add missed option name for IPv6 address obtain mode

6 years agoMerge pull request #2226 from yangfl/master
Hannu Nyman [Fri, 12 Oct 2018 15:51:09 +0000 (18:51 +0300)]
Merge pull request #2226 from yangfl/master

luci-app-dump1090: Fix typo of a dumb option

6 years agoluci-app-dump1090: Fix typo of a dumb option 2226/head
yangfl [Sat, 18 Aug 2018 04:21:21 +0000 (12:21 +0800)]
luci-app-dump1090: Fix typo of a dumb option

Option `aggressive` is supported by dump1090 binary, but oddly missing in
dump1090.init. Nevertheless, neither of them support the wrong
`agressive`.

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agoluci-proto-3g: add missed option name for IPv6 address obtain mode 2225/head
Anton Kikin [Fri, 12 Oct 2018 15:18:11 +0000 (18:18 +0300)]
luci-proto-3g: add missed option name for IPv6 address obtain mode

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
6 years agoMerge pull request #2221 from yangfl/master
Hannu Nyman [Fri, 12 Oct 2018 15:09:25 +0000 (18:09 +0300)]
Merge pull request #2221 from yangfl/master

 treewide: Fix typos in UI strings

6 years agoluci-app: init translations for shadowsocks-libev and unbound 2221/head
yangfl [Fri, 12 Oct 2018 05:55:48 +0000 (13:55 +0800)]
luci-app: init translations for shadowsocks-libev and unbound

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agoluci-app: Fix typos for po strings
yangfl [Fri, 12 Oct 2018 05:43:46 +0000 (13:43 +0800)]
luci-app: Fix typos for po strings

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agotreewide: Fix typos in UI strings
yangfl [Sat, 18 Aug 2018 04:21:21 +0000 (12:21 +0800)]
treewide: Fix typos in UI strings

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agofreifunk-watchdog: Fix typos
yangfl [Sat, 18 Aug 2018 04:21:21 +0000 (12:21 +0800)]
freifunk-watchdog: Fix typos

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agoMerge pull request #2223 from TDT-AG/pr/20181012-luci-app-mwan3
Hannu Nyman [Fri, 12 Oct 2018 13:30:42 +0000 (16:30 +0300)]
Merge pull request #2223 from TDT-AG/pr/20181012-luci-app-mwan3

luci-app-mwan3: fix typo

6 years agoMerge pull request #2204 from dibdot/wg-qrfix
Dirk Brenken [Fri, 12 Oct 2018 13:30:18 +0000 (15:30 +0200)]
Merge pull request #2204 from dibdot/wg-qrfix

luci-app-wireguard: clean up QR Code generation

6 years agoluci-app-mwan3: fix typo 2223/head
Florian Eckert [Thu, 11 Oct 2018 05:58:28 +0000 (07:58 +0200)]
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>
6 years agoi18n: sync translations
Hannu Nyman [Thu, 11 Oct 2018 16:57:32 +0000 (19:57 +0300)]
i18n: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoi18n: fix translations
Hannu Nyman [Thu, 11 Oct 2018 16:55:52 +0000 (19:55 +0300)]
i18n: fix translations

fix .po files

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoluci-app-travelmate: fix translation fallout
Hannu Nyman [Thu, 11 Oct 2018 16:52:24 +0000 (19:52 +0300)]
luci-app-travelmate: fix translation fallout

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoluci-app-splash: fix translation fallout
Hannu Nyman [Thu, 11 Oct 2018 16:24:49 +0000 (19:24 +0300)]
luci-app-splash: fix translation fallout

Fix the fallout from recent changes

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoluci-base: cbi.js: remove dead code
Jo-Philipp Wich [Thu, 11 Oct 2018 06:02:38 +0000 (08:02 +0200)]
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>
6 years agoluci-lib-iptparser: fix packaging
Jo-Philipp Wich [Thu, 11 Oct 2018 06:00:01 +0000 (08:00 +0200)]
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>
6 years agoluci-base: cbi.js: code cleanups
Jo-Philipp Wich [Thu, 11 Oct 2018 05:56:36 +0000 (07:56 +0200)]
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>
6 years agoMerge pull request #2220 from yangfl/packages
Jo-Philipp Wich [Thu, 11 Oct 2018 05:00:13 +0000 (07:00 +0200)]
Merge pull request #2220 from yangfl/packages

luci-mod-system: block install and search if no package lists

6 years agoluci-mod-system: block install and search if no package lists 2220/head
yangfl [Wed, 10 Oct 2018 14:00:46 +0000 (22:00 +0800)]
luci-mod-system: block install and search if no package lists

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agoMerge pull request #2197 from yangfl/master
Hannu Nyman [Wed, 10 Oct 2018 17:25:11 +0000 (20:25 +0300)]
Merge pull request #2197 from yangfl/master

treewide: Fix typos in comments

6 years agoluci-mod-status: fix CDATA marker on iptables status page
Jo-Philipp Wich [Wed, 10 Oct 2018 13:25:10 +0000 (15:25 +0200)]
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>
6 years agoluci-base: move luci.sys.iptparser into separate package
Jo-Philipp Wich [Wed, 10 Oct 2018 11:17:20 +0000 (13:17 +0200)]
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>
6 years agoluci-mod-status: rework iptables status page
Jo-Philipp Wich [Wed, 10 Oct 2018 11:11:01 +0000 (13:11 +0200)]
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>
6 years agotreewide: Fix typos in comments 2197/head
yangfl [Sat, 18 Aug 2018 04:21:21 +0000 (12:21 +0800)]
treewide: Fix typos in comments

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agoluci-base: show default forwarding policy in zone forwarding list
Jo-Philipp Wich [Wed, 10 Oct 2018 06:32:54 +0000 (08:32 +0200)]
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>
6 years agoluci-base: validate name in firewall zone selector widget
Jo-Philipp Wich [Wed, 10 Oct 2018 06:30:13 +0000 (08:30 +0200)]
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>
6 years agoluci-base: cbi.js: recognize invalid input in dropdown create field
Jo-Philipp Wich [Wed, 10 Oct 2018 06:28:15 +0000 (08:28 +0200)]
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>
6 years agoMerge pull request #2216 from yangfl/ifacelist
Jo-Philipp Wich [Wed, 10 Oct 2018 05:49:23 +0000 (07:49 +0200)]
Merge pull request #2216 from yangfl/ifacelist

luci-mod-network: show bridges in ifacelist when the interface itself is not a bridge

6 years agoluci-mod-network: show bridges in ifacelist when the interface itself is not a bridge 2216/head
yangfl [Wed, 10 Oct 2018 05:12:34 +0000 (13:12 +0800)]
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>
6 years agoluci-base: redirect root path to /cgi-bin/luci/ 2215/head
xiongjie [Wed, 10 Oct 2018 05:04:17 +0000 (13:04 +0800)]
luci-base: redirect root path to /cgi-bin/luci/

Fix openwrt/luci#1062
Signed-off-by: MonwF <boluo2@gmail.com>
6 years agotimezone data: update to 2018e
Hannu Nyman [Tue, 9 Oct 2018 15:19:52 +0000 (18:19 +0300)]
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>
6 years agoMerge pull request #2200 from pmelange/freifunk_profiles_nameserver
Jo-Philipp Wich [Tue, 9 Oct 2018 06:35:34 +0000 (08:35 +0200)]
Merge pull request #2200 from pmelange/freifunk_profiles_nameserver

freifunk profiles: add nameserver 80.67.169.40