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

2620 Commits

Author SHA1 Message Date
stffabi
1247c8aa28
[windows] Fix stack corruption when using ICoreWebView2HttpHeadersCollectionIterator (#1589)
The API expects a `BOOL *` with `typedef int BOOL` therefore
we need to use a `int32` on the stack.
2022-07-18 18:57:30 +10:00
Lea Anthony
af1c530442
Remove usage of unsafe.Pointer in winc (#1556)
* Remove usage of unsafe.Pointer

* [windows] Remove MakeIntResource and add overloads for Load functions

* Fix `EnumProc` race condition.

* Refactor `EnumDisplayMonitors` to use `unsafe.Pointer` instead of `uintptr`

Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-07-18 18:22:46 +10:00
Antonio
463f5b3cb7
Add troubleshooting for Not Found error (#1586)
Issues with Vite's optimizer
2022-07-18 18:20:14 +10:00
Lea Anthony
f46e825d24
Add pre-build hooks. Print command output when verbosity flag set. (#1578)
* Add pre-build hooks. Print command output when verbosity flag set.

* Refactor build hooks
2022-07-17 22:08:55 +10:00
Lea Anthony
8e43206ae5
Add restic-browser to showcase 2022-07-17 20:04:28 +10:00
Lea Anthony
ee988dfb9e
Update runtime 2022-07-16 12:37:56 +10:00
skamensky
04d35410de
Expose screen dimensions (#1519)
* get dimensions working for linux

* Cleaning up some GTK code

I was getting the following errors due to some bad casts.

Gdk-CRITICAL **: 18:58:51.943: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed
Gdk-CRITICAL **: 18:58:51.943: gdk_display_get_monitor_at_window: assertion 'GDK_IS_DISPLAY (display)' failed

This commit fixes these errors

* Adding Screen namespace along with linux implementation

* moving ScreenGetAll into a more appropriate place

* Fixing typescript definition mistake, documentation, ordering of functions, and formatting

* add ScreenGetAll to more templates

* moving screen into its own javascript file

* fixing bug where screen objects are not returned from the runtime function

* rebuilding frontend wrapper package

* adding windows implementation of ScreenGetAll

* adding screen get all implementation for darwin

* reverting a change that is unrelated to the work on expose-dimensions

* removing duplicate comparison

* changing GetNthScreen in screen API on macos

To use frame instead of visibleframe to keep into account the space the the dock takes up
We want to include that space in the calculation in order to keep the sizes of screens consistent across platforms

* Correcting screen jsdoc

It used to say it returned a single screen object. Now it says that it returns an array of screen objects

* Fixing typo in function name

* reverting pointless spacing change

* reverting pointless spacing change

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: shmuel.kamensky <shmuel.kamensky@shutterfly.com>
2022-07-16 12:33:37 +10:00
Lea Anthony
6579cc3ce7
Fix all contributors section 2022-07-16 12:25:58 +10:00
Lea Anthony
aea482c221
Fix all contributors section 2022-07-16 12:11:18 +10:00
Lea Anthony
29a059a20f
Update all contributors section (#1575) 2022-07-16 12:07:36 +10:00
Lea Anthony
a098d3a071
Update all contributors section 2022-07-16 10:29:53 +10:00
Lea Anthony
c3f1f626f9
Fix badge 2022-07-16 10:22:38 +10:00
allcontributors[bot]
984dcda775
docs: add skamensky as a contributor for code, ideas, doc (#1574)
* docs: update README.md [skip ci]

* docs: create .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-07-16 10:20:42 +10:00
Lea Anthony
1121991e31
Add all contributors section 2022-07-16 10:18:28 +10:00
dependabot[bot]
60e4127b24
Bump svelte from 3.42.5 to 3.49.0 in /v2/internal/frontend/runtime (#1573)
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.42.5 to 3.49.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.42.5...v3.49.0)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-16 03:58:15 +10:00
dependabot[bot]
db7f24ff93
Bump svelte from 3.42.2 to 3.49.0 in /v2/internal/frontend/runtime/dev (#1572)
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.42.2 to 3.49.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.42.2...v3.49.0)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-16 03:58:05 +10:00
Lea Anthony
743d7cc4dd
Add stargazers 2022-07-15 17:19:01 +10:00
Lea Anthony
dedd2864f0
Update sponsors 2022-07-14 22:49:36 +10:00
Lea Anthony
12e6445a30
Fix loglevel for wails build -debug 2022-07-14 22:40:27 +10:00
Lea Anthony
931913a1d3
Update mouse-buttons.mdx 2022-07-14 22:27:48 +10:00
Lea Anthony
5987f17cca
Check for line length when scanning for local devserver url (#1566) 2022-07-14 22:22:26 +10:00
Lea Anthony
f068c33dcf
Add support for production log levels (#1555) 2022-07-14 21:45:13 +10:00
Lea Anthony
77db50a76a
Add mouse buttons guide 2022-07-14 21:35:21 +10:00
Lea Anthony
3ecd72d6c9
Add navigation from index.html troubleshooting guide 2022-07-14 21:13:02 +10:00
Lea Anthony
69016c6c6f
Fix OnBeforeClose code for Mac (#1558)
* Fix OnBeforeClose code for Mac

* Fix OnBeforeClose for linux
2022-07-14 21:04:45 +10:00
Ian M. Jones
82cc5498f1
Add nixpkgs support to doctor command. (#1551)
* Dependancy => Dependency typo fix.

* Add Nixpkgs support to doctor command.

* Add mention of nixpkgs to linux distro support doc.
2022-07-13 07:29:41 +10:00
Lea Anthony
51a7630cd7
Fix dynamic asset image 2022-07-12 21:45:37 +10:00
Lea Anthony
1dec40db33
Feature/auto devserver port (#1547)
* Support "auto" devserverurl
2022-07-12 21:41:41 +10:00
Lea Anthony
d1ae16ad3c
Add guide on dynamic assets 2022-07-12 21:38:18 +10:00
Ian M. Jones
095ef5ab64
Fix checking for installed apt package in none English session. (#1548) 2022-07-12 07:07:01 +10:00
Lea Anthony
1cbc34eff8
Fixes #1546 2022-07-11 20:56:05 +10:00
Lea Anthony
c82683babf
Update tutorial 2022-07-11 20:50:19 +10:00
Lea Anthony
d4662bd797
Support Maps in TS conversion (#1435) 2022-07-10 20:54:49 +10:00
Lea Anthony
55ec688331
Add helloworld tutorial 2022-07-10 15:07:42 +10:00
Lea Anthony
7a63464997
Update vscode template (#1398) 2022-07-08 20:33: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
1cd31573a9
change: improve cli output for wails update
closes #1528
2022-07-08 19:53:13 +10:00
Lea Anthony
39cebffa87
Fix: use correct json value for buildtype 2022-07-08 10:58:38 +10:00
Ian M. Jones
f4b4e4cdb8
Allow -appargs flag to pass flags to binary. (#1534) 2022-07-06 19:25:28 +10:00
Lea Anthony
73f5cc3b92
Update issue template with links 2022-07-05 08:50:05 +10:00
Lea Anthony
c48ad9be67
doc: white screen fix for Mac. Closes #1508 2022-07-05 08:44:26 +10:00
Lea Anthony
4726b72708
feature: Add -windowsconsole flag 2022-07-04 22:52:50 +10:00
Lea Anthony
4c312b155d
[docs] Update -debug flag 2022-07-04 22:33:03 +10:00
Lea Anthony
cd35536a79
[linux] Fix SetBackgroundColour 2022-07-04 22:29:51 +10:00
Lea Anthony
91d6c23c71
Updated contribution guide 2022-07-03 15:37:21 +10:00
Lea Anthony
59f84b8905
Development -> Contributing 2022-07-03 14:52:37 +10:00
Lea Anthony
a1a06a6198
Initial development guides 2022-07-03 12:06:35 +10:00
Lea Anthony
5292721517
Update Sponsors 2022-07-03 10:19:15 +10:00
stffabi
41d1bf3d10
[v2] Improvements to the dev command (#1510)
* [v2, darwin] Fix nullreference exception when dev watcher failed to start and the user stopped wails dev with ctrl-c

* [v2] Improve starting of dev watcher command

Wails dev now also fails if the dev watcher could not be started. Since
the dev watcher is used to start e.g. vite to serve the frontend, it does
not make much sense to let Wails dev be running if the dev
watcher failed to start.

* [v2] Improve killing and cleanup of debug binary

- Make sure to kill the debug process in all cases even if an error occured.
- Make sure to kill the last started binary process
2022-06-30 20:13:06 +10:00
Lea Anthony
3e42d2da05
Rename WindowSetRGBA -> WindowSetBackgroundColour (#1506)
* Rename WindowSetRGBA -> WindowSetBackgroundColour

* Fix Typos
2022-06-29 22:31:49 +10:00