Commit Graph

148 Commits

Author SHA1 Message Date
Hassan DRAGA
7db9826676 Updating the links
* Updating the links to the new organization
2023-05-13 10:47:42 -04:00
Albert Shown
e3ee8b4dbe Fast closing
* Now `webui_exit()` operation become faster
* Cleaning the text editor UI files
2023-05-09 17:04:56 -04:00
Hassan DRAGA
e41d3113e9 Updating C examples
* Quick update to the C text editor example
2023-05-09 12:41:23 -04:00
Hassan DRAGA
bc5e5b2a56 Public get_new_window_id
# New
* `webui_get_new_window_id` is now public
* Updating C++ examples
2023-05-09 07:48:27 -04:00
Hassan DRAGA
71eeb25453 Update Readme 2023-05-08 23:12:17 -04:00
Hassan DRAGA
4e0a7fe5c1 Text Editor Example
# Changes
* `webui_run` changed from `bool` to `void` as it run the script fast with no return

# New
* `char* webui_encode(const char* str)` encode string to base64
* `char* webui_decode(const char* str)` decode base64 to string
* `void webui_free(void* ptr)` free resource allocated by WebUI (_when using webui_encode()_)
* A text editor example

# Fix
* Now WebUI wait in loop while the application requestion more html files (_Large HTML UI_)
2023-05-08 23:03:41 -04:00
Hassan DRAGA
980d4a4306 Text Editor C (Only UI)
* Non-complete Text Editor in C
2023-05-07 22:08:21 -04:00
Hassan DRAGA
aacc8b0ddd Window ID Based Creation
# New:

* New API: `void webui_new_window_id(size_t window_number)`
* New API: `void webui_destroy(size_t window)`

_Please see C serve_a_folder example on how to use webui_new_window_id()_

# Changes

* To keep consistency with window IDs, all `unsigned int` changed to `size_t`
2023-05-07 13:54:15 -04:00
Hassan DRAGA
ca7b4f50ed WebUI v2.3.0
# Users/Wrappers Changes
* The window object changed from `void*` (pointer) to a simple `size_t` (integer)

# New Core Features And Changes
* License changed from `GPLv2` to 'MIT'. Thanks to @xD0135
* The core APIs is completely changed from `Mongoose` to `civetweb`. Thanks to @xD0135
* Kiosk mode support. Thanks to @malisipi
* UI responses resolving using IDs instead of first received (WebUI-JS-Bridge)
* Fix C++ Linux Clang build issue (C++ Linux GCC still broken)
2023-05-04 21:41:03 -04:00
Mehmet Ali Şipi
254e3733b2 Fix app & kiosk mode in chromium browsers 2023-05-04 21:55:21 +03:00
Hassan DRAGA
2aca7500fc Async Calls
* Changing `webui_fn('MyID', 'My Data')` to `webui_fn('MyID', 'My Data').then((response) => { ... });`
* Python AnderShell3000 example
2023-04-30 19:24:41 -04:00
Hassan DRAGA
866796c8d2 Event Struct Improvement
* In webui_event_t `type` changed to `event_type`. This is because some wrapper's language does not support using _type_ as a variable name.
* In webui_event_t `char* response` changed to `unsigned int event_number`.
* Now `webui_interface_set_response()` use a simple `unsigned int event_number` instead of `char* response`.
2023-04-29 13:46:11 -04:00
Hassan DRAGA
15478a0dcf Interpret Deno TypeScript Examples
* Interpret Deno TypeScript Examples (C99)
2023-04-28 00:32:11 -04:00
Hassan DRAGA
e32936036f Support Win32 Unicode
* Adding Win32 Unicode support to make V wrapper v2.2.0 working
2023-04-26 23:36:45 -04:00
Albert Shown
f4f168c912 Fix TCC (tlhelp32.h) issue
* Removing auto-running browser detection from TCC build
2023-04-26 18:15:55 -04:00
Albert Shown
01e19872ac More C++ examples
* Adding more C++ examples
* Updating C++ docs
2023-04-26 16:44:35 -04:00
Albert Shown
3a0cd4968f Memory Optimization
* Implementing https://github.com/alifcommunity/webui/issues/81
* Fix Linux & macOS build script using `dos2unix`
2023-04-24 17:44:27 -04:00
Hassan DRAGA
527d000b45 Fix & Docs
* C Documentation v2.2.0
* Python Documentation v2.2.0
* Update Python examples
* Fix https://github.com/alifcommunity/webui/issues/83
2023-04-23 22:05:33 -04:00
Hassan DRAGA
51f552d738 Support Visual Studio (C++)
* New Visual Studio (C++) Examples
* New C++ wrapper (simple)
* Fixing a memory issue when using (VS CRT)
2023-04-22 22:51:45 -04:00
Hassan DRAGA
18d68ab586 First WebUI v2.2.0 Commit
# WebUI v2.2.0

* Now, creating a wrapper is easier as core functions have been removed from `webui.h`
* Removing many functions (webui_open, webui_new_server...)

