Commit Graph

787 Commits

Author SHA1 Message Date
Daniele Teti
74211a95b2 Added CreateResponse(string,string) 2024-04-16 15:21:18 +02:00
Daniele Teti
089513e2cf New Project Generator Architecture 2024-04-11 18:54:29 +02:00
Daniele Teti
dea575f3df Modernized FileUpload sample 2024-04-10 17:12:42 +02:00
Daniele Teti
f2e171e08c Updated sample simple_api_using_mvcactiverecord_with_version to work with functional actions. 2024-04-05 00:34:06 +02:00
Daniele Teti
ac78f902ca Small refactoring of JSONRPC controller 2024-04-05 00:01:04 +02:00
Daniele Teti
ff8124742e Sample articles_crud_server updated to use db logger 2024-04-04 16:21:45 +02:00
Daniele Teti
af0984e050 Added
function OKResponse(const Body: TObject): IMVCResponse; overload;
    function OKResponse: IMVCResponse; overload;
    function NotFoundResponse(const Body: TObject): IMVCResponse; overload;
    function NotFoundResponse: IMVCResponse; overload;
    function NoContentResponse: IMVCResponse;
    function UnauthorizedResponse: IMVCResponse;
    function BadRequestResponse: IMVCResponse; overload;
    function BadRequestResponse(const Error: TObject): IMVCResponse; overload;
    function CreatedResponse(const Location: string = ''; const Body: TObject = nil): IMVCResponse;
    function AcceptedResponse(const Location: string = ''; const Body: TObject = nil): IMVCResponse;
    function ConflictResult: IMVCResponse;
    function InternalServerErrorResponse: IMVCResponse;
