Commit Graph

138 Commits

Author SHA1 Message Date
Turiiya
d8008e3d57 Update version after suggestions 2024-06-05 19:15:29 +02:00
Turiiya
cf9764a071 Use semver compliant version specification 2024-06-05 01:21:59 +02:00
Turiiya
bf87e04a6b Rename webui_config to webui_set_config 2024-06-02 18:32:39 +02:00
Turiiya
37bdee47ec Use singular form for enum names 2024-06-02 18:29:15 +02:00
Hassan DRAGA
4466bcfc4e Update webui_get_best_browser description 2024-06-01 16:30:52 -04:00
Hassan DRAGA
817cc605be
Merge pull request #326 from SpikeHD/expose_browser
Expose `_webui_find_the_best_browser` as `webui_get_best_browser`
2024-05-31 18:24:29 -04:00
Hassan DRAGA
6fe3549684
Merge pull request #351 from GiuseppeCesarano/main
C++ events are now enum instead of const static int
2024-05-31 18:21:44 -04:00
Hassan DRAGA
4517ba4982 Adding webui_return_float 2024-05-29 19:01:10 -04:00
Hassan DRAGA
19b2e32394 Adding webui_get_count 2024-05-29 17:44:03 -04:00
Hassan DRAGA
9c9b3dc00a Adding webui_get_float 2024-05-29 17:23:19 -04:00
Hassan DRAGA
c31abc32ee Adding webui_config 2024-05-28 14:28:32 -04:00
Hassan DRAGA
7e99ecc7bf WebUI v2.5.0-Beta-1 2024-05-26 20:02:12 -04:00
Giuseppe Cesarano
fc10b42318
C++ events are now enum instead of const static int 2024-04-22 09:48:26 +02:00
jinzhongjia
7a690a514d Split build.zig
Split build.zig
 replace strdup with _strdup when compiling with msvc
2024-03-26 07:20:43 +08:00
XXIV
6e5ba97b5b
add missing void 2024-03-23 16:05:59 +03:00
SpikeHD
a4168b9b19 feat: expose get_best_browser to C and C++ api 2024-02-13 00:07:53 -08:00
Christoph Wegener
6d99a29e69
fix: too few arguments to webui_set_profile
When following the C++ hello world tutorial, the first example
immediately fails to compile due to an error in hte C++ header file.

