Commit Graph

98 Commits

Author SHA1 Message Date
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
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
123
5755fead94 remove chromium_options --no-proxy-server, export webui_set_proxy api 2024-01-05 09:16:11 +08: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
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
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
Turiiya
ea50923288 Add ChromiumBased to webui_browsers enum 2023-09-22 09:05:03 +02:00
Hassan DRAGA
a068a84320 Updating webui_get_url 2023-09-21 16:36:11 -04:00
fibodevy
6f782bc1a8 Adding webui_get_url
- Adding `char* webui_get_url(size_t window);`
2023-09-21 07:21:04 +02:00
Hassan DRAGA
a616991ca6 Adding webui_set_profile
- Adding `void webui_set_profile(size_t window, const char* name, const char* path)`
- Fix disconnection on 404
- Fix `webui_get_child_process_id()`
- Adding argument `--disable-component-update`
2023-09-19 19:34:09 -04:00
Hassan DRAGA
2160aea9b0 Adding process ID APIs
* Adding `size_t webui_get_child_process_id(size_t window)`
* Adding `size_t webui_get_parent_process_id(size_t window)`
2023-09-14 17:31:29 -04:00
Hassan DRAGA
ea63be7921 Adding comments (Not finished) 2 2023-09-13 15:32:14 -04:00
Hassan DRAGA
940dcc50af Adding comments (Not finished) 2023-09-11 18:09:42 -04:00
Hassan DRAGA
be9c0bc7cb Reorganize webui.h 2023-09-11 17:18:31 -04:00
Hassan DRAGA
d2bf059d4e Change signed long to unsigned
- The JavaScript data size should be unsigned `size_t` instead of `signed long long`
2023-08-30 19:47:31 -04:00
Albert Shown
e91d6d70bf Adding webui_set_size and webui_set_position
* Adding `webui_set_size()`
* Adding `webui_set_position()`
2023-08-28 18:45:52 -04:00
Hassan DRAGA
9574724f99
Merge pull request #179 from ttytm/docs/refine-comments
Refine API comments
2023-08-25 10:35:36 -04:00
Hassan DRAGA
94a3db07b7 Fix https://github.com/webui-dev/webui/issues/180
* Update `CLOSE` command
* Update bridge
2023-08-25 10:24:41 -04:00
Turiiya
ee66862f87 Refine API comments 2023-08-25 07:59:14 +02:00
Hassan DRAGA
74830815cd Adding webui_set_default_root_folder()
* Adding `webui_set_default_root_folder()`
* Fix non initialized webui-core in some scenarios
2023-08-24 21:54:13 -04:00
Hassan DRAGA
0d400644d1 Adding DataSize to wrappers interface
* Adding DataSize to wrappers interface `webui_interface_bind()`
2023-08-22 22:13:58 -04:00
Hassan DRAGA
e941e35fc6 Send Raw to backend
* Send Raw to backend
* Updating bridge
* No memory copy when source is UI as is guaranteed to stay alive
2023-08-22 18:11:35 -04:00
Hassan DRAGA
52885648d2 Up to v2.4.0
* Up all to v2.4.0
2023-08-19 17:49:08 -04:00