Commit graph

4340 commits

Author SHA1 Message Date
Jo-Philipp Wich
37df666e0a libs/web: fix some missing escapes in iface and netlist widgets 2011-09-01 16:07:02 +00:00
Manuel Munz
3b9fbb12b8 modules/admin_system: Add note to step2 of firmware flashing telling the user if configuration is kept or not, thanks hnyman (#298) 2011-08-28 16:18:21 +00:00
Manuel Munz
cc7b8fcc6f modules/freifunk: Changes to duesseldorf profile (#297) 2011-08-28 16:13:14 +00:00
Manuel Munz
7619f3051e contrib/meshwizard: Set community homepage in /etc/config/freifunk 2011-08-28 14:11:43 +00:00
Manuel Munz
53fa83c313 modules/freifunk: Fix carbodebit profile 2011-08-28 13:42:04 +00:00
Manuel Munz
8538b6f30d modules/freifunk: Try to get the location from /etc/config/freifunk if it isn't found in /etc/config/system 2011-08-28 10:29:33 +00:00
Manuel Munz
02219b66b7 modules/freifunk: Add firewall.freifunk include to /etc/config/freifunk 2011-08-28 10:13:22 +00:00
Manuel Munz
045907af40 modules/freifunk: luci-theme-freifunk-generic is the default, so no need to specify it here. 2011-08-24 16:40:28 +00:00
Manuel Munz
6d8f26ac69 modules/freifunk: Add profile for guifibages 2011-08-24 16:07:11 +00:00
Manuel Munz
b17ac89857 Revert last commit 2011-08-24 16:00:55 +00:00
Manuel Munz
8176dcead8 modules/freifunk: Add extrapackages to be included when images are built using the imagebuilder. 2011-08-24 15:57:13 +00:00
Manuel Munz
fbcbde824b modules/freifunk: Add theme to profiles to get rid of the imagebuilder-profiles, only augsburg for now, others will follow if this is sucessfull 2011-08-24 14:27:04 +00:00
Manuel Munz
3e34c9bdd8 themes/openwrt: Fix footer position, thanks for the fix (#272) 2011-08-24 10:48:05 +00:00
Jo-Philipp Wich
bbd5aa1831 applications/luci-statistics: cope with rules having no target in iptables plugin config 2011-08-22 20:52:31 +00:00
Manuel Munz
015d95e3f4 contrib/meshwizard: The last change broke correct bssid_generation, should work again 2011-08-20 20:39:46 +00:00
Jo-Philipp Wich
2a287a2049 libiwinfo: fix encryption info on station interfaces in mac80211 AP-STA setups 2011-08-13 21:59:09 +00:00
Jo-Philipp Wich
86c32d917c applications/luci-statistics: fix translation issues in controller 2011-08-13 21:12:19 +00:00
Jo-Philipp Wich
5bc4c852da libs/core: fallback to trunk version 2011-08-13 09:52:50 +00:00
Jo-Philipp Wich
287c33e211 themes: get rid of "v" prefix in version display 2011-08-13 09:52:12 +00:00
Jo-Philipp Wich
4b3bb979ce contrib/package: be trunk 2011-08-12 13:50:59 +00:00
Jo-Philipp Wich
1d76d8a215 applications, modules: remove i18n handling from controller modules as it moved to the themes now 2011-08-12 13:16:27 +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
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