5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 05:30:52 +08:00
Commit Graph

55 Commits

Author SHA1 Message Date
Lea Anthony
1cbc34eff8
Fixes #1546 2022-07-11 20:56:05 +10:00
Lea Anthony
d4662bd797
Support Maps in TS conversion (#1435) 2022-07-10 20:54:49 +10:00
Lea Anthony
bf2d83d939
Change: Order of generated bindings now consistent
Closes #1531
2022-07-08 20:18:31 +10:00
Lea Anthony
fe341741b5
Always use return in wrapped method (#1410) 2022-06-06 00:41:44 -10:00
Lea Anthony
55115742c1 fix: TS conversion of interface{} 2022-05-11 08:21:17 +10:00
Lea Anthony
84b6273baf
Bugfix/incorrect bindings (#1383)
* Print struct path

* Better handling of anon structs
2022-05-05 23:07:33 +10:00
Lea Anthony
781a0df72e
Fix for TS/JS generation on methods with no returns (#1356) 2022-04-27 19:09:55 +10:00
Lea Anthony
43f8a1f773 fix: blank namespaces, unknown structs 2022-04-06 19:13:10 +10:00
Lea Anthony
55855ccc4d fix: duplicate model generation 2022-04-05 21:30:55 +10:00
Lea Anthony
eb97f53124 Feature: Don't generate models.ts if there are no models. 2022-04-05 21:30:55 +10:00
Lea Anthony
625eca27f6 Feature: TS namespaces 2022-04-05 18:11:56 +10:00
Lea Anthony
2465538448 Fix: TS namespace inference 2022-04-05 08:26:54 +10:00
Lea Anthony
bb2da2f810 Chore: remove debug output 2022-04-04 21:19:36 +10:00
Lea Anthony
6b38f0c68e
Improved TS Generation (#1310)
Improve TS Generation
2022-04-04 21:01:00 +10:00
Lea Anthony
8bb3af2282
Refactor TS imports 2022-04-04 07:19:39 +10:00
Ariel
d5a8ee0132
Do not duplicate imports (#1307)
* Do not duplicate imports

* Fix warning as first element
2022-04-03 20:17:20 +10:00
Lea Anthony
55cec7af17 Fix: Handle struct pointers in new TS generation 2022-04-03 17:58:53 +10:00
Lea Anthony
4721949657
Improved bindings generation 2022-04-03 07:31:07 +10:00
Lea Anthony
f6cdafa5ff Bugfix: generate correct model reference in bindings.d.ts 2022-04-01 13:08:56 +11:00
Lea Anthony
a5bf76b30f Fix up dev. Pull in go-webview and winc 2022-03-29 21:45:16 +11:00
Ariel
9097c9086b
import models on binding definition (#1231) 2022-03-09 07:44:32 +11:00
Albert Sun
f5c3907fac added interface{} test case and fixed 2022-01-22 10:23:02 -05:00
Albert Sun
4118f348f5 fixed generate test 2022-01-22 00:59:26 -05:00
Albert Sun
1e4af8991b added export 2022-01-22 00:40:55 -05:00
Lea\Anthony
7904d0aadc [v2] Remove export in experimental TS generation for bindings 2021-12-01 19:19:28 +11:00
Lea\Anthony
06fa6850a1 [v2] Update experimental TS generation for bindings 2021-12-01 19:17:57 +11:00
Lea\Anthony
485f5831ac [v2] Experimental TS generation for bindings 2021-11-30 22:14:29 +11:00
Lea Anthony
8bfec24108
Support slices + out params in Models.ts generation. Update website with runtime info 2021-11-18 17:54:09 +11:00
Lea Anthony
2649c3d17d [v2] Fix bindings.js 2021-10-12 06:34:01 +11:00
Lea Anthony
75f703465a [v2] Generate module command. Updated wails dev 2021-10-05 22:27:12 +11:00
Cody Bentley
e6a89790e3 Fixed missing comma that would break bindings when more than one package exists 2021-09-29 22:04:28 -06:00
Lea Anthony
2f2a7a567a [v2] Fix vscode output + default template 2021-09-25 14:44:23 +10:00
Lea Anthony
0b71d64931 [v2] window.backend -> window.go 2021-09-01 20:52:34 +10:00
Lea Anthony
ac4c17ca09 [windows] Generate bindings + models 2021-08-31 19:51:43 +10:00
Lea Anthony
c5d9fd1a0d [windows-x] Generate TS models 2021-08-28 14:51:40 +10:00
Lea Anthony
a7c5064a33 [windows-x] Generate runtime wrapper in project, initial model binding, better error handling in calls, assetdir fix, 2021-08-27 21:11:03 +10:00
Alexander Hudek
0966c96ef0
Fixed generated typescript type for []byte. (#701) 2021-05-02 13:08:49 +10:00
Lea Anthony
5fc89c4cad
Fix Promise<void> return type. Tidy up. 2021-04-18 07:24:29 +10:00
Lea Anthony
51133d098c
Slight refactor of backend module generation 2021-02-21 05:52:42 +11:00
Lea Anthony
f47100e71c
Sort generated methods to appease git diff. 2021-02-13 18:04:00 +11:00
Lea Anthony
21a0245985
Generate bindings in package. Support dialogs in dev mode. 2021-02-09 21:10:06 +11:00
Lea Anthony
e6b40b55c4
Add nil guard for binding 2021-01-31 21:10:30 +11:00
Lea Anthony
7573f68df3
Add argument guard for methods 2021-01-31 15:35:33 +11:00
Lea Anthony
c9c3c9ab90
Don't bind startup/shutdown methods 2021-01-27 21:12:17 +11:00
Lea Anthony
fe87463b78
Move Bind() into app config 2021-01-26 07:04:12 +11:00
Lea Anthony
742e4ba2cb
Remove WailsInit and WailsShutdown methodsr 2021-01-14 11:07:06 +11:00
Lea Anthony
60f67d4642
Remove old method 2021-01-03 22:07:05 +11:00
Lea Anthony
0dc6c20c65
Provide a better error message when trying to bind functions 2021-01-03 22:05:40 +11:00
Lea Anthony
5d41aad539
Misc lint fixes 2021-01-03 21:31:19 +11:00
Lea Anthony
62374b9b53
Js package generation (#554)
* WIP

* Generation of index.js

* Add RelativeToCwd

* Add JSDoc comments

* Convert to ES6 syntax

* Fix typo

* Initial generation of typescript declarations

* Typescript improvements

* Improved @returns jsdoc

* Improved declaration files

* Simplified output

* Rename file

* Tidy up

* Revert "Simplified output"

This reverts commit 15cdf7382b.

* Now parsing actual code

* Support Array types

* Reimagined parser

* Wrap parsing in Parser

* Rewritten module generator (TS Only)

* Final touches

* Slight refactor to improve output

* Struct comments. External struct literal binding

* Reworked project parser *working*

* remove debug info

* Refactor of parser

* remove the spew

* Better Ts support

* Better project generation logic

* Support local functions in bind()

* JS Object generation. Linting.

* Support json tags in module generation

* Updated mod files

* Support vscode file generation

* Better global.d.ts

* add ts-check to templates

* Support TS declaration files

* improved 'generate' command for module
2020-11-15 09:25:38 +11:00