diff --git a/.devcontainer/README.md b/.devcontainer/README.md
index 25adead1f..84212611e 100644
--- a/.devcontainer/README.md
+++ b/.devcontainer/README.md
@@ -24,7 +24,7 @@ Prerequisites are mainly derived from VS Code's instructions for usage of develo
### A note on filesystem performance
-Due to limititations in how Docker shares files between the Docker host and a container, it's also recommended that developers [clone Tauri source code into a container volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume). This is optional, but highly advised as many filesystem/IO heavy opearations (`cargo build`, `yarn install`, etc) will be very slow if they operate on directories shared with a Docker container from the Docker host.
+Due to limitations in how Docker shares files between the Docker host and a container, it's also recommended that developers [clone Tauri source code into a container volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume). This is optional, but highly advised as many filesystem/IO heavy operations (`cargo build`, `yarn install`, etc) will be very slow if they operate on directories shared with a Docker container from the Docker host.
To do this, open your project with VS Code and run **Remote-Containers: Clone Repository in Container Volume...** from the Command Palette (F1).
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 459b4eb15..455a184d0 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -50,7 +50,7 @@ First, [join our Discord server](https://discord.gg/SpmNs4S) and let us know tha
To set up your machine for development, follow the [Tauri setup guide](https://tauri.app/v1/guides/getting-started/prerequisites/) to get all the tools you need to develop Tauri apps. The only additional tool you may need is [Yarn](https://yarnpkg.com/), it is only required if you are developing the Node CLI or API packages (`tooling/cli/node` and `tooling/api`). Next, fork and clone this repo. It is structured as a monorepo, which means that all the various Tauri packages are under the same repository. The development process varies depending on what part of Tauri you are contributing to, see the guides below for per-package instructions.
-Some Tauri packages will be automatically built when running one of the examples. Others, however, will need to be built beforehand. To build these automatically, run the `.scripts/setup.sh` (Linux and macOS) or `.scripts/setup.ps1` (Windows) script. This will install the Rust and Node.js CLI and build the JS API. After that, you should be able to run all the examples. Note that the setup script should be executed from the root folder of the respository in order to run correctly.
+Some Tauri packages will be automatically built when running one of the examples. Others, however, will need to be built beforehand. To build these automatically, run the `.scripts/setup.sh` (Linux and macOS) or `.scripts/setup.ps1` (Windows) script. This will install the Rust and Node.js CLI and build the JS API. After that, you should be able to run all the examples. Note that the setup script should be executed from the root folder of the repository in order to run correctly.
### Packages Overview
@@ -87,4 +87,4 @@ The JS API provides bindings between the developer's JS in the Webview and the b
## Financial Contribution
-Tauri is an MIT-licensed open source project. Its ongoing development can be supported via [Github Sponsors](https://github.com/sponsors/nothingismagick) or [Open Collective](https://opencollective.com/tauri). We prefer Github Sponsors as donations made are doubled through the matching fund program.
+Tauri is an MIT-licensed open source project. Its ongoing development can be supported via [GitHub Sponsors](https://github.com/sponsors/nothingismagick) or [Open Collective](https://opencollective.com/tauri). We prefer GitHub Sponsors as donations made are doubled through the matching fund program.
diff --git a/.github/workflows/artifacts-updater.yml b/.github/workflows/artifacts-updater.yml
index c5e3b40ef..454b17762 100644
--- a/.github/workflows/artifacts-updater.yml
+++ b/.github/workflows/artifacts-updater.yml
@@ -24,7 +24,7 @@ concurrency:
cancel-in-progress: true
jobs:
- build-artifacs:
+ build-artifacts:
runs-on: ${{ matrix.platform }}
strategy:
diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml
index 55bd205ff..22f8e295c 100644
--- a/.github/workflows/bench.yml
+++ b/.github/workflows/bench.yml
@@ -43,7 +43,7 @@ jobs:
python-version: '3.x'
architecture: x64
- - name: install depedencies
+ - name: install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get update
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index e249344f5..5f40656bf 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -40,7 +40,7 @@ This is common code that is reused in many places and offers useful utilities li
### Tauri Tooling
#### [api](https://github.com/tauri-apps/tauri/tree/dev/tooling/api) [TS -> JS]
-A typescript library that creates `cjs` and `esm` Javascript endpoints for you to import into your Frontend framework so that the Webview can call and listen to backend activity. We also ship the pure typescript, because for some frameworks this is more optimal. It uses the message passing of webviews to their hosts.
+A TypeScript library that creates `cjs` and `esm` JavaScript endpoints for you to import into your Frontend framework so that the Webview can call and listen to backend activity. We also ship the pure TypeScript, because for some frameworks this is more optimal. It uses the message passing of webviews to their hosts.
#### [bundler](https://github.com/tauri-apps/tauri/tree/dev/tooling/bundler) [RUST / SHELL]
The bundler is a library that builds a Tauri App for the platform triple it detects / is told. At the moment it currently supports macOS, Windows and Linux - but in the near future will support mobile platforms as well. May be used outside of Tauri projects.
diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs
index 737110663..c57b5a5ba 100644
--- a/core/tauri-build/src/lib.rs
+++ b/core/tauri-build/src/lib.rs
@@ -106,7 +106,7 @@ pub struct WindowsAttributes {
///
/// For MSVC the Windows SDK has to be installed. It comes with the resource compiler rc.exe.
/// This should be set to the root directory of the Windows SDK, e.g., "C:\Program Files (x86)\Windows Kits\10" or,
- /// if multiple 10 versions are installed, set it directly to the corret bin directory "C:\Program Files (x86)\Windows Kits\10\bin\10.0.14393.0\x64"
+ /// if multiple 10 versions are installed, set it directly to the correct bin directory "C:\Program Files (x86)\Windows Kits\10\bin\10.0.14393.0\x64"
///
/// If it is left unset, it will look up a path in the registry, i.e. HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots
sdk_dir: Option,
diff --git a/core/tauri-codegen/src/lib.rs b/core/tauri-codegen/src/lib.rs
index e0a2e4f52..7d40def80 100644
--- a/core/tauri-codegen/src/lib.rs
+++ b/core/tauri-codegen/src/lib.rs
@@ -70,7 +70,7 @@ pub fn get_config(path: &Path) -> Result<(Config, PathBuf), CodegenConfigError>
let config = serde_json::from_value(config)?;
- // Reset workding directory.
+ // Reset working directory.
std::env::set_current_dir(old_cwd).map_err(CodegenConfigError::CurrentDir)?;
Ok((config, parent))
diff --git a/core/tauri-macros/src/lib.rs b/core/tauri-macros/src/lib.rs
index 25bab79a3..7bd9b66c0 100644
--- a/core/tauri-macros/src/lib.rs
+++ b/core/tauri-macros/src/lib.rs
@@ -88,7 +88,7 @@ pub fn derive_command_module(input: TokenStream) -> TokenStream {
/// The `run` method takes a `tauri::endpoints::InvokeContext`
/// and returns a `tauri::Result`.
/// It matches on each enum variant and call a method with name equal to the variant name, lowercased and snake_cased,
-/// passing the the context and the variant's fields as arguments.
+/// passing the context and the variant's fields as arguments.
/// That function must also return the same `Result`.
#[doc(hidden)]
#[proc_macro_attribute]
diff --git a/core/tauri-runtime/src/webview.rs b/core/tauri-runtime/src/webview.rs
index 3d2aac460..cf3ce532e 100644
--- a/core/tauri-runtime/src/webview.rs
+++ b/core/tauri-runtime/src/webview.rs
@@ -134,7 +134,7 @@ pub trait WindowBuilder: WindowBuilderBase {
#[must_use]
fn visible(self, visible: bool) -> Self;
- /// Whether the the window should be transparent. If this is true, writing colors
+ /// Whether the window should be transparent. If this is true, writing colors
/// with alpha values different than `1.0` will produce a transparent window.
#[cfg(any(not(target_os = "macos"), feature = "macos-private-api"))]
#[cfg_attr(
diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs
index 35d40aef7..2a2098fa6 100644
--- a/core/tauri-utils/src/config.rs
+++ b/core/tauri-utils/src/config.rs
@@ -671,7 +671,7 @@ pub struct CliArg {
pub required: bool,
/// Sets an arg that override this arg's required setting
/// i.e. this arg will be required unless this other argument is present.
- #[serde(alias = "requred-unless-present")]
+ #[serde(alias = "required-unless-present")]
pub required_unless_present: Option,
/// Sets args that override this arg's required setting
/// i.e. this arg will be required unless all these other arguments are present.
@@ -2551,7 +2551,7 @@ pub struct PackageConfig {
/// App name.
#[serde(alias = "product-name")]
pub product_name: Option,
- /// App version. It is a semver version number or a path to a `package.json` file contaning the `version` field.
+ /// App version. It is a semver version number or a path to a `package.json` file containing the `version` field.
#[serde(deserialize_with = "version_deserializer", default)]
pub version: Option,
}
diff --git a/core/tauri-utils/src/pattern/isolation.rs b/core/tauri-utils/src/pattern/isolation.rs
index 27b23f80e..d05cf4bee 100644
--- a/core/tauri-utils/src/pattern/isolation.rs
+++ b/core/tauri-utils/src/pattern/isolation.rs
@@ -23,7 +23,7 @@ pub enum Error {
#[error("CSPRNG error")]
Csprng(#[from] CsprngError),
- /// Something went wrong with decryping an AES-GCM payload
+ /// Something went wrong with decrypting an AES-GCM payload
#[error("AES-GCM")]
Aes,
diff --git a/core/tauri/CHANGELOG.md b/core/tauri/CHANGELOG.md
index 544dc095e..3a312307f 100644
--- a/core/tauri/CHANGELOG.md
+++ b/core/tauri/CHANGELOG.md
@@ -1357,7 +1357,7 @@ Note: The order that event handlers are called when triggered is still non-deter
- The HTTP API was improved with client caching and better payload and response types.
- [a7bc472](https://www.github.com/tauri-apps/tauri/commit/a7bc472e994730071f960d09a12ac85296a080ae) refactor(core): improve HTTP API, closes [#1098](https://www.github.com/tauri-apps/tauri/pull/1098) ([#1237](https://www.github.com/tauri-apps/tauri/pull/1237)) on 2021-02-15
- [a6def70](https://www.github.com/tauri-apps/tauri/commit/a6def7066eec19c889b0f14cc1e475bf209a332e) Refactor(tauri): move tauri-api and tauri-updater to tauri ([#1455](https://www.github.com/tauri-apps/tauri/pull/1455)) on 2021-04-11
-- Added new Javascript API to extract `name`, `version`, `tauri version` from the running application. We exposed `relaunch` and `exit` as well to control your application state.
+- Added new JavaScript API to extract `name`, `version`, `tauri version` from the running application. We exposed `relaunch` and `exit` as well to control your application state.
- [e511d39](https://www.github.com/tauri-apps/tauri/commit/e511d3991041a974273a2674a9bf60230b7519ee) feat(api): Expose application metadata and functions to JS api - fix [#1387](https://www.github.com/tauri-apps/tauri/pull/1387) ([#1445](https://www.github.com/tauri-apps/tauri/pull/1445)) on 2021-04-08
- [a6def70](https://www.github.com/tauri-apps/tauri/commit/a6def7066eec19c889b0f14cc1e475bf209a332e) Refactor(tauri): move tauri-api and tauri-updater to tauri ([#1455](https://www.github.com/tauri-apps/tauri/pull/1455)) on 2021-04-11
- The event listener `once` kind was moved to a dedicated function.
diff --git a/core/tauri/src/api/dialog.rs b/core/tauri/src/api/dialog.rs
index 804eaeb27..29392f30f 100644
--- a/core/tauri/src/api/dialog.rs
+++ b/core/tauri/src/api/dialog.rs
@@ -219,7 +219,7 @@ impl From for rfd::MessageLevel {
/// which makes them easier to use.
///
/// **NOTE:** You cannot block the main thread when executing the dialog APIs, so you must use the [`crate::api::dialog`] methods instead.
-/// Examples of main thread context are the [`crate::App::run`] closure and non-async commmands.
+/// Examples of main thread context are the [`crate::App::run`] closure and non-async commands.
pub mod blocking {
use super::{MessageDialogButtons, MessageDialogKind};
use crate::{Runtime, Window};
diff --git a/core/tauri/src/app.rs b/core/tauri/src/app.rs
index 23eaa2d68..0cb8bc362 100644
--- a/core/tauri/src/app.rs
+++ b/core/tauri/src/app.rs
@@ -865,7 +865,7 @@ impl App {
// we only listen for `tauri://update`
// once we receive the call, we check if an update is available or not
// if there is a new update we emit `tauri://update-available` with details
- // this is the user responsabilities to display dialog and ask if user want to install
+ // this is the user responsibilities to display dialog and ask if user want to install
// to install the update you need to invoke the Event `tauri://update-install`
updater::listener(handle);
}
diff --git a/core/tauri/src/endpoints/shell.rs b/core/tauri/src/endpoints/shell.rs
index ecd00a09d..57aaf7db9 100644
--- a/core/tauri/src/endpoints/shell.rs
+++ b/core/tauri/src/endpoints/shell.rs
@@ -25,7 +25,7 @@ type ChildId = u32;
type ChildStore = Arc>>;
#[cfg(any(shell_execute, shell_sidecar))]
-fn command_childs() -> &'static ChildStore {
+fn command_child_store() -> &'static ChildStore {
use once_cell::sync::Lazy;
static STORE: Lazy = Lazy::new(Default::default);
&STORE
@@ -160,12 +160,12 @@ impl Cmd {
let (mut rx, child) = command.spawn()?;
let pid = child.pid();
- command_childs().lock().unwrap().insert(pid, child);
+ command_child_store().lock().unwrap().insert(pid, child);
crate::async_runtime::spawn(async move {
while let Some(event) = rx.recv().await {
if matches!(event, crate::api::process::CommandEvent::Terminated(_)) {
- command_childs().lock().unwrap().remove(&pid);
+ command_child_store().lock().unwrap().remove(&pid);
}
let js = crate::api::ipc::format_callback(on_event_fn, &event)
.expect("unable to serialize CommandEvent");
@@ -184,7 +184,7 @@ impl Cmd {
pid: ChildId,
buffer: Buffer,
) -> super::Result<()> {
- if let Some(child) = command_childs().lock().unwrap().get_mut(&pid) {
+ if let Some(child) = command_child_store().lock().unwrap().get_mut(&pid) {
match buffer {
Buffer::Text(t) => child.write(t.as_bytes())?,
Buffer::Raw(r) => child.write(&r)?,
@@ -195,7 +195,7 @@ impl Cmd {
#[module_command_handler(shell_script)]
fn kill_child(_context: InvokeContext, pid: ChildId) -> super::Result<()> {
- if let Some(child) = command_childs().lock().unwrap().remove(&pid) {
+ if let Some(child) = command_child_store().lock().unwrap().remove(&pid) {
child.kill()?;
}
Ok(())
diff --git a/core/tauri/src/hooks.rs b/core/tauri/src/hooks.rs
index de6cc4da8..32877d616 100644
--- a/core/tauri/src/hooks.rs
+++ b/core/tauri/src/hooks.rs
@@ -18,7 +18,7 @@ use tauri_macros::default_runtime;
pub type SetupHook =
Box) -> Result<(), Box> + Send>;
-/// A closure that is run everytime Tauri receives a message it doesn't explicitly handle.
+/// A closure that is run every time Tauri receives a message it doesn't explicitly handle.
pub type InvokeHandler = dyn Fn(Invoke) + Send + Sync + 'static;
/// A closure that is responsible for respond a JS message.
diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs
index a135e4e31..112325fc7 100644
--- a/core/tauri/src/manager.rs
+++ b/core/tauri/src/manager.rs
@@ -215,7 +215,7 @@ pub struct InnerWindowManager {
pub(crate) tray_icon: Option,
package_info: PackageInfo,
- /// The webview protocols protocols available to all windows.
+ /// The webview protocols available to all windows.
uri_scheme_protocols: HashMap>>,
/// The menu set to all windows.
menu: Option