Commit graph

4,763 commits

Author SHA1 Message Date
Zach Botterman
7bbc27594b fix windows 2025-02-25 09:32:52 -08:00
popaprozac
135defc405 init test linux 2025-02-25 09:11:12 -08:00
popaprozac
253f67243a init linux 2025-02-24 22:39:50 -08:00
popaprozac
67adc452cb update example 2025-02-24 22:00:58 -08:00
Zach Botterman
8bbe3816b7
Merge branch 'v3-alpha' into notifications_darwin 2025-02-24 21:57:21 -08:00
popaprozac
e8ad42aa3f switch to callback style 2025-02-24 21:54:38 -08:00
Zach Botterman
8da998191a for review 2025-02-24 17:58:05 -08:00
Zach Botterman
be716fc0ee fix input id 2025-02-24 16:47:19 -08:00
GitHub Actions
1dff481199 [skip ci] Publish @wailsio/runtime 3.0.0-alpha.57 2025-02-24 07:54:46 +00:00
Zach Botterman
3dbf0589ce update comments 2025-02-23 22:25:12 -08:00
Zach Botterman
1e3511c0d3 fix deadlock 2025-02-23 22:18:07 -08:00
Zach Botterman
983c25f69f rw safety 2025-02-23 21:59:27 -08:00
popaprozac
c904433ff3 update example 2025-02-23 16:30:13 -08:00
Zach Botterman
bf4222c9cc update example 2025-02-23 16:00:04 -08:00
Zach Botterman
978a982ab7 don't add title or body quite yet 2025-02-23 15:45:42 -08:00
Zach Botterman
cc760a173a test data with toast 2025-02-23 15:41:56 -08:00
Zach Botterman
9eab58f0d2 update comments 2025-02-23 14:40:40 -08:00
Zach Botterman
c1230d4b86 update win impl to match 2025-02-23 14:37:03 -08:00
popaprozac
f8647ff73c update min macos version 2025-02-23 14:11:32 -08:00
popaprozac
27e512d5f1 add data option to basic notification 2025-02-23 13:55:03 -08:00
Zach Botterman
ab9c460088 quick fixes 2025-02-23 11:40:39 -08:00
Zach Botterman
6d44068ede save notification categories to registry 2025-02-22 20:52:23 -08:00
Lea Anthony
a5e2e42a55
[darwin] Ensure menu updates occur on main thread 2025-02-23 15:46:03 +11:00
popaprozac
47a0977ac6 add overwrite and remove notification category 2025-02-22 20:25:03 -08:00
Zach Botterman
9f39577228 add comments 2025-02-22 20:02:26 -08:00
popaprozac
7757eae745 standalone example 2025-02-22 19:05:00 -08:00
popaprozac
c7d54e2fa9 remove app event 2025-02-22 18:58:16 -08:00
Zach Botterman
01fa3071f1 windows impl 2025-02-22 17:30:04 -08:00
popaprozac
91f1704f68 cleanup 2025-02-22 01:11:44 -08:00
popaprozac
87f15ced04 refactor 2025-02-22 00:34:29 -08:00
popaprozac
cc524d78e4 update example 2025-02-21 18:36:54 -08:00
popaprozac
f694ad223e service and minor refactor 2025-02-21 18:20:37 -08:00
popaprozac
274511c5cb update log message 2025-02-20 22:27:56 -08:00
popaprozac
32839bd0d1 initial notification impl 2025-02-20 14:03:38 -08:00
GitHub Actions
d5a8f1e323 [skip ci] Publish @wailsio/runtime 3.0.0-alpha.56 2025-02-19 10:45:40 +00:00
Fabio Massaioli
29c0d15045
[V3] Fix docs change detection in npm CI (#4091)
Fix docs change detection in nom CI
2025-02-19 21:45:05 +11:00
Fabio Massaioli
e7c134de4e
[v3] Late service registration and error handling overhaul (#4066)
* Add service registration method

* Fix error handling and formatting in messageprocessor

* Add configurable error handling

* Improve error strings

* Fix service shutdown on macOS

* Add post shutdown hook

* Better fatal errors

* Add startup/shutdown sequence tests

* Improve debug messages

* Update JS runtime

* Update docs

* Update changelog

* Fix log message in clipboard message processor

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Remove panic in RegisterService

* Fix linux tests (hopefully)

* Fix error formatting everywhere

* Fix typo in windows webview

* Tidy example mods

* Set application name in tests

* Fix ubuntu test workflow

* Cleanup template test pipeline

* Fix dev build detection on Go 1.24

* Update template go.mod/sum to Go 1.24

* Remove redundant caching in template tests

* Final format string cleanup

* Fix wails3 tool references

* Fix legacy log calls

* Remove formatJS and simplify format strings

* Fix indirect import

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-02-19 09:27:41 +01:00
Ian VanSchooten
5059adc561
[v3] Remove ESLint from templates (#4059)
* Remove eslint dependencies from templates

* Add changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-02-16 16:02:25 +11:00
Falco Gerritsjans
0dc7b3c549
More control over menus (#4031)
* Add prepend and clear method to menus

* Document appending and clearing menus

* Add `Destroy()`
Add notes to documentation.

* Remove menu item from map when destroying

* Remove menu items from map when clearing

* Update v3/pkg/application/menu.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Minor updates

* Fix build error

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-02-16 12:08:08 +11:00
Marcus Crane
1bafc6f22f
[v3] Fix invisible footer for light mode users across default templates (#4056)
* Remove invisible footer styling

Signed-off-by: Marcus Crane <marcus@utf9k.net>

* Add changelog entry

Signed-off-by: Marcus Crane <marcus@utf9k.net>

---------

Signed-off-by: Marcus Crane <marcus@utf9k.net>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-02-16 11:57:52 +11:00
Lea Anthony
244f32268b
Fix Hidden Mac MenuItem.
Go 1.24
2025-02-16 11:10:19 +11:00
Ian VanSchooten
e75c10d567
[V3] Add docs for event.Sender (#4075)
* Add docs for event.Sender

* Update changelog
2025-02-15 07:17:47 +11:00
Ian VanSchooten
a49bfcc956
[v3] Update copyright date (#4037)
* Update copyright date to 2025

* Update changelog
2025-02-14 08:43:19 +11:00
Ian VanSchooten
69917c2f50
[V3] Add MacOS 15 "Sequoia" to OSInfo.Branding (#4065)
* Add MacOS 15 to names list

* Update changelog

* Listening to the rabbit
2025-02-14 08:40:29 +11:00
Lea Anthony
2c85b109ac
Update docs 2025-02-09 16:57:06 +11:00
Lea Anthony
2d6db0f27f
Update contributors 2025-02-09 11:48:48 +11:00
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
Fabio Massaioli
d4096868e3
[v3] Fix and optimise assetserver (#4049)
* Fix and optimize content type sniffer

- Minimize copying and buffering
- Ensure it sniffs the full 512-bytes prefix

* Fix assorted warnings

* Cleanup error formatting

- Remove unnecessary formatting calls
- Fix invalid format strings
- Standardise logging calls

* Fix and optimize index fallback method

- Pass through non-404 responses correctly
- Do not buffer original response

* Test content sniffing and index fallback

* Update changelog

* Remove obsolete check

* Add safety checks in sniffer
2025-02-09 00:02:54 +11:00
Lea Anthony
d427e9d750
Add systray.SetTooltip 2025-02-08 14:01:22 +11:00
Lea Anthony
2db902ef82
Add menu option for Linux 2025-02-03 20:33:59 +11:00