mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 23:39:21 +08:00
Fix typos (#3628)
* Fix typos * Update howdoesitwork.mdx * Added entry to changelog --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
parent
3f83b42db5
commit
868931fe72
@ -258,7 +258,7 @@ create files on the fly or process POST/PUT requests.
|
|||||||
GET requests are always first handled by the `assets` FS. If the FS doesn't find the requested file the request will be
|
GET requests are always first handled by the `assets` FS. If the FS doesn't find the requested file the request will be
|
||||||
forwarded to the `http.Handler` for serving. Any requests other than GET will be directly processed by the `AssetsHandler`
|
forwarded to the `http.Handler` for serving. Any requests other than GET will be directly processed by the `AssetsHandler`
|
||||||
if specified.
|
if specified.
|
||||||
It's also possible to only use the `AssetsHandler` by specifiy `nil` as the `Assets` option.
|
It's also possible to only use the `AssetsHandler` by specifying `nil` as the `Assets` option.
|
||||||
|
|
||||||
## Built in Dev Server
|
## Built in Dev Server
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ The options are as follows:
|
|||||||
| noautoinjectipc | Disable the autoinjection of `/wails/ipc.js` |
|
| noautoinjectipc | Disable the autoinjection of `/wails/ipc.js` |
|
||||||
| noautoinject | Disable all autoinjection of scripts |
|
| noautoinject | Disable all autoinjection of scripts |
|
||||||
|
|
||||||
Multiple options may be used provided they are comma seperated.
|
Multiple options may be used provided they are comma separated.
|
||||||
|
|
||||||
This code is perfectly valid and operates the same as the autoinjection version:
|
This code is perfectly valid and operates the same as the autoinjection version:
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ This is an example entitlements file from the [RiftShare](https://github.com/ach
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Add the Embedded Provisioning Profile**
|
**Add the Embedded Provisioning Profile**
|
||||||
The Provisioning Profile created above needs to be added to the root of the applicaton. It needs to be named embedded.provisionprofile.
|
The Provisioning Profile created above needs to be added to the root of the application. It needs to be named embedded.provisionprofile.
|
||||||
|
|
||||||
#### Build and Sign the App Package
|
#### Build and Sign the App Package
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# NixOS FontSize Bug
|
# NixOS FontSize Bug
|
||||||
|
|
||||||
NixOS/Wayland can cause a bug where the `font-size` css property doesnt affect the rendered page. To fix this add the following to your devShell.
|
NixOS/Wayland can cause a bug where the `font-size` css property doesn't affect the rendered page. To fix this add the following to your devShell.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
shellHook = with pkgs; ''
|
shellHook = with pkgs; ''
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SvelteKit
|
# SvelteKit
|
||||||
|
|
||||||
This guide will go into:
|
This guide will go into:
|
||||||
1. Miminal Installation Steps - The steps needed to get a minimum Wails setup working for SvelteKit.
|
1. Minimal Installation Steps - The steps needed to get a minimum Wails setup working for SvelteKit.
|
||||||
2. Install Script - Bash script for accomplishing the Minimal Installation Steps with optional Wails branding.
|
2. Install Script - Bash script for accomplishing the Minimal Installation Steps with optional Wails branding.
|
||||||
3. Important Notes - Issues that can be encountered when using SvelteKit + Wails and fixes.
|
3. Important Notes - Issues that can be encountered when using SvelteKit + Wails and fixes.
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ wails dev
|
|||||||
```
|
```
|
||||||
See https://wails.io/docs/guides/frontend for more information.
|
See https://wails.io/docs/guides/frontend for more information.
|
||||||
|
|
||||||
##### Inital data can be loaded and refreshed from +page.ts/+page.js to +page.svelte.
|
##### Initial data can be loaded and refreshed from +page.ts/+page.js to +page.svelte.
|
||||||
- +page.ts/+page.js works well with load() https://kit.svelte.dev/docs/load#page-data
|
- +page.ts/+page.js works well with load() https://kit.svelte.dev/docs/load#page-data
|
||||||
- invalidateAll() in +page.svelte will call load() from +page.ts/+page.js https://kit.svelte.dev/docs/load#rerunning-load-functions-manual-invalidation.
|
- invalidateAll() in +page.svelte will call load() from +page.ts/+page.js https://kit.svelte.dev/docs/load#rerunning-load-functions-manual-invalidation.
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ If you are unsure about a template, inspect `package.json` and `wails.json` for
|
|||||||
| -nsis | Generate NSIS installer for Windows | |
|
| -nsis | Generate NSIS installer for Windows | |
|
||||||
| -o filename | Output filename | |
|
| -o filename | Output filename | |
|
||||||
| -obfuscated | Obfuscate the application using [garble](https://github.com/burrowers/garble) | |
|
| -obfuscated | Obfuscate the application using [garble](https://github.com/burrowers/garble) | |
|
||||||
| -platform | Build for the given (comma delimited) [platforms](../reference/cli.mdx#platforms) eg. `windows/arm64`. Note, if you do not give the architecture, `runtime.GOARCH` is used. | platform = `GOOS` environment variable if given else `runtime.GOOS`.<br/>arch = `GOARCH` envrionment variable if given else `runtime.GOARCH`. |
|
| -platform | Build for the given (comma delimited) [platforms](../reference/cli.mdx#platforms) eg. `windows/arm64`. Note, if you do not give the architecture, `runtime.GOARCH` is used. | platform = `GOOS` environment variable if given else `runtime.GOOS`.<br/>arch = `GOARCH` environment variable if given else `runtime.GOARCH`. |
|
||||||
| -race | Build with Go's race detector | |
|
| -race | Build with Go's race detector | |
|
||||||
| -s | Skip building the frontend | |
|
| -s | Skip building the frontend | |
|
||||||
| -skipbindings | Skip bindings generation | |
|
| -skipbindings | Skip bindings generation | |
|
||||||
|
@ -18,7 +18,7 @@ JS: `EventsOn(eventName string, callback function(optionalData?: any)): () => vo
|
|||||||
|
|
||||||
### EventsOff
|
### EventsOff
|
||||||
|
|
||||||
This method unregisters the listener for the given event name, optionally multiple listeneres can be unregistered via `additionalEventNames`.
|
This method unregisters the listener for the given event name, optionally multiple listeners can be unregistered via `additionalEventNames`.
|
||||||
|
|
||||||
Go: `EventsOff(ctx context.Context, eventName string, additionalEventNames ...string)`<br/>
|
Go: `EventsOff(ctx context.Context, eventName string, additionalEventNames ...string)`<br/>
|
||||||
JS: `EventsOff(eventName string, ...additionalEventNames)`
|
JS: `EventsOff(eventName string, ...additionalEventNames)`
|
||||||
|
@ -235,7 +235,7 @@ JS: `WindowSetBackgroundColour(R, G, B, A)`
|
|||||||
|
|
||||||
### WindowPrint
|
### WindowPrint
|
||||||
|
|
||||||
Opens tha native print dialog.
|
Opens the native print dialog.
|
||||||
|
|
||||||
Go: `WindowPrint(ctx context.Context)`<br/>
|
Go: `WindowPrint(ctx context.Context)`<br/>
|
||||||
JS: `WindowPrint()`
|
JS: `WindowPrint()`
|
||||||
|
@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
+ Fixed file drop events on Windows in [PR](https://github.com/wailsapp/wails/pull/3595) by @FrancescoLuzzi
|
+ Fixed file drop events on Windows in [PR](https://github.com/wailsapp/wails/pull/3595) by @FrancescoLuzzi
|
||||||
+ Modified `ZoomFactor` and `IsZoomControlEnabled` options to be Windows-only options in PR[#3644](https://github.com/wailsapp/wails/pull/3644) by @levinit
|
+ Modified `ZoomFactor` and `IsZoomControlEnabled` options to be Windows-only options in PR[#3644](https://github.com/wailsapp/wails/pull/3644) by @levinit
|
||||||
- Added nil check for Drag-n-Drop on Windows. Fixed by in [PR](https://github.com/wailsapp/wails/pull/3597) by @leaanthony based on the suggestion by @Alpa-1 in [#3596](https://github.com/wailsapp/wails/issues/3596).
|
- Added nil check for Drag-n-Drop on Windows. Fixed by in [PR](https://github.com/wailsapp/wails/pull/3597) by @leaanthony based on the suggestion by @Alpa-1 in [#3596](https://github.com/wailsapp/wails/issues/3596).
|
||||||
|
- Fixed typos in various .mdx files. [PR #3628](https://github.com/wailsapp/wails/pull/3628) by [@deining](https://github.com/deining)
|
||||||
|
|
||||||
## v2.9.1 - 2024-06-18
|
## v2.9.1 - 2024-06-18
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user