wails/v3/examples
Fabio Massaioli 37673eb24d
[v3] Fix binding generator bugs and prepare for Go 1.24 (#4045)
* Rename predicates source file

* Overhaul and document type predicates

* Fix model collection logic for named types

* Fix map key type rendering

* Fix map creation code

* Fix rendering of structs that implement marshaler interfaces

* Fix type cycle detection to take type args into account

* Fix enum and typeparam field initialisation

* Improve unsupported type warnings

* Remove internal models file

* Deduplicate template code

* Accept generic aliases in static analyser

* Support new `encoding/json` flag `omitzero`

* Handle special cases when rendering generic aliases

* Update npm test dependencies

* Test class aliases and implicit private dependencies

* Test marshaler combinations

* Test map key types

* Remove bad map keys from unrelated tests

* Test service discovery through generic aliases

* Test generic aliases

* Test warning messages

* Disable go1.24 tests

* Update changelog

* Restore rendering of injected lines in index file

* Test directives

* Add wails:ignore directive

* Fix typo

* Move injections to the bottom of service files

* Handle errors from closing files

* Do not emit messages when services define only lifecycle methods

* Add internal directive for services and models

* Update changelog

* Fix error in service templates

* Test internal directive on services/models

* Fix error in index template

* Base testdata updates

* Testdata for class aliases and implicit private dependencies

* Testdata for marshaler combinations

* Testdata for map key types

* Testdata for bad map key fixes

* Add weakly typed enums aka alias constants

* Testdata for enum and typeparam field fixes

* Testdata for generic aliases

* Testdata for warning messages

* Testdata for directives

* Testdata for weakly typed enums

* Update binding example

* Update services example

* Remove go1.24 testdata

* Update cli doc

* Fix analyser tests

* Fix windows tests... hopefully

* go mod tidy on examples

* Update bindings guide

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-02-09 09:44:34 +11:00
..
binding [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
build Fix syso naming issue 2024-11-18 20:43:03 +11:00
clipboard Mac examples + readme updated 2023-10-17 20:25:36 +11:00
contextmenus Better context menu demo text 2025-01-25 09:23:12 +11:00
dev [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
dialogs Documentation updates. 2024-12-16 20:00:56 +11:00
dialogs-basic Fix default index.html serving. 2024-12-14 11:10:07 +11:00
drag-n-drop [V3] fix drag n drop example not running (#3742) 2024-09-13 05:41:06 +10:00
environment example: environment - change css 2024-05-03 12:52:15 -05:00
events Event cancellation for standard listeners. 2025-01-27 09:29:22 +11:00
events-bug Clean up footer 2024-07-30 07:57:25 +10:00
file-association [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
frameless Improve frameless example 2024-12-27 09:37:55 +11:00
hide-window Removed OnShouldClose: Create single way of handling conditional and unconditional close. 2024-12-23 08:23:07 +11:00
html-dnd-api [v3 alpha test] HTML Drag and Drop API test (#3856) 2024-10-29 20:15:36 +11:00
ignore-mouse [windows] Add support for click-through overlay window (#3667) 2024-08-18 20:50:22 +10:00
keybindings Move to latest webkit2 and remove older code. 2024-03-06 16:59:13 -06:00
menu Documentation updates. 2024-12-16 20:00:56 +11:00
panic-handling Default panic handler should fatal. Update docs and example. 2025-01-21 06:44:28 +11:00
plain BREAKING CHANGE: wml attributes are now prefixed with data- 2025-01-28 07:37:17 +11:00
raw-message Support raw messages from JS 2024-06-08 20:43:24 +10:00
screen [v3-Windows] New DIP system for Enhanced High DPI Monitor Support (#3665) 2024-09-22 08:38:30 +10:00
services [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
show-macos-toolbar [v3] Add option for showing the toolbar in fullscreen mode on macOS (#3282) 2024-03-02 20:10:25 +11:00
single-instance Single Instance feature. 2024-12-30 21:02:43 +11:00
systray-basic Update systray-custom to show keep-alive after window kill 2024-12-23 20:55:29 +11:00
systray-custom Add systray.SetTooltip 2025-02-08 14:01:22 +11:00
systray-menu Add systray Show, Hide and Destroy 2025-02-02 17:54:24 +11:00
video Refactored Events (#3731) 2024-09-07 16:39:02 +10:00
window The application menu is now macOS only. 2025-02-03 20:08:31 +11:00
window-api BREAKING CHANGE: wml attributes are now prefixed with data- 2025-01-28 07:37:17 +11:00
window-call Add window to context when calling a service method. Add window-call example to demonstrate how to know which window is calling a service. Fix Window ID skip issue. 2025-01-15 19:32:15 +11:00
window-menu New ContextMenu API + example (#4013) 2025-01-23 22:10:23 +11:00
wml BREAKING CHANGE: wml attributes are now prefixed with data- 2025-01-28 07:37:17 +11:00
linux_status.org add linux status for examples 2023-11-06 10:49:14 -06:00
README.md Improve documentation 2023-12-13 22:40:35 +11:00

v3

NOTE: The examples in this directory may or may not compile / run at any given time during alpha development.

Running the examples

cd v3/examples/<example>
go mod tidy
go run .

Compiling the examples

cd v3/examples/<example>
go mod tidy
go build
./<example>