5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 17:22:01 +08:00
Commit Graph

43 Commits

Author SHA1 Message Date
stffabi
c8d203d4d6
[v3, darwin] Fix leaking WebKit processes on Window close (#2574)
* [v3, darwin] Fix leaking WebKit processes on Window close

* [v3] Remove window from window map if closed
[v3] Implement `HideOnClose` and ensure it isn't removed when closed

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-04-12 21:33:00 +10:00
Travis McLane
a7bf359930
update wml events to be parseable (#2561)
* update wml events to be parseable

* [v3] Rename `CustomEvent` to `WailsEvent` to prevent clashing with the standard JS `CustomEvent` object

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-04-11 18:28:06 +10:00
Lea Anthony
424e4fc2e8 [v3] Add ability to get window by name 2023-04-07 19:47:01 +10:00
Lea Anthony
755e869fe7 [v3] Add start_at_login plugin
[v3] Fix plugin startup/shutdown order
2023-04-05 21:22:02 +10:00
Lea Anthony
3404250ac8 [v3] Add single_instance plugin 2023-04-01 20:36:55 +11:00
Lea Anthony
365aaf6bb1 Add sqlite plugin 2023-03-25 09:39:59 +11:00
Lea Anthony
5949e305ea
Reorder startup sequence
Add plugin scripts to asset server
Add InjectJS support in plugins
2023-03-24 08:43:00 +11:00
Lea Anthony
d5808fde59 Simple logging plugin 2023-03-22 20:56:45 +11:00
Lea Anthony
3ae604e474 Exported() -> CallableByJS() 2023-03-22 20:42:20 +11:00
Lea Anthony
4165caa02e Add Exported() []string to plugin API 2023-03-21 08:55:55 +11:00
Lea Anthony
ba82f27534 Fix Bug with nil parameters.
Added browser and kvstore plugins.
2023-03-20 20:28:33 +11:00
Lea Anthony
13f620ae54 Add plugin init. Update plugin signature. 2023-03-19 09:13:05 +11:00
Lea Anthony
c774af48b7 Extend call subsystem to support plugins 2023-03-18 09:12:44 +11:00
Lea Anthony
4300521064 Initial implementation 2023-03-18 08:11:36 +11:00
stffabi
0e614b0194 [v3] Centralize the AssetServer and move it to the application 2023-03-16 06:49:45 +01:00
dependabot[bot]
e3816e714e
Bump golang.org/x/net in /v3/examples/binding (#2472)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220722155237-a158d28d115b to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-09 20:07:11 +11:00
Lea Anthony
26530a0f5a Fix reserve word check.
Add model generation.
Warn if field is unexported in the Go struct
2023-03-07 19:48:30 +11:00
Lea Anthony
7340247e25 Create bindings file per package
Improved bindings tests
2023-03-07 18:22:33 +11:00
Lea Anthony
868b769e7f Initial bindings generation 2023-03-01 21:31:29 +11:00
Lea Anthony
443ea46d1d Example bindings 2023-02-27 20:05:54 +11:00
Lea Anthony
00c458f948 Implement basic binding 2023-02-26 20:49:29 +11:00
Lea Anthony
f9ffe915f2 Add bindings hook 2023-02-26 15:06:05 +11:00
Lea Anthony
6bfd654ec8
Tidy up. More tests. 2023-02-21 17:10:36 +11:00
Lea Anthony
93aa8345dc
[v3] Improved parser for bound structs 2023-02-17 21:01:16 +11:00
Lea Anthony
e1279a054f
[v3] Improved parser for bound structs 2023-02-17 20:57:31 +11:00
Lea Anthony
bd184cab85
[v3] Improve plain example 2023-02-16 20:28:24 +11:00
Lea Anthony
af5e383905
Add wml demo 2023-02-16 20:16:20 +11:00
Lea Anthony
0881914244
Support data-wml-trigger attribute 2023-02-16 20:15:06 +11:00
Lea Anthony
c415c1b321
Added Wails ML experiment
added Window.Close to js runtime
2023-02-15 20:58:57 +11:00
Lea Anthony
a5e10557c5
Support Screens API 2023-02-15 18:56:52 +11:00
Lea Anthony
045a830fbc
Add "DragAndDropEnabled" option for window
Add "FileDraggingExited" event
2023-02-15 18:56:52 +11:00
Lea Anthony
d86e11cef1
Fix bad merge 2023-02-12 13:36:58 +11:00
Lea Anthony
b16b263820
Merge branch 'feature/asset-server-runtime'
# Conflicts:
#	v3/V3 Changes.md
#	v3/examples/events/assets/index.html
#	v3/examples/events/main.go
#	v3/internal/runtime/desktop/main.js
#	v3/internal/runtime/package-lock.json
#	v3/internal/runtime/package.json
#	v3/internal/runtime/runtime_debug_desktop_darwin.js
#	v3/internal/runtime/runtime_debug_desktop_linux.js
#	v3/internal/runtime/runtime_debug_desktop_windows.js
#	v3/internal/runtime/runtime_production_desktop_darwin.js
#	v3/internal/runtime/runtime_production_desktop_linux.js
#	v3/internal/runtime/runtime_production_desktop_windows.js
#	v3/pkg/application/application.go
#	v3/pkg/application/messageprocessor.go
#	v3/pkg/application/messageprocessor_window.go
#	v3/pkg/application/options_webview_window.go
#	v3/pkg/application/webview_window.go
#	v3/pkg/application/webview_window_darwin.go
#	v3/pkg/options/application.go
2023-02-12 12:35:46 +11:00
Lea Anthony
2c4c0b4b6b
Add dnd window event + demo 2023-02-12 08:54:08 +11:00
Lea Anthony
23bfeac02a
Window event callbacks now take a WindowEventContext
Improved event example
2023-02-12 07:58:14 +11:00
Lea Anthony
a2528fd066
data-contextmenu-id -> data-contextmenu 2023-02-12 06:58:51 +11:00
Lea Anthony
9b25e639f5
Support context menus 2023-02-10 08:25:52 +11:00
Lea Anthony
f951b51c11
Context menu WIP
options refactor
2023-02-09 18:35:26 +11:00
Lea Anthony
5dbda4aead
Feature: AssetServer Runtime (#2335)
* Tidy up runtime JS

* Initial implementation of runtime over http

* Update runtime deps. Fix test task.

* Support Clipboard.
Message Processor refactor.

* Add `Window.Screen()`
Clipboard `GetText` -> `Text`

* Support most dialogs
Better JS->Go object mapping
Implement Go->JS callback mechanism
Rename `window.runtime` -> `window.wails` to better reflect the Go API

* Support SaveFile dialog

* Remove go.work

* Tidy up

* Event->CustomEvent to prevent potential clash with native JS Event object
Support Eventing

* Support application calls

* Support logging

* Support named windows
Remove debug info

* Update v3 changes
2023-02-06 20:50:11 +11:00
Lea Anthony
f26756be9c
Event->CustomEvent to prevent potential clash with native JS Event object
Support Eventing
2023-02-04 11:27:27 +11:00
Lea Anthony
293d730708
[v3] Updated runtime to take window id into consideration
[v3] Ported most of the window functions for JS
2023-01-26 20:43:26 +11:00
Lea Anthony
ee1978aa42
[v3] Initial template support (likely to change) 2023-01-22 15:39:57 +11:00
Lea Anthony
81645190f0
merge exp branch 2023-01-18 21:42:49 +11:00