Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Jul 22, 2024
1 parent 7a40cc5 commit 85a6288
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion website/docs/guides/application-development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
forwarded to the `http.Handler` for serving. Any requests other than GET will be directly processed by the `AssetsHandler`
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

Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/frontend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The options are as follows:
| noautoinjectipc | Disable the autoinjection of `/wails/ipc.js` |
| 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:

Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/mac-appstore.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ This is an example entitlements file from the [RiftShare](https://github.com/ach
```

**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

Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/nixos-font.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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
shellHook = with pkgs; ''
Expand Down
4 changes: 2 additions & 2 deletions website/docs/guides/sveltekit.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SvelteKit

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.
3. Important Notes - Issues that can be encountered when using SvelteKit + Wails and fixes.

Expand Down Expand Up @@ -108,7 +108,7 @@ wails dev
```
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
- invalidateAll() in +page.svelte will call load() from +page.ts/+page.js https://kit.svelte.dev/docs/load#rerunning-load-functions-manual-invalidation.

Expand Down
8 changes: 4 additions & 4 deletions website/docs/howdoesitwork.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -414,20 +414,20 @@ export namespace main {
this.address = this.convertValues(source["address"], Address);
}

convertValues(a: any, classs: any, asMap: boolean = false): any {
convertValues(a: any, class: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map((elem) => this.convertValues(elem, classs));
return (a as any[]).map((elem) => this.convertValues(elem, class));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
a[key] = new class(a[key]);
}
return a;
}
return new classs(a);
return new class(a);
}
return a;
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ If you are unsure about a template, inspect `package.json` and `wails.json` for
| -nsis | Generate NSIS installer for Windows | |
| -o filename | Output filename | |
| -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 | |
| -s | Skip building the frontend | |
| -skipbindings | Skip bindings generation | |
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/runtime/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ JS: `EventsOn(eventName string, callback function(optionalData?: any)): () => vo

### 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/>
JS: `EventsOff(eventName string, ...additionalEventNames)`
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/runtime/window.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ JS: `WindowSetBackgroundColour(R, G, B, A)`

### WindowPrint

Opens tha native print dialog.
Opens the native print dialog.

Go: `WindowPrint(ctx context.Context)`<br/>
JS: `WindowPrint()`
Expand Down

0 comments on commit 85a6288

Please sign in to comment.