mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
b6fc02d2810fa515398ec6e53c9d04bf835c1de4
There are a number of validation types which are useful
but inaccessible when a value field combines simple
data-types. Example <ipaddr><space><ipaddr>. At which point
one must write a custom validate function, and applying the
built-in factory methods is not trivial.
Introduce a tuple function which combines known types
to validate a string, with a single line definition.
E.g. an IP and a port space-separated:
opt.datatype = 'tuple(ipaddr,port)';
All validation methods must return true for valid data.
The tuple function splits on space by default, or any string
provided by sep(). Here, a comma:
opt.datatype = 'tuple(ipaddr,port,sep(","))';
After the string is separated, any error message displayed
corresponds to the first invalid part of the input string
encountered.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
OpenWrt luci feed
Description
This is the OpenWrt "luci"-feed containing LuCI - OpenWrt Configuration Interface.
Usage
This feed is enabled by default. Your feeds.conf.default (or feeds.conf) should contain a line like:
src-git luci https://github.com/openwrt/luci.git
To install all its package definitions, run:
./scripts/feeds update luci
./scripts/feeds install -a -p luci
API Reference
You can browse the generated API documentation directly on Github.
Use ucode and rpcd for server side operations.
Development
Documentation for developing and extending LuCI can be found in the Wiki
License
See LICENSE file.
Package Guidelines
See CONTRIBUTING.md file.
Translation status
Use Weblate instead of direct editing of the *.po files.
Description
Languages
JavaScript
65.1%
C
17.3%
Lua
6.6%
CSS
3.7%
UnrealScript
3%
Other
4.2%