1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-16 00:10:54 +00:00
Commit Graph

3906 Commits

Author SHA1 Message Date
astaxie
c83c17d917 Merge pull request #660 from ljyf5593/patch-1
beego: fix #657
2014-06-30 12:06:24 +08:00
Vangelis Tsoumenis
4994d36b66 templateform.RenderForm now renders textarea
When RenderForm encounters a field with the structTag `form` value
type `textarea` it renders an actual <textarea> html tag.
2014-06-29 20:49:56 +02:00
Vangelis Tsoumenis
a991b9dcde Removes unused FormType map from templatefunc 2014-06-29 20:49:35 +02:00
Vangelis Tsoumenis
3fe9e6a28a extract func parseFormTag from templatefunc.RenderForm
Extracted a func `parseFormTag` that takes a reflect.StructField
and returns the different positional parts of the `form` structTag
with default values as documented in
http://beego.me/docs/mvc/view/view.md#renderform

This makes RenderForm shorter and makes it possible to test the
parsing separately.
2014-06-29 20:49:08 +02:00
astaxie
62e9c89010 middleware: support i18n 2014-06-27 17:53:53 +08:00
ljyf5593
ac96c2b15e beego: fix #657
路由地址不区分大小写问题
2014-06-27 11:06:29 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie
9c5348f690 beego: autoroute 2014-06-23 15:52:30 +08:00
astaxie
90f91b10c5 beego: change to beego 1.3.1 2014-06-23 15:31:51 +08:00
astaxie
a5a6a30744 beego: fix the router rule for * 2014-06-23 15:28:53 +08:00
astaxie
1f6e689e5d beego: fix #652 2014-06-23 15:28:29 +08:00
Bin Wang
7b7a95677a Generate default value while run ORM cmd tool 2014-06-22 10:52:14 +08:00
astaxie
af4f153830 beego: update the router rule for *
* not match the empty route
2014-06-21 11:44:24 +08:00
astaxie
469f283b68 beego:fix captcha filter router 2014-06-19 20:29:36 +08:00
astaxie
085c362ffb beego:fix router expge 2014-06-18 23:32:47 +08:00
astaxie
c3a07555c4 beego:change version to 1.3.0 2014-06-18 15:15:45 +08:00
astaxie
2b8e411174 merger master httplib 2014-06-18 15:04:08 +08:00
astaxie
720a77c1f9 beego:rever docs 2014-06-18 11:15:43 +08:00
astaxie
b943b74fc5 beego:init GlobalDocApi 2014-06-18 11:09:47 +08:00
astaxie
67be7b532d beego:doc move to swagger 2014-06-18 10:36:20 +08:00
slene
8be83fe488 Merge pull request #642 from JessonChan/develop
ignore nil time
2014-06-17 15:25:03 +08:00
astaxie
cff632f553 beego: swagger EnableDocs 2014-06-16 16:05:19 +08:00
astaxie
4990d88861 Merge pull request #648 from redaready/develop
update chat example
2014-06-14 12:13:50 +08:00
redar
7075ad8a28 update chat example 2014-06-14 00:21:26 +02:00
astaxie
0e278ae358 beego:format the admin print route 2014-06-13 00:14:30 +08:00
astaxie
e38a23b30e beego:admin add print method 2014-06-13 00:08:43 +08:00
astaxie
117904be73 beego:fix the some regexp routes to different func 2014-06-12 23:08:05 +08:00
astaxie
3b807845f2 beego:addtree support regexp 2014-06-12 20:50:29 +08:00
astaxie
00b710e168 beego:namespace sub router add url to pattern 2014-06-11 23:51:19 +08:00
astaxie
e25fcffbc0 config:json add support array 2014-06-11 22:47:11 +08:00
astaxie
c13141b8bf beego:fix when user defined function equal to HTTP 2014-06-11 22:45:54 +08:00
astaxie
7a7ff735e3 Merge pull request #644 from chrisport/develop
config: fix error when json config starts with an array
2014-06-11 22:02:28 +08:00
Christoph Portmann
3b934bb910 config: fix error when json config starts with an array 2014-06-11 11:33:32 +03:00
astaxie
aa275fb5ce beego:fix #639 2014-06-11 13:26:45 +08:00
astaxie
deb553be7f beego:confgi support difference run mode section
runmode = dev
appname = doraemon
[dev]
httpport = 8880
sessionon = true

[prod]
httpport = 8888
sessionon = true

[test]
httpport = 8080
sessionon = false
2014-06-11 12:00:50 +08:00
astaxie
3db9633ebd remove websocket logic because not support handler 2014-06-11 11:12:17 +08:00
astaxie
2f8a70d548 beego: router support param has _ 2014-06-11 09:33:35 +08:00
astaxie
7c0d0900ac beego:fix static file router 2014-06-11 01:19:39 +08:00
astaxie
6809c97611 beego: improve performance 2014-06-11 01:11:32 +08:00
astaxie
675643c68d beego: run mode support test 2014-06-10 22:47:48 +08:00
JessonChan
06f4bf493d ignore nil time 2014-06-10 22:10:58 +08:00
astaxie
4786fb0948 beego:fix typo NewControllerRegister 2014-06-10 20:12:57 +08:00
astaxie
fdb5672b7a beego:delete debug information 2014-06-10 18:10:32 +08:00
astaxie
107a7a21c0 beego: dev mode print request router & pattern 2014-06-10 18:09:07 +08:00
astaxie
dbebf8df4b beego:namespace support nest
ns := NewNamespace("/v3",
		NSAutoRouter(&TestController{}),
		NSNamespace("/shop",
			NSGet("/order/:id", func(ctx *context.Context) {
				ctx.Output.Body([]byte(ctx.Input.Param(":id")))
			}),
		),
	)
2014-06-10 17:11:02 +08:00
astaxie
f7b01aab13 beego: modify the filter sequence 2014-06-10 11:02:41 +08:00
astaxie
2570f075d9 beego:change ControllerComments exported 2014-06-09 17:46:13 +08:00
astaxie
21cb8ea4a3 beego:AST code 2014-06-09 17:33:04 +08:00
astaxie
6c8a7f1382 beego: router change to method Tree 2014-06-09 10:11:37 +08:00
astaxie
e00eab7f49 beego: change to tree 2014-06-08 20:24:07 +08:00