* C - Complete
* Go - Complete
* Deno - Complete
* All other things still need to be completed...
2023-04-17 15:43:46 -04:00
Hassan DRAGA
c89d92fc80 macOS Support
* Supporting macOS (Tested with Chrome, macOS 12)
* Adding macOS C Makefiles
* [Issue] We need to close Chrome to run the program again. We need to find the perfect command to run Chrome to fix this
2023-04-05 00:21:20 -04:00
Hassan DRAGA
9a38611454 WebUI v2.1.1
* Fix MacOS threading bug `wait()`
* Removing all `bind_all` related codes
* Now, you can listen for general events by binding with an empty ID
2023-04-01 00:05:41 -04:00
Hassan DRAGA
b7bf608240 WebUI v2.1.0
#New Features
* Supporting more web browsers
* Search for web browsers in Windows Reg.
* Using the same show() function for HTML script, files, and refresh content
* Support Chrome on macOS

#Breaking code
* Switching from `webui_show(win, html, browser);` to `webui_show(win, content);`, and it's used for HTML, files, and reload the window
* Removing `webui_show_cpy()`, `webui_refresh()`, `webui_refresh_cpy()`
2023-03-28 23:00:09 -04:00
Albert Shown
1a1e4c7a00 WebUI v2.0.7
* Switch from GPL to LGPL
* Deno example is ready
* Adding `void _webui_free_all_mem()` to release all dynamic mem at exit
* Break Change `void webui_script_interface(webui_window_t* win, const char* script, unsigned int timeout, bool* error, unsigned int* length, char* data)` to `void webui_script_interface(webui_window_t* win, const char* script, unsigned int timeout, bool* error, unsigned int* length, char** data)`
* Updating readme
* Moving Zig build file into build folder

More code cleaning and more examples is needed before we release the version 2.0.7.
2023-03-21 18:47:19 -04:00
Hassan DRAGA
bc7eef355e Fix for 2.0.6 - Math lib
* Fix missing Math lib in some Linux distro
2023-03-01 22:33:49 -05:00
Albert Shown
6991c02abc WebUI 2.0.6
* Supporting href link
* Python serve a folder example
* Fix bug in Infinite loop when set_timeout() get called later
* webui.js wont close window if href link clicked
* Fix bug in webui.js show error message when switching between window fast
2023-03-01 18:16:24 -05:00
Hassan DRAGA
e32afffe2e
Revert "Add an example calculator" 2022-12-20 14:59:21 -05:00
Hassan DRAGA
7da1e186dd
Merge pull request #43 from mohamedke/main
Adding an example calculator
2022-12-14 16:45:28 -05:00
mohamedke
c4924695e2
Adding an examples calculator 2022-12-14 22:14:10 +01:00
mohamedke
b2f5a4dc20
Adding an example calculator 2022-12-14 22:12:53 +01:00
mohamedke
7978a6272a
Adding an example calculator 2022-12-14 22:11:51 +01:00
mohamedke
77bf3154f1
Adding an example calculator 2022-12-14 22:10:20 +01:00
Albert Shown
a286d756f4 Call C with args from JS
* Updating the interface APIs to call background with args from UI
* Auto log enabled in debug build
2022-12-12 10:13:27 -05:00
Albert Shown
b09ab69200 Call C from JS with response
* Adding the possibility of calling C from JS and wait for the response
2022-11-28 11:04:45 -05:00
Albert Shown
f87438ee7e Fix missing index file
* Adding the missing index.html file
2022-11-22 11:33:49 -05:00
Albert Shown
c5758b1ddd v2.0.5
* Adding webui_fn()
* Cleaning JS Bridge
* Rename internal element ID to easy reading the code
* Adding Data to the E event struct
2022-11-21 18:07:46 -05:00
Albert Shown
a96de5e810 Process based call
* Try to close browser if main closes
* Serve a Folder call
2022-11-11 17:19:37 -05:00
Hassan DRAGA
86838172a0 v2.0.4
* Minor bug fix
* Python Docs
* Update Python Wrapper
* Fix C VS Studio broken project
2022-11-07 23:33:03 -05:00
Hassan DRAGA
1cebf03d60 C Documentation and APIs Improvement
* Adding C Documentation
* Improve the API call
2022-11-02 21:43:48 -04:00
Hassan DRAGA
8c77d0b056 v2.0.3 - TypeScript Dynamic Lib
- TypeScript Dynamic Lib
- Incomplete Rus wrapper
- Rename of many API's
- Clean all batch script
2022-10-29 21:41:20 -04:00
Hassan DRAGA
5fc7fb2455 v2.0.2 With full Linux support 2022-10-24 22:35:05 -04:00
Hassan DRAGA
fd5c43f282 Adding PyPI - C++ - Fix VS2019/2022 2022-10-21 22:15:25 -04:00
Hassan DRAGA
c71065e8de Multiple Fix
Fix the WS speed
Fix timeout long
Add VS2019/2022
2022-10-20 22:21:52 -04:00
Hassan DRAGA
dba9ee9a3e
Update README.md 2022-10-19 21:10:01 -03:00
Hassan DRAGA
ed85c6f0d9
Update README.md 2022-10-19 20:57:17 -03:00
Hassan DRAGA
937ab1cda5 WebUI 2.0.1 2022-10-19 00:38:54 -04:00
Hassan DRAGA
89563df276
Create README.md 2022-09-28 22:57:42 -03:00
Hassan DRAGA
53efaaea51 Using build folder 2022-09-28 19:41:24 -04:00