Lea Anthony
6a07cbd505
Move go-common-file-dialog into project. Fix Title bug.
2022-06-01 21:00:52 +10:00
stffabi
614f50d5d3
[v2, windows] Load WebView2 loader from embedded only ( #1432 )
2022-05-31 10:00:02 -10:00
stffabi
2a0673f99f
[v2, linux] Improve switching to main thread for callbacks ( #1392 )
...
Make sure no pointers to the stack are passed to g_idle_add,
because at the time the callback gets executed on the
main thread, the pointer might be invalid.
Go might have reused the stack or grown the stack and the
pointer is invalid.
The concept used on Windows has been ported to Linux.
2022-05-31 20:28:37 +10:00
Zámbó, Levente
794a8ce19f
feature - support linux/arm ( #1427 )
2022-05-27 19:09:50 -10:00
yuzu
316a24f6da
update runtime.d.ts & templates ( #1421 )
2022-05-24 21:20:53 +02:00
Lea Anthony
953bc09343
Merge pull request #1400 from wailsapp/feature/native-translucency
...
Initial support for new native translucency in Windows Preview
2022-05-18 18:52:45 +10:00
stffabi
c97e1c50af
[v2, linux] Make sure to execute the menu callbacks on a new goroutine ( #1403 )
...
* Make sure to execute the menu callbacks on a new goroutine
* Fix assertion message when opening file dialogs by passing the correct parent window
2022-05-17 20:45:48 +10:00
Travis McLane
b84fd76e86
bugfix: correct typo
2022-05-10 21:56:19 -05:00
Lea Anthony
55115742c1
fix: TS conversion of interface{}
2022-05-11 08:21:17 +10:00
stffabi
5f612301f9
[v2] During wails dev only use reload logic if no AssetsHandler are in use ( #1385 )
...
This slows down every GET request to the AssetsHandler taking 5s
2022-05-07 09:11:07 +10:00
Lea Anthony
84b6273baf
Bugfix/incorrect bindings ( #1383 )
...
* Print struct path
* Better handling of anon structs
2022-05-05 23:07:33 +10:00
Aleksey Polyakov
531d7cfb62
replace OnMultiple with EventsOnMultiple ( #1369 )
2022-05-02 22:10:33 +10:00
Lea Anthony
912d7cf34b
Add startup method to templates by default
2022-05-01 10:19:15 +10:00
stffabi
22d3f93b52
[v2, darwin] Initialize native variables on stack to prevent segfault ( #1362 )
2022-04-30 06:11:19 +10:00
Lea Anthony
41f9c07c88
Fixes #1343
2022-04-27 21:29:54 +10:00
Lea Anthony
bd344bf32c
Update runtime.d.ts + regenerate templates
2022-04-27 20:53:24 +10:00
Lea Anthony
ded28cf9c2
Remove redundant dev .js files
2022-04-27 19:26:42 +10:00
Lea Anthony
781a0df72e
Fix for TS/JS generation on methods with no returns ( #1356 )
2022-04-27 19:09:55 +10:00
stffabi
524411964f
[v2] WindowReloadApp should use the startURL of the frontend to support reloading when a frontend dev server is used ( #1347 )
2022-04-23 07:09:53 +10:00
Lea Anthony
7f3f56663f
Fix: wails dev
2022-04-21 07:40:56 +10:00
Lea Anthony
f6257d3d31
Add Environment
and WindowReloadApp
calls to runtime. Updated default templates.
2022-04-20 20:28:41 +10:00
Lea Anthony
2e3c90c096
Update runtime.d.ts documentation. Regenerate templates
2022-04-19 21:48:26 +10:00
Lea Anthony
4e9eda8e1f
Fix bug in WindowSet*Theme
2022-04-19 17:44:40 +10:00
Lea Anthony
02fcf738d3
Update runtime wrapper. Update base templates.
2022-04-19 17:43:55 +10:00
Lea Anthony
4e03c84fbb
Feature/default templates ( #1334 )
2022-04-15 20:30:10 +10:00
Lea Anthony
7fbae0d333
Fix: event data processing ( #1326 )
2022-04-15 20:26:13 +10:00
stffabi
6d09a45a30
[v2] Add support for AssetsHandler ( #1325 )
...
* [website] Fix devserver default value doc
* [v2] Add support for AssetsHandler
AssetsHandler is a http.Handler delegate, which gets called
as a fallback for all Non-GET requests and for GET requests
for which the Assets didn’t find the file.
Known Limitations on Linux:
- All requests are GET requests
- No request headers
- No request body
- No response status code, only StatusOK will be returned
- No response headers
Known Limitations on Windows:
- Request body is leaking memory. Seems to be a bug in
WebView2, investigation angoing.
Most of these limitations on Linux will be fixed in the future with
adding support for Webkit2Gtk 2.36.0+.
* [v2, linux] Add response streaming support
The complete response won’t be held anymore in memory and will
be streamed to WebKit2.
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-04-12 20:18:27 +10:00
stffabi
c70d93b482
Suppress resizing during minimize of a frameless window ( #1322 )
...
If the window is frameless and we are minimizing, then we need to suppress
the Resize on the WebView2. If we don't do this, restoring does not work as
expected and first restores with some wrong size during the restore animation
and only fully renders when the animation is done.
This highly depends on the content in the WebView.
Possible fix for #1319
2022-04-10 18:45:09 +10:00
Lea Anthony
f08176079c
Feature: Support double click in drag areas
2022-04-09 10:27:54 +10:00
归位
65a97a668e
If the element adds the data-rails-drag attribute, it can trigger the dbclick event. ( #1317 )
...
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-04-09 10:18:01 +10:00
Florent
c3a98b058e
ensure webkit/gtk callbacks run on main thread ( #1320 )
...
prevent close event being propagated when handled in app
closes #1268
closes #1288
2022-04-08 06:42:17 +10:00
Lea Anthony
b94db409dd
Fixes #1315
2022-04-06 21:53:40 +10:00
Lea Anthony
43f8a1f773
fix: blank namespaces, unknown structs
2022-04-06 19:13:10 +10:00
Lea Anthony
dce5fd442f
fix: i18n messages/bug + docs bug.
2022-04-05 21:41:49 +10:00
Lea Anthony
55855ccc4d
fix: duplicate model generation
2022-04-05 21:30:55 +10:00
Lea Anthony
eb97f53124
Feature: Don't generate models.ts
if there are no models.
2022-04-05 21:30:55 +10:00
Lea Anthony
625eca27f6
Feature: TS namespaces
2022-04-05 18:11:56 +10:00
Lea Anthony
2465538448
Fix: TS namespace inference
2022-04-05 08:26:54 +10:00
Lea Anthony
bb2da2f810
Chore: remove debug output
2022-04-04 21:19:36 +10:00
Lea Anthony
6b38f0c68e
Improved TS Generation ( #1310 )
...
Improve TS Generation
2022-04-04 21:01:00 +10:00
Lea Anthony
95b70de01f
chore: add build tags to win32 package
2022-04-04 20:55:25 +10:00
Lea Anthony
8bb3af2282
Refactor TS imports
2022-04-04 07:19:39 +10:00
Ariel
2c8d94ca48
Add missing method declaration ( #1308 )
...
* Add missing method declaration
* Add eventsoff to the wrapper
2022-04-03 22:01:31 +10:00
Ariel
d5a8ee0132
Do not duplicate imports ( #1307 )
...
* Do not duplicate imports
* Fix warning as first element
2022-04-03 20:17:20 +10:00
Lea Anthony
55cec7af17
Fix: Handle struct pointers in new TS generation
2022-04-03 17:58:53 +10:00
Lea Anthony
8e8b88ef48
Translations refactor
2022-04-03 17:22:37 +10:00
Lea Anthony
4a20655b29
Translations + Tidy Up
2022-04-03 17:18:36 +10:00
Lea Anthony
4721949657
Improved bindings generation
2022-04-03 07:31:07 +10:00
Lea Anthony
f6cdafa5ff
Bugfix: generate correct model reference in bindings.d.ts
2022-04-01 13:08:56 +11:00
Lea Anthony
073f8202e5
Fix windows/frontend
compile error
2022-04-01 09:59:33 +11:00