diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000..a2c7983b
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/3_1_0_breaking_changes.md b/3_1_0_breaking_changes.md
new file mode 100644
index 00000000..45cfa31c
--- /dev/null
+++ b/3_1_0_breaking_changes.md
@@ -0,0 +1,4 @@
+# 3.1.0 (lithium) breaking changes
+
+- JSON-RPC Client Classes has been changed. Now they are interfaces based.
+- JSON-RPC Server: Only public instance methods can be invoked.
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 8dada3ed..00000000
--- a/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright {yyyy} {name of copyright owner}
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/License.txt b/License.txt
new file mode 100644
index 00000000..ad765f91
--- /dev/null
+++ b/License.txt
@@ -0,0 +1,53 @@
+Apache License
+Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
\ No newline at end of file
diff --git a/contrib/mwAnalytics.pas b/contrib/mwAnalytics.pas
new file mode 100644
index 00000000..1100fc8a
--- /dev/null
+++ b/contrib/mwAnalytics.pas
@@ -0,0 +1,116 @@
+unit mwAnalytics;
+
+interface
+
+uses
+ MVCFramework, MVCFramework.Logger, System.Classes;
+
+type
+ IFileAnalytics = interface
+ ['{C77426C4-1D34-4B3A-BD21-3C07B7E0B8BD}']
+ function GetRecentlyUsedAPI() : string;
+ function GetConsumeAPICount(ControllerName, ActionName : string) : Integer;
+ end;
+
+ TMVCAnalyticsMiddleware = class(TInterfacedObject, IMVCMiddleware, IFileAnalytics)
+ private
+ FAnalyticsFileName: string;
+ FAnalyticsFile: TStringList;
+ procedure SetAnalyticsFilename(const Value: string);
+ protected
+ procedure OnBeforeRouting(Context: TWebContext; var Handled: Boolean);
+ procedure OnAfterControllerAction(Context: TWebContext; const AActionNAme: string;
+ const Handled: Boolean);
+ procedure OnBeforeControllerAction(Context: TWebContext;
+ const AControllerQualifiedClassName: string; const AActionNAme: string; var Handled: Boolean);
+ public
+ property AnalyticsFilename: string read FAnalyticsFileName write SetAnalyticsFilename;
+
+ //Own Function
+ function GetRecentlyUsedAPI : string;
+ function GetConsumeAPICount(ControllerName, ActionName : string) : Integer;
+ end;
+
+
+implementation
+
+uses
+ System.SysUtils, System.JSON, REST.Json;
+
+{ TMVCAnalyticsMiddleware }
+
+function TMVCAnalyticsMiddleware.GetConsumeAPICount(ControllerName,
+ ActionName: string): Integer;
+begin
+ Result := 5;
+end;
+
+function TMVCAnalyticsMiddleware.GetRecentlyUsedAPI: string;
+begin
+ Result := 'Test'
+end;
+
+procedure TMVCAnalyticsMiddleware.OnAfterControllerAction(Context: TWebContext;
+ const AActionNAme: string; const Handled: Boolean);
+begin
+ //Context.Response.Content := Context.Response.Content + '[][][]' ;
+end;
+
+procedure TMVCAnalyticsMiddleware.OnBeforeControllerAction(Context: TWebContext;
+ const AControllerQualifiedClassName, AActionNAme: string;
+ var Handled: Boolean);
+var
+ Data : TJSONObject;
+ CSVFile : TextFile;
+ ApplicationPath : string;
+begin
+ {AnalyticsFilename := 'analytics.json';
+
+ if not Assigned(FAnalyticsFile) then
+ raise Exception.Create('Analytics: Cannot read or write to file.');
+
+ Data := TJSONObject.Create;
+ Data.AddPair('TimeStamp', DateTimeToStr(Now));
+ Data.AddPair('IPAddress', Context.Request.ClientIp);
+ Data.AddPair('ControllerName', AControllerQualifiedClassName);
+ Data.AddPair('ActionName', AActionNAme);
+ FAnalyticsFile.Add(Data.ToJSON);
+ FAnalyticsFile.SaveToFile(FAnalyticsFileName);
+ Data.Free;}
+ //Context.Request;
+ ApplicationPath := ExtractFilePath(GetModuleName(hInstance));
+ AssignFile(CSVFile, ApplicationPath+'analytics.csv');
+ if not FileExists('analytics.csv') then
+ begin
+ Rewrite(CSVFile);
+ WriteLn(CSVFile, 'DateTime, IpAddress, ControllerName, ActionName, DomainName, Host');
+ end;
+ Append(CSVFile);
+ WriteLn(CSVFile, DateTimeToStr(Now), ',', Context.Request.ClientIp, ',', AControllerQualifiedClassName, ',',AActionNAme, ',' , Context.Request.RawWebRequest.Referer, ',', Context.Request.RawWebRequest.Host);
+ CloseFile(CSVFile);
+end;
+
+procedure TMVCAnalyticsMiddleware.OnBeforeRouting(Context: TWebContext;
+ var Handled: Boolean);
+begin
+
+end;
+
+procedure TMVCAnalyticsMiddleware.SetAnalyticsFilename(const Value: string);
+begin
+ // create the class if not there
+ if not Assigned(FAnalyticsFile) then
+ FAnalyticsFile := TStringList.Create;
+
+ // Create the file if it doesn't exist
+ if not FileExists(Value) then
+ FAnalyticsFile.SaveToFile(Value)
+ else
+ FAnalyticsFile.LoadFromFile(Value);
+
+ // assign the name
+ FAnalyticsFileName := Value;
+end;
+
+
+end.
diff --git a/ideexpert/DMVC.Expert.CodeGen.Templates.pas b/ideexpert/DMVC.Expert.CodeGen.Templates.pas
index 9ea2aede..7562afe1 100644
--- a/ideexpert/DMVC.Expert.CodeGen.Templates.pas
+++ b/ideexpert/DMVC.Expert.CodeGen.Templates.pas
@@ -2,7 +2,7 @@
//
// Delphi MVC Framework
//
-// Copyright (c) 2010-2018 Daniele Teti and the DMVCFramework Team
+// Copyright (c) 2010-2019 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
diff --git a/ideexpert/DMVC_IDE_Expert_D102Tokyo.dpk b/ideexpert/DMVC_IDE_Expert_D102Tokyo.dpk
index 57ac6836..c063ea55 100644
--- a/ideexpert/DMVC_IDE_Expert_D102Tokyo.dpk
+++ b/ideexpert/DMVC_IDE_Expert_D102Tokyo.dpk
@@ -36,7 +36,8 @@ requires
IndySystem,
IndyProtocols,
IndyCore,
- dbrtl;
+ dbrtl,
+ dmvcframeworkRT;
contains
DMVC.Expert.CodeGen.NewControllerUnit in 'DMVC.Expert.CodeGen.NewControllerUnit.pas',
@@ -51,7 +52,6 @@ contains
DMVC.Expert.NewUnitWizardEx in 'DMVC.Expert.NewUnitWizardEx.pas',
DMVC.Expert.ProjectWizardEx in 'DMVC.Expert.ProjectWizardEx.pas',
DMVC.Expert.Registration in 'DMVC.Expert.Registration.pas',
- DMVC.Splash.Registration in 'DMVC.Splash.Registration.pas',
- MVCFramework.Commons in '..\sources\MVCFramework.Commons.pas';
+ DMVC.Splash.Registration in 'DMVC.Splash.Registration.pas';
end.
diff --git a/ideexpert/DMVC_IDE_Expert_D102Tokyo.dproj b/ideexpert/DMVC_IDE_Expert_D102Tokyo.dproj
index 3346f4d4..bc946e2d 100644
--- a/ideexpert/DMVC_IDE_Expert_D102Tokyo.dproj
+++ b/ideexpert/DMVC_IDE_Expert_D102Tokyo.dproj
@@ -161,6 +161,7 @@
+
@@ -178,7 +179,6 @@
- ICONDMVCNewProjectIcon
diff --git a/ideexpert/DMVC_IDE_Expert_D103Rio.dpk b/ideexpert/DMVC_IDE_Expert_D103Rio.dpk
index b6f37fd0..90172c58 100644
--- a/ideexpert/DMVC_IDE_Expert_D103Rio.dpk
+++ b/ideexpert/DMVC_IDE_Expert_D103Rio.dpk
@@ -36,7 +36,8 @@ requires
IndySystem,
IndyProtocols,
IndyCore,
- dbrtl;
+ dbrtl,
+ dmvcframeworkRT;
contains
DMVC.Expert.CodeGen.NewControllerUnit in 'DMVC.Expert.CodeGen.NewControllerUnit.pas',
@@ -51,7 +52,6 @@ contains
DMVC.Expert.NewUnitWizardEx in 'DMVC.Expert.NewUnitWizardEx.pas',
DMVC.Expert.ProjectWizardEx in 'DMVC.Expert.ProjectWizardEx.pas',
DMVC.Expert.Registration in 'DMVC.Expert.Registration.pas',
- DMVC.Splash.Registration in 'DMVC.Splash.Registration.pas',
- MVCFramework.Commons in '..\sources\MVCFramework.Commons.pas';
+ DMVC.Splash.Registration in 'DMVC.Splash.Registration.pas';
end.
diff --git a/ideexpert/DMVC_IDE_Expert_D103Rio.dproj b/ideexpert/DMVC_IDE_Expert_D103Rio.dproj
index aff47ebe..b0ff6b25 100644
--- a/ideexpert/DMVC_IDE_Expert_D103Rio.dproj
+++ b/ideexpert/DMVC_IDE_Expert_D103Rio.dproj
@@ -126,6 +126,7 @@
+
@@ -143,7 +144,6 @@
- ICONDMVCNewProjectIcon
diff --git a/lib/loggerpro/ThreadSafeQueueU.pas b/lib/loggerpro/ThreadSafeQueueU.pas
index f427e981..8152bbc4 100644
--- a/lib/loggerpro/ThreadSafeQueueU.pas
+++ b/lib/loggerpro/ThreadSafeQueueU.pas
@@ -2,7 +2,7 @@
//
// LoggerPro
//
-// Copyright (c) 2010-2018 Daniele Teti
+// Copyright (c) 2010-2019 Daniele Teti
//
// https://github.com/danieleteti/loggerpro
//
diff --git a/packages/d102/dmvcframeworkRT.dpk b/packages/d102/dmvcframeworkRT.dpk
new file mode 100644
index 00000000..96f28d04
--- /dev/null
+++ b/packages/d102/dmvcframeworkRT.dpk
@@ -0,0 +1,94 @@
+package dmvcframeworkRT;
+
+{$R *.res}
+{$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
+{$ALIGN 8}
+{$ASSERTIONS ON}
+{$BOOLEVAL OFF}
+{$DEBUGINFO OFF}
+{$EXTENDEDSYNTAX ON}
+{$IMPORTEDDATA ON}
+{$IOCHECKS ON}
+{$LOCALSYMBOLS ON}
+{$LONGSTRINGS ON}
+{$OPENSTRINGS ON}
+{$OPTIMIZATION OFF}
+{$OVERFLOWCHECKS OFF}
+{$RANGECHECKS OFF}
+{$REFERENCEINFO ON}
+{$SAFEDIVIDE OFF}
+{$STACKFRAMES ON}
+{$TYPEDADDRESS OFF}
+{$VARSTRINGCHECKS ON}
+{$WRITEABLECONST OFF}
+{$MINENUMSIZE 1}
+{$IMAGEBASE $400000}
+{$DEFINE DEBUG}
+{$ENDIF IMPLICITBUILDING}
+{$DESCRIPTION 'DMVCFramework 3.x'}
+{$LIBSUFFIX '102'}
+{$RUNONLY}
+{$IMPLICITBUILD ON}
+
+requires
+ rtl,
+ inet,
+ dclcommon,
+ dcldb,
+ FireDAC,
+ IndyCore,
+ IndyProtocols,
+ FireDACIBDriver,
+ FireDACMySQLDriver,
+ loggerproRT;
+
+contains
+ JsonDataObjects in '..\..\sources\JsonDataObjects.pas',
+ MVCFramework.ActiveRecord in '..\..\sources\MVCFramework.ActiveRecord.pas',
+ MVCFramework.ActiveRecordController in '..\..\sources\MVCFramework.ActiveRecordController.pas',
+ MVCFramework.ApplicationSession in '..\..\sources\MVCFramework.ApplicationSession.pas',
+ MVCFramework.Cache in '..\..\sources\MVCFramework.Cache.pas',
+ MVCFramework.Commons in '..\..\sources\MVCFramework.Commons.pas',
+ MVCFramework.Console in '..\..\sources\MVCFramework.Console.pas',
+ MVCFramework.DataSet.Utils in '..\..\sources\MVCFramework.DataSet.Utils.pas',
+ MVCFramework.DuckTyping in '..\..\sources\MVCFramework.DuckTyping.pas',
+ MVCFramework.FireDAC.Utils in '..\..\sources\MVCFramework.FireDAC.Utils.pas',
+ MVCFramework.HMAC in '..\..\sources\MVCFramework.HMAC.pas',
+ MVCFramework.JSONRPC.Client in '..\..\sources\MVCFramework.JSONRPC.Client.pas',
+ MVCFramework.JSONRPC in '..\..\sources\MVCFramework.JSONRPC.pas',
+ MVCFramework.JWT in '..\..\sources\MVCFramework.JWT.pas',
+ MVCFramework.Logger in '..\..\sources\MVCFramework.Logger.pas',
+ MVCFramework.Middleware.Analytics in '..\..\sources\MVCFramework.Middleware.Analytics.pas',
+ MVCFramework.Middleware.Authentication in '..\..\sources\MVCFramework.Middleware.Authentication.pas',
+ MVCFramework.Middleware.Authentication.RoleBasedAuthHandler in '..\..\sources\MVCFramework.Middleware.Authentication.RoleBasedAuthHandler.pas',
+ MVCFramework.Middleware.Compression in '..\..\sources\MVCFramework.Middleware.Compression.pas',
+ MVCFramework.Middleware.CORS in '..\..\sources\MVCFramework.Middleware.CORS.pas',
+ MVCFramework.Middleware.JWT in '..\..\sources\MVCFramework.Middleware.JWT.pas',
+ MVCFramework.Middleware.SecurityHeaders in '..\..\sources\MVCFramework.Middleware.SecurityHeaders.pas',
+ MVCFramework.MultiMap in '..\..\sources\MVCFramework.MultiMap.pas',
+ MVCFramework in '..\..\sources\MVCFramework.pas',
+ MVCFramework.Patches in '..\..\sources\MVCFramework.Patches.pas',
+ MVCFramework.RESTAdapter in '..\..\sources\MVCFramework.RESTAdapter.pas',
+ MVCFramework.RESTClient in '..\..\sources\MVCFramework.RESTClient.pas',
+ MVCFramework.Router in '..\..\sources\MVCFramework.Router.pas',
+ MVCFramework.RQL.AST2FirebirdSQL in '..\..\sources\MVCFramework.RQL.AST2FirebirdSQL.pas',
+ MVCFramework.RQL.AST2InterbaseSQL in '..\..\sources\MVCFramework.RQL.AST2InterbaseSQL.pas',
+ MVCFramework.RQL.AST2MySQL in '..\..\sources\MVCFramework.RQL.AST2MySQL.pas',
+ MVCFramework.RQL.AST2PostgreSQL in '..\..\sources\MVCFramework.RQL.AST2PostgreSQL.pas',
+ MVCFramework.RQL.Parser in '..\..\sources\MVCFramework.RQL.Parser.pas',
+ MVCFramework.Rtti.Utils in '..\..\sources\MVCFramework.Rtti.Utils.pas',
+ MVCFramework.Serializer.Abstract in '..\..\sources\MVCFramework.Serializer.Abstract.pas',
+ MVCFramework.Serializer.Commons in '..\..\sources\MVCFramework.Serializer.Commons.pas',
+ MVCFramework.Serializer.Defaults in '..\..\sources\MVCFramework.Serializer.Defaults.pas',
+ MVCFramework.Serializer.Intf in '..\..\sources\MVCFramework.Serializer.Intf.pas',
+ MVCFramework.Serializer.JsonDataObjects.CustomTypes in '..\..\sources\MVCFramework.Serializer.JsonDataObjects.CustomTypes.pas',
+ MVCFramework.Serializer.JsonDataObjects in '..\..\sources\MVCFramework.Serializer.JsonDataObjects.pas',
+ MVCFramework.Session in '..\..\sources\MVCFramework.Session.pas',
+ MVCFramework.SQLGenerators.Firebird in '..\..\sources\MVCFramework.SQLGenerators.Firebird.pas',
+ MVCFramework.SQLGenerators.MySQL in '..\..\sources\MVCFramework.SQLGenerators.MySQL.pas',
+ MVCFramework.SysControllers in '..\..\sources\MVCFramework.SysControllers.pas',
+ MVCFramework.SystemJSONUtils in '..\..\sources\MVCFramework.SystemJSONUtils.pas',
+ MVCFramework.View.Cache in '..\..\sources\MVCFramework.View.Cache.pas';
+
+end.
+
diff --git a/packages/d102/dmvcframeworkRT.dproj b/packages/d102/dmvcframeworkRT.dproj
new file mode 100644
index 00000000..2c06cabe
--- /dev/null
+++ b/packages/d102/dmvcframeworkRT.dproj
@@ -0,0 +1,598 @@
+
+
+ {96D17257-AF74-48CB-9893-7BCCB56A069D}
+ dmvcframeworkRT.dpk
+ 18.5
+ None
+ True
+ Debug
+ Win32
+ 1
+ Package
+
+
+ true
+
+
+ true
+ Base
+ true
+
+
+ true
+ Base
+ true
+
+
+ true
+ Base
+ true
+
+
+ true
+ Cfg_1
+ true
+ true
+
+
+ true
+ Base
+ true
+
+
+ .\$(Platform)\$(Config)
+ .\$(Platform)\$(Config)
+ false
+ false
+ false
+ false
+ false
+ true
+ true
+ System;Xml;Data;Datasnap;Web;Soap;$(DCC_Namespace)
+ All
+ dmvcframeworkRT
+ true
+
+
+ None
+ android-support-v4.dex.jar;cloud-messaging.dex.jar;fmx.dex.jar;google-analytics-v2.dex.jar;google-play-billing.dex.jar;google-play-licensing.dex.jar;google-play-services-ads-7.0.0.dex.jar;google-play-services-analytics-7.0.0.dex.jar;google-play-services-base-7.0.0.dex.jar;google-play-services-gcm-7.0.0.dex.jar;google-play-services-identity-7.0.0.dex.jar;google-play-services-maps-7.0.0.dex.jar;google-play-services-panorama-7.0.0.dex.jar;google-play-services-plus-7.0.0.dex.jar;google-play-services-wallet-7.0.0.dex.jar
+
+
+ Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)
+ Debug
+ true
+ CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=
+ 1033
+
+
+ DEBUG;$(DCC_Define)
+ true
+ false
+ true
+ true
+ true
+
+
+ C:\DEV\dmscontainer_centrosoftware\bin\DMSContainerService.exe
+ true
+ 1033
+ 3
+ DMVCFramework 3.x
+ 102
+
+
+ false
+ RELEASE;$(DCC_Define)
+ 0
+ 0
+
+
+
+ MainSource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cfg_2
+ Base
+
+
+ Base
+
+
+ Cfg_1
+ Base
+
+
+
+ Delphi.Personality.12
+ Package
+
+
+
+
+ Microsoft Office 2000 Sample Automation Server Wrapper Components
+ Microsoft Office XP Sample Automation Server Wrapper Components
+ Embarcadero C++Builder Office 2000 Servers Package
+ Embarcadero C++Builder Office XP Servers Package
+
+
+
+
+
+ true
+
+
+
+
+ true
+
+
+
+
+ true
+
+
+
+
+ true
+
+
+
+
+ true
+
+
+
+
+ true
+
+
+
+
+ dmvcframeworkRT.bpl
+ true
+
+
+
+
+ 1
+
+
+ Contents\MacOS
+ 0
+
+
+
+
+ classes
+ 1
+
+
+
+
+ res\xml
+ 1
+
+
+
+
+ library\lib\armeabi-v7a
+ 1
+
+
+
+
+ library\lib\armeabi
+ 1
+
+
+
+
+ library\lib\mips
+ 1
+
+
+
+
+ library\lib\armeabi-v7a
+ 1
+
+
+
+
+ res\drawable
+ 1
+
+
+
+
+ res\values
+ 1
+
+
+
+
+ res\values-v21
+ 1
+
+
+
+
+ res\drawable
+ 1
+
+
+
+
+ res\drawable-xxhdpi
+ 1
+
+
+
+
+ res\drawable-ldpi
+ 1
+
+
+
+
+ res\drawable-mdpi
+ 1
+
+
+
+
+ res\drawable-hdpi
+ 1
+
+
+
+
+ res\drawable-xhdpi
+ 1
+
+
+
+
+ res\drawable-small
+ 1
+
+
+
+
+ res\drawable-normal
+ 1
+
+
+
+
+ res\drawable-large
+ 1
+
+
+
+
+ res\drawable-xlarge
+ 1
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 0
+
+
+
+
+ 1
+ .framework
+
+
+ 0
+
+
+
+
+ 1
+ .dylib
+
+
+ 0
+ .dll;.bpl
+
+
+
+
+ 1
+ .dylib
+
+
+ 1
+ .dylib
+
+
+ 1
+ .dylib
+
+
+ 1
+ .dylib
+
+
+ 0
+ .bpl
+
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
+ 1
+
+
+ ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
+ 1
+
+
+
+
+
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+
+
+
+
+
+ Contents\Resources
+ 1
+
+
+
+
+ library\lib\armeabi-v7a
+ 1
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+ 1
+
+
+ 0
+
+
+
+
+ 1
+
+
+ 1
+
+
+
+
+ Assets
+ 1
+
+
+ Assets
+ 1
+
+
+
+
+ Assets
+ 1
+
+
+ Assets
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+ False
+ False
+ True
+ False
+
+
+ 12
+
+
+
+
+
diff --git a/packages/d103/dmvcframeworkRT.dpk b/packages/d103/dmvcframeworkRT.dpk
new file mode 100644
index 00000000..bd82bbb4
--- /dev/null
+++ b/packages/d103/dmvcframeworkRT.dpk
@@ -0,0 +1,94 @@
+package dmvcframeworkRT;
+
+{$R *.res}
+{$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
+{$ALIGN 8}
+{$ASSERTIONS ON}
+{$BOOLEVAL OFF}
+{$DEBUGINFO OFF}
+{$EXTENDEDSYNTAX ON}
+{$IMPORTEDDATA ON}
+{$IOCHECKS ON}
+{$LOCALSYMBOLS ON}
+{$LONGSTRINGS ON}
+{$OPENSTRINGS ON}
+{$OPTIMIZATION OFF}
+{$OVERFLOWCHECKS OFF}
+{$RANGECHECKS OFF}
+{$REFERENCEINFO ON}
+{$SAFEDIVIDE OFF}
+{$STACKFRAMES ON}
+{$TYPEDADDRESS OFF}
+{$VARSTRINGCHECKS ON}
+{$WRITEABLECONST OFF}
+{$MINENUMSIZE 1}
+{$IMAGEBASE $400000}
+{$DEFINE DEBUG}
+{$ENDIF IMPLICITBUILDING}
+{$DESCRIPTION 'DMVCFramework 3.x'}
+{$LIBSUFFIX '103'}
+{$RUNONLY}
+{$IMPLICITBUILD ON}
+
+requires
+ rtl,
+ inet,
+ dclcommon,
+ dcldb,
+ FireDAC,
+ IndyCore,
+ IndyProtocols,
+ FireDACIBDriver,
+ FireDACMySQLDriver,
+ loggerproRT;
+
+contains
+ JsonDataObjects in '..\..\sources\JsonDataObjects.pas',
+ MVCFramework.ActiveRecord in '..\..\sources\MVCFramework.ActiveRecord.pas',
+ MVCFramework.ActiveRecordController in '..\..\sources\MVCFramework.ActiveRecordController.pas',
+ MVCFramework.ApplicationSession in '..\..\sources\MVCFramework.ApplicationSession.pas',
+ MVCFramework.Cache in '..\..\sources\MVCFramework.Cache.pas',
+ MVCFramework.Commons in '..\..\sources\MVCFramework.Commons.pas',
+ MVCFramework.Console in '..\..\sources\MVCFramework.Console.pas',
+ MVCFramework.DataSet.Utils in '..\..\sources\MVCFramework.DataSet.Utils.pas',
+ MVCFramework.DuckTyping in '..\..\sources\MVCFramework.DuckTyping.pas',
+ MVCFramework.FireDAC.Utils in '..\..\sources\MVCFramework.FireDAC.Utils.pas',
+ MVCFramework.HMAC in '..\..\sources\MVCFramework.HMAC.pas',
+ MVCFramework.JSONRPC.Client in '..\..\sources\MVCFramework.JSONRPC.Client.pas',
+ MVCFramework.JSONRPC in '..\..\sources\MVCFramework.JSONRPC.pas',
+ MVCFramework.JWT in '..\..\sources\MVCFramework.JWT.pas',
+ MVCFramework.Logger in '..\..\sources\MVCFramework.Logger.pas',
+ MVCFramework.Middleware.Analytics in '..\..\sources\MVCFramework.Middleware.Analytics.pas',
+ MVCFramework.Middleware.Authentication in '..\..\sources\MVCFramework.Middleware.Authentication.pas',
+ MVCFramework.Middleware.Authentication.RoleBasedAuthHandler in '..\..\sources\MVCFramework.Middleware.Authentication.RoleBasedAuthHandler.pas',
+ MVCFramework.Middleware.Compression in '..\..\sources\MVCFramework.Middleware.Compression.pas',
+ MVCFramework.Middleware.CORS in '..\..\sources\MVCFramework.Middleware.CORS.pas',
+ MVCFramework.Middleware.JWT in '..\..\sources\MVCFramework.Middleware.JWT.pas',
+ MVCFramework.Middleware.SecurityHeaders in '..\..\sources\MVCFramework.Middleware.SecurityHeaders.pas',
+ MVCFramework.MultiMap in '..\..\sources\MVCFramework.MultiMap.pas',
+ MVCFramework in '..\..\sources\MVCFramework.pas',
+ MVCFramework.Patches in '..\..\sources\MVCFramework.Patches.pas',
+ MVCFramework.RESTAdapter in '..\..\sources\MVCFramework.RESTAdapter.pas',
+ MVCFramework.RESTClient in '..\..\sources\MVCFramework.RESTClient.pas',
+ MVCFramework.Router in '..\..\sources\MVCFramework.Router.pas',
+ MVCFramework.RQL.AST2FirebirdSQL in '..\..\sources\MVCFramework.RQL.AST2FirebirdSQL.pas',
+ MVCFramework.RQL.AST2InterbaseSQL in '..\..\sources\MVCFramework.RQL.AST2InterbaseSQL.pas',
+ MVCFramework.RQL.AST2MySQL in '..\..\sources\MVCFramework.RQL.AST2MySQL.pas',
+ MVCFramework.RQL.AST2PostgreSQL in '..\..\sources\MVCFramework.RQL.AST2PostgreSQL.pas',
+ MVCFramework.RQL.Parser in '..\..\sources\MVCFramework.RQL.Parser.pas',
+ MVCFramework.Rtti.Utils in '..\..\sources\MVCFramework.Rtti.Utils.pas',
+ MVCFramework.Serializer.Abstract in '..\..\sources\MVCFramework.Serializer.Abstract.pas',
+ MVCFramework.Serializer.Commons in '..\..\sources\MVCFramework.Serializer.Commons.pas',
+ MVCFramework.Serializer.Defaults in '..\..\sources\MVCFramework.Serializer.Defaults.pas',
+ MVCFramework.Serializer.Intf in '..\..\sources\MVCFramework.Serializer.Intf.pas',
+ MVCFramework.Serializer.JsonDataObjects.CustomTypes in '..\..\sources\MVCFramework.Serializer.JsonDataObjects.CustomTypes.pas',
+ MVCFramework.Serializer.JsonDataObjects in '..\..\sources\MVCFramework.Serializer.JsonDataObjects.pas',
+ MVCFramework.Session in '..\..\sources\MVCFramework.Session.pas',
+ MVCFramework.SQLGenerators.Firebird in '..\..\sources\MVCFramework.SQLGenerators.Firebird.pas',
+ MVCFramework.SQLGenerators.MySQL in '..\..\sources\MVCFramework.SQLGenerators.MySQL.pas',
+ MVCFramework.SysControllers in '..\..\sources\MVCFramework.SysControllers.pas',
+ MVCFramework.SystemJSONUtils in '..\..\sources\MVCFramework.SystemJSONUtils.pas',
+ MVCFramework.View.Cache in '..\..\sources\MVCFramework.View.Cache.pas';
+
+end.
+
diff --git a/packages/dmvcframework.dproj b/packages/d103/dmvcframeworkRT.dproj
similarity index 82%
rename from packages/dmvcframework.dproj
rename to packages/d103/dmvcframeworkRT.dproj
index aa0ea4ef..5c2d8ea9 100644
--- a/packages/dmvcframework.dproj
+++ b/packages/d103/dmvcframeworkRT.dproj
@@ -1,7 +1,7 @@
{96D17257-AF74-48CB-9893-7BCCB56A069D}
- dmvcframework.dpk
+ dmvcframeworkRT.dpk18.5NoneTrue
@@ -51,7 +51,8 @@
trueSystem;Xml;Data;Datasnap;Web;Soap;$(DCC_Namespace)All
- dmvcframework
+ dmvcframeworkRT
+ trueNone
@@ -73,7 +74,12 @@
true
- false
+ C:\DEV\dmscontainer_centrosoftware\bin\DMSContainerService.exe
+ true
+ 1033
+ 3
+ DMVCFramework 3.x
+ 103false
@@ -94,52 +100,53 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cfg_2Base
@@ -158,8 +165,15 @@
- dmvcframework.dpk
+ dmvcframeworkRT.dpk
+
+ TurboPack LockBox Delphi FMX designtime package
+ DBExpress Enterprise Data Explorer Integration
+ Microsoft Office 2000 Sample Automation Server Wrapper Components
+ Microsoft Office XP Sample Automation Server Wrapper Components
+ FastReport 6.0 Tee Components
+
@@ -187,9 +201,9 @@
true
-
+
- dmvcframework.bpl
+ dmvcframeworkRT.bpltrue
diff --git a/packages/dmvcframework.dpk b/packages/dmvcframework.dpk
deleted file mode 100644
index 6b1ebe2a..00000000
--- a/packages/dmvcframework.dpk
+++ /dev/null
@@ -1,89 +0,0 @@
-package dmvcframework;
-
-{$R *.res}
-{$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
-{$ALIGN 8}
-{$ASSERTIONS ON}
-{$BOOLEVAL OFF}
-{$DEBUGINFO OFF}
-{$EXTENDEDSYNTAX ON}
-{$IMPORTEDDATA ON}
-{$IOCHECKS ON}
-{$LOCALSYMBOLS ON}
-{$LONGSTRINGS ON}
-{$OPENSTRINGS ON}
-{$OPTIMIZATION OFF}
-{$OVERFLOWCHECKS OFF}
-{$RANGECHECKS OFF}
-{$REFERENCEINFO ON}
-{$SAFEDIVIDE OFF}
-{$STACKFRAMES ON}
-{$TYPEDADDRESS OFF}
-{$VARSTRINGCHECKS ON}
-{$WRITEABLECONST OFF}
-{$MINENUMSIZE 1}
-{$IMAGEBASE $400000}
-{$DEFINE DEBUG}
-{$ENDIF IMPLICITBUILDING}
-{$IMPLICITBUILD ON}
-
-requires
- rtl,
- inet,
- dclcommon,
- dcldb,
- FireDAC,
- IndyCore,
- IndyProtocols,
- FireDACIBDriver,
- FireDACMySQLDriver,
- loggerpro;
-
-contains
- JsonDataObjects in '..\sources\JsonDataObjects.pas',
- MVCFramework.ActiveRecord in '..\sources\MVCFramework.ActiveRecord.pas',
- MVCFramework.ActiveRecordController in '..\sources\MVCFramework.ActiveRecordController.pas',
- MVCFramework.ApplicationSession in '..\sources\MVCFramework.ApplicationSession.pas',
- MVCFramework.Cache in '..\sources\MVCFramework.Cache.pas',
- MVCFramework.Commons in '..\sources\MVCFramework.Commons.pas',
- MVCFramework.Console in '..\sources\MVCFramework.Console.pas',
- MVCFramework.DataSet.Utils in '..\sources\MVCFramework.DataSet.Utils.pas',
- MVCFramework.DuckTyping in '..\sources\MVCFramework.DuckTyping.pas',
- MVCFramework.FireDAC.Utils in '..\sources\MVCFramework.FireDAC.Utils.pas',
- MVCFramework.HMAC in '..\sources\MVCFramework.HMAC.pas',
- MVCFramework.JSONRPC.Client in '..\sources\MVCFramework.JSONRPC.Client.pas',
- MVCFramework.JSONRPC in '..\sources\MVCFramework.JSONRPC.pas',
- MVCFramework.JWT in '..\sources\MVCFramework.JWT.pas',
- MVCFramework.Logger in '..\sources\MVCFramework.Logger.pas',
- MVCFramework.Middleware.Analytics in '..\sources\MVCFramework.Middleware.Analytics.pas',
- MVCFramework.Middleware.Authentication in '..\sources\MVCFramework.Middleware.Authentication.pas',
- MVCFramework.Middleware.Authentication.RoleBasedAuthHandler in '..\sources\MVCFramework.Middleware.Authentication.RoleBasedAuthHandler.pas',
- MVCFramework.Middleware.Compression in '..\sources\MVCFramework.Middleware.Compression.pas',
- MVCFramework.Middleware.CORS in '..\sources\MVCFramework.Middleware.CORS.pas',
- MVCFramework.Middleware.JWT in '..\sources\MVCFramework.Middleware.JWT.pas',
- MVCFramework.Middleware.SecurityHeaders in '..\sources\MVCFramework.Middleware.SecurityHeaders.pas',
- MVCFramework.MultiMap in '..\sources\MVCFramework.MultiMap.pas',
- MVCFramework in '..\sources\MVCFramework.pas',
- MVCFramework.Patches in '..\sources\MVCFramework.Patches.pas',
- MVCFramework.RESTAdapter in '..\sources\MVCFramework.RESTAdapter.pas',
- MVCFramework.RESTClient in '..\sources\MVCFramework.RESTClient.pas',
- MVCFramework.Router in '..\sources\MVCFramework.Router.pas',
- MVCFramework.RQL.AST2FirebirdSQL in '..\sources\MVCFramework.RQL.AST2FirebirdSQL.pas',
- MVCFramework.RQL.AST2InterbaseSQL in '..\sources\MVCFramework.RQL.AST2InterbaseSQL.pas',
- MVCFramework.RQL.AST2MySQL in '..\sources\MVCFramework.RQL.AST2MySQL.pas',
- MVCFramework.RQL.Parser in '..\sources\MVCFramework.RQL.Parser.pas',
- MVCFramework.Rtti.Utils in '..\sources\MVCFramework.Rtti.Utils.pas',
- MVCFramework.Serializer.Abstract in '..\sources\MVCFramework.Serializer.Abstract.pas',
- MVCFramework.Serializer.Commons in '..\sources\MVCFramework.Serializer.Commons.pas',
- MVCFramework.Serializer.Defaults in '..\sources\MVCFramework.Serializer.Defaults.pas',
- MVCFramework.Serializer.Intf in '..\sources\MVCFramework.Serializer.Intf.pas',
- MVCFramework.Serializer.JsonDataObjects.CustomTypes in '..\sources\MVCFramework.Serializer.JsonDataObjects.CustomTypes.pas',
- MVCFramework.Serializer.JsonDataObjects in '..\sources\MVCFramework.Serializer.JsonDataObjects.pas',
- MVCFramework.Session in '..\sources\MVCFramework.Session.pas',
- MVCFramework.SQLGenerators.Firebird in '..\sources\MVCFramework.SQLGenerators.Firebird.pas',
- MVCFramework.SQLGenerators.MySQL in '..\sources\MVCFramework.SQLGenerators.MySQL.pas',
- MVCFramework.SysControllers in '..\sources\MVCFramework.SysControllers.pas',
- MVCFramework.SystemJSONUtils in '..\sources\MVCFramework.SystemJSONUtils.pas',
- MVCFramework.View.Cache in '..\sources\MVCFramework.View.Cache.pas';
-
-end.
diff --git a/releases/3_1_0_lithium/3_0_0_breaking_changes.md b/releases/3_1_0_lithium/3_0_0_breaking_changes.md
new file mode 100644
index 00000000..bc51e706
--- /dev/null
+++ b/releases/3_1_0_lithium/3_0_0_breaking_changes.md
@@ -0,0 +1,59 @@
+# 3.0.0 breaking changes
+- XE6 and previous versions are not more supported.
+- ```RenderListAsProperty``` has been removed from TMVCController. You can set such kind of specialized serializations in your custom base controller.
+- ```RenderJSONArrayAsProperty``` has been removed from TMVCController. You can set such kind of specialized serializations in your custom base controller.
+- ```Render``` has been removed from TMVCController (was deprecated).
+- ```Render(TJSONValue)``` has been removed from TMVCController (use Render(TObject)).
+- Trying to deserialize a ```TJSONNull``` the target instance will not be freed anymore (consistency with serialize).
+- ```Context.Request.BodyAsJSONObject``` dosen't exist any more. Use BodyAs or the following pattern to migrate:
+```
+JSON := TJSONObject.ParseJSONValue(Context.Request.Body) as TJSONObject;
+try
+ if not Assigned(JSON) then
+ raise EMVCException.Create('Invalid JSON');
+ // do something here
+finally
+ JSON.Free;
+end;
+```
+- ```TMVCConfigKey``` moved to unit ```MVCFramework.Commons```.
+- ```TMVCMimeType``` was renamed to ```TMVCMediaType```.
+- ```TMVCController.Render;``` no parameter method do not exist anymore. If the return is a ResponseStream, use the ```RenderResponseStream;```.
+- ```TMVCController.PushJSONToView;``` was renamed to ```PushToView```and Removed SystemJSON dependency, use the ToJSON method if necessary.
+- There is no more a default view engine for Server Side Views (before 3.0 there was mustache).
+- Mustache engine is no more the only view engine available. Now you can implement all the view engines you need (check the serversideviewsprimer).
+- On Linux there is no built-in available view engine available. In other words, using only the built-in classes, you cannot use server side views on linux (dmustache is not compatible on linux).
+- HTTP File Upload doesn't work on Linux because of a bug in Delphi 10.2 (https://quality.embarcadero.com/browse/RSP-17216).
+- ```[MapperJSONNaming(TJSONNameCase.JSONNameLowerCase)]``` now must be changed in ```[MVCNameCase(ncLowerCase)]```
+- ```[MapperJSONNaming(TJSONNameCase.JSONNameUpperCase)]``` now must be changed in ```[MVCNameCase(ncUpperCase)]```
+
+## TRESTClient
+Every reference to TJSON* has been removed from the TRESTClient public interface. To port the existing code, you have to include ```MVCFramework.RESTClient.SystemJSONUtils``` and change your code as following:
+
+Before
+ ```lMyJSONObject := Response.BodyAsJsonObject.Clone as TJSONObject;```
+After
+ ```delphi
+ lMyJSONObject := TSystemJSON.BodyAsJsonObject(Response) as TJSONObject;
+ try
+ //use the object
+ finally
+ lMyJSONObject.Free;
+ end;
+ ```
+
+The memory allocated for the TJSONValue descendant (e.g. TJSONObject, TJSONArray and so on) *is no more managed by the TRESTClient itself* but must be feed by the calling code.
+
+- DelphiStompClient has been removed from the core. The following method is no more available in TMVCController.
+ ```delphi
+ function GetNewStompClient(const AClientId: string = ''): IStompClient;
+ ```
+
+- ```TMVCConfigKey.ISAPIPath``` has been substituted with ```TMVCConfigKey.PathPrefix``` and now is applicated to all kind of projects (not only ISAPI);
+- ```MapperSerializeAsString``` attribute is now ```MVCSerializeAsString```
+- ```ContentCharset``` is no more available (everywhere). You have to properly set ContentType. To do that is available the function ```CreateContentType```.
+- Removed ```LogEx``` and ```LogException```. Use ```Log.ErrorFmt``` instead.
+- `PushObjectToView` has been deprecated. Use `ViewData` property;
+- `PushDataSetToView` has been deprecated. Use `ViewDataSet` property;
+- `ViewModels` has been renamed in `ViewModelList`;
+- `ViewDataSets` has been renamed in `ViewDatasetList`;
\ No newline at end of file
diff --git a/releases/3_1_0_lithium/3_1_0_breaking_changes.md b/releases/3_1_0_lithium/3_1_0_breaking_changes.md
new file mode 100644
index 00000000..45cfa31c
--- /dev/null
+++ b/releases/3_1_0_lithium/3_1_0_breaking_changes.md
@@ -0,0 +1,4 @@
+# 3.1.0 (lithium) breaking changes
+
+- JSON-RPC Client Classes has been changed. Now they are interfaces based.
+- JSON-RPC Server: Only public instance methods can be invoked.
\ No newline at end of file
diff --git a/releases/3_1_0_lithium/License.txt b/releases/3_1_0_lithium/License.txt
new file mode 100644
index 00000000..ad765f91
--- /dev/null
+++ b/releases/3_1_0_lithium/License.txt
@@ -0,0 +1,53 @@
+Apache License
+Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
\ No newline at end of file
diff --git a/releases/3_1_0_lithium/README.md b/releases/3_1_0_lithium/README.md
new file mode 100644
index 00000000..0fa624ac
--- /dev/null
+++ b/releases/3_1_0_lithium/README.md
@@ -0,0 +1,379 @@
+![DelphiMVCFramework Logo](docs/dmvcframework_logofacebook.png)
+
+# DelphiMVCFramework 3.0.0-hydrogen is [here](https://github.com/danieleteti/delphimvcframework/releases/tag/v3.0.0-hydrogen)!
+
+## DelphiMVCFramework Main Features
+
+ * Simple to use, check the ["Getting Started: 5 minutes guide"](https://danieleteti.gitbooks.io/delphimvcframework/content/chapter_getting_started.html) and you will be up and running in 5 minutes or less!
+ * [Project Roadmap](roadmap.md) is always public
+ * More than 40 samples to learn all the features and be proficient and productive
+ * RESTful (RMM Level 3) compliant
+ * JSON-RPC 2.0 Support
+ * Stable and solid, used by small/mid/big projects since 2010
+ * Fast, fast, fast!
+ * Support group at https://www.facebook.com/groups/delphimvcframework with more than 1400 active members
+ * Can be used in load balanced environment
+ * Wizard for the Delphi IDE. It makes DelphiMVCFramework even more simple to use!
+ * Optional session support
+ * JSON Web Token Support (JWT)
+ * Extendable using middlewares (simple hooks to handle request/response)
+ * Flexible yet simple to use, authorization/authentication framework based on industry standards.
+ * HTTP Basic Authentication
+ * JWT Authentication
+ * Custom Authentication
+ * CORS support
+ * Controllers inheritance! You can define your own base controller and inherith from it.
+ * Fancy URL with parameter mappings
+ * Specialied renders to generate text, HTML, JSON.
+ * Powerful and customizable mapper to serialize/deserialize data.
+ * Can be packaged as stand alone server, apache module (XE6 or better) and ISAPI dll
+ * Integrated RESTClient
+ * Works with XE7, XE8, Delphi 10 Seattle, Delphi 10.1 Berlin, Delphi 10.2 Tokyo
+ * Works on Linux (Delphi 10.2 Tokyo or better)
+ * Completely unit tested
+ * There is a sample for each functionality
+ * There is a complete set of trainings about it, but the samples are included in the project
+ * Server side generated pages using Mustache (https://mustache.github.io/) for Delphi (https://github.com/synopse/dmustache)
+ * Specific trainings are available (email to professionals@bittime.it for a date and a place)
+ * Messaging extension using ServerSentEvents
+ * Automatic documentation through /system/describeserver.info
+ * Driven by its huge community (Facebook group https://www.facebook.com/groups/delphimvcframework)
+ * Semantic Versioning
+ * Simple and [documented](docs/ITDevCON%202013%20-%20Introduction%20to%20DelphiMVCFramework.pdf)
+ * Check the [DMVCFramework Developer Guide](https://danieleteti.gitbooks.io/delphimvcframework/content/) (work in progress)
+
+
+## What users says about DMVCFramework
+
+>"DMVCFramework is a great framework. It's very intuitive, fast, easy to use, actually there is nothing more to ask for." -- Samir
+
+>"Wow! To do that in J2EE it takes 2 days" -- a training participant after a 5 minutes demo.
+
+>"I'm starting with the DMVCFramework and I'm finding it fantastic, congratulations for the project!" -- Rafael
+
+>"I'm looking at DMVCFramework project in it works great - for my use case scenarios is much better than *'Similar commercial product'*." -- Luka
+
+>"It's fantastic! Just define your entities and you are up and running in 5 minutes. Nothing comparable on the market." -- Marco
+
+## What's New
+
+### DelphiMVCFramework 3.1.0 lithium (currently in beta)
+- New! Added `TMVCActiveRecord` framework (check sample `activerecord_showcase` and `activerecord_crud`)
+- New! Added `TMVCActiveRecordController` (check sample `activerecord_crud`)
+- Automatic permissions handling for `TMVCActiveRecordController` (check sample `activerecord_crud`)
+- EntityProcessor for `TMVCActiveRecordController` (check sample `activerecord_crud`)
+- `Config[TMVCConfigKey.FallbackResource]` is served only if request path is empty or `/`.
+- New! Now the JSON-RPC executor provides methods to handle HTTP headers for JSON-RPC requests and notifications.
+- `TDataSetHolder` is a new render that is able to render a dataset with a set of custom metadata (eg `count`,`page` etc). Check [issue #137](https://github.com/danieleteti/delphimvcframework/issues/137)
+- `404` and `500` status code returns always a `text/plain` content-type
+- Refactored ISAPI sample
+- Speed improvement! Removed enhanced visibility for action methods. Now only public and published methods can be used as actions.
+- `TMVCController.Create` is `virtual`! Now on your base controllers can be even more powerful!
+- New! Added `MAX_REQUEST_SIZE` for limiting the size of the incoming HTTP requests. IDE Expert is updated too!
+- New! Added method `TMVCJsonDataObjectsSerializer.ListToJsonArray`
+- New! `TMVCResponse` for handle generic (non error) response
+- New! `TMVCErrorResponse` for handle generic error response
+- New! Added class `TMVCActiveRecordList` used in the manual `TMVCActiveRecord` programming
+- New! Added `gzip` compression support in addition to `deflate` in `TCompressionMiddleware`
+- FIX for [issue #143](https://github.com/danieleteti/delphimvcframework/issues/143)
+- FIX for [issue #141](https://github.com/danieleteti/delphimvcframework/issues/141)
+- Removed deprecated methods in `IRESTResponse`
+- FIX misspelled header name in `IRESTResponse`
+- New! Added `gzip` and `deflate` support in `TRestClient` when reading responses
+- `TCompressionMiddleware` has been renamed in `TMVCCompressionMiddleware`
+- New! `TMVCCompressionMiddleware` is added by IDE Expert by default
+- Removed the old JSON serializer based on `System.JSON.pas', now the only available JSON serializer is based on [JsonDataObjects](https://github.com/ahausladen/JsonDataObjects) parser (Thank you Andreas Hausladen).
+- Changed! Custom Types Serializer *must* be registered by media-type only, without charset definition (e.g. just `application/json` and not `application/json;charset=utf-8`)
+- Changed! `IMVCTypeSerializer` is more powerful and simple to use!
+- Sending wrongly formatted JSON now returns a more correctly `400 Bad Request` and not `500 Internal Server Error` as in the previous versions
+- New! Support for Spring4d nullable types (check `samples\renders_spring4d_nullables`)
+- New! `TMVCJSONRPCPublisher` allows to easily expose plain Delphi objects (and even datamodules) through a JSON-RPC 2.0 interface!
+- *Breaking Change!* The JSON RPC Client layer is now interface based.
+
+
+## How to correctly get the source
+It is not needed to download the git repository. Just download the [latest version as zip file](https://github.com/danieleteti/delphimvcframework/releases/tag/v3.0.0-hydrogen) and you are ok.
+
+## Roadmap
+DelphiMVCFramework roadmap is always updated as-soon-as the features planned are implemented. Check the roadmap [here](roadmap.md).
+
+## Trainings, consultancy or custom development service
+As you know, good support on open source software is a must for professional users.
+If you need trainings, consultancy or custom developments on DelphiMVCFramework, send an email to *dmvcframework at bittime dot it*. Alternatively you can send a request using the [contacts forms](http://www.bittimeprofessionals.it/contatti) on [bittimeprofessionals website](http://www.bittimeprofessionals.it). bit Time Professionals is the company behind DelphiMVCFramework, al the main developers works there.
+
+
+### Using mapping framework in Delphi Starter Edition
+A lot of users ask about it, now is possible to use the mapper framework also in Delphi Started Edition. To enable the "StarterEditionMode" open ```sources\dmvcframework.inc``` and remove the dot (.) after the curly brace in the following line
+
+```{.$DEFINE STARTEREDITION}```
+
+become
+
+```{$DEFINE STARTEREDITION}```
+
+## Release Notes
+**3.0.0 (hydrogen)**
+ - First release of the 3.0.0 version
+
+**2.1.3 (lithium)**
+ - FIX https://github.com/danieleteti/delphimvcframework/issues/64
+ - Added unit tests to avoid regressions
+
+**2.1.2 (helium)**
+ - FIX for Delphi versions who don't have ```TJSONBool``` (Delphi XE8 or older)
+ - Added new conditional define in dmvcframework.inc: JSONBOOL (defined for Delphi Seattle+)
+
+**2.1.1 (hydrogen)**
+ - Updated the IDE Expert to show the current version of the framework
+ - FIX to the mapper about the datasets null values (needs to be checked in old Delphi versions)
+ - ADDED support for boolean values in datasets serialization
+ - ADDED unit tests about Mapper and dataset fields nullability
+ - The current version is available in constant ```DMVCFRAMEWORK_VERSION``` defined in ```MVCFramework.Commons.pas```
+
+## Samples and documentation
+DMVCFramework is provided with a lot of examples focused on specific functionality.
+All samples are in [Samples](samples) folder.
+Check the [DMVCFramework Developer Guide](https://danieleteti.gitbooks.io/delphimvcframework/content/) (work in progress).
+
+
+# Getting Started
+Below the is a basic sample of a DMVCFramework server wich can be deployed as standa-alone application, as an Apache module or as ISAPI dll. This flexibility is provided by the Delphi WebBroker framework (built-in in Delphi since Delphi 4).
+The project containes an IDE Expert which make creating DMVCFramework project a breeze. However not all the Delphi version are supported, so here's the manual version (which is not complicated at all).
+
+To create this server, you have to create a new ```Delphi Projects -> WebBroker -> WebServerApplication```. Then add the following changes to the webmodule.
+```delphi
+unit WebModuleUnit1;
+
+interface
+
+uses System.SysUtils, System.Classes, Web.HTTPApp, MVCFramework {this unit contains TMVCEngine class};
+
+type
+ TWebModule1 = class(TWebModule)
+ procedure WebModuleCreate(Sender: TObject);
+ procedure WebModuleDestroy(Sender: TObject);
+
+ private
+ MVC: TMVCEngine;
+
+ public
+ { Public declarations }
+ end;
+
+var
+ WebModuleClass: TComponentClass = TWebModule1;
+
+implementation
+
+{$R *.dfm}
+
+uses UsersControllerU; //this is the unit where is defined the controller
+
+procedure TWebModule1.WebModuleCreate(Sender: TObject);
+begin
+ MVC := TMVCEngine.Create(Self);
+ MVC.Config[TMVCConfigKey.DocumentRoot] := 'public_html'; //if you need some static html, javascript, etc (optional)
+ MVC.AddController(TUsersController); //see next section to know how to create a controller
+end;
+
+procedure TWebModule1.WebModuleDestroy(Sender: TObject);
+begin
+ MVC.Free;
+end;
+
+end.
+```
+
+Remember that the files inside the redist folder *must* be in the executable path or in the system path. If starting the server whithin the IDE doesn't works, try to run the executable outside the IDE and check the dependencies.
+That's it! You have just created your first DelphiMVCFramework. Now you have to add a controller to respond to the http request.
+
+## Sample Controller
+Below a basic sample of a DMVCFramework controller with 2 action
+
+```delphi
+unit UsersControllerU;
+
+interface
+
+uses
+ MVCFramework;
+
+type
+ [MVCPath('/users')]
+ TUsersController = class(TMVCController)
+ public
+
+ //The following action will be with a GET request like the following
+ //http://myserver.com/users/3
+ [MVCPath('/($id)')]
+ [MVCProduces('application/json')]
+ [MVCHTTPMethod([httpGET])]
+ [MVCDoc('Returns a user as a JSON object')]
+ procedure GetUser(id: Integer);
+
+
+ //The following action will be with a GET request like the following
+ //http://myserver.com/users
+ [MVCPath('/')]
+ [MVCProduces('application/json')]
+ [MVCHTTPMethod([httpGET])]
+ [MVCDoc('Returns the users list as a JSON Array of JSON Objects')]
+ procedure GetUsers;
+
+ //The following action will be with a PUT request like the following
+ //http://myserver.com/users/3
+ //and in the request body there should be a serialized TUser
+ [MVCPath('/($id)')]
+ [MVCProduce('application/json')]
+ [MVCHTTPMethod([httpPUT])]
+ [MVCDoc('Update a user')]
+ procedure UpdateUser(id: Integer);
+
+ //The following action will respond to a POST request like the following
+ //http://myserver.com/users
+ //and in the request body there should be the new user to create as json
+ [MVCPath]
+ [MVCProduce('application/json')]
+ [MVCHTTPMethod([httpPOST])]
+ [MVCDoc('Create a new user, returns the id of the new user')]
+ procedure CreateUser;
+
+ end;
+
+implementation
+
+uses
+ MyTransactionScript; //contains actual data access code
+
+{ TUsersController }
+
+procedure TUsersController.GetUsers;
+var
+ Users: TObjectList;
+begin
+ Users := GetUsers;
+ Render(Users);
+end;
+
+procedure TUsersController.GetUser(id: Integer);
+var
+ User: TUser;
+begin
+ User := GetUserById(id);
+ Render(User);
+end;
+
+procedure TUsersController.UpdateUser(id: Integer);
+var
+ User: TUser;
+begin
+ User := Context.Request.BodyAs;
+ UpdateUser(id, User);
+ Render(User);
+end;
+
+procedure TUsersController.CreateUser;
+var
+ User: TUser;
+begin
+ User := Context.Request.BodyAs;
+ CreateUser(User);
+ Render(User);
+end;
+
+end.
+```
+
+Now you have a performant RESTful server wich respond to the following URLs:
+- GET /users/($id) (eg. /users/1, /users/45 etc)
+- PUT /users/($id) (eg. /users/1, /users/45 etc with the JSON data in the request body)
+- POST /users (the JSON data must be in the request body)
+
+### Quick Creation of DelphiMVCFramework Server
+
+If you dont plan to deploy your DMVCFramework server behind a webserver (apache or IIS) you can also pack more than one listener application server into one single executable. In this case, the process is a bit different and involves the creation of a listener context. However, create a new server is a simple task:
+
+```delphi
+uses
+ MVCFramework.Server,
+ MVCFramework.Server.Impl;
+
+var
+ LServerListener: IMVCListener;
+begin
+ LServerListener := TMVCListener.Create(TMVCListenerProperties.New
+ .SetName('Listener1')
+ .SetPort(5000)
+ .SetMaxConnections(1024)
+ .SetWebModuleClass(YourServerWebModuleClass)
+ );
+
+ LServerListener.Start;
+ LServerListener.Stop;
+end;
+```
+
+If you want to add a layer of security (in its WebModule you should add the security middleware):
+
+```delphi
+uses
+ MVCFramework.Server,
+ MVCFramework.Server.Impl,
+ MVCFramework.Middleware.Authentication;
+
+procedure TTestWebModule.WebModuleCreate(Sender: TObject);
+begin
+ FMVCEngine := TMVCEngine.Create(Self);
+
+ // Add Yours Controllers
+ FMVCEngine.AddController(TYourController);
+
+ // Add Security Middleware
+ FMVCEngine.AddMiddleware(TMVCBasicAuthenticationMiddleware.Create(
+ TMVCDefaultAuthenticationHandler.New
+ .SetOnAuthentication(
+ procedure(const AUserName, APassword: string;
+ AUserRoles: TList; var IsValid: Boolean;
+ const ASessionData: TDictionary)
+ begin
+ IsValid := AUserName.Equals('dmvc') and APassword.Equals('123');
+ end
+ )
+ ));
+end;
+```
+
+In stand alone mode you can work with a context that supports multiple listeners servers:
+
+```delphi
+uses
+ MVCFramework.Server,
+ MVCFramework.Server.Impl;
+
+var
+ LServerListenerCtx: IMVCListenersContext;
+
+begin
+ LServerListenerCtx := TMVCListenersContext.Create;
+
+ LServerListenerCtx.Add(TMVCListenerProperties.New
+ .SetName('Listener1')
+ .SetPort(6000)
+ .SetMaxConnections(1024)
+ .SetWebModuleClass(WebModuleClass1)
+ );
+
+ LServerListenerCtx.Add(TMVCListenerProperties.New
+ .SetName('Listener2')
+ .SetPort(7000)
+ .SetMaxConnections(1024)
+ .SetWebModuleClass(WebModuleClass2)
+ );
+
+ LServerListenerCtx.StartAll;
+end;
+```
+
+### Links
+Feel free to ask questions on the "Delphi MVC Framework" facebook group (https://www.facebook.com/groups/delphimvcframework).
+
diff --git a/releases/dmvcframework_3_0_0_hydrogen_RC12.zip b/releases/dmvcframework_3_0_0_hydrogen_RC12.zip
deleted file mode 100644
index 179037a7..00000000
Binary files a/releases/dmvcframework_3_0_0_hydrogen_RC12.zip and /dev/null differ
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 00000000..efd939ce
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,2 @@
+colorama==0.4.1
+invoke==1.2.0
diff --git a/samples/CustomAuth/AuthHandlerU.pas b/samples/CustomAuth/AuthHandlerU.pas
index bda02fe8..ac0c81f6 100644
--- a/samples/CustomAuth/AuthHandlerU.pas
+++ b/samples/CustomAuth/AuthHandlerU.pas
@@ -2,7 +2,7 @@
//
// Delphi MVC Framework
//
-// Copyright (c) 2010-2018 Daniele Teti and the DMVCFramework Team
+// Copyright (c) 2010-2019 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
diff --git a/samples/CustomAuth/MainClientFormU.pas b/samples/CustomAuth/MainClientFormU.pas
index 241a221e..08484ddd 100644
--- a/samples/CustomAuth/MainClientFormU.pas
+++ b/samples/CustomAuth/MainClientFormU.pas
@@ -2,7 +2,7 @@
//
// Delphi MVC Framework
//
-// Copyright (c) 2010-2018 Daniele Teti and the DMVCFramework Team
+// Copyright (c) 2010-2019 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
diff --git a/samples/CustomAuth/MyWebModuleU.pas b/samples/CustomAuth/MyWebModuleU.pas
index 945e9ac3..0787712d 100644
--- a/samples/CustomAuth/MyWebModuleU.pas
+++ b/samples/CustomAuth/MyWebModuleU.pas
@@ -2,7 +2,7 @@
//
// Delphi MVC Framework
//
-// Copyright (c) 2010-2018 Daniele Teti and the DMVCFramework Team
+// Copyright (c) 2010-2019 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
diff --git a/samples/CustomAuth/PrivateControllerU.pas b/samples/CustomAuth/PrivateControllerU.pas
index 44f7571a..cb5dbaf7 100644
--- a/samples/CustomAuth/PrivateControllerU.pas
+++ b/samples/CustomAuth/PrivateControllerU.pas
@@ -2,7 +2,7 @@
//
// Delphi MVC Framework
//
-// Copyright (c) 2010-2018 Daniele Teti and the DMVCFramework Team
+// Copyright (c) 2010-2019 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
diff --git a/samples/CustomAuth/PublicControllerU.pas b/samples/CustomAuth/PublicControllerU.pas
index e80a02ca..c7b03c6f 100644
--- a/samples/CustomAuth/PublicControllerU.pas
+++ b/samples/CustomAuth/PublicControllerU.pas
@@ -2,7 +2,7 @@
//
// Delphi MVC Framework
//
-// Copyright (c) 2010-2018 Daniele Teti and the DMVCFramework Team
+// Copyright (c) 2010-2019 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
diff --git a/samples/activerecord_showcase/EntitiesU.pas b/samples/activerecord_showcase/EntitiesU.pas
index 60b00334..ad35fcd0 100644
--- a/samples/activerecord_showcase/EntitiesU.pas
+++ b/samples/activerecord_showcase/EntitiesU.pas
@@ -2,7 +2,7 @@
//
// Delphi MVC Framework
//
-// Copyright (c) 2010-2018 Daniele Teti and the DMVCFramework Team
+// Copyright (c) 2010-2019 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
diff --git a/samples/activerecord_showcase/MainFormU.dfm b/samples/activerecord_showcase/MainFormU.dfm
index 04c3a0ad..735e3abd 100644
--- a/samples/activerecord_showcase/MainFormU.dfm
+++ b/samples/activerecord_showcase/MainFormU.dfm
@@ -12,6 +12,7 @@ object MainForm: TMainForm
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
+ OnDestroy = FormDestroy
DesignSize = (
635
299)
diff --git a/samples/activerecord_showcase/MainFormU.pas b/samples/activerecord_showcase/MainFormU.pas
index 1a16ed0a..75a489ef 100644
--- a/samples/activerecord_showcase/MainFormU.pas
+++ b/samples/activerecord_showcase/MainFormU.pas
@@ -47,6 +47,7 @@ type
procedure btnSelectClick(Sender: TObject);
procedure btnValidationClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
+ procedure FormDestroy(Sender: TObject);
private
procedure Log(const Value: string);
public
@@ -60,7 +61,6 @@ implementation
{$R *.dfm}
-
uses
MVCFramework.ActiveRecord,
EntitiesU,
@@ -142,14 +142,11 @@ begin
else
raise Exception.Create('Unknown backend for direct SQL execution');
- lProc :=
- procedure
+ lProc := procedure
var
lConn: TFDConnection;
- lCustomer:
- TCustomer;
- I:
- Integer;
+ lCustomer: TCustomer;
+ I: Integer;
begin
lConn := TFDConnection.Create(nil);
try
@@ -174,17 +171,8 @@ begin
end;
end;
- lTasks := [
- TTask.Run(lProc)
- , TTask.Run(lProc)
- , TTask.Run(lProc)
- , TTask.Run(lProc)
- , TTask.Run(lProc)
- , TTask.Run(lProc)
- , TTask.Run(lProc)
- , TTask.Run(lProc)
- , TTask.Run(lProc)
- ];
+ lTasks := [TTask.Run(lProc), TTask.Run(lProc), TTask.Run(lProc), TTask.Run(lProc), TTask.Run(lProc), TTask.Run(lProc),
+ TTask.Run(lProc), TTask.Run(lProc), TTask.Run(lProc)];
TTask.WaitForAll(lTasks);
end;
@@ -360,10 +348,12 @@ begin
ActiveRecordConnectionsRegistry.AddConnection('default', FDConnection1);
end;
-procedure TMainForm.Log(
- const
- Value:
- string);
+procedure TMainForm.FormDestroy(Sender: TObject);
+begin
+ ActiveRecordConnectionsRegistry.RemoveConnection('default');
+end;
+
+procedure TMainForm.Log(const Value: string);
begin
Memo1.Lines.Add(Value);
Memo1.Update;
diff --git a/samples/activerecord_showcase/activerecord_showcase.dpr b/samples/activerecord_showcase/activerecord_showcase.dpr
index 45aa1217..e78d5d96 100644
--- a/samples/activerecord_showcase/activerecord_showcase.dpr
+++ b/samples/activerecord_showcase/activerecord_showcase.dpr
@@ -9,7 +9,9 @@ uses
MVCFramework.RQL.AST2FirebirdSQL in '..\..\sources\MVCFramework.RQL.AST2FirebirdSQL.pas',
MVCFramework.SQLGenerators.MySQL in '..\..\sources\MVCFramework.SQLGenerators.MySQL.pas',
MVCFramework.SQLGenerators.Firebird in '..\..\sources\MVCFramework.SQLGenerators.Firebird.pas',
- MVCFramework.RQL.AST2MySQL in '..\..\sources\MVCFramework.RQL.AST2MySQL.pas';
+ MVCFramework.RQL.AST2MySQL in '..\..\sources\MVCFramework.RQL.AST2MySQL.pas',
+ MVCFramework.RQL.AST2InterbaseSQL in '..\..\sources\MVCFramework.RQL.AST2InterbaseSQL.pas',
+ MVCFramework.RQL.AST2PostgreSQL in '..\..\sources\MVCFramework.RQL.AST2PostgreSQL.pas';
{$R *.res}
diff --git a/samples/activerecord_showcase/activerecord_showcase.dproj b/samples/activerecord_showcase/activerecord_showcase.dproj
index 95d9cb05..05e1289d 100644
--- a/samples/activerecord_showcase/activerecord_showcase.dproj
+++ b/samples/activerecord_showcase/activerecord_showcase.dproj
@@ -113,6 +113,8 @@
+
+ Cfg_2Base
diff --git a/samples/apachemodule/images/block_nine.jpg b/samples/apachemodule/images/block_nine.jpg
new file mode 100644
index 00000000..34710e11
Binary files /dev/null and b/samples/apachemodule/images/block_nine.jpg differ
diff --git a/samples/apachemodule/images/bodega_lurton.jpg b/samples/apachemodule/images/bodega_lurton.jpg
new file mode 100644
index 00000000..731f3ac2
Binary files /dev/null and b/samples/apachemodule/images/bodega_lurton.jpg differ
diff --git a/samples/apachemodule/images/bouscat.jpg b/samples/apachemodule/images/bouscat.jpg
new file mode 100644
index 00000000..c24c7ce8
Binary files /dev/null and b/samples/apachemodule/images/bouscat.jpg differ
diff --git a/samples/apachemodule/images/domaine_serene.jpg b/samples/apachemodule/images/domaine_serene.jpg
new file mode 100644
index 00000000..492ee947
Binary files /dev/null and b/samples/apachemodule/images/domaine_serene.jpg differ
diff --git a/samples/apachemodule/images/ex_umbris.jpg b/samples/apachemodule/images/ex_umbris.jpg
new file mode 100644
index 00000000..45691973
Binary files /dev/null and b/samples/apachemodule/images/ex_umbris.jpg differ
diff --git a/samples/apachemodule/images/generic.jpg b/samples/apachemodule/images/generic.jpg
new file mode 100644
index 00000000..33f2c223
Binary files /dev/null and b/samples/apachemodule/images/generic.jpg differ
diff --git a/samples/apachemodule/images/lan_rioja.jpg b/samples/apachemodule/images/lan_rioja.jpg
new file mode 100644
index 00000000..c2bce57f
Binary files /dev/null and b/samples/apachemodule/images/lan_rioja.jpg differ
diff --git a/samples/apachemodule/images/le_doyenne.jpg b/samples/apachemodule/images/le_doyenne.jpg
new file mode 100644
index 00000000..da5b5b3a
Binary files /dev/null and b/samples/apachemodule/images/le_doyenne.jpg differ
diff --git a/samples/apachemodule/images/lurton-pinot-gris.jpg b/samples/apachemodule/images/lurton-pinot-gris.jpg
new file mode 100644
index 00000000..dc4f638e
Binary files /dev/null and b/samples/apachemodule/images/lurton-pinot-gris.jpg differ
diff --git a/samples/apachemodule/images/margerum.jpg b/samples/apachemodule/images/margerum.jpg
new file mode 100644
index 00000000..4f59af8e
Binary files /dev/null and b/samples/apachemodule/images/margerum.jpg differ
diff --git a/samples/apachemodule/images/morizottes.jpg b/samples/apachemodule/images/morizottes.jpg
new file mode 100644
index 00000000..9b081962
Binary files /dev/null and b/samples/apachemodule/images/morizottes.jpg differ
diff --git a/samples/apachemodule/images/rex_hill.jpg b/samples/apachemodule/images/rex_hill.jpg
new file mode 100644
index 00000000..cb3b4699
Binary files /dev/null and b/samples/apachemodule/images/rex_hill.jpg differ
diff --git a/samples/apachemodule/images/saint_cosme.jpg b/samples/apachemodule/images/saint_cosme.jpg
new file mode 100644
index 00000000..72ae561e
Binary files /dev/null and b/samples/apachemodule/images/saint_cosme.jpg differ
diff --git a/samples/apachemodule/images/viticcio.jpg b/samples/apachemodule/images/viticcio.jpg
new file mode 100644
index 00000000..f0f405c0
Binary files /dev/null and b/samples/apachemodule/images/viticcio.jpg differ
diff --git a/samples/apachemodule/staticfiles/css/milligram.css b/samples/apachemodule/staticfiles/css/milligram.css
new file mode 100644
index 00000000..d253355e
--- /dev/null
+++ b/samples/apachemodule/staticfiles/css/milligram.css
@@ -0,0 +1,602 @@
+/*!
+ * Milligram v1.3.0
+ * https://milligram.github.io
+ *
+ * Copyright (c) 2017 CJ Patoilo
+ * Licensed under the MIT license
+ */
+
+*,
+*:after,
+*:before {
+ box-sizing: inherit;
+}
+
+html {
+ box-sizing: border-box;
+ font-size: 62.5%;
+}
+
+body {
+ color: #606c76;
+ font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
+ font-size: 1.6em;
+ font-weight: 300;
+ letter-spacing: .01em;
+ line-height: 1.6;
+}
+
+blockquote {
+ border-left: 0.3rem solid #d1d1d1;
+ margin-left: 0;
+ margin-right: 0;
+ padding: 1rem 1.5rem;
+}
+
+blockquote *:last-child {
+ margin-bottom: 0;
+}
+
+.button,
+button,
+input[type='button'],
+input[type='reset'],
+input[type='submit'] {
+ background-color: #9b4dca;
+ border: 0.1rem solid #9b4dca;
+ border-radius: .4rem;
+ color: #fff;
+ cursor: pointer;
+ display: inline-block;
+ font-size: 1.1rem;
+ font-weight: 700;
+ height: 3.8rem;
+ letter-spacing: .1rem;
+ line-height: 3.8rem;
+ padding: 0 3.0rem;
+ text-align: center;
+ text-decoration: none;
+ text-transform: uppercase;
+ white-space: nowrap;
+}
+
+.button:focus, .button:hover,
+button:focus,
+button:hover,
+input[type='button']:focus,
+input[type='button']:hover,
+input[type='reset']:focus,
+input[type='reset']:hover,
+input[type='submit']:focus,
+input[type='submit']:hover {
+ background-color: #606c76;
+ border-color: #606c76;
+ color: #fff;
+ outline: 0;
+}
+
+.button[disabled],
+button[disabled],
+input[type='button'][disabled],
+input[type='reset'][disabled],
+input[type='submit'][disabled] {
+ cursor: default;
+ opacity: .5;
+}
+
+.button[disabled]:focus, .button[disabled]:hover,
+button[disabled]:focus,
+button[disabled]:hover,
+input[type='button'][disabled]:focus,
+input[type='button'][disabled]:hover,
+input[type='reset'][disabled]:focus,
+input[type='reset'][disabled]:hover,
+input[type='submit'][disabled]:focus,
+input[type='submit'][disabled]:hover {
+ background-color: #9b4dca;
+ border-color: #9b4dca;
+}
+
+.button.button-outline,
+button.button-outline,
+input[type='button'].button-outline,
+input[type='reset'].button-outline,
+input[type='submit'].button-outline {
+ background-color: transparent;
+ color: #9b4dca;
+}
+
+.button.button-outline:focus, .button.button-outline:hover,
+button.button-outline:focus,
+button.button-outline:hover,
+input[type='button'].button-outline:focus,
+input[type='button'].button-outline:hover,
+input[type='reset'].button-outline:focus,
+input[type='reset'].button-outline:hover,
+input[type='submit'].button-outline:focus,
+input[type='submit'].button-outline:hover {
+ background-color: transparent;
+ border-color: #606c76;
+ color: #606c76;
+}
+
+.button.button-outline[disabled]:focus, .button.button-outline[disabled]:hover,
+button.button-outline[disabled]:focus,
+button.button-outline[disabled]:hover,
+input[type='button'].button-outline[disabled]:focus,
+input[type='button'].button-outline[disabled]:hover,
+input[type='reset'].button-outline[disabled]:focus,
+input[type='reset'].button-outline[disabled]:hover,
+input[type='submit'].button-outline[disabled]:focus,
+input[type='submit'].button-outline[disabled]:hover {
+ border-color: inherit;
+ color: #9b4dca;
+}
+
+.button.button-clear,
+button.button-clear,
+input[type='button'].button-clear,
+input[type='reset'].button-clear,
+input[type='submit'].button-clear {
+ background-color: transparent;
+ border-color: transparent;
+ color: #9b4dca;
+}
+
+.button.button-clear:focus, .button.button-clear:hover,
+button.button-clear:focus,
+button.button-clear:hover,
+input[type='button'].button-clear:focus,
+input[type='button'].button-clear:hover,
+input[type='reset'].button-clear:focus,
+input[type='reset'].button-clear:hover,
+input[type='submit'].button-clear:focus,
+input[type='submit'].button-clear:hover {
+ background-color: transparent;
+ border-color: transparent;
+ color: #606c76;
+}
+
+.button.button-clear[disabled]:focus, .button.button-clear[disabled]:hover,
+button.button-clear[disabled]:focus,
+button.button-clear[disabled]:hover,
+input[type='button'].button-clear[disabled]:focus,
+input[type='button'].button-clear[disabled]:hover,
+input[type='reset'].button-clear[disabled]:focus,
+input[type='reset'].button-clear[disabled]:hover,
+input[type='submit'].button-clear[disabled]:focus,
+input[type='submit'].button-clear[disabled]:hover {
+ color: #9b4dca;
+}
+
+code {
+ background: #f4f5f6;
+ border-radius: .4rem;
+ font-size: 86%;
+ margin: 0 .2rem;
+ padding: .2rem .5rem;
+ white-space: nowrap;
+}
+
+pre {
+ background: #f4f5f6;
+ border-left: 0.3rem solid #9b4dca;
+ overflow-y: hidden;
+}
+
+pre > code {
+ border-radius: 0;
+ display: block;
+ padding: 1rem 1.5rem;
+ white-space: pre;
+}
+
+hr {
+ border: 0;
+ border-top: 0.1rem solid #f4f5f6;
+ margin: 3.0rem 0;
+}
+
+input[type='email'],
+input[type='number'],
+input[type='password'],
+input[type='search'],
+input[type='tel'],
+input[type='text'],
+input[type='url'],
+textarea,
+select {
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+ background-color: transparent;
+ border: 0.1rem solid #d1d1d1;
+ border-radius: .4rem;
+ box-shadow: none;
+ box-sizing: inherit;
+ height: 3.8rem;
+ padding: .6rem 1.0rem;
+ width: 100%;
+}
+
+input[type='email']:focus,
+input[type='number']:focus,
+input[type='password']:focus,
+input[type='search']:focus,
+input[type='tel']:focus,
+input[type='text']:focus,
+input[type='url']:focus,
+textarea:focus,
+select:focus {
+ border-color: #9b4dca;
+ outline: 0;
+}
+
+select {
+ background: url('data:image/svg+xml;utf8,') center right no-repeat;
+ padding-right: 3.0rem;
+}
+
+select:focus {
+ background-image: url('data:image/svg+xml;utf8,');
+}
+
+textarea {
+ min-height: 6.5rem;
+}
+
+label,
+legend {
+ display: block;
+ font-size: 1.6rem;
+ font-weight: 700;
+ margin-bottom: .5rem;
+}
+
+fieldset {
+ border-width: 0;
+ padding: 0;
+}
+
+input[type='checkbox'],
+input[type='radio'] {
+ display: inline;
+}
+
+.label-inline {
+ display: inline-block;
+ font-weight: normal;
+ margin-left: .5rem;
+}
+
+.container {
+ margin: 0 auto;
+ max-width: 112.0rem;
+ padding: 0 2.0rem;
+ position: relative;
+ width: 100%;
+}
+
+.row {
+ display: flex;
+ flex-direction: column;
+ padding: 0;
+ width: 100%;
+}
+
+.row.row-no-padding {
+ padding: 0;
+}
+
+.row.row-no-padding > .column {
+ padding: 0;
+}
+
+.row.row-wrap {
+ flex-wrap: wrap;
+}
+
+.row.row-top {
+ align-items: flex-start;
+}
+
+.row.row-bottom {
+ align-items: flex-end;
+}
+
+.row.row-center {
+ align-items: center;
+}
+
+.row.row-stretch {
+ align-items: stretch;
+}
+
+.row.row-baseline {
+ align-items: baseline;
+}
+
+.row .column {
+ display: block;
+ flex: 1 1 auto;
+ margin-left: 0;
+ max-width: 100%;
+ width: 100%;
+}
+
+.row .column.column-offset-10 {
+ margin-left: 10%;
+}
+
+.row .column.column-offset-20 {
+ margin-left: 20%;
+}
+
+.row .column.column-offset-25 {
+ margin-left: 25%;
+}
+
+.row .column.column-offset-33, .row .column.column-offset-34 {
+ margin-left: 33.3333%;
+}
+
+.row .column.column-offset-50 {
+ margin-left: 50%;
+}
+
+.row .column.column-offset-66, .row .column.column-offset-67 {
+ margin-left: 66.6666%;
+}
+
+.row .column.column-offset-75 {
+ margin-left: 75%;
+}
+
+.row .column.column-offset-80 {
+ margin-left: 80%;
+}
+
+.row .column.column-offset-90 {
+ margin-left: 90%;
+}
+
+.row .column.column-10 {
+ flex: 0 0 10%;
+ max-width: 10%;
+}
+
+.row .column.column-20 {
+ flex: 0 0 20%;
+ max-width: 20%;
+}
+
+.row .column.column-25 {
+ flex: 0 0 25%;
+ max-width: 25%;
+}
+
+.row .column.column-33, .row .column.column-34 {
+ flex: 0 0 33.3333%;
+ max-width: 33.3333%;
+}
+
+.row .column.column-40 {
+ flex: 0 0 40%;
+ max-width: 40%;
+}
+
+.row .column.column-50 {
+ flex: 0 0 50%;
+ max-width: 50%;
+}
+
+.row .column.column-60 {
+ flex: 0 0 60%;
+ max-width: 60%;
+}
+
+.row .column.column-66, .row .column.column-67 {
+ flex: 0 0 66.6666%;
+ max-width: 66.6666%;
+}
+
+.row .column.column-75 {
+ flex: 0 0 75%;
+ max-width: 75%;
+}
+
+.row .column.column-80 {
+ flex: 0 0 80%;
+ max-width: 80%;
+}
+
+.row .column.column-90 {
+ flex: 0 0 90%;
+ max-width: 90%;
+}
+
+.row .column .column-top {
+ align-self: flex-start;
+}
+
+.row .column .column-bottom {
+ align-self: flex-end;
+}
+
+.row .column .column-center {
+ -ms-grid-row-align: center;
+ align-self: center;
+}
+
+@media (min-width: 40rem) {
+ .row {
+ flex-direction: row;
+ margin-left: -1.0rem;
+ width: calc(100% + 2.0rem);
+ }
+ .row .column {
+ margin-bottom: inherit;
+ padding: 0 1.0rem;
+ }
+}
+
+a {
+ color: #9b4dca;
+ text-decoration: none;
+}
+
+a:focus, a:hover {
+ color: #606c76;
+}
+
+dl,
+ol,
+ul {
+ list-style: none;
+ margin-top: 0;
+ padding-left: 0;
+}
+
+dl dl,
+dl ol,
+dl ul,
+ol dl,
+ol ol,
+ol ul,
+ul dl,
+ul ol,
+ul ul {
+ font-size: 90%;
+ margin: 1.5rem 0 1.5rem 3.0rem;
+}
+
+ol {
+ list-style: decimal inside;
+}
+
+ul {
+ list-style: circle inside;
+}
+
+.button,
+button,
+dd,
+dt,
+li {
+ margin-bottom: 1.0rem;
+}
+
+fieldset,
+input,
+select,
+textarea {
+ margin-bottom: 1.5rem;
+}
+
+blockquote,
+dl,
+figure,
+form,
+ol,
+p,
+pre,
+table,
+ul {
+ margin-bottom: 2.5rem;
+}
+
+table {
+ border-spacing: 0;
+ width: 100%;
+}
+
+td,
+th {
+ border-bottom: 0.1rem solid #e1e1e1;
+ padding: 1.2rem 1.5rem;
+ text-align: left;
+}
+
+td:first-child,
+th:first-child {
+ padding-left: 0;
+}
+
+td:last-child,
+th:last-child {
+ padding-right: 0;
+}
+
+b,
+strong {
+ font-weight: bold;
+}
+
+p {
+ margin-top: 0;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-weight: 300;
+ letter-spacing: -.1rem;
+ margin-bottom: 2.0rem;
+ margin-top: 0;
+}
+
+h1 {
+ font-size: 4.6rem;
+ line-height: 1.2;
+}
+
+h2 {
+ font-size: 3.6rem;
+ line-height: 1.25;
+}
+
+h3 {
+ font-size: 2.8rem;
+ line-height: 1.3;
+}
+
+h4 {
+ font-size: 2.2rem;
+ letter-spacing: -.08rem;
+ line-height: 1.35;
+}
+
+h5 {
+ font-size: 1.8rem;
+ letter-spacing: -.05rem;
+ line-height: 1.5;
+}
+
+h6 {
+ font-size: 1.6rem;
+ letter-spacing: 0;
+ line-height: 1.4;
+}
+
+img {
+ max-width: 100%;
+}
+
+.clearfix:after {
+ clear: both;
+ content: ' ';
+ display: table;
+}
+
+.float-left {
+ float: left;
+}
+
+.float-right {
+ float: right;
+}
+
+/*# sourceMappingURL=milligram.css.map */
\ No newline at end of file
diff --git a/samples/apachemodule/staticfiles/css/styles.css b/samples/apachemodule/staticfiles/css/styles.css
new file mode 100644
index 00000000..4c56f8b3
--- /dev/null
+++ b/samples/apachemodule/staticfiles/css/styles.css
@@ -0,0 +1,107 @@
+
+.header {
+ padding-top: 5px;
+}
+
+#wineList {
+ overflow-y: scroll;
+ height: 80%;
+}
+
+.leftArea {
+ position: absolute;
+ left: 10px;
+ top: 70px;
+ bottom: 20px;
+ width: 260px;
+ border:solid 1px #CCCCCC;
+ /*overflow-y: scroll;*/
+}
+
+.mainArea {
+ position: absolute;
+ top: 70px;
+ bottom: 20px;
+ left:300px;
+ /*overflow-y: scroll;*/
+ width:300px;
+}
+
+.rightArea {
+ position: absolute;
+ top: 70px;
+ bottom: 20px;
+ left:650px;
+ /*overflow-y: scroll;*/
+ width:280px;
+}
+
+ul {
+ list-style-type: none;
+ padding-left: 0px;
+ margin-top: 0px;
+}
+
+li a {
+ text-decoration:none;
+ display: block;
+ color: #000000;
+ border-bottom:solid 1px #CCCCCC;
+ padding: 8px;
+}
+
+li a:hover {
+ background-color: #4B0A1E;
+ color: #BA8A92;
+}
+
+input, textarea {
+ border:1px solid #ccc;
+ min-height:30px;
+ outline: none;
+}
+
+.mainArea input {
+ margin-bottom:15px;
+ margin-top:5px;
+ width:280px;
+}
+
+textarea {
+ margin-bottom:15px;
+ margin-top:5px;
+ height: 200px;
+ width:250px;
+}
+
+label {
+ display:block;
+}
+
+button {
+ padding:6px;
+}
+
+
+#searchKey {
+ width:160px;
+}
+
+
+.footer {
+ position:fixed;
+ left:0px;
+ bottom:0px;
+ height:30px;
+ width:100%;
+ background:#999;
+}
+
+.textcenter {
+ text-align: center;
+}
+
+.padding02 {
+ padding: 2px;
+}
+
diff --git a/samples/apachemodule/staticfiles/index.html b/samples/apachemodule/staticfiles/index.html
new file mode 100644
index 00000000..2d908d26
--- /dev/null
+++ b/samples/apachemodule/staticfiles/index.html
@@ -0,0 +1,70 @@
+
+
+
+
+ Cellar
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/samples/serversideviews_mustache/bin/templates/footer.mustache b/samples/serversideviews_mustache/bin/templates/footer.mustache
new file mode 100644
index 00000000..6579c5ee
--- /dev/null
+++ b/samples/serversideviews_mustache/bin/templates/footer.mustache
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+ N.B. All these views are UTF-8 encoded with BOM
+
+
+ Powered by DMVCFramework
+
+
+ Server Side Views
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/samples/serversideviews_mustache/bin/templates/header.mustache b/samples/serversideviews_mustache/bin/templates/header.mustache
new file mode 100644
index 00000000..fcb1dfd0
--- /dev/null
+++ b/samples/serversideviews_mustache/bin/templates/header.mustache
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
Server Side Views Primer DMVCFramework
\ No newline at end of file
diff --git a/samples/serversideviews_mustache/bin/templates/people_header.csv.mustache b/samples/serversideviews_mustache/bin/templates/people_header.csv.mustache
new file mode 100644
index 00000000..285ec9e0
--- /dev/null
+++ b/samples/serversideviews_mustache/bin/templates/people_header.csv.mustache
@@ -0,0 +1 @@
+guid;first_name;last_name;age
diff --git a/samples/serversideviews_mustache/bin/templates/people_list.csv.mustache b/samples/serversideviews_mustache/bin/templates/people_list.csv.mustache
new file mode 100644
index 00000000..44f9e271
--- /dev/null
+++ b/samples/serversideviews_mustache/bin/templates/people_list.csv.mustache
@@ -0,0 +1,2 @@
+{{#people}}{{guid}};"{{first_name}}";"{{last_name}}";{{age}}
+{{/people}}
\ No newline at end of file
diff --git a/samples/serversideviews_mustache/bin/templates/people_list.mustache b/samples/serversideviews_mustache/bin/templates/people_list.mustache
new file mode 100644
index 00000000..d0b66a87
--- /dev/null
+++ b/samples/serversideviews_mustache/bin/templates/people_list.mustache
@@ -0,0 +1,41 @@
+