Adam Tenderholt
130fab6c01
Feature/v3 parser: expand TS model generation tests & some fixes ( #2485 )
...
* v3 parser: add tests for model generation
* v3 parser: use single quotes for got model.ts
* v3 parser: fixes for some failing tests
* v3 parser: misc simplification and cleanup
* v3 parser: fix model tests when no structs returned
* v3 parser: fix last failing test case
* Update contributors list
* v3 parser: update README
* Revert "Update contributors list"
This reverts commit f429d2ba89
.
* Changelog: add line about my contribution
2023-03-25 10:09:17 +11:00
Lea Anthony
58986237b9
[v3] Minor fixes to templates + improved Taskfile
2023-03-11 12:48:10 +11:00
Lea Anthony
7cb4c7b505
[v3] Improve init command
2023-03-10 08:05:13 +11: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
e302d11f12
Update module deps
2023-03-09 08:23:20 +11:00
Lea Anthony
eb670f4ba1
Merge branch 'master' into feature/v3-parser
...
# Conflicts:
# v3/go.mod
# v3/go.sum
2023-03-09 08:22:47 +11:00
Lea Anthony
5e0ce40b41
Update TODO
2023-03-09 08:21:37 +11:00
dependabot[bot]
fdda3d2238
Bump golang.org/x/image in /v3 ( #2460 )
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.0.0-20201208152932-35266b937fa6 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases )
- [Commits](https://github.com/golang/image/commits/v0.5.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
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-08 08:25:36 +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
f1a7f1b781
Improved bindings generation
2023-03-06 20:54:04 +11:00
Lea Anthony
71aa7c9731
Initial bindings.js generation
2023-03-03 19:54:12 +11:00
Lea Anthony
41860ade10
Update all-contributosrc
2023-03-02 08:22:33 +11:00
Lea Anthony
868b769e7f
Initial bindings generation
2023-03-01 21:31:29 +11:00
Lea Anthony
8dc8c8e15e
Merge remote-tracking branch 'origin/feature/v3-parser' into feature/v3-parser
2023-02-28 20:35:39 +11:00
Adam Tenderholt
da90e74268
v3 parser: initial work on model generation w/ templates ( #2428 )
...
* v3 parser: initial work on model generation w/ templates
* v3 parser: expand models to namespaces
2023-02-28 20:35:18 +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
33855ff01d
Add tests for bound structs returned by function calls.
2023-02-26 19:18:47 +11:00
Lea Anthony
f9ffe915f2
Add bindings hook
2023-02-26 15:06:05 +11:00
Lea Anthony
91676080eb
Support binding variables that were assigned by functions
2023-02-26 13:12:30 +11:00
Lea Anthony
6afb5260a7
Refactor parsing functions
2023-02-26 08:56:27 +11:00
Adam Tenderholt
0f80f031fd
v3 parser: add some more test cases (functions) ( #2422 )
...
* [v3] add test case for parser (create struct from func)
* [v3] add another test case for parser (func in other pkg) + misc
2023-02-26 07:46:26 +11:00
dependabot[bot]
9b35926789
Bump cacheable-request from 10.2.5 to 10.2.7 in /v3/internal/runtime ( #2368 )
...
Bumps [cacheable-request](https://github.com/jaredwray/cacheable-request ) from 10.2.5 to 10.2.7.
- [Release notes](https://github.com/jaredwray/cacheable-request/releases )
- [Commits](https://github.com/jaredwray/cacheable-request/commits )
---
updated-dependencies:
- dependency-name: cacheable-request
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-02-25 13:01:23 +11:00
Lea Anthony
ecc1791420
Support bound variables (struct literals)
...
Factor out unaryexpression parsing
Fix package bleed between tests
2023-02-25 09:47:50 +11:00
Lea Anthony
4a8917ecbc
Add nested anonymous struct test
2023-02-25 08:27:36 +11:00
Lea Anthony
cc1a6a3d50
Support anonymous struct fields
2023-02-25 08:24:58 +11:00
Lea Anthony
cd11c0a83c
Support references to structs in other packages
2023-02-24 21:15:39 +11:00
Lea Anthony
8fd0e06c24
Use package path instead of name
2023-02-23 20:26:15 +11:00
Lea Anthony
4e5be36459
Parse structs bound from other packages
2023-02-22 20:36:30 +11:00
Lea Anthony
6bfd654ec8
Tidy up. More tests.
2023-02-21 17:10:36 +11:00
Lea Anthony
dc0d99a8e9
Cover all type combinations
...
Fix bug in pointer type resolution
2023-02-21 07:52:29 +11:00
Lea Anthony
b606561f8d
Move struct cache into parsed package
...
Fix bug in package path calculation
2023-02-21 07:18:08 +11:00
Lea Anthony
d0769ecd1c
Parse Models
...
Support recursive fields
Add loads of tests
2023-02-20 20:36:58 +11:00
Lea Anthony
95bb15eef4
[v3] MUCH Improved parser for bound structs
2023-02-19 20:59:03 +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
94f0f6ff82
wml refresh -> wml reload
2023-02-16 20:19:53 +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