Fabio Massaioli
413191411f
Remove class fields ( #3333 )
2024-03-24 16:42:41 +11:00
Lea Anthony
f19cc528d4
Fix context menu example
2024-03-20 21:18:46 +11:00
Fabio Massaioli
2b9891da2c
[v3] Update and fix runtime JS API ( #3295 )
...
* Cleanup bundled runtime entry point
* Fix JS representation of Screen struct
* Expose IsFocused method in Window interface
* Update JS window API
* Fix cleanup of WML listeners
* Bundle runtime as ES module
* Update runtime dependencies
* Update runtime types and events
* Update bundled runtime
* Update changelog
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-03-20 20:30:14 +11:00
Lea Anthony
aba82cc527
Update system.Environment
2024-03-19 20:37:03 +11:00
Lea Anthony
bc0a9b2e52
Add BundledAssetFileServer
for bundled /wails/runtime.js
. Update examples.
2024-03-17 15:08:30 +11:00
Lea Anthony
065ca5f6d3
Move to latest webkit2 and remove older code.
...
Fix screen demo.
Update examples.
2024-03-06 16:59:13 -06:00
Lea Anthony
161444107a
Support linux systrays, of sorts...
2024-03-06 16:59:13 -06:00
Lea Anthony
bfa53dfd6c
Update windowSetupSignalHandlers & linux events
2024-03-06 11:42:19 -06:00
stffabi
bfe9a9d015
[runtime] Add cancelation of bound method calls and context passing
2024-03-04 10:34:14 +01:00
Fabio Massaioli
b8537d1c96
[v3] Restore ToggleMaximise method in Window interface ( #3281 )
...
* Add JS Window API example
* Add ToggleMaximise button to Window API example
* Restore ToggleMaximise method in Window interface
* Update docs and changelog
2024-02-29 08:42:57 +11:00
Lea Anthony
5670c1e655
Update compiled runtime
2024-01-31 21:39:46 +11:00
Lea Anthony
cbaf859103
@wailsio/runtime@3.0.0-alpha.20
...
This fixes dragging by working around Vite's aggressive tree shaking
2024-01-30 21:01:32 +11:00
Lea Anthony
5115b294ee
Fixed runtime. cp tool.
2024-01-29 21:29:16 +11:00
Lea Anthony
7674f8eb2b
Fixed dialogs on macOS. Update WML example to use compiled runtime.
2024-01-25 21:00:33 +11:00
Lea Anthony
6522657893
Refactor menu functions and streamline devtools toggle across systems
...
This update adds implementation to several menu item functions, replacing their previous 'not implemented' state. This includes actions for close, reload, forcing reload, toggling of fullscreen, reset zoom, and others. The update also includes modifications for the handling of developer tools toggle under different build configurations. This refactoring is aimed to standardize devtools configuration across different operating systems.
2024-01-21 20:52:32 +11:00
Lea Anthony
bcb390f611
@wailsio/runtime v3.0.0-alpha.16
2024-01-20 11:38:56 +11:00
Lea Anthony
a805d6c2b1
@wailsio/runtime v3.0.0-alpha.15
2024-01-20 11:34:36 +11:00
Lea Anthony
68b12d4fff
Refactored application shutdown process to streamline app termination.
...
The application shutdown process has been significantly reworked to be more efficient and robust. The refactored code removes the event listener for the 'ApplicationTerminate' event. Instead, an in-process flag is added to the 'Quit' method to prevent recursive calls. Additionally, an optional 'OnShutdown' function variable is introduced to allow custom cleanup operations upon app termination.
2024-01-09 18:19:09 +11:00
Lea Anthony
1195464acb
Improve window teardown on termination
...
This commit adds a robust teardown process for windows on application shutdown. It introduces a field to track the destruction state of each window and checks such before performing window operations. Also, it enhances the destroy functions within application for thorough clean up. Finally, redundant event handlers related to application termination were removed while fixing file generating challenge in go tasks.
2024-01-09 07:45:56 +11:00
Lea Anthony
68e779d64e
[darwin] add support for quitting app
2024-01-08 21:22:33 +11:00
Lea Anthony
df0419a7d6
@wails/runtime@v3.0.0-alpha.14
2024-01-08 21:21:24 +11:00
Lea Anthony
07421ead41
@wailsio/runtime@3.0.0-alpha.13
2024-01-07 20:12:17 +11:00
Lea Anthony
6d8a004f4a
Fixed Call.ByID
JSDoc + TS type
2024-01-07 10:44:18 +11:00
Lea Anthony
34f7f24e7e
Support Vite 5 templates + @wailsio/runtime
module
2024-01-06 16:38:51 +11:00
Lea Anthony
6262a4fac7
Update @wailsio/runtime version to 3.0.0-alpha.10
2023-12-31 07:24:40 +11:00
Lea Anthony
d423c1c366
Fix drag logic
2023-12-30 21:05:17 +11:00
Lea Anthony
5b51e0fad3
@wailsio/runtime alpha.9 - Fix call responses.
2023-12-30 15:49:23 +11:00
Lea Anthony
46127c8d4d
Support Typescript in JS Runtime module
2023-12-29 18:12:01 +11:00
Lea Anthony
9f567fe2bc
Application: increase message buffer sizes, process all messages in goroutine, Add IsDebug
to environment info.
2023-12-29 12:48:26 +11:00
Lea Anthony
4c3cbc3535
Update Wails runtime and increase version
...
The Wails runtime has been updated to correctly handle debug checks and the version in the package.json has been bumped to 3.0.0-alpha.6. Fixed reference to global wails object in WML.
2023-12-29 11:15:40 +11:00
Lea Anthony
b08126d745
Radical JS runtime overhaul. New @wailsio/runtime package
2023-12-28 19:18:26 +11:00
5aaee9
f8250fb0d8
darwin: add event ApplicationShouldHandleReopen ( #2991 )
...
* darwin: add ApplicationShouldHandleReopen
* docs: update changelog with mr id
* events: update id
* feat: always return true
* Merge v3-alpha and regenerate events
* darwin: allow pass nsdirectory to processApplicationEvent
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-10-22 21:12:12 +11:00
Lea Anthony
8463c01123
[windows] Drag-n-drop support
2023-10-21 11:21:10 +11:00
Lea Anthony
131a6da554
Fix resize on windows
2023-10-16 19:29:42 +11:00
Lea Anthony
02713670c9
Custom icon shows app icon
2023-10-11 21:29:40 +11:00
Lea Anthony
4c75b288bb
Add BrowserOpenURL and BrowserOpenFile to App.
...
Better WML assets for demo
Fix dialog responses.
Add `wml-openurl`
Rename: data-wml -> wml
Fix Alpha Feedback URL
2023-10-11 20:23:59 +11:00
Lea Anthony
3d88bf8795
Fix context menu issues.
...
Fix WindowID for requests on windows.
Add `Windows.ApplicationStarted` event
2023-10-10 21:48:47 +11:00
Lea Anthony
602fafafea
[windows] Better corner detection for frameless windows
2023-10-09 17:36:32 +11:00
Lea Anthony
c77c823c3c
Revert "[linux] Implement events"
...
This reverts commit 8ddd29d285
.
2023-10-07 12:21:49 +11:00
Lea Anthony
8ddd29d285
[linux] Implement events
2023-10-03 08:37:11 +11:00
Travis McLane
60c44c44ff
[v3 runtime] updated javascript
2023-09-28 12:14:54 -05:00
Travis McLane
7e1d685167
[v3 js] add and send x-wails-client-id
...
The constant x-wails-client-id is generated once on startup and then
sent with each request to the Wails host. It is used primarily by
the server plugin to distinguish different remote sessions.
2023-09-28 12:14:54 -05:00
Lea Anthony
b8d7eed607
Add awful CallByName
method and update docs with warning.
2023-09-04 21:19:10 +10:00
Lea Anthony
21790dc3ee
[v3] Add CallByID
method to runtime.
2023-08-27 16:59:18 +10:00
Lea Anthony
cdf48e0589
[v3] Fix bindings
2023-08-27 15:54:01 +10:00
Lea Anthony
0745aea4d6
[v3] Move to integer call ids for bound methods.
2023-08-19 14:25:36 +10:00
Lea Anthony
ffed41553a
[v3 mac] Add IsDarkMode
to application and JS runtime. Add Common.ThemeChanged
event
2023-08-18 17:36:14 +10:00
Lea Anthony
f0f5011484
Remove log from runtime (there's a plugin for that)
2023-08-10 21:29:42 +10:00
Lea Anthony
c0b4a3ff35
[v3] Fix generation of common events
2023-07-05 20:39:35 +10:00
Lea Anthony
3d323ab9d2
[v3] Fix systray example. PositionWindow now takes an offset. EventApplicationDidResignActive
-> EventApplicationDidResignActiveNotification
2023-07-04 19:26:00 +10:00