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
6151812920
themes: filter menu entry title through translate()
2011-08-12 12:33:35 +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
Translation System
5d0a48b5e0
Commit from LuCI Translation Portal by user soma.: 2 of 4 messages translated (0 fuzzy).
2011-08-07 15:04:50 +00:00
Translation System
13f4ea8a53
Commit from LuCI Translation Portal by user soma.: 9 of 222 messages translated (8 fuzzy).
2011-08-07 15:04:34 +00:00
Translation System
a44351890b
Commit from LuCI Translation Portal by user soma.: 760 of 760 messages translated (0 fuzzy).
2011-08-07 14:48:29 +00:00
Manuel Munz
7c9cecad3a
modules/freifunk: Add profile for carbodebit (fr)
2011-08-05 17:24:27 +00:00
Manuel Munz
2c480459e0
contrib/meshwizard: fix for last commit
2011-08-05 17:21:26 +00:00
Manuel Munz
51fa41e942
contrib/meshwizard: Add option in community profiles to set the same bssid for every channel with bssidscheme 'all'
2011-08-05 17:16:38 +00:00
Jo-Philipp Wich
563598a976
modules/admin-full: fix "undefined" netmask display on main status page
2011-07-31 12:37:22 +00:00
Jo-Philipp Wich
01cd04fc78
applications/luci-firewall: fix turning off nat reflection
2011-07-30 20:02:58 +00:00
Jo-Philipp Wich
753dbfff7a
applications/luci-diag-devinfo: add index() stubs to controller files ( #281 )
2011-07-30 19:42:05 +00:00
Jo-Philipp Wich
7dc764e861
libiwinfo: fix segfaults in nl80211 hwmodelist and freqlist operations if called on a not existing phy
2011-07-22 14:49:52 +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
7b316be27b
modules/admin-full: properly set device option for newly created vlan sections
2011-07-22 13:56:02 +00:00
Jo-Philipp Wich
224dc2daa2
applications/luci-wol: cope with host entries that have multiple MACs assigned
2011-07-21 15:26:55 +00:00
Translation System
390da8e4b1
Commit from LuCI Translation Portal by user jow.: 16 of 16 messages translated (0 fuzzy).
2011-07-21 10:32:40 +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
Translation System
f614287fd3
Commit from LuCI Translation Portal by user jow.: 9 of 11 messages translated (1 fuzzy).
2011-07-20 13:48:39 +00:00
Translation System
8ed24beea7
Commit from LuCI Translation Portal by user jow.: 7 of 16 messages translated (0 fuzzy).
2011-07-20 13:48:36 +00:00
Translation System
e0e717965b
Commit from LuCI Translation Portal by user jow.: 23 of 42 messages translated (0 fuzzy).
2011-07-20 13:48:33 +00:00
Translation System
2450b3635d
Commit from LuCI Translation Portal by user jow.: 20 of 69 messages translated (0 fuzzy).
2011-07-20 13:48:31 +00:00
Translation System
53fc4d83ff
Commit from LuCI Translation Portal by user jow.: 15 of 139 messages translated (0 fuzzy).
2011-07-20 13:48:29 +00:00
Translation System
d9b4383518
Commit from LuCI Translation Portal by user jow.: 15 of 20 messages translated (0 fuzzy).
2011-07-20 13:48:26 +00:00
Translation System
507ff854bd
Commit from LuCI Translation Portal by user jow.: 19 of 108 messages translated (0 fuzzy).
2011-07-20 13:48:22 +00:00
Translation System
2e807b8db4
Commit from LuCI Translation Portal by user jow.: 15 of 23 messages translated (0 fuzzy).
2011-07-20 13:48:21 +00:00
Translation System
da49e190d8
Commit from LuCI Translation Portal by user jow.: 12 of 54 messages translated (0 fuzzy).
2011-07-20 13:48:19 +00:00
Translation System
94ebc7663d
Commit from LuCI Translation Portal by user jow.: 47 of 156 messages translated (0 fuzzy).
2011-07-20 13:48:15 +00:00
Translation System
aa4dad9749
Commit from LuCI Translation Portal by user jow.: 4 of 27 messages translated (0 fuzzy).
2011-07-20 13:48:12 +00:00
Translation System
bff8c6f187
Commit from LuCI Translation Portal by user jow.: 8 of 24 messages translated (0 fuzzy).
2011-07-20 13:48:10 +00:00
Translation System
4cd69da09f
Commit from LuCI Translation Portal by user jow.: 36 of 47 messages translated (0 fuzzy).
2011-07-20 13:48:05 +00:00
Translation System
c387bbc481
Commit from LuCI Translation Portal by user jow.: 34 of 42 messages translated (0 fuzzy).
2011-07-20 13:48:03 +00:00
Translation System
8d4e423528
Commit from LuCI Translation Portal by user jow.: 48 of 171 messages translated (0 fuzzy).
2011-07-20 13:48:00 +00:00
Translation System
5e3b79a358
Commit from LuCI Translation Portal by user jow.: 14 of 222 messages translated (0 fuzzy).
2011-07-20 13:47:56 +00:00
Translation System
a9ca6b3768
Commit from LuCI Translation Portal by user jow.: 718 of 760 messages translated (0 fuzzy).
2011-07-18 14:58:24 +00:00
Translation System
8d5e8d9324
Commit from LuCI Translation Portal by user jow.: 10 of 760 messages translated (0 fuzzy).
2011-07-18 14:57:37 +00:00
Translation System
9d909f666a
Commit from LuCI Translation Portal by user jow.: 57 of 223 messages translated (2 fuzzy).
2011-07-18 14:57:35 +00:00
Translation System
240c9b82bd
Commit from LuCI Translation Portal by user jow.: 54 of 69 messages translated (1 fuzzy).
2011-07-18 14:56:18 +00:00
Translation System
02cbf3206d
Commit from LuCI Translation Portal by user jow.: 185 of 190 messages translated (5 fuzzy).
2011-07-18 14:56:12 +00:00
Translation System
62f503329e
Commit from LuCI Translation Portal by user jow.: 77 of 77 messages translated (0 fuzzy).
2011-07-18 14:56:05 +00:00
Jo-Philipp Wich
253eafb577
libs/web: fix index cache rebuild triggering ( #275 )
2011-07-18 14:50:39 +00:00