Skip to content

Commit 8e324c2

Browse files
committed
Initial Commit 😅
1 parent fcb58fe commit 8e324c2

16 files changed

+3624
-0
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,11 @@ __recovery/
6767

6868
# Boss dependency manager vendor folder https://github.com/HashLoad/boss
6969
modules/
70+
71+
# Compile Folders
72+
Component Library Source/TMSWEB/
73+
Component Library Source/Win32/
74+
Core Source/TMSWEB/
75+
Core Source/Win32/
76+
Demo/TMSWEB/
77+
Demo/Win32/
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package TMSWEBDevTools;
2+
3+
{$R *.res}
4+
{$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
5+
{$ALIGN 8}
6+
{$ASSERTIONS ON}
7+
{$BOOLEVAL OFF}
8+
{$DEBUGINFO OFF}
9+
{$EXTENDEDSYNTAX ON}
10+
{$IMPORTEDDATA ON}
11+
{$IOCHECKS ON}
12+
{$LOCALSYMBOLS ON}
13+
{$LONGSTRINGS ON}
14+
{$OPENSTRINGS ON}
15+
{$OPTIMIZATION OFF}
16+
{$OVERFLOWCHECKS OFF}
17+
{$RANGECHECKS OFF}
18+
{$REFERENCEINFO ON}
19+
{$SAFEDIVIDE OFF}
20+
{$STACKFRAMES ON}
21+
{$TYPEDADDRESS OFF}
22+
{$VARSTRINGCHECKS ON}
23+
{$WRITEABLECONST OFF}
24+
{$MINENUMSIZE 1}
25+
{$IMAGEBASE $400000}
26+
{$DEFINE DEBUG}
27+
{$ENDIF IMPLICITBUILDING}
28+
{$IMPLICITBUILD ON}
29+
30+
requires
31+
rtl,
32+
vcl,
33+
TMSWEBCorePkgLibDXE15;
34+
35+
contains
36+
WEBLIB.DevTools in 'WEBLIB.DevTools.pas';
37+
38+
end.

Component Library Source/TMSWEBDevTools.dproj

Lines changed: 1073 additions & 0 deletions
Large diffs are not rendered by default.
676 Bytes
Binary file not shown.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
unit WEBLIB.DevTools;
2+
3+
interface
4+
5+
uses
6+
{$IFNDEF LCLTMSWEB}
7+
System.Classes, SysUtils, WEBLib.Controls, Web, JS, WEBLib.ExtCtrls;
8+
{$ENDIF}
9+
{$IFDEF LCLTMSWEB}
10+
Classes, SysUtils, WEBLib.Controls, Web, JS, WEBLib.ExtCtrls;
11+
{$ENDIF}
12+
13+
type
14+
{$IFNDEF LCLTMSWEB}
15+
[ComponentPlatforms(TMSWebPlatform)]
16+
[JSLibReference('https://cdn.jsdelivr.net/npm/disable-devtool')]
17+
{$ENDIF}
18+
TWebDevTools = class(TComponent)
19+
private
20+
FEnabled: boolean;
21+
procedure SetEnabled(const Value: boolean);
22+
public
23+
constructor Create(AOwner: TComponent); override;
24+
published
25+
property Enabled: boolean read FEnabled write SetEnabled default true;
26+
end;
27+
28+
procedure Register;
29+
30+
implementation
31+
32+
procedure Register;
33+
begin
34+
RegisterComponents('TMS WEB 3rd party', [TWebDevTools]);
35+
end;
36+
37+
{ TWebDevTools }
38+
39+
constructor TWebDevTools.Create(AOwner: TComponent);
40+
begin
41+
inherited;
42+
FEnabled := True;
43+
end;
44+
45+
procedure TWebDevTools.SetEnabled(const Value: boolean);
46+
begin
47+
FEnabled := Value;
48+
end;
49+
50+
end.

Core Source/TMSWEBDevToolsWEB.dpk

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package TMSWEBDevToolsWEB;
2+
3+
{$R *.res}
4+
{$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
5+
{$ALIGN 8}
6+
{$ASSERTIONS ON}
7+
{$BOOLEVAL OFF}
8+
{$DEBUGINFO OFF}
9+
{$EXTENDEDSYNTAX ON}
10+
{$IMPORTEDDATA ON}
11+
{$IOCHECKS ON}
12+
{$LOCALSYMBOLS ON}
13+
{$LONGSTRINGS ON}
14+
{$OPENSTRINGS ON}
15+
{$OPTIMIZATION OFF}
16+
{$OVERFLOWCHECKS OFF}
17+
{$RANGECHECKS OFF}
18+
{$REFERENCEINFO ON}
19+
{$SAFEDIVIDE OFF}
20+
{$STACKFRAMES ON}
21+
{$TYPEDADDRESS OFF}
22+
{$VARSTRINGCHECKS ON}
23+
{$WRITEABLECONST OFF}
24+
{$MINENUMSIZE 1}
25+
{$IMAGEBASE $400000}
26+
{$DEFINE DEBUG}
27+
{$ENDIF IMPLICITBUILDING}
28+
{$DESCRIPTION 'TMS WEB Froala Editor'}
29+
{$RUNONLY}
30+
{$IMPLICITBUILD ON}
31+
32+
contains
33+
WEBLib.DevTools in '.\WEBLib.DevTools.pas',
34+
WEBLib.DevToolsReg in '.\WEBLib.DevToolsReg.pas';
35+
36+
end.

0 commit comments

Comments
 (0)