summaryrefslogtreecommitdiffhomepage
path: root/libs
AgeCommit message (Collapse)Author
2011-08-12libs/web: add _() function to dispatcher, used for marking translatable menu ↵Jo-Philipp Wich
entries
2011-08-12libs/web: eliminate another uneeded require in dispatcherJo-Philipp Wich
2011-08-12libs/web: optimize access to translate() api by directly reusing the ↵Jo-Philipp Wich
luci.i18n instance loaded in dispatcher - this saves one extra function call, one extra require and one extra table lookup for _each_ translation string
2011-08-12[PATCH] Allow smarter node creation based on visibility during createtreeJo-Philipp Wich
As I've brought up on the mailing list thread "High latency caused by full tree creation", there is a large amount of delay per LuCI request which is spent building the node tree in createtree(). Most nodes created aren't needed for the view presented to the user and only serve to consume memory and CPU time during a page load. My idea is to provide an easy mechanism for index()ers to determine which needs to be created and what isn't. Due to the constraints of the standard LuCI web interface, this optimization needs to establish a few rules: * The page requested must have its node created * All parents of the page being requested must be created, so the children inherit the track * All the top-level nodes "Status", "System", "Services", "Network" (and others added by extensions) must be created in order to have their top-level tabs in the UI * All peers of second-level nodes need to be created as well for the same reason, to display their links on the subindexes To make this easy to implement in each controller, the attached patch adds an "inreq" field to each created node to indicate if it lies on the request path. To satisfy the "top level node" requirement, we always add the top level node, then check its inreq property if the top-level node is not "in request", then the controller can exit index() early.
2011-08-12[PATCH] Wasted memory use storing path copies in node treeJo-Philipp Wich
When creating the node tree, every node stores a copy of its full path table. e.g. for node("admin.network.wireless"), node.path = { "admin", "network", "wireless" } This value is not used anywhere, and likely may be from before the addition of the treecache lookup table? In any instance, I've searched high and low and see nothing ever referencing any node's path via the path member. It eats a good chunk of memory though and as such I believe it should be removed. I've tested every page in the admin-full module after removing it and all seem to function properly.
2011-08-12libs/nixio: add missing file in previous commit, revert unrelated changeJo-Philipp Wich
2011-08-12libs/nixio: implement getproto(), getprotobyname() and getprotobynumber()Jo-Philipp Wich
2011-08-11libs/lucid: fix process function leak (#285)Jo-Philipp Wich
2011-08-11libs/nixio: allow building without shadow password supportJo-Philipp Wich
2011-08-11libs/nixio: fix possible issue with nonblocking bind()Jo-Philipp Wich
2011-07-22libs/lucid: perform full gc cycle prior to forking, massively improves ↵Jo-Philipp Wich
memory consumption
2011-07-21libs/web: more verbose faultsJo-Philipp Wich
2011-07-20libs/web: make dispatcher faults more verboseJo-Philipp Wich
2011-07-18libs/web: fix index cache rebuild triggering (#275)Jo-Philipp Wich
2011-07-17libs/nixio: Fix recvfrom() return values for unnamed unix sockets, patch by ↵Jo-Philipp Wich
capnbry@gmail.com (#274)
2011-07-11libs/core: fix multiple errors in zone delete handling of firewall modelJo-Philipp Wich
2011-06-25libs/httpclient: return server response line in error case (#249)Jo-Philipp Wich
2011-06-23libs/ipkg: capture stdout, stderr when running opkg commandsJo-Philipp Wich
2011-06-17libs/web: add new datatypes min(...), max(...) and neg_network_ip4addrJo-Philipp Wich
2011-06-01libs/core: Allow the use of commands with arguments or of multiple commands ↵Manuel Munz
for exec in /etc/config/ucitrack
2011-05-21libs/sys: redirect stdout to /dev7null when calling initscriptsJo-Philipp Wich
2011-05-04libs/web: remove license comments from cbi templates, saves around 50% of ↵Jo-Philipp Wich
their size
2011-05-03libs/web: fix another invalid entityJo-Philipp Wich
2011-05-03trunk: s/ / /gJo-Philipp Wich
2011-04-17libs/json: Fix a typo and a logic error in json.lua to make ↵Jo-Philipp Wich
luci.json.encode() work like expected (#220)
2011-04-13luci-firewall: Add support for negations for ip addresses/nets (#218)Manuel Munz
2011-03-17libs/web: fix "port" datatype to allow port 0Jo-Philipp Wich
2011-03-13libs/sys: ignore TIME_WAIT connections in luci.sys.net.conntrack()Jo-Philipp Wich
2011-03-13libs/web: explicitely cast input value of %m pattern to float in order to ↵Jo-Philipp Wich
avoid throwing an exception in toFixed() with very low values
2011-03-13libs/core: add luci.model.network.wifinet.id()Jo-Philipp Wich
2011-03-13libs/core: add txpower() and country() to luci.model.network.wifinetJo-Philipp Wich
2011-03-13libs/web: add %m pattern to String.format()Jo-Philipp Wich
2011-03-12libs/sys: disregard ::/0 routes on "lo" in luci.sys.net.defaultroute6()Jo-Philipp Wich
2011-03-11libs/core: allow resolving of virtual interfaces via get_interface(), should ↵Jo-Philipp Wich
fix wan status display with 6to4, 6in4 tunnels or pppoe connections
2011-03-05libs/web: repair and modernize FileBrowser widget, patches by Kevin Locke ↵Jo-Philipp Wich
<klocke@digitalenginesoftware.com> (#207)
2011-02-26libs/core: make general network model aware of the relay pseudo bridge protocolJo-Philipp Wich
2011-02-20libs/core: mark radvd as affected by network restartsJo-Philipp Wich
2011-02-20libs/core: ensure that luci.model.network.network._ip() always returns a ↵Jo-Philipp Wich
table if a list was requested
2011-02-14libs/sys: Filter model string from /proc/diag/modelManuel Munz
2011-02-14libs/sys: better handle bogomips parsingJo-Philipp Wich
2011-02-12web: Relax hostname validation for lengthManuel Munz
2011-02-12libs/sys: fix call to nixio.uname()Jo-Philipp Wich
2011-02-12libs/sys: fix parsing of model and cpu info, consider 2000::/3 as IPv6 ↵Jo-Philipp Wich
default route if no ::/0 route exists (#200)
2011-02-12libs/core: use is6linklocal()Jo-Philipp Wich
2011-02-12libs/core: whitespace fix in previous commitJo-Philipp Wich
2011-02-12libs/core: add is4linklocal(), is4rfc1918() and is6linklocal() to luci.ipJo-Philipp Wich
2011-02-12web: Improve hostname validationManuel Munz
2011-02-11libs/core: add new convenience functions to luci.model.networkJo-Philipp Wich
2011-02-06libs/core: fix lookups bridge interface -> network in luci.model.networkJo-Philipp Wich
2011-01-29libs/sys: fix ip6tables parsing issueJo-Philipp Wich