Gerasimos (Makis) Maropoulos
3c86fa8010
dependency injection: fix read slices
...
rel: https://github.com/kataras/iris/issues/1542
Former-commit-id: 0028fafa60b80c80cade1e7a18a11109ce0e9948
2020-06-20 07:22:29 +03:00
Gerasimos (Makis) Maropoulos
311b560717
new feature: versioned controllers
...
Former-commit-id: c797e23c78b1e74bbe9ba56673f3a98f17f5e2f7
2020-06-19 20:58:24 +03:00
Gerasimos (Makis) Maropoulos
3f98b39632
fix #1539
...
Former-commit-id: f2f277cd5cbe781ce596adc7840a1b1bc3b3bfc6
2020-06-19 05:54:21 +03:00
Gerasimos (Makis) Maropoulos
9724592697
fix https://github.com/kataras/iris/issues/1536#issuecomment-646258752
...
Former-commit-id: 129d115937617e4d77b7e6e7efddf3168b15d021
2020-06-18 23:53:53 +03:00
Gerasimos (Makis) Maropoulos
4afef007a4
fix #1537
...
Former-commit-id: d93af027428259c857c7a5ddf6e21cfd0b09b470
2020-06-14 08:44:41 +03:00
Gerasimos (Makis) Maropoulos
8c470e46a2
mvc controllers and methods: provide mvc.Application automatically
...
Former-commit-id: 991d8e72c3c231813a455dd0680cd8a83b82abb1
2020-05-06 08:00:56 +03:00
Gerasimos (Makis) Maropoulos
a694266c63
fix https://github.com/kataras/iris/issues/1473 and add test for https://github.com/kataras/iris/issues/1468 https://github.com/kataras/iris/pull/1474 https://github.com/kataras/iris/pull/1475
...
Former-commit-id: 3e7d927761a5d5559b65ea3f91b94e3dc523a187
2020-03-24 02:12:10 +02:00
Gerasimos (Makis) Maropoulos
5fc24812bc
❤️ awesome and unique features for end-developers are coming...
...
total refactor of the hero and mvc packages, see README#Next (it's not completed yet)
Former-commit-id: b85ae99cbfe5965ba919c1e15cf4989e787982c0
2020-02-29 14:18:15 +02:00
Gerasimos (Makis) Maropoulos
3093d65363
version 12.1.5
...
Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
2020-02-02 16:29:06 +02:00
Gerasimos (Makis) Maropoulos
3945fa68d1
obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository
...
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c.
Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
2019-10-25 01:27:02 +03:00
Gerasimos (Makis) Maropoulos
44765c7d77
add test case for https://github.com/kataras/iris/pull/1364
...
Former-commit-id: 836fb947642976f609f97cd5aeb4226e1fb991b8
2019-10-05 22:24:35 +03:00
BenLampson(赵元源)
9115745e4f
Update controller_test.go
...
Former-commit-id: 2f2576255b988f29e8745bc62f5a14a848349bc5
2019-09-26 09:07:34 +08:00
Gerasimos (Makis) Maropoulos
07046ab978
formatting
...
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
2019-08-17 10:06:20 +03:00
Gerasimos (Makis) Maropoulos
9cfaff07d6
add support for mvc and hero dynamic dependencies to understand the error type as a second output value as requested at: https://github.com/kataras/iris/issues/1187
...
Former-commit-id: 49e29c06aaaa22743354981342c29fc9d5953d0e
2019-02-16 00:42:26 +02:00
Gerasimos (Makis) Maropoulos
3962710d3d
Version 11 released. Read https://github.com/kataras/iris/blob/master/HISTORY.md#su-21-october-2018--v1100
...
Former-commit-id: fe6305deed00e170bf4d39a12c0644fe686e0a24
2018-10-21 19:20:05 +03:00
Gerasimos (Makis) Maropoulos
b4827c2b5e
fix examples link in the /mvc and a controller test
...
Former-commit-id: 1384d7297f79f47a395701433034c57ad361f5ab
2017-12-27 04:20:42 +02:00
Gerasimos (Makis) Maropoulos
b282e7c563
Replace controller's .Register with .Handle and AddDependencies with .Register in order to be aligned with the 'hero' package, all examples and docs are updated, it's crazy how I can't stop even on Christmas
...
Former-commit-id: 3b42963e9806e327ee42942cf156bda6059eaf8f
2017-12-27 04:15:41 +02:00
Gerasimos (Makis) Maropoulos
2ab1456414
split of the mvc and the new hero package is completed, now handlers with input and output binding feature is a different feature than the mvc, however the mvc controller's methods can use the hero dependency injection as before (v10+)
...
Former-commit-id: d67f5a5ed9033286bcc4c04f6be612823cba2a57
2017-12-25 20:57:04 +02:00
Gerasimos (Makis) Maropoulos
b78698f6c0
fix all _examples to the newest mvc, add comments to those examples and add a package-level .Configure in order to make it easier for new users. Add a deprecated panic if app.Controller is used with a small tutorial and future resource link so they can re-write their mvc app's definitions
...
Former-commit-id: bf07696041be9e3d178ce3c42ccec2df4bfdb2af
2017-12-20 08:33:53 +02:00
Gerasimos (Makis) Maropoulos
c15763c556
ok make it cleaner, it's working well and blazing fast but I have to do a lot cleaning and commenting and docs as well before push it to master --- hope at christmas day, also thinking some internal ideas - the whole code is not ready to be readen by a third person yet.
...
Former-commit-id: 0b3fb2841d5032ff47bdca42a6f4ccfeb789ce3c
2017-12-19 23:40:42 +02:00
Gerasimos (Makis) Maropoulos
d5a38a0cd6
more checks about creating new instance of controller on each request - this time if all bindings are static then set them to the initial-devpassed controller and if the total number of lengths are equal with these static dependencies then we ignore the injector and use the initial controller on each request - maximize the performance when simple controller is used - need more cleanup before new release but I hope until Christmas iris developers will be amazed
...
Former-commit-id: 32ed69368d1df2c25cdb712bb7f0cf47b2e36c05
2017-12-18 00:16:10 +02:00
Gerasimos (Makis) Maropoulos
40b40fa7d3
don't create new controller instance when all fields are set-ed by the end-dev - but we keep show those fields' values as Dependencies on the BeforeActivate in order to the future custom controllers authors to be able to check if something is added as dependecy or even manually set-ed before bind their own dependecies, otherwise they could override the manually set-ing
...
Former-commit-id: 72d3a0f1299781ee9a5e3e35e4a543354f8cd63d
2017-12-17 06:34:16 +02:00
Gerasimos (Makis) Maropoulos
34664aa311
OK, my dream-idea is implemented. TODO: Some examples and doc.go is not updated yet, comments on the mvc/di subpackage, the tutorial/vuejs-todo-mvc is running but not finished yet (it's using browser's localstorage and it should be replaced by the http requests that are registered via iris mvc
...
Former-commit-id: 0ea7e01ce1d78bcb78b40f3b0f5c03ad7c9abaea
2017-12-16 06:38:28 +02:00
Gerasimos (Makis) Maropoulos
55dfd195e0
remove the old 'mvc' folder - examples are not changed yet - add the 'di' package inside the mvc2 package - which will be renamed to 'mvc' on the next commit - new mvc.Application and some dublications removed - The new version will be version 9 because it will contain breaking changes (not to the end-developer's controllers but to the API they register them) - get ready for 'Christmas Edition' for believers
...
Former-commit-id: c7114233dee90ee308c0a3e77ec2ad0c361094b8
2017-12-15 20:28:06 +02:00
kataras
dd5de52f34
implement a way to add controller functions as handlers with the existing rules respected but it's a bit dirty I will change the implementation and move the mvc2 to mvc and make the api builder's PartyFunc to be a critical part of the controller and the mvc2.Mvc bind values should be also respected to the controller and more
...
Former-commit-id: e452a916da80d886535b8ae9625d0ba8e2b58d6e
2017-11-27 21:39:57 +02:00
Gerasimos (Makis) Maropoulos
49ee8f2d75
Update to version 8.5.0 | NEW: MVC Output Result | Read HISTORY.md
...
Former-commit-id: 6a3579f2500fc715d7dc606478960946dcade61d
2017-10-09 15:26:46 +03:00
Gerasimos (Makis) Maropoulos
e5600fcf0d
Update to version 8.4.5 | Read https://github.com/kataras/iris/blob/master/HISTORY.md#fr-06-october-2017--v845 for more.
...
Former-commit-id: 4e30bf6a74acb7d463c7fcf1e9e08ca3147117a7
2017-10-06 08:23:03 +03:00
Gerasimos (Makis) Maropoulos
4fb78bbcd9
Update sessions/sessiondb/badger to its latest version and SessionController is able to initialize itself if session manager is not provided by the caller-dev.
...
Changes:
Update the badger database using transactions, as supported from yesterday via: 06242925c2
Add a custom `OnActivate` via mvc/activator/activate_listener.go, this can be used to perform any custom actions when the app registers the supported Controllers. See mvc/session_controller.go for the excellent use case.
errors.Reporter.AddErr returns true if the error is added to the stack, otherwise false
Former-commit-id: c896a2d186a4315643f3c5fdb4325f7ee48a9e0a
2017-10-06 01:19:10 +03:00
Gerasimos (Makis) Maropoulos
ab8235d398
MVC: Add support for ByBy
as requested https://github.com/kataras/iris/issues/751
...
Former-commit-id: 78c2453c56000c2268e11e68d7b530251e2beedd
2017-09-22 15:16:24 +03:00
Gerasimos (Makis) Maropoulos
69b5327ecc
Update to Version 8.4.2 | Read HISTORY.md
...
https://github.com/kataras/iris/blob/master/HISTORY.md#fr-15-september-2017--v842
Former-commit-id: 0ee4cc1d93ef7f26e5d402fdfbe07062aff5b08c
2017-09-15 15:05:35 +03:00
hiveminded
8a9a498316
update to version 8.4.1 ❤️ https://github.com/kataras/iris/blob/master/HISTORY.md#th-07-september-2017--v841
...
Former-commit-id: 9e5f0a08049b83605aa847b8f51fb856427354a6
2017-09-07 16:20:31 +03:00
kataras
591806795e
Update to 8.4.0 | New macro type, new high-optimized MVC features. Read HISTORY.md
...
Former-commit-id: b72a23ba063be60a9750c8b1b0df024b0c8ed549
2017-08-27 18:46:04 +03:00
kataras
1ffe4479f7
Update to 8.3.3 | Even better MVC. Read HISTORY.md
...
Former-commit-id: 88998c317117abff1a214cf396b205d8d8ea888c
2017-08-23 01:11:52 +03:00
kataras
e12513a534
Update to 8.3.2 | Read HISTORY.md file
...
Former-commit-id: e6ab761989d596cb004c39e65e04e8968d9461ab
2017-08-22 13:00:24 +03:00
kataras
83614f1089
update recursively when new version is available
...
This would take more but it's safer approach for common usage.
Former-commit-id: 87e11d9ea6dbb0df438e91fb478ca08e1a631d31
2017-08-19 22:54:13 +03:00
kataras
8c1a4da804
Update to v8.3.1 | MVC: RelPath
and RelTmpl
implemented. Read HISTORY.md
...
Read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md#sa-19-august-2017--v831
Former-commit-id: 23f7c1c0dc3bc64f27db591a9b22cd5934337891
2017-08-19 21:54:33 +03:00
kataras
b96476d100
Update to 8.3.0 | MVC Models and Bindings and fix of #723 , read HISTORY.md
...
Former-commit-id: d8f66d8d370c583a288333df2a14c6ee2dc56466
2017-08-18 17:09:18 +03:00