Commit Graph

863 Commits

Author SHA1 Message Date
Hassan DRAGA
4702158384 Format Code 2023-10-22 18:20:37 -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
9fd3dd8d89 Fix TLS links 2023-10-21 22:56:49 -04:00
Hassan DRAGA
270038ee6b Adding TLS to WebUI-Bridge 2023-10-21 22:55:30 -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
Hassan DRAGA
f7428d8d04
Merge pull request #255 from ttytm/ci/update-mac-release-handling
Create mac archive before uploading
2023-10-19 16:38:06 -04:00
Turiiya
cba5d302bc Remove executable bit from dylib 2023-10-13 19:17:28 +02:00
Turiiya
45c685e21c
Merge pull request #253 from ttytm/ci/update-linux-arm64-name 2023-10-13 18:45:05 +02:00
Turiiya
44875e345a Create mac archive before uploading 2023-10-13 18:38:00 +02:00
Turiiya
1d68040d87 Use uniform arm architecture name for release archives 2023-10-13 13:34:24 +02:00
Hassan DRAGA
17981ec20d
Merge pull request #249 from ttytm/fix/macos-ci-build
Fix macOS x64 CI builds
2023-10-11 22:26:30 -04:00
Turiiya
682a8b6975 Fix macOS x64 CI builds 2023-10-12 04:13:13 +02:00
Turiiya
27872465ed
Merge pull request #252 from ttytm/ci/add-pre-commit-config 2023-10-12 01:50:14 +02:00
Turiiya
ca82773fda Add pre-commit config 2023-10-11 22:01:26 +02:00
Turiiya
bd715963f0 Run clang format 2023-10-11 18:33:20 +02:00
Hassan DRAGA
5cc97bedba
Merge pull request #251 from fibodevy/fix_WEBUI_MAX_ARG
`WEBUI_MAX_ARG` fix
2023-10-11 12:24:37 -04:00
fibodevy
e7a344982f
Fix crash when webui.call() is called with more than 17 args
- more than `WEBUI_MAX_ARG+1`
2023-10-11 18:03:50 +02:00
fibodevy
8f80ffe476
WEBUI_MAX_ARG fix 2023-10-11 16:47:34 +02:00
Hassan DRAGA
026617cb18 Adding Shell32.lib to MSVC 2023-10-10 18:05:08 -04:00
Hassan DRAGA
5c5ff75725 Fix WEBUI_MAX_ARG 2023-10-10 18:02:58 -04:00
Hassan DRAGA
99141921ae Regular Tab (Only if AnyBrowser) 2023-10-10 16:33:26 -04: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
Hassan DRAGA
42c6e22c49 Unicode Support (Local file name) 2023-10-10 15:18:23 -04:00
Hassan DRAGA
90bfa0f607 Fix macOS Firefox Window Style (workaround) 2023-10-10 13:07:31 -04:00
Turiiya
f60cc6d320
Merge pull request #245 from ttytm/update-makefiles 2023-10-10 03:10:35 +02: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
11093c97d4 Update make command in workflows 2023-10-10 02:32:05 +02:00
Turiiya
5518a3e044 Use GNUmakefile and Makefile to simplify MSVC compilation 2023-10-10 02:32:05 +02:00
Turiiya
5e7c407bc0
Merge pull request #244 from ttytm/format 2023-10-09 17:34:17 +02:00
Turiiya
79783e5519 Add prettier to lint workflow 2023-10-08 03:55:05 +02:00
Turiiya
3e8f854a89 Prettify 2023-10-08 03:55:05 +02:00
Turiiya
e74de08e75 Add .prettierrc and .editorconfig 2023-10-08 03:55:05 +02:00
Turiiya
adcf4b8d9d Add lint workflow 2023-10-08 03:48:25 +02:00
Turiiya
50cc7619ba Format C code 2023-10-08 03:48:25 +02:00
Turiiya
f42d01e2f9 Add .clang-format config 2023-10-08 03:48:25 +02:00
Hassan DRAGA
9a78898d62 Fix big-data crash (Civetweb Issue)
- For same reason, data over 97.6Kb (100000 bytes) may have data loss because of Civetweb has an issue. That's make the webui-protocol-header had incorrect data size so it crashes (over flow) if user access the most significant byte. However, WebUI won't crash now. But we should report this to Civetweb.
2023-10-07 15:35:45 -04:00
Hassan DRAGA
61a92b0da1
Merge pull request #241 from clzls/typo-fix
Fix a typo at `webui.c:4511`
2023-10-07 09:20:07 -04:00
Chen (Kina)
d4caaf1593
Update webui.c
Fix a typo at webui.c:4511
2023-10-07 18:14:13 +08:00
Hassan DRAGA
d2c6109533 Fix refresh 403 2023-10-07 00:11:50 -04: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
7da0677851 Fix default & custom profile
https://github.com/webui-dev/webui/issues/240
2023-10-06 00:17:05 -04:00
Hassan DRAGA
e8a57331d9 Fix WebSocket keepAlive 2023-10-05 23:44:41 -04:00
Hassan DRAGA
8be79a02eb Fix websocket keepalive timeout 2023-10-05 23:00:58 -04:00
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