Jump to content

Fred Montier

uniGUI Subscriber
  • Posts

    538
  • Joined

  • Last visited

  • Days Won

    83

Posts posted by Fred Montier

  1. This is a Push Example done by Sherzod. Nice example and some minor little improvements by me.

    Since I may transform it into a component to CodeInjector package, is fair to give it back to the community the source code, as Sherzod made it, in a complete and useful example.


    Improvements:
    a- Function A allows easy implementation of the whole Push Message, icon definition, Timeout and little tweaks.
    b- Function B (same as A) and allows redirect onClick over push message dialog.

    See source code.

    I just did simple stuff.

    Buy him a coffee. He is the uniGUI Master Blaster !!

    Thanks Sherzod.

    PS: Note, Is not in the CodeInjector Package , as a self-contained component, yet. I may include it in the next release in few weeks. But basically is what is here.

    In the next release: Cookies, LocalStorage and PUSH components.

    Clip3.thumb.png.c1d73c0cf8b094239a4e5295c129e6c1.png

    Project available only in the pack Silver at https://www.unigui.express

    • Like 3
  2. On 6/15/2022 at 5:08 PM, N.Marzio said:

    Unfortunately, we have been waiting for management for some years
    simple of the localstorage .....

    Next release of CodeInjector Package we will have a component to support LocalStorage read/write by item with macro substitution. At release 3, I'm make client side microtable with this feature with JSon interaction and server side up/down dataexchange.

    A nice solution to my final goal: a uniGUI PWA !😅

    • Like 2
  3. Really appreciated the core source. A lot of doubts are gone and can finish a lot of ideas now.

    For instance, how to make a minimalist project format with the minimal  Sencha Ex.JS dependency possible. A "bare bone" like project. Service format, as far as I tested seem to have some things in it.

    I just want the basic server and session management / Ajax handling etc. No lib dependency of any kind.  I'm learning the code and seams very feasible.

    Thanks for any tips..

  4. Another simple demo showing how  to manipulate templates. Get the DOM element ID and change its value. You can do with any element or div without worrying about string manipulation a other stuff. In this manners, any template or any HTML code you can manipulate from uniGUI. Fast and easy. Bootstrap  etc... more examples coming ! Last day with a $ 40,00 discount !

    See our new Component Package Code Injector at
    https://www.unigui.com.br/uniGUICodeInjector-eng.html

    And our printer server solution for uniGUI - lite version (component package to print PDF, Direct Printing to POS etc)
    https://www.unigui.com.br/uniGUIPRINTERServer-Lite-eng.html
    The final solution to direct print to POS printers

    TemplateDashboard.gif

  5. For those who haven't noticed, this is JS, not "showmessage" ! You can inject any JS code or external JS file. This component can load and inject a external JS code and bust  your app like you never imagined before if you not familiar with JS possibilities now a days.

    Is equivalent to what you do with addJS but with a lot more management and possibilities.

  6. Hi Folks

    CodeInjector has 6 components and more to come in future updates. But one very interesting is ciDOMStrInjector.

    It allows to inject JS code, HTML etc in you browser session or DOM.  No more "espagetti" string manipulation to your projects.

    Clip6.png.c3990090f792d0aa881a79957964f737.png

    Clip5.png.e780ae875526d9d3e9e7a34f4593fb8c.pngDomInjector.gif.6b151770411420fbc9e116bd459f0038.gif

    Last day for old price. New price tomorrow !

    See our new Component Package Code Injector at
    https://www.unigui.com.br/uniGUICodeInjector-eng.html

    And our printer server solution for uniGUI - lite version (component package to print PDF, Direct Printing to POS etc)
    https://www.unigui.com.br/uniGUIPRINTERServer-Lite-eng.html
    The final solution to direct print to POS printers

     

  7. 4 hours ago, Phxtecno said:

    Hi, I never printed to POS printers...
    What is the problem you solve with such printers ?

    Regards

    Well, if you can print directly to your local POS printer (or any)  without browser printer dialog, using uniGUI or any web app, kudos to you ! It's not a problem with printer but how  browsers works and security issues. Can't access directly i/o devices like printer, disk, usb ports, etc...with out a dialog or browser intervention. 

    If you have a biz CRM printing receipts (for instance) without any handles like that... nice. There are lots of people you could put out of biz with your solution. No one can, at the moment. Soon, Chrome , if Apple ever Apply.

    • Thanks 1
  8. HI Folks

    Encrypt a message securely with AES+QR

    e.g Crypto paper wallet (Ethereum private keys, Bitcoin) https://codepen.io/mallendeo/pen/brZJBa

    This is not my project and I haven't made any changes to it. But it's so good and so well done that I couldn't pass it up without publicizing the project of this excellent programmer and his original idea.

    It allows you to generate a QRCode with an encrypted text in it and with a password, allowing its eventual decoding. Simple and practical and with a JS code without an additional gram of fat.

    The JavaScript code, shows how to implement encryption, trigger the device's camera to decrypt, generate a QrCode and trigger the print dialog with everything assembled in an elegant and well done way without VCL Report Components,etc. Is a nice repository to every day's problems. Keep because you will need it.

    Share and see the author's repository in codepen (See the source code in HTML and JavaScript).

    It's the kind of project you might need to keep some secrets that really stay safe.

    Enjoy

    PS: See our new Component Package Code Injector at
    https://www.unigui.com.br/uniGUICodeInjector-eng.html

    And our printer server solution for uniGUI - lite version (component package to print PDF, Direct Printing to POS etc)
    https://www.unigui.com.br/uniGUIPRINTERServer-Lite-eng.html
    The final solution to direct print to POS printers

     

    --- PT-BR

    Este não é um projeto meu e nem fiz nenhuma modificação nele. Mas é tão bom e tão bem feito que não poderia deixar passar sem divulgar o projeto deste excelete programador e sua ideia original.

    Ele permite que você gere um QrCode com um texto encriptado nele e com uma senha, permitindo sua eventual decodificação. Simples e prático e com um código JS sem uma grama adicional de gordura.

    O código JavaScript, mostra como implementar encriptação, acionar a camera do dispositivo para desencriptar, gerar um QrCode e disparar o dialog de impressão com tudo montado de forma elegante e bem feita.

    Compartilhem e veja o repositorio do autor no codepen (Veja no código fonte em HTML e JavaSCript).

    É o tipo de projeto que você pode precisar para guardar alguns segredos que realmente ficam seguros.

     

    Clip5.png.23e26ba03bc22e584a62dd48255a5a3d.png


    Project available only in the pack Silver at https://unigui.express

    • Like 1
  9. Note that in this example, I'm only doing macro expanding to the titles. But you could do the same to all values, properties and even connect to your datasource...

    Beyond html, js, css, text formats you could use it with SQL and everything working with strings. Easy to manipulate big strings and even get data from  URL on-the-fly and customize it. Yes tehre is a ciWEBStrInjector that works similar with uniUrlFrame but with macro substitution.

    Don't miss the promotional price... c'ya

  10. Hi Folks !
    This example show how to use a graph example grabbed from the web  and in few minutes adapt it to uniGUI.
    I made no changes to the HTML except the macro string tags to replace values.
    This example uses ciFileStrInjector component from my CodeInjector package that can read a file, macro-update the original code and save it back to server, if you want or just propagate to uniUrlFrame, like in this case.

    You could also customize the values on the fly ! Even integrate to your datasource for realtime updates.

    This will be available at a promotional release price in few hours.


    uniGUIciFileStrInjectorSimple.thumb.gif.8ef21e125b077da80aa4a4691add3d31.gif

  11. With this technique above, you end up with your "own" Google maps, in theory. 
    That is not how google maps works. But see, if you open the link in a new browser tab, voilá ! This is done to not allow embedding  a paid service code in your domain, app whatever.

    That is security measure to prevent this. Use the component with your APIkey or migrate to a full googlemaps api project. No other ways about it !

    But with an APIKey you have to pay for use by google service standards.

  12. 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.

  13. 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.

×
×
  • Create New...