Commit Graph

1355 Commits

Author SHA1 Message Date
Daniele Teti
c2ed0343cc Updated instant_search_with_htmx sample with use of blocks layout of templatepro 0.7.0 2024-09-22 17:05:07 +02:00
Daniele Teti
34238a48ee Added rating and indicator in "instant_search_with_htmx" 2024-09-20 00:17:30 +02:00
Daniele Teti
4b8b89d4da MVCFramework.Functional.pas has been merged in MVCFramework.Utils.pas 2024-09-19 19:15:57 +02:00
Daniele Teti
41a6931e7f active_search_htmx sample now uses if expressions in template 2024-09-14 16:10:33 +02:00
Daniele Teti
595fa907e6 Improved dotEnv parse of boolean value. (yes,1,true,no,0,false) 2024-09-13 09:48:12 +02:00
Daniele Teti
53af723694 MVCFramework.HTMX.pas finally gone into the main source folder 2024-09-12 23:03:47 +02:00
Daniele Teti
5aea0e19d1 Updated TemplatePro to syntax version 0.6 2024-09-12 22:59:40 +02:00
Daniele Teti
dc04b27ace Removed MVCUseTemplateCache (duplicated of TMVCConfigKey.ViewCache) 2024-09-11 11:15:38 +02:00
Daniele Teti
b96dc56b6d Added UseViewCache in cached config values 2024-09-11 11:14:40 +02:00
Daniele Teti
fd5de8660c Updated TemplatePro 2024-09-10 23:42:24 +02:00
Daniele Teti
8116c25e2f Updated TemplatePro 2024-09-09 12:42:30 +02:00
Daniele Teti
a098584994 Updated TemplatePro 2024-09-06 16:22:21 +02:00
Daniele Teti
9c93f03d24 ClientPrefer returns always "true" in case "accept = */*" 2024-09-06 16:22:07 +02:00
Marcelo Jaloto
3ae1a2a766
Issues#771 - Adds the security definition of the apiKey type (bearer authorization) to the swagger middleware in a customized way (#772)
* issue#771
2024-09-03 13:49:28 +02:00
Daniele Teti
fe555912a5 Added TLogWriterDecorator; removed deprecated *fmt methods from ILogWriter 2024-09-03 12:57:27 +02:00
Daniele Teti
0c80ec022d Updated samples to TemplatePro 0.5 2024-09-02 20:04:44 +02:00
Daniele Teti
b289b2f8eb Updated sample to TemplatePro 0.5 syntax 2024-09-02 17:53:43 +02:00
Daniele Teti
5cdcdf8c92 Added delegates to service container service registration 2024-09-02 17:48:01 +02:00
Daniele Teti
5b17a44962 updated htmx+templatepro sample 2024-08-24 16:32:38 +02:00
Daniele Teti
2a9d5cd143 Updated TemplatePro, Implemented compiled template in view engine (currently uses folder __cache__ in file template folder) 2024-08-19 18:08:34 +02:00
Daniele Teti
5f5efb3978 Updated samples 2024-08-18 13:23:38 +02:00
Daniele Teti
4c00333115 Improved template engines mechanism 2024-08-18 11:40:14 +02:00
Daniele Teti
01da47ea76 Added "json" filter to default TemplatePro configuration. 2024-08-18 11:19:59 +02:00
Daniele Teti
9e989378ec Updated instantsearch_htmx demo and some small fix to templatepro 2024-08-16 19:08:36 +02:00
Daniele Teti
028a88828e Updated TemplatePro and htmx_website sample (switch from mustache to templatepro) 2024-08-15 22:07:36 +02:00
Daniele Teti
96a1d543c5 Nullables unit doesn't requires MVCFramework.Serializers.Commons anymore 2024-08-15 21:58:20 +02:00
Daniele Teti
986b6186c4 Updated TemplatePro 2024-08-15 16:08:46 +02:00
Daniele Teti
a452ecd433 Added htmx_template_pro sample 2024-08-12 10:38:16 +02:00
Daniele Teti
3429f4a825 TemplatePro goes back to it's own repo... 2024-08-08 16:59:57 +02:00
Daniele Teti
22d9821789 Added "reset" command in TemplatePro 2024-08-08 14:34:13 +02:00
Daniele Teti
21bdc7cee0 New template language: TemplatePro 2024-08-07 16:25:08 +02:00
Daniele Teti
d932857f34 Added CreateRequest and CreateNotification methods on JSONRPCExecutor 2024-07-28 23:54:45 +02:00
Daniele Teti
2732dd998a Better exception error messages for mid-air edit collision 2024-07-28 23:26:04 +02:00
Daniele Teti
2e05917df3 Added "Always" callback in the MVCAsync 2024-07-28 23:25:12 +02:00
Daniele Teti
b422dc610e Removed old aliases for Spring4D nullables 2024-07-28 23:23:41 +02:00
Daniele Teti
63ae0d62d9 Added Profiler.Trace to profile Proc() and Profiler-Trae<T> to profile Func<T> 2024-07-25 15:08:40 +02:00
Daniele Teti
4371653072 Float values are "always" serialized with comma (always!) 2024-07-22 14:28:32 +02:00
Daniele Teti
c0b6310df2 Updated JsonDataObjects to 60c6604d65 2024-07-22 14:27:43 +02:00
JakobYde
d804f47f97
Added serialization/deserialization of lists of simple types as root (#761) 2024-07-19 18:30:02 +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
e2908e388d Removed old sample about jsonrpc 2024-07-02 19:08:56 +02:00
Daniele Teti
113fada45a Delphi 10.2 Tokyo Compatibility Fix (Thanks Mark Lobanov) 2024-06-25 12:02:47 +02:00
Daniele Teti
072fd18392 Removed ENTER/EXIT log entries from LoadDefaultConfig and LoadSystemController 2024-06-19 23:14:01 +02:00
Daniele Teti
f795327a7e Urlmapped boolean parameters accepts: true/false, yes/no, 1/0 as truthy and falsy values 2024-06-19 14:24:01 +02:00
Daniele Teti
a44b26c779 https://github.com/danieleteti/delphimvcframework/issues/754 2024-06-10 00:18:02 +02:00
Daniele Teti
636ad27a83 Added Wizard support for MVCNameCaseDefault 2024-06-09 23:53:25 +02:00
Francisco Zanini
6e07eb8b4f
Fixes serialization of enumerations from dataset (#755)
Co-authored-by: Francisco Zanini <francisco@digifort.com.br>
2024-06-09 18:46:01 +02:00
Daniele Teti
07e16a339f Added MVCNameCaseDefault global config variable (with updated tests and wizard) 2024-06-08 23:05:46 +02:00
Daniele Teti
b6b2a1818e Added more "Response Methods" 2024-05-27 23:00:52 +02:00
Daniele Teti
bdeca614c4 Updated sqids ext lib 2024-05-27 09:07:37 +02:00
Daniele Teti
1f06210979 Added sample for nested and internal partials with Mustache 2024-05-23 15:30:50 +02:00
Daniele Teti
43478dbdbf Added TMVCSqidsEncoder, IMVCSqidsEncoder and relative sample (sqids_showcase.dproj) 2024-05-23 10:04:31 +02:00
Daniele Teti
9edc977bc4 Added OKResponse(const Message: String): IMVCResponse; 2024-05-23 10:02:54 +02:00
Daniele Teti
1a10545794 Improved Sqids in not-nullable types 2024-05-14 23:44:08 +02:00
Daniele Teti
9cd1181e88 Better handling of sqids in nullable types 2024-05-14 23:26:10 +02:00
Daniele Teti
d06d470e45 Added "MVCSerializeAsSqids" attribute. Added Sqids support in Wizard. Renamed ":sqid" converter to ":sqids". Added more tests. 2024-05-10 16:16:47 +02:00
Daniele Teti
7420015c5c Sqids support - base classes + converter mechanism. Added ":sqid" converter. 2024-05-09 23:50:01 +02:00
Daniele Teti
fe5f7d4a72 Preparing for dmvcframework-3.4.2-magnesium-rc1 2024-05-03 00:13:08 +02:00
Daniele Teti
9b414b8665 Delphi Tokyo Compat 2024-05-02 19:14:59 +02:00
rjantz2
d0c3414a5e
Fix crash caused by null value set as a nested record. (#750) 2024-05-01 11:03:49 +02:00
Daniele Teti
d743333741 Updated dmustache to version 2 2024-04-29 15:40:45 +02:00
Marcelo Varela
493d2f21ae
Add Http Only Cookie support (#738)
* HTTP Only Cookie support

* Unit name

* Without chaning the formatting

* Without chaning the formatting

* On logoff check if UseHttpOnly is true
2024-04-29 14:55:58 +02:00
Francisco Zanini
f0bf273e0b
Check if the field is writeable when mapping value to param (#735)
* Return 401 instead 403 when authenticating an user

* Check if the field is writeable when mapping value to param

---------

Co-authored-by: Francisco Zanini <francisco@digifort.com.br>
2024-04-29 14:48:31 +02:00
Daniele Teti
dc29941164 https://github.com/danieleteti/delphimvcframework/issues/746 2024-04-29 12:50:25 +02:00
Daniele Teti
8e7e14151d Profiling can be enabled by the wizard 2024-04-24 17:03:05 +02:00
Daniele Teti
b5b18792d4 Added HTTP Status Code in logs in case of global exception handling 2024-04-23 14:35:20 +02:00
Daniele Teti
2a7a840b13 Added OnSendData callback in TMVCRESTClient 2024-04-23 14:34:40 +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
453d4571e2 Wizard can generate or not the dotEnvConfigure call - if not called, a defuault configuration for dotEnv is provided. 2024-04-19 15:58:19 +02:00
Daniele Teti
4c191c3742 Preparing for release 2024-04-19 13:21:45 +02:00
João Antônio Duarte
eba712e902 Fix Linux compilation 2024-04-17 08:11:47 -03:00
João Antônio Duarte
0816f12ed8 Compatibility fix with Delphi 10.4 Sydney 2024-04-17 08:11:16 -03: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
deff8e6d91 Simplifies content handling in Render(string) 2024-04-16 15:20:50 +02:00
Daniele Teti
80354984e5 Clean some comments 2024-04-16 15:20:18 +02:00
Daniele Teti
51a457e5ec Packages update 2024-04-16 09:30:19 +02:00
Daniele Teti
dea575f3df Modernized FileUpload sample 2024-04-10 17:12:42 +02:00
Daniele Teti
6d1ea32678 Fixed incompatibilities with Delphi Sydney and previous (thanks Mark Lobanov) 2024-04-10 14:19:21 +02:00
Daniele Teti
7332259f25 Default log size = 10KiB 2024-04-09 17:15:11 +02:00
Daniele Teti
9fe57246d4 foAutoGenerated is converted to [foDoNotInsert , foDoNotUpdate] 2024-04-09 17:05:22 +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
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
9035aed2e7 ServiceContainer (WIP) - removed params in Resolve 2024-03-27 00:24:00 +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
f69583373a Injector (WIP) 2024-03-21 18:57:41 +01:00
Daniele Teti
fea6b0c273 Added support for TSQLTimeStampOffset in dataset derialization and deserialization 2024-03-19 16:05:17 +01: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