Commit Graph

565 Commits

Author SHA1 Message Date
Hassan DRAGA
90dc676e39 Fix GCC printf format warning 2023-10-05 22:50:50 -04:00
Hassan DRAGA
bb1c438e87 Bridge cleaning 2023-10-05 22:08:50 -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
53724d4ef8 Fix multi click sync
- Fix multi click sync. Now the second click won't process until the first one finishes first
2023-10-03 14:35:44 -04:00
Hassan DRAGA
dd6c7ff628 Adding 403 access
- Adding Access Denied (403). Except for local html files.
2023-10-02 22:51:48 -04:00
Hassan DRAGA
e462d7bfed Supporting Firefox Profiles
- Complete Support of Firefox Profiles (.ini)
2023-10-02 18:24:34 -04:00
Hassan DRAGA
a9fa6fad99 Fix non-running
- Fix non-running when no browser is already opened
2023-10-02 11:43:11 -04:00
Hassan DRAGA
e7418ef36a Core re-design - Up to 10ms event speed
- No breaking change
- Re-design the events again to up speed to 10ms
- Fix URL links click
2023-10-01 20:41:52 -04:00
Hassan DRAGA
aade3f2119 Update comments 2023-10-01 13:31:22 -04:00
Hassan DRAGA
edcf4bd5aa
Merge pull request #236 from ttytm/update-functions
Update functions
2023-10-01 10:26:02 -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
Turiiya
5b784789ad Fix log message for webui_get_parent_process_id 2023-10-01 11:41:13 +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
4eda2b6670 Clean up example
- Just removing test code.
2023-09-30 16:57:09 -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
67620af4cd Improve logs
- Adding event number in `_webui_window_receive()` (logs only)
2023-09-29 14:57:57 -04:00
Turiiya
7c572d8d9f
Merge pull request #234 from ttytm/build/cross-compile-linux
Support more architectures, add linux `aarch64` and `arm` releases
2023-09-29 01:04:55 +02:00
Turiiya
f7cc098d03 Update workflows, add linux aarch64 and arm releases 2023-09-29 01:04:02 +02:00
Turiiya
5cd3f53da7 Update makefiles to support more architectures 2023-09-28 23:19:43 +02:00
fibodevy
a2b807acd9
Merge pull request #232 from fibodevy/fix-printf
Fix enclose `printf()` in `#ifdef WEBUI_LOG`
2023-09-27 22:11:23 +02:00
fibodevy
9ff92268fc
Fix enclose printf() in #ifdef WEBUI_LOG 2023-09-27 22:00:51 +02: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
Hassan DRAGA
2ca3b793c4 Improving internal exit() 2023-09-25 19:30:25 -04:00
Hassan DRAGA
8fa5c8f7e8
Merge pull request #226 from ttytm/examples/improve-text-editor
Improve text editor example
2023-09-25 18:47:09 -04:00
Giuseppe Cesarano
aa739affba
Updated C++ wrapper 2023-09-25 17:00:08 +02:00
Turiiya
bcf19bdcd4 Add save dialog for saving documents written without opening a file
Set file data after saving such files
2023-09-24 01:39:20 +02:00
Turiiya
0f6981c14d Enable save on unsaved changes instead on file open
Allow to save a documents when not opening a file
2023-09-24 01:39:20 +02:00
Turiiya
31997657ba Refactor text editor example 2023-09-24 00:40:42 +02:00
Turiiya
17e4171508
Fix text editor debug build (#223) 2023-09-23 11:26:54 +02:00
Hassan DRAGA
5e594d5fb9 Update webui_exit() 2023-09-22 22:50:18 -04:00
Hassan DRAGA
5e17a037c1 Fix timer
- Replacing all core timers with `_webui_timer`
2023-09-22 22:25:34 -04:00
Hassan DRAGA
ffccf7491b Updating webui_wait()
- Now `webui_wait()` should exit faster if all windows failed to start
2023-09-22 19:47:12 -04:00
Hassan DRAGA
58f294ea9e Fix Firefox profile 2023-09-22 19:28:40 -04:00
Hassan DRAGA
edc8617e96 Fix Headless Chromium Mode
- Adding `--headless=new`
- Removing forced infinite wait (If user need it he can use webui_set_timeout(0))
2023-09-22 18:02:56 -04:00
Turiiya
e06d972423
Merge pull request #215 from ttytm/example/text-editor-dialog-fix
Fix file dialog in text editor example
2023-09-22 21:02:21 +02:00
Turiiya
5a6df39da9 Update comments 2023-09-22 18:44:46 +02:00
Turiiya
6059a193ab Fix cross-browser compatibility 2023-09-22 18:28:13 +02:00
Turiiya
f00cb22e3b Minor cleanup to example
uniform quote usage
naming closer to conventions
add event only to relevant element
2023-09-22 18:08:12 +02:00
Turiiya
d305b7697a Fix file dialog in text editor example 2023-09-22 17:59:56 +02:00
Turiiya
ee9e8f9e2e
Merge pull request #217 from ttytm/feat/chromium-based-browser
Add `ChromiumBased` to `webui_browsers` enum
2023-09-22 17:39:26 +02:00
fibodevy
a41cf79f0b
Merge pull request #219 from fibodevy/changes
Fix disabling translate feature on Chromium based browsers
2023-09-22 16:53:56 +02:00
Hassan DRAGA
ffb33ba831
Update ChromiumBased
- Moving `ChromiumBased` to `user specified browser` section
- Update the order of `ChromiumBased`
2023-09-22 10:18:02 -04:00
fibodevy
45c5721a36
Fix disabling translate feature on Chromium based browsers 2023-09-22 13:56:15 +02:00
Giuseppe Cesarano
9200ac3b65
Updated C++ wrapper 2023-09-22 10:51:52 +02:00
Turiiya
ea50923288 Add ChromiumBased to webui_browsers enum 2023-09-22 09:05:03 +02:00
Hassan DRAGA
3377718469 Merge branch 'main' of https://github.com/webui-dev/webui 2023-09-21 17:22:18 -04:00