Commit Graph

78 Commits

Author SHA1 Message Date
Hassan DRAGA
18f7ce3460 Update C++ Examples 2024-07-11 17:06:23 -04:00
Hassan DRAGA
bdf6bac511 Fix Makefile x86 and ARM conflict
Removing ` /MACHINE:X64`
2024-07-06 22:45:06 -04:00
Hassan DRAGA
b0dd088d56 Examples rename (webui.js) path to (/webui.js)
* All examples should use `/webui.js` instead of `webui.js`, this is because without the slash `/` it won't work if HTML file is located in a sub-folder.
2024-06-25 13:03:44 -04:00
Hassan DRAGA
81c778cc67 Update C++ Examples 2024-06-21 15:55:38 -04:00
Hassan DRAGA
62a3b79e4b Linux - C++ Adding -LDL lib
* Adding `-ldl`
2024-06-05 09:09:38 -04:00
Hassan DRAGA
907f0330a1 Removing Git from GNU-Makefile 2023-10-29 16:40:47 -04:00
Hassan DRAGA
f39af55093 C99 to C 2023-10-28 19:51:02 -04:00
Hassan DRAGA
a59c1fe1db TLS GCC/Clang
- To build lib with TLS: `make WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="~/OpenSSL/include" WEBUI_TLS_LIB="~/OpenSSL/lib"`
- To build examples with TLS: `make WEBUI_USE_TLS=1` (Only Dynamic. No static TLS will be supported)
2023-10-23 17:58:39 -04:00
Hassan DRAGA
66c95342bc MSVC Makefile TLS
- To build lib with TLS: `nmake WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="C:\OpenSSL\include" WEBUI_TLS_LIB="C:\OpenSSL\lib"`
- To build examples with TLS: `nmake WEBUI_USE_TLS=1` (Only Dynamic. No static TLS will be supported)
2023-10-21 23:17:25 -04:00
Hassan DRAGA
026617cb18 Adding Shell32.lib to MSVC 2023-10-10 18:05:08 -04:00
Turiiya
a0420daec3 Remove trailing whitespaces 2023-10-10 02:36:21 +02:00
Turiiya
77cf950c3b Update make command in readme files 2023-10-10 02:32:19 +02:00
Turiiya
5518a3e044 Use GNUmakefile and Makefile to simplify MSVC compilation 2023-10-10 02:32:05 +02:00
Turiiya
3e8f854a89 Prettify 2023-10-08 03:55:05 +02:00
Turiiya
50cc7619ba Format C code 2023-10-08 03:48:25 +02:00
Hassan DRAGA
022391380f Update C++ wrapper 2023-10-06 17:25:47 -04:00
Turiiya
5cd3f53da7 Update makefiles to support more architectures 2023-09-28 23:19:43 +02:00
Turiiya
c41533feac Update Makefiles 2023-09-09 15:18:30 +02:00
Turiiya
740f6ed873 Use a single Makefile to build examples 2023-09-07 07:10:05 +02:00
Turiiya
75ebbf9625
Remove TCC related code (#200) 2023-09-06 14:52:59 +02:00
Turiiya
67fa22009e Remove remaining @cd "$(_LIB)" && $(MAKE) residues in examples 2023-09-05 02:08:07 +02:00
Hassan DRAGA
697fdae90e Adding HTML UTF8 Tag
- To allow Unicode test in the UI we should make sure `<meta charset="UTF-8">` is added to the HTML head tags
2023-09-02 11:07:58 -04:00
Hassan DRAGA
294883704b Adding webui.js to C++ examples
- Adding `webui.js` to C++ examples
2023-08-30 21:48:56 -04:00
Hassan DRAGA
bdea4fc64c Removing extras sign
- Simply removing extras character `"/webui.js"` to `"webui.js"`
2023-08-30 21:27:15 -04:00
Turiiya
cde123517d
Optimize CI (#168) 2023-08-25 20:38:49 +02:00
Hassan DRAGA
9308d767c9 Quick fix example makefiles
* Removing `@cd "$(LIB)" && $(MAKE) debug`
2023-08-24 23:24:27 -04:00
Hassan DRAGA
ccac4a482e Cleaning
* Removing Visual Studio Solution Examples
* Removing `webui.h` from examples
2023-08-24 17:21:09 -04:00
Turiiya
db5bc6bed3
Update style of interop examples (#175) 2023-08-24 17:53:31 +02:00
Turiiya
a79ebbf7ac Don't try to rebuild library when running example Makefiles 2023-08-21 22:43:30 +02:00
Turiiya
900d9670ca Rename output dir from build to dist 2023-08-21 19:04:43 +02:00
Turiiya
3432cf4562 Update examples to use new build output directory 2023-08-21 19:04:43 +02:00
Hassan DRAGA
3133bcb92a Update webui_fn to webui.call
* Update all old js APIs `webui_fn()` to `webui.call()`
2023-08-19 17:54:52 -04:00
Hassan DRAGA
52885648d2 Up to v2.4.0
* Up all to v2.4.0
2023-08-19 17:49:08 -04:00
Hassan DRAGA
28274c53e8 New API webui_set_hide
* Adding `webui_set_hide()` to run the window in hidden mode
2023-08-18 18:16:35 -04:00
Hassan DRAGA
ba84f249b5 New API webui_send_raw
* Adding `webui_send_raw()` to be able to send raw binary data to UI
* Soon I will add UI to Backend
2023-08-18 16:16:07 -04:00
Hassan DRAGA
5b0333dbba Cleaning binaries
* Removing all compiled objects
2023-08-18 15:42:48 -04:00
Albert Shown
0b55abff5a Finished webui_set_file_handler API
* Finishing the `webui_set_file_handler()` feature. Thanks to @petabyt
* Removing `free()` and replace it by the WebUI version
* Minor core changes to make `webui_set_file_handler()` working
* Update serve a folder example to show how to use `webui_set_file_handler()`

## New Public API:
* `void webui_set_file_handler(size_t window, const void* (*handler)(const char* filename, int* length))`
* `void* webui_malloc(size_t size)`
2023-06-26 12:11:03 -04:00
Hassan DRAGA
d786f6db2a Adding webui_set_root_folder
* Adding New API `bool _webui_set_root_folder(_webui_window_t* win, const char* path)`
2023-05-27 20:30:31 -04:00
Giuseppe Cesarano
3cf9191509
C++ header reorganization completed.
* Event struct is now a class with it's methods
* All examples updated to use the new API
2023-05-27 22:33:36 +02:00
Giuseppe Cesarano
9a683acdef
Fix C++ examples 2023-05-25 21:45:42 +02:00
Hassan DRAGA
fa0918e862 Update C++ examples (Broken) 2023-05-24 19:57:34 -04:00
Giuseppe Cesarano
010c91bcc6
C++ examples updated. 2023-05-25 00:27:29 +02:00
Hassan DRAGA
25f66ae8fc Update makefile to C++17
* Update makefile from C++11 to C++17
2023-05-23 22:49:49 -04:00
Hassan DRAGA
cdf67b17ac C++ Improvement
* Set C++11 as minimal standard
* Fix C++ Makefile in macOS
* Update the C++ WebUI header to use references (https://github.com/webui-dev/webui/issues/103)
* Update `webui_return_string()` argument from `char*` to `const char*`
2023-05-21 12:20:54 -04:00
Hassan DRAGA
914c988f25 WebUI v2.3.0 Release
* Final WebUI v2.3.0 Release
2023-05-13 13:08:13 -04:00
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
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
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