Jo-Philipp Wich
7925014561
libs/web: add missing class attributes
2011-09-22 18:21:38 +00:00
Jo-Philipp Wich
737daee3e1
libs/web: cbi: dynamically update css class of last field after dependency update
2011-09-22 17:05:14 +00:00
Jo-Philipp Wich
688eb421cc
libs/web: cbi: assign dedicated css class to last child
2011-09-22 16:34:52 +00:00
Jo-Philipp Wich
96dd29753c
libs/web: cbi: provide a "last_child" property to allow for more layout control in form rendering
2011-09-22 16:33:28 +00:00
Jo-Philipp Wich
362c84480a
libs/web: add another missing class attribute
2011-09-22 13:43:39 +00:00
Jo-Philipp Wich
b360dbc6dc
modules/admin-full, modules/freifunk, modules/niu, libs/web, applications/luci-upnp: tune input class attributes
2011-09-22 13:25:48 +00:00
Jo-Philipp Wich
59e95ddcad
modules/admin-full, libs/web: various interface handling fixes in network settings
2011-09-22 01:40:26 +00:00
Jo-Philipp Wich
e2a1ffb59d
libs/core: various interface handling fixes in network model
2011-09-22 01:39:35 +00:00
Jo-Philipp Wich
0285631f5b
libs/core: also enumerate not-yet-spawned vlan interfaces in network model, differentiate switch and vlan interfaces
2011-09-14 09:36:55 +00:00
Jo-Philipp Wich
537c929d63
libs/web: track submit state in network_ifacelist widget, fixes deselecting all member ifaces in checkbox mode
2011-09-14 09:28:16 +00:00
Jo-Philipp Wich
794094caa2
libs/web: add "neg()" cbi datatype to negate arbritary types, e.g. "neg(hostname)" would allow "!example.com"
2011-09-04 12:07:43 +00:00
Jo-Philipp Wich
37df666e0a
libs/web: fix some missing escapes in iface and netlist widgets
2011-09-01 16:07:02 +00:00
Jo-Philipp Wich
5bc4c852da
libs/core: fallback to trunk version
2011-08-13 09:52:50 +00:00
Jo-Philipp Wich
a8ac3b344f
libs/web: add _() function to dispatcher, used for marking translatable menu entries
2011-08-12 13:11:29 +00:00
Jo-Philipp Wich
986c4b5bc1
libs/web: eliminate another uneeded require in dispatcher
2011-08-12 12:34:13 +00:00
Jo-Philipp Wich
c1d69d0146
libs/web: optimize access to translate() api by directly reusing the 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 11:13:39 +00:00
Jo-Philipp Wich
0cb0742818
[PATCH] Allow smarter node creation based on visibility during createtree
...
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 11:05:59 +00:00
Jo-Philipp Wich
b3861e0ec7
[PATCH] Wasted memory use storing path copies in node tree
...
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-12 11:04:42 +00:00
Jo-Philipp Wich
69ba2e55a1
libs/nixio: add missing file in previous commit, revert unrelated change
2011-08-12 10:27:48 +00:00
Jo-Philipp Wich
2b33717dc4
libs/nixio: implement getproto(), getprotobyname() and getprotobynumber()
2011-08-12 10:26:33 +00:00
Jo-Philipp Wich
4e78f77d63
libs/lucid: fix process function leak ( #285 )
2011-08-11 23:23:11 +00:00
Jo-Philipp Wich
0d73b6d411
libs/nixio: allow building without shadow password support
2011-08-11 23:21:06 +00:00
Jo-Philipp Wich
11ff9204cf
libs/nixio: fix possible issue with nonblocking bind()
2011-08-11 23:15:05 +00:00
Jo-Philipp Wich
ff892ab41a
libs/lucid: perform full gc cycle prior to forking, massively improves memory consumption
2011-07-22 13:59:29 +00:00
Jo-Philipp Wich
2e618aaf29
libs/web: more verbose faults
2011-07-21 01:04:53 +00:00
Jo-Philipp Wich
d970d7bd27
libs/web: make dispatcher faults more verbose
2011-07-20 23:57:32 +00:00
Jo-Philipp Wich
253eafb577
libs/web: fix index cache rebuild triggering ( #275 )
2011-07-18 14:50:39 +00:00
Jo-Philipp Wich
518dc0fef9
libs/nixio: Fix recvfrom() return values for unnamed unix sockets, patch by capnbry@gmail.com ( #274 )
2011-07-17 09:04:43 +00:00
Jo-Philipp Wich
1a221ddfb9
libs/core: fix multiple errors in zone delete handling of firewall model
2011-07-11 12:14:55 +00:00
Jo-Philipp Wich
ded8dae503
libs/httpclient: return server response line in error case ( #249 )
2011-06-25 22:57:18 +00:00
Jo-Philipp Wich
307f307a8e
libs/ipkg: capture stdout, stderr when running opkg commands
2011-06-23 10:12:03 +00:00
Jo-Philipp Wich
354aeb44f6
libs/web: add new datatypes min(...), max(...) and neg_network_ip4addr
2011-06-17 10:52:49 +00:00
Manuel Munz
1d70d03c08
libs/core: Allow the use of commands with arguments or of multiple commands for exec in /etc/config/ucitrack
2011-06-01 11:56:38 +00:00
Jo-Philipp Wich
8431916f7d
libs/sys: redirect stdout to /dev7null when calling initscripts
2011-05-21 16:29:31 +00:00
Jo-Philipp Wich
6e6bac2a4a
libs/web: remove license comments from cbi templates, saves around 50% of their size
2011-05-04 12:56:06 +00:00
Jo-Philipp Wich
b95ec6c93a
libs/web: fix another invalid entity
2011-05-03 03:31:30 +00:00
Jo-Philipp Wich
6697e282af
trunk: s/ / /g
2011-05-03 03:20:15 +00:00
Jo-Philipp Wich
fdf625ea67
libs/json: Fix a typo and a logic error in json.lua to make luci.json.encode() work like expected ( #220 )
2011-04-17 11:39:17 +00:00
Manuel Munz
bb2d7517eb
luci-firewall: Add support for negations for ip addresses/nets ( #218 )
2011-04-13 00:33:42 +00:00
Jo-Philipp Wich
8ea7eb8615
libs/web: fix "port" datatype to allow port 0
2011-03-17 17:40:40 +00:00
Jo-Philipp Wich
380726158d
libs/sys: ignore TIME_WAIT connections in luci.sys.net.conntrack()
2011-03-13 22:08:32 +00:00
Jo-Philipp Wich
8cab9e2b8f
libs/web: explicitely cast input value of %m pattern to float in order to avoid throwing an exception in toFixed() with very low values
2011-03-13 21:56:31 +00:00
Jo-Philipp Wich
8e5590037d
libs/core: add luci.model.network.wifinet.id()
2011-03-13 17:22:52 +00:00
Jo-Philipp Wich
986d8b00a2
libs/core: add txpower() and country() to luci.model.network.wifinet
2011-03-13 17:09:26 +00:00
Jo-Philipp Wich
a8688343d6
libs/web: add %m pattern to String.format()
2011-03-13 11:12:11 +00:00
Jo-Philipp Wich
9836e949a5
libs/sys: disregard ::/0 routes on "lo" in luci.sys.net.defaultroute6()
2011-03-12 19:25:03 +00:00
Jo-Philipp Wich
3b4450a58b
libs/core: allow resolving of virtual interfaces via get_interface(), should fix wan status display with 6to4, 6in4 tunnels or pppoe connections
2011-03-11 23:11:34 +00:00
Jo-Philipp Wich
1db9f295fa
libs/web: repair and modernize FileBrowser widget, patches by Kevin Locke <klocke@digitalenginesoftware.com> ( #207 )
2011-03-05 06:35:26 +00:00
Jo-Philipp Wich
efcc1bfbf1
libs/core: make general network model aware of the relay pseudo bridge protocol
2011-02-26 01:34:58 +00:00
Jo-Philipp Wich
74c6fb4cd7
libs/core: mark radvd as affected by network restarts
2011-02-20 18:35:28 +00:00