Lea Anthony
e91b7832ee
Provide types to runtime api
2023-03-31 20:37:50 +11:00
Lea Anthony
0d25edc0c4
Improved api package
2023-03-30 12:51:43 +11:00
Lea Anthony
eb36258c73
Merge branch 'master' into v3/plugins
2023-03-27 20:58:00 +11:00
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
365aaf6bb1
Add sqlite plugin
2023-03-25 09:39:59 +11:00
Lea Anthony
3ae604e474
Exported() -> CallableByJS()
2023-03-22 20:42:20 +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
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
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
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
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
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
e1279a054f
[v3] Improved parser for bound structs
2023-02-17 20:57:31 +11:00
Lea Anthony
94f0f6ff82
wml refresh -> wml reload
2023-02-16 20:19:53 +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
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
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
23d2c9a741
Refactor main.tmpl.go -> main.go.tmpl
2023-02-09 21:14:16 +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
f94e798c50
Support logging
2023-02-06 20:29:33 +11:00