Jump to content

CodeInjector Package for uniGUI... coming soon


Fred Montier

Recommended Posts

 

ciCover.png.6e8c666c37096be946d10c6f4f35cea0.png

Coming soon...

CodeInjector package:
Allows code injection into your application and with macro substitution before injection.
Easy to use and allows you to make your work easier with extra code that needs to be changed before being used in components or more complex operations such as SQL statements, JavaScript Functions, Text Templates, HTML Code, CSS and anything else that can be treated as AnsiString text /UTF8 by Delphi.

With this package you can easily adapt any HTML template or JavaScript code for direct injection into your section of a uniGUI program, enabling it to bypass the dependency on native uniGUI components and/or improve their use.

TciMacroStrInjector: The persistent type of repository for a text with text replacement macro.
The string you store here is archived in your program and can be expanded (have macro-replaced performed) at any time. The expansion does not change the original string and is done by the ExpandMacros method that returns a new string after the appropriate replacement. In this format, because it is not possible to change the original text as it is stored as a resource in your program, it is very useful for SQL Code, JavaScript functions (eg use in uniGUI and Intraweb), customizing message texts, scripts for chats etc.

TciDBMacroStrInjector: Same as TciMacroStrInjector but with datasource support. This way you can easily enable any html "component" from other frameworks to link to a table and display updated data or during navigation or query return in a simple and uncomplicated way in your code.

TciMUltiStrInjector: The persistent type of repository that allows storage together with your program but with divisions by sections that can be ordered by name. Very useful for application of SQL code, JavaScript. HTML and inject it into your application as in conjunction with the previous MACRO components but with more data handling power. You can easily integrate responsive admin templates into your database and present real-time updated data.

TciFileStrInjector: Allows loading of a local file and its immediate replacement macro. It retains the string in the component allowing it to be saved, encrypted or not, in the DFM and allows combining macros and preferably in a new version. Returns the expanded file for injection. Imagine you can take a page, customize it with the replacement macro, and pass it to a uniHTMLFrame or uniURLFrame and respond to AJAX events through them.

TciWebStrInjector: Allows the GET of a URL/File page and its replacement macro. Returns the manipulated file for injection. Ideal to integrate your system with real-time feedback API such as weather forecast, quotes, REST API consumption, page manipulation from other sources, etc. directly from a url.

You can use one component in conjunction with another for example ciMultiStrInjector and ciMacroStrInjector. Thus, it has a greater ability to handle large amounts of data that can be macro-replaced, exported or imported into your program.

Finishing the demos and docs... this is the kind of component that really is missing in uniGUI and you can use anything available in the web to integrate and beautify your programs like you never did before. New demo videos and demo examples available in 24 hs...

Thanks...

Fred Montier

VCLciDBMacroStrInjector.gif

uniGUIciDBMacroStrInjector.gif

uniGUIciMacroStrInjectorBootStrap.gif

This example above uses BootsStrap panels with responsive layout but the numbers you see changing are provided by ciMacroStrInjector with random values triggered by a timer that updates macro tags in the HTML text.  In this manner you could update anything via DB (datasource) or external URL and convert any html code to live binding content. It's easy and you could use any other framework besides the native uniGUI components achieving great results to the UI experience !

Best of all, toke me just 2 minutes to convert this old project...

More to come...

Edited by Fred Montier
more details
  • Like 1
  • Upvote 1
Link to comment
Share on other sites

Works with VCL or uniGUI... examples in both frameworks.

Imagine that you can take any dashboard template (there are hundreds on any site) that you've always wanted to use but don't have much advantage because its "controls" don't connect to your DB. Or you will have to take a course to learn how to use all the details in alignment and CSS code, with this material you continue to use all the advantages of creating an app in uniGUI(Delphi code speed, session management, stateful etc) but now, don't  have to worry about getting stuck in a uniHTMLFrame/URLFrame and customizing a lot of things so you don't even have a basic controls handling at the end.

With CodeInjector you have the best of both worlds.
There is a similar control in Intraweb but far from being pratical and really functional and all Intraweb programmers use it to make more "responsive-ish" and end up with a lot of "snakes" on their hands.

Link to comment
Share on other sites

Another big application and I will be soon making new releases is at the possibilities for creating scripts and bots, new whatsapp apps, telegram interactions and service bots. Since is very easy to make strings and macro manipulations , you could make many text interactions for  manipulation on-the-fly.

No need for tedious task and problems handling SQL queries, macro substitution with pascal functions etc... all in one go. 

Well, if you don't see how important this is, you´re missing the point with web development, pascal, interface components and uniGUI in general: it's all about string manipulation.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...