2024-04-03 16:11:38 +02:00
Daniele Teti
8c80ed7a3e Cleanup TransactionContext, better exception message for no data found. 2024-04-03 14:41:29 +02:00
Daniele Teti
e370718a34 Added EMVCActiveRecordTransactionContext 2024-04-03 09:59:53 +02:00
Daniele Teti
9b6cb6386b Improved articles_crud_server sample 2024-03-31 18:37:09 +02:00
Daniele Teti
4349f20d95 TransactionContext (WIP) 2024-03-31 18:09:13 +02:00
Daniele Teti
b41e245bbc articles_crud migrated to services container 2024-03-30 00:30:14 +01:00
Daniele Teti
6142c2d929 Container (WIP) - almost ready to be merged into master 2024-03-28 23:57:59 +01:00
Daniele Teti
1920249eb9 ServiceContainerDecorator (WIP) 2024-03-28 16:31:44 +01:00
Daniele Teti
cf2450465b ServiceContainer (WIP) 2024-03-27 00:10:48 +01:00
Daniele Teti
b592963a78 ServiceContainer (wip) 2024-03-25 00:15:50 +01:00
Daniele Teti
8aa4ab5f7b ServiceContainer (WIP) - singleton is "singleton per webmodule" 2024-03-24 16:58:08 +01:00
Daniele Teti
7e3b551e11 Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/samples/react/WebApp/follow-redirects-1.15.6' into feature_partial_ar_update 2024-03-19 16:26:35 +01:00
Daniele Teti
fea6b0c273 Added support for TSQLTimeStampOffset in dataset derialization and deserialization 2024-03-19 16:05:17 +01:00
dependabot[bot]
1398ecbd83
build(deps): bump follow-redirects in /samples/react/WebApp
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-16 22:38:06 +00:00
Daniele Teti
cbc971aaf6 Any exception in TMVCWebResponse.Destroy on logged 2024-03-14 15:03:51 +01:00
Daniele Teti
17747dcf19 Completed new field options (foDoNot*) 2024-03-13 16:45:09 +01:00
Daniele Teti
ab92225d12 First implementation for foDoNotInsert and foDoNotUpdate 2024-03-13 13:00:11 +01:00
João Antônio Duarte
2793808115 Swagger: adding support for defining request body parameters as an array of objects.
Fix https://github.com/danieleteti/delphimvcframework/issues/713
2024-03-09 18:24:20 -03:00
Daniele Teti
3dc4592837 Removed ViewDataSets and all related methods from TMVCController. Use ViewData instead.
https://github.com/danieleteti/delphimvcframework/issues/729
2024-03-08 16:17:30 +01:00
Daniele Teti
b0e3cfc424 Added functional utils: Filter, Map, Reduce, ForEach 2024-02-21 23:40:25 +01:00
Daniele Teti
cc5789d56e Now "NoRouteFound" error returns the correct content-type 2024-02-21 14:41:25 +01:00
Daniele Teti
8b0d370a85 Merge commit '547fec74b9dcbf32887aad4fdd6348685c654ef2' into feature_filters
# Conflicts:
#	sources/MVCFramework.Filters.CORS.pas
#	sources/MVCFramework.pas
#	unittests/general/Several/LiveServerTestU.pas
2024-02-05 16:30:02 +01:00
Daniele Teti
59afaec81a Updated wizard to use ConsoleLogger 2024-01-24 00:14:26 +01:00
Daniele Teti
fada5f5c6e Changed fropm procedure to functional actions 2024-01-23 17:20:15 +01:00
Daniele Teti
30a247281f Breaking Change! TMVCActiveRecordController uses (and requires) TMVCActiveRecordMiddleware - it doesn't require a TFDConnection on constructor 2024-01-20 10:37:34 +01:00
dependabot[bot]
f4a6b86ddb
build(deps): bump follow-redirects in /samples/react/WebApp (#725)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 08:27:40 +01:00
dependabot[bot]
e6923fdd01
build(deps): bump axios from 0.21.4 to 1.6.0 in /samples/react/WebApp (#710)
Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.4...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 08:25:18 +01:00
Daniele Teti
f912f5ce88 Fix for LoggerPro v2.0 2024-01-03 17:21:09 +01:00
Daniele Teti
a2e19a7689 FIX some encoding problems introduced by VSCode replace-in-files >:| 2024-01-03 14:31:28 +01:00
Daniele Teti
f23dd2fa88 Added support for table name and field name with spaces for MySQL and MariaDB 2024-01-03 11:39:53 +01:00
Daniele Teti
32dedf3a4d Merge branch 'darnocian-sempare_adaptor_support' 2024-01-03 11:13:47 +01:00
Daniele Teti
c91d1dd3ec Merge branch 'sempare_adaptor_support' of https://github.com/darnocian/delphimvcframework into darnocian-sempare_adaptor_support 2024-01-03 11:11:13 +01:00
Conrad Vermeulen
6e99ace343 Force loading from file 2024-01-02 16:28:59 +00:00
Daniele Teti
90dcd3bdfe Copyright updated to 2010-2024 2024-01-02 17:04:27 +01:00
Daniele Teti
28406b5b35 Merge branch 'sempare_adaptor_support' of https://github.com/darnocian/delphimvcframework into darnocian-sempare_adaptor_support 2024-01-02 09:35:56 +01:00
Conrad Vermeulen
17e44b0f97 remove reference to .tpl which will be discovered automatically (avoid exception that takes place by default) 2023-12-23 13:50:28 +00:00
Conrad Vermeulen
ea5438ba98 Update README with instruction on quickly installing the Sempare Template Engine 2023-12-23 12:33:59 +00:00
Conrad Vermeulen
0ff989bb17 Update UnitSearchPath in dproj 2023-12-23 12:33:22 +00:00
Conrad Vermeulen
969452294a Remove legacy reference 2023-12-23 12:28:40 +00:00
Conrad Vermeulen
8324306545 Merge branch 'master' into sempare_adaptor_support 2023-12-23 12:24:28 +00:00
Conrad Vermeulen
4393c7b566 missing dfm 2023-12-23 11:59:49 +00:00
Daniele Teti
777368b887 Added license conditional for sempare 2023-12-22 17:02:31 +01:00
Daniele Teti
a6789cd7fe Sempare integration (WIP) 2023-12-22 16:55:29 +01:00
Daniele Teti
94dd1e5012 Merge branch 'sempare_adaptor_support' of https://github.com/darnocian/delphimvcframework into darnocian-sempare_adaptor_support 2023-12-22 16:41:31 +01:00