```
In file included from main.cpp:1:
webui.hpp: In member function ‘void webui:🪟:set_proxy(std::string_view) const’:
webui.hpp:202:26: error: too few arguments to function ‘void webui_set_profile(size_t, const char*, const char*)’
  202 |         webui_set_profile(webui_window, proxy_server.data());
      |         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from webui.hpp:21:
webui.h:422:19: note: declared here
  422 | WEBUI_EXPORT void webui_set_profile(size_t window, const char* name, const char* path);
```
2024-01-09 14:50:45 +11:00
123
5755fead94 remove chromium_options --no-proxy-server, export webui_set_proxy api 2024-01-05 09:16:11 +08:00
rtanabe999
1a495cf2d5
Fix typos 2023-12-22 11:40:42 +09:00
Hassan DRAGA
152ef446c0 Up version to v2.4.2 2023-11-29 18:25:08 -05:00
Hassan DRAGA
663e066f5e New API - webui_set_public
* New API: `webui_set_public()` to let window URL accessible from any public network
2023-11-29 18:23:35 -05:00
Hassan DRAGA
8084a02f87 Up version number to v2.4.1 2023-11-16 16:49:21 -05:00
Hassan DRAGA
b41ab2095b Fix data race in webui_script
* Fix data race in webui_script()
* Adding missing webui_interface_bind()
2023-11-16 16:46:49 -05:00
Hassan DRAGA
9a5036941d v2.4.0 Release
[Full WebUI v2.4.0 APIs](https://webui.me/docs/2.4.0/#/)
2023-10-29 17:03:25 -04:00
Hassan DRAGA
5081b5a333 Update C/C++ headers 2023-10-29 15:51:49 -04:00
Hassan DRAGA
b907175e0c Manual code format 2023-10-29 01:11:56 -04:00
Hassan DRAGA
eb50747970 Adding webui_set_port
- New API `webui_set_port(win, port)`
2023-10-28 15:18:55 -04:00
Hassan DRAGA
8363cccc9a Support custom URL
- Now webui_show() can also use a custom URL
2023-10-28 14:37:35 -04:00
Turiiya
8bf9bf2279 Run formatter 2023-10-27 06:49:59 +02:00
Hassan DRAGA
d20d5ccfe4 Check user TLS certificate before use 2023-10-26 19:00:56 -04:00
Hassan DRAGA
7d14be8eb0 Upgrade OpenSSL support from 2.x to 3.1.3 2023-10-21 19:40:38 -04:00
Hassan DRAGA
70e580334a TLS Encryption 2023-10-21 17:16:46 -04:00
Turiiya
bd715963f0 Run clang format 2023-10-11 18:33:20 +02:00
Hassan DRAGA
658a6c06e1 Regular Tab
- Now, if WebUI fails to find the browser, it will open the UI in the default web browser as a regular tab. This is better than exit the program and shows nothing.
2023-10-10 15:46:40 -04:00
Turiiya
50cc7619ba Format C code 2023-10-08 03:48:25 +02:00
Hassan DRAGA
c398d35dd0 Adding webui_interface_get_xxx_at
- Adding: webui_interface_get_string_at()
- Adding: webui_interface_get_int_at()
- Adding: webui_interface_get_bool_at()
- Fix crash bug when script result is empty
2023-10-06 20:00:46 -04:00
Hassan DRAGA
058f082cd2 Update e->bind_id for wrappers 2023-10-06 17:44:41 -04:00
Hassan DRAGA
022391380f Update C++ wrapper 2023-10-06 17:25:47 -04:00
Hassan DRAGA
6d5612c24d Fix Double Event
- Removed: webui_interface_get_bind_id()
- Add: webui_event_t -> size_t bind_id

Wrappers that have internal-event-handler may call by mistake the same callback twice when app use all-events. To fix this issue, simply wrappers should replace `webui_interface_get_window_id()` by `e.bind_id`.
2023-10-06 17:25:27 -04:00
Hassan DRAGA
b09c0dca94 Multi Arguments
- New: webui_get_int_at()
- New: webui_get_string_at()
- New: webui_get_bool_at()
- New: webui_get_size_at()
- Change: webui_interface_bind
- Removed: `e->data` becomes `webui_get_xxx_at(e, 0)`
2023-10-05 20:03:12 -04:00
Hassan DRAGA
39f9ab0cd7 Token Secured Requests
- Removed WEBUI_EVENT_MULTI_CONNECTION
- Removed WEBUI_EVENT_UNWANTED_CONNECTION
- Removed webui_set_multi_access()

- Core Added: Token Secured Requests
- Core Added: New Protocol Header
- Core Added: Block WS handshake for non-authorized connections
- Core Added:
2023-10-04 19:22:40 -04:00
Hassan DRAGA
aade3f2119 Update comments 2023-10-01 13:31:22 -04:00
Turiiya
32cba040b2 Add more webui functions to C++ wrapper 2023-10-01 11:53:33 +02:00
Turiiya
61501ee959 Sort process_id functions in webui.h, update comment 2023-10-01 11:53:29 +02:00
Hassan DRAGA
91c9445912 Fast Events (Internal Core changes)
- Changing the way WS events process for more speed
- Changing the WS events process for less data copy as possible
2023-09-30 23:15:55 -04:00
Hassan DRAGA
24a68d87a6 Update webui_browsers struct
- Adding `NoBrowser = 0,` (The rest is shifted by one)
2023-09-30 16:55:48 -04:00
Hassan DRAGA
62030156e5 Adding webui_delete_all_profiles
- Adding webui_delete_all_profiles()
- Adding webui_delete_profile()
- Adding webui_clean()
- Now. webui_wait() simply means no more windows are running. And app can create and show windows. And of program is now become webui_clean().
- Updating Civetweb (Server close faster now)
2023-09-30 16:26:58 -04:00
Hassan DRAGA
2f694d1a3f Adding webui_clean
- Adding webui_clean() (Firefox not supported yet)
2023-09-29 18:36:57 -04:00
Hassan DRAGA
6a634cc680 Adding webui_navigate
- Adding webui_navigate()
- Now when using all events webui_bind(MyWindow, "", events), WebUI will block all href requests
- Fix https://github.com/webui-dev/webui/issues/228
2023-09-26 18:59:25 -04:00
Giuseppe Cesarano
aa739affba
Updated C++ wrapper 2023-09-25 17:00:08 +02:00