Commit graph

232 commits

Author SHA1 Message Date
Jo-Philipp Wich
dd2abf2ea4 libs/web: move XHR apply callback into subtemplate 2010-10-15 21:56:44 +00:00
Jo-Philipp Wich
f7ab1fbc56 libs/web: add export() to template namespace, allows templates to export symbols to the calling view namespace, this is useful for includes defining shared procedures or variables 2010-10-15 16:12:07 +00:00
Jo-Philipp Wich
fbaabd7d93 libs/web: cbi: add new on_before_save and on_after_save hook, implement :reset_values() for options supporting :value() 2010-10-14 23:21:25 +00:00
Jo-Philipp Wich
8038cbf004 libs/web: fix various issues in cbi option error handling, call validator for missing options to obtain error message 2010-10-14 00:18:28 +00:00
Jo-Philipp Wich
17575b4d75 libs/web: rework cbi field validation, let validators return custom error messages, properly handle errors in multiple sections 2010-10-12 23:08:54 +00:00
Jo-Philipp Wich
b6358aaea4 libs: merge libs/http into libs/web 2010-10-12 05:22:38 +00:00
Jo-Philipp Wich
ede4aca4b9 libs: merge libs/cbi into libs/web 2010-10-12 05:15:32 +00:00
Jo-Philipp Wich
4c4d9b869b libs/web: don't fail if no langauge is set in luci config 2010-04-16 19:05:05 +00:00
Steven Barth
e822874a71 NIU:
Add WDS bridge client mode
Extending / repeating WDS network in AP wizard
Better 802.11s support
2009-11-29 13:46:04 +00:00
Steven Barth
6fd3c1f367 Publish nixio.fs in index-scope 2009-11-14 18:41:16 +00:00
Steven Barth
7aed1e4b9d NIU: More pages 2009-11-10 16:02:48 +00:00
Jo-Philipp Wich
f5a760168b all: remove references to old i18n files 2009-11-01 14:24:04 +00:00
Jo-Philipp Wich
8f2a3f1dcc libs/web: prepare template parser, dispatcher and i18n class for upcoming po format change 2009-10-31 15:42:07 +00:00
Steven Barth
9b50dd9cba Fix requestpath, export authuser 2009-09-11 10:46:06 +00:00
Jo-Philipp Wich
d6caf509ad libs/web: drop unneeded requires in template class 2009-09-10 08:15:49 +00:00
Jo-Philipp Wich
cf1e1534bc libs/web: add missing local variable declaration 2009-09-10 08:11:25 +00:00
Jo-Philipp Wich
aa93e16092 libs/web: drop the Lua template parser, the C implementation is faster in almost every case, even without caching 2009-09-10 08:05:56 +00:00
Jo-Philipp Wich
5676686863 libs/web: restore protected call to Template(), was accidentally removed in r4889 2009-08-07 15:16:14 +00:00
Jo-Philipp Wich
67150c34a1 libs/web: template: fix spurious nil or false values that broke various templates 2009-08-05 00:52:51 +00:00
Steven Barth
8b65a44fe8 Typo 2009-07-31 17:08:59 +00:00
Steven Barth
f648ab3445 Fix cookie logout 2009-07-31 17:08:18 +00:00
Jo-Philipp Wich
8acc6307bf libs/web: fix template parsing of default texts in i18n expressions 2009-07-26 23:23:32 +00:00
Jo-Philipp Wich
047d4e45f6 libs/web: fix file handle leak in template parser 2009-07-26 23:11:36 +00:00
Jo-Philipp Wich
1b557b0b7b libs/web: implement i18n.string() and i18n.stringf() to obtain genuine Lua strings instead of udata objects 2009-07-26 22:48:09 +00:00
Jo-Philipp Wich
96bc583cfc libs/web: convert given argument to string in i18n.translatef() 2009-07-26 22:34:54 +00:00
Steven Barth
0371fc26d8 Reintroduce prefisx support - was gone somewhere 2009-07-25 12:45:38 +00:00
Steven Barth
a77f1b91ae Allow Basic-Auth pass-through 2009-07-25 10:47:26 +00:00
Steven Barth
b8ab3b9dac Add: luci.http.splice to allow direct copying of data from a file
descriptor
2009-07-25 07:27:05 +00:00
Jo-Philipp Wich
639f965c4f libs/web: use C templates by default 2009-07-25 02:58:04 +00:00
Steven Barth
2655871d39 Revert external tree usage 2009-07-24 15:45:29 +00:00
Jo-Philipp Wich
97743c1387 libs/web: disable memory debuggin in trunk as well 2009-07-23 11:32:22 +00:00
Jo-Philipp Wich
8b001ee843 libs/web: dispatcher.lua: add support for external tree building and indexing 2009-07-23 03:25:27 +00:00
Jo-Philipp Wich
3e0b6b681c libs/web: use new parser in non-caching mode 2009-07-23 01:41:06 +00:00
Jo-Philipp Wich
80a2dd2cc2 libs/web: add template parser reimplemented in C 2009-07-23 00:41:44 +00:00
Jo-Philipp Wich
074b5dfc4a fix fallout from nixio.fs transition 2009-07-19 00:38:52 +00:00
Jo-Philipp Wich
8fcd841aa9 convert luci.fs users to nixio.fs api 2009-07-19 00:24:58 +00:00
Jo-Philipp Wich
768bf67b86 libs/web: optimize code generation in luci.template 2009-07-17 18:33:01 +00:00
Steven Barth
7dcb05fd1c Session-IDs are lowercase now 2009-07-10 17:06:19 +00:00
Jo-Philipp Wich
36542cbe1d libs/web: use lmo in luci.i18n 2009-07-09 15:05:29 +00:00
Steven Barth
30b216f774 Drop support for luaposix and bitlib (obsoleted by nixio)
Mark luci.fs as deprecated
2009-06-21 13:42:26 +00:00
Steven Barth
341f757255 Merge fixes / improvements 2009-06-20 07:14:36 +00:00
Jo-Philipp Wich
2bd86ec208 libs/web: if current language is a regional dialect, fall back to generic language, then english (e.g. pt_BR -> pt -> en) 2009-05-28 00:24:04 +00:00
Jo-Philipp Wich
859a3fee88 libs/web: fix file caches in dispatcher, broke when introducing lua-gz support 2009-04-08 00:08:38 +00:00
Jo-Philipp Wich
9835296ba2 trunk: prepare LuCI to handle .lua.gz files 2009-04-04 22:54:16 +00:00
Steven Barth
f3deef9ec5 Backport Skip-Button support 2009-04-03 18:08:25 +00:00
Steven Barth
8fdb12c4d1 Introduce noheader and nofooter CBI-Dispatcher config 2009-03-27 00:10:17 +00:00
Jo-Philipp Wich
fc62fe46d0 libs/web:
- improve handling of low level runtime errors
	- wrap access to luci.main into assert()
2009-03-14 01:16:03 +00:00
Steven Barth
30b7bc7c62 Fixed last commit 2009-03-07 16:28:27 +00:00
Steven Barth
25da62f8ff Don't compare cstate if there is none 2009-03-07 16:24:05 +00:00
Steven Barth
1ed9be270b Fix debugging output 2009-03-07 13:21:27 +00:00