Commit Graph

873 Commits

Author SHA1 Message Date
Daniele Teti
c420be5f24 Improved Sample functional_actions_showcase 2024-07-09 23:21:50 +02:00
Daniele Teti
cc0a5d1281 Improves CustomLogger sample 2024-07-08 21:07:13 +02:00
Daniele Teti
8ac772f871 NEW SAMPLE: Render Binary Contents 2024-07-08 12:57:06 +02:00
Daniele Teti
6d22cf6c6e NEW sample: htmx_website 2024-07-02 23:06:30 +02:00
Daniele Teti
2758b2bbea Fixed some weird behaviour of the sample about JSONRPC 2024-07-02 19:14:45 +02:00
Daniele Teti
e2908e388d Removed old sample about jsonrpc 2024-07-02 19:08:56 +02:00
Daniele Teti
38abb58770 fileupload demo: Removed RawRequest when not needed 2024-06-26 16:08:11 +02:00
Daniele Teti
06bfe221ef Updated HTMX samples to HTMX 2.0.0 2024-06-19 14:25:33 +02:00
Daniele Teti
66f7fcb8ac Added MVCNameCaseDefault 2024-06-19 14:25:04 +02:00
Daniele Teti
4d54155bd7 Pushed some members of TLoggerPROFileAppender into protected section 2024-05-29 14:26:01 +02:00
Daniele Teti
b6b2a1818e Added more "Response Methods" 2024-05-27 23:00:52 +02:00
Daniele Teti
1f06210979 Added sample for nested and internal partials with Mustache 2024-05-23 15:30:50 +02:00
Daniele Teti
cf08f46555 Added "Shuffle" to sqids_showcase 2024-05-23 11:02:00 +02:00
Daniele Teti
43478dbdbf Added TMVCSqidsEncoder, IMVCSqidsEncoder and relative sample (sqids_showcase.dproj) 2024-05-23 10:04:31 +02:00
Daniele Teti
a559b34f6a Improved db logger sample 2024-05-23 10:03:55 +02:00
Daniele Teti
fcee922c2a Functional Actions Sample Clean 2024-05-23 10:03:30 +02:00
Daniele Teti
7ce308b54f New Sample DataPump 2024-05-16 17:59:17 +02:00
Daniele Teti
cb01d14729 Added specific test for ser/unser of objects decorated with Sqids 2024-05-16 17:15:59 +02:00
Daniele Teti
4b0d872cd5 New sample: SimpleRESTAPIUsingInjection (to explain how to use injection) 2024-05-14 23:26:38 +02:00
Daniele Teti
12a4d626f1 Removed "sqids" sample (Wizard can generate the sample project now) 2024-05-10 16:18:08 +02:00
Daniele Teti
0cdbcb75d4 Merge branch 'dmvcframework-3.4.2-magnesium'
* dmvcframework-3.4.2-magnesium:
  Sqids support - base classes + converter mechanism. Added ":sqid" converter.
2024-05-09 23:50:40 +02:00
Daniele Teti
7420015c5c Sqids support - base classes + converter mechanism. Added ":sqid" converter. 2024-05-09 23:50:01 +02:00
Daniele Teti
3034a061b2 Removed unused units 2024-05-04 16:36:31 +02:00
Daniele Teti
9b414b8665 Delphi Tokyo Compat 2024-05-02 19:14:59 +02:00
Daniele Teti
d743333741 Updated dmustache to version 2 2024-04-29 15:40:45 +02:00
Daniele Teti
8e8c31b904 https://github.com/danieleteti/delphimvcframework/issues/693 2024-04-29 13:35:07 +02:00
Daniele Teti
8e7e14151d Profiling can be enabled by the wizard 2024-04-24 17:03:05 +02:00
Daniele Teti
a4995177c6 Updated sample 2024-04-23 23:20:01 +02:00
Daniele Teti
b3e903ce5d DB Logger for articles_crud_server 2024-04-23 23:19:45 +02:00
Daniele Teti
b1db039655 Updated samples 2024-04-23 23:16:28 +02:00
Daniele Teti
2559a00084 Aligned sample data database for activerecorddb 2024-04-22 18:11:53 +02:00
Daniele Teti
c297081c07 Polished some log messages for dotEnv 2024-04-19 18:17:57 +02:00
Daniele Teti
4c191c3742 Preparing for release 2024-04-19 13:21:45 +02:00
Daniele Teti
65fa22ea55 Improved TransactionContext sample 2024-04-17 23:32:06 +02:00
Daniele Teti
d231ebf3cb Changed param order for RegisterType 2024-04-17 09:57:22 +02:00
Daniele Teti
563f184eb2 Code cleanup between TMVCRenderer and TMVCController 2024-04-16 16:39:41 +02:00
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
Daniele Teti
f6a6d171e7 Small improvements on ConsoleSample 2023-12-19 21:47:32 +01:00
Daniele Teti
5324b0e0b1 Reraise exception in case of wrong version 2023-12-04 16:34:39 +01:00
Daniele Teti
604a5907a1 Improved console sample 2023-11-29 11:22:51 +01:00
Daniele Teti
e0190b3fe8 foVersion (WIP + new sample) 2023-11-27 18:11:49 +01:00
Daniele Teti
3a748821ce Aligned for foVersion 2023-11-27 12:04:30 +01:00
Daniele Teti
84ade3b6b0 Added foVersion to the entities for MVCActiveRecord sample 2023-11-27 12:02:34 +01:00
Daniele Teti
d68b102d14 Added TMVCActiveRecord.GetCustomTableName which allows to overwrite the tablename defined in the MVCTableName attribute. Just overwrite the method in descendant classes and return the tablename to use for the current instance. 2023-11-23 22:58:07 +01:00
Daniele Teti
5aa1e07056 Added bit Time Professionals ITA as sponsor 2023-11-13 16:46:35 +01:00
Conrad Vermeulen
dc0e7b0f78 initial adaptor and example with the Sempare Template Engine. (requires 1.7.3) 2023-11-13 11:51:46 +00:00
Daniele Teti
85d27bc00b Improved tasks.py - not is able to discover the "best" delphi version to use to compile (latest one) 2023-11-06 14:46:39 +01:00
Daniele Teti
869dd457b2 Refactored method which gets multiple parameters with same name in URLEncodedDeserializer 2023-11-04 16:58:37 +01:00
Daniele Teti
6d57a9dcff Added GetParamMulti for MVCFromContent - Added support for TArray<String>, TArray<Integer>, TArray<Int64> in injection 2023-11-04 11:51:52 +01:00
Daniele Teti
a2f190df44 New feature: ObjectVersioning for TMVCActiveRecord - see foVersion
- TMVCActiveRecord.TableName is now readonly
2023-11-02 17:36:19 +01:00
Daniele Teti
6590e508c7 Samples Cleaning 2023-11-01 23:13:17 +01:00