Skip to content

Commit 9d2b802

Browse files
vasfvitortauri-bot
authored andcommitted
[ci] format
1 parent 06864f7 commit 9d2b802

18 files changed

+107
-87
lines changed

src/content/docs/features/autostart.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Install the autostart plugin to get started.
6565

6666
</Steps>
6767
</TabItem>
68+
6869
</Tabs>
6970

7071
## Usage

src/content/docs/features/barcode-scanner.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Install the barcode-scanner plugin to get started.
3939
pnpm="pnpm tauri add barcode-scanner"
4040
cargo="cargo tauri add barcode-scanner"
4141
/>
42-
42+
4343
</TabItem>
4444
<TabItem label="Manual">
4545
<Steps>
@@ -67,6 +67,7 @@ Install the barcode-scanner plugin to get started.
6767
/>
6868

6969
</Steps>
70+
7071
</TabItem>
7172
</Tabs>
7273

src/content/docs/features/cli.mdx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ Install the CLI plugin to get started.
2626
<Tabs>
2727
<TabItem label="Automatic">
2828

29-
Use your project's package manager to add the dependency:
29+
Use your project's package manager to add the dependency:
3030

31-
{' '}
31+
{' '}
3232

33-
<CommandTabs
34-
npm="npm run tauri add cli"
35-
yarn="yarn run tauri add cli"
36-
pnpm="pnpm tauri add cli"
37-
cargo="cargo tauri add cli"
38-
/>
33+
<CommandTabs
34+
npm="npm run tauri add cli"
35+
yarn="yarn run tauri add cli"
36+
pnpm="pnpm tauri add cli"
37+
cargo="cargo tauri add cli"
38+
/>
3939

4040
</TabItem>
4141
<TabItem label="Manual">
@@ -73,6 +73,7 @@ Install the CLI plugin to get started.
7373

7474
</Steps>
7575
</TabItem>
76+
7677
</Tabs>
7778

7879
## Base Configuration

src/content/docs/features/clipboard.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Install the clipboard plugin to get started.
5656

5757
</Steps>
5858
</TabItem>
59+
5960
</Tabs>
6061

6162
## Usage

src/content/docs/features/deep-linking.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Install the deep-link plugin to get started.
6767
/>
6868

6969
</Steps>
70+
7071
</TabItem>
7172
</Tabs>
7273

src/content/docs/features/dialog.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Install the dialog plugin to get started.
2929
cargo="cargo tauri add dialog" />
3030

3131
</TabItem>
32-
<TabItem label="Manual">
32+
<TabItem label="Manual">
3333
<Steps>
3434

3535
1. Run `cargo add tauri-plugin-dialog` to add the plugin to the project's dependencies in `Cargo.toml`.
@@ -58,6 +58,7 @@ Install the dialog plugin to get started.
5858

5959
</Steps>
6060
</TabItem>
61+
6162
</Tabs>
6263

6364
## Usage

src/content/docs/features/file-system.mdx

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -26,52 +26,53 @@ Install the fs plugin to get started.
2626
<Tabs>
2727
<TabItem label="Automatic" >
2828

29-
Use your project's package manager to add the dependency:
30-
31-
{ ' ' }
32-
33-
<CommandTabs
34-
npm="npm run tauri add fs"
35-
yarn="yarn run tauri add fs"
36-
pnpm="pnpm tauri add fs"
37-
cargo="cargo tauri add fs"
38-
/>
39-
40-
</TabItem>
41-
<TabItem label = "Manual">
42-
<Steps>
43-
44-
1. Install the fs plugin by adding the following to your `Cargo.toml` file:
45-
46-
```toml title="src-tauri/Cargo.toml"
47-
[dependencies]
48-
tauri-plugin-fs = "2.0.0-beta"
49-
# alternatively with Git:
50-
tauri-plugin-fs = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
51-
```
52-
53-
2. Modify `lib.rs` to initialize the plugin:
54-
55-
```rust title="src-tauri/src/lib.rs" ins={4}
56-
#[cfg_attr(mobile, tauri::mobile_entry_point)]
57-
fn run() {
58-
tauri::Builder::default()
59-
.plugin(tauri_plugin_fs::init())
60-
.run(tauri::generate_context!())
61-
.expect("error while running tauri application");
62-
}
63-
```
64-
65-
3. Install the JavaScript Guest bindings using your preferred JavaScript package manager:
66-
67-
<CommandTabs
68-
npm = "npm install @tauri-apps/plugin-fs"
69-
yarn = "yarn add @tauri-apps/plugin-fs"
70-
pnpm = "pnpm add @tauri-apps/plugin-fs"
71-
/>
72-
73-
</Steps>
74-
</TabItem>
29+
Use your project's package manager to add the dependency:
30+
31+
{ ' ' }
32+
33+
<CommandTabs
34+
npm="npm run tauri add fs"
35+
yarn="yarn run tauri add fs"
36+
pnpm="pnpm tauri add fs"
37+
cargo="cargo tauri add fs"
38+
/>
39+
40+
</TabItem>
41+
<TabItem label = "Manual">
42+
<Steps>
43+
44+
1. Install the fs plugin by adding the following to your `Cargo.toml` file:
45+
46+
```toml title="src-tauri/Cargo.toml"
47+
[dependencies]
48+
tauri-plugin-fs = "2.0.0-beta"
49+
# alternatively with Git:
50+
tauri-plugin-fs = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
51+
```
52+
53+
2. Modify `lib.rs` to initialize the plugin:
54+
55+
```rust title="src-tauri/src/lib.rs" ins={4}
56+
#[cfg_attr(mobile, tauri::mobile_entry_point)]
57+
fn run() {
58+
tauri::Builder::default()
59+
.plugin(tauri_plugin_fs::init())
60+
.run(tauri::generate_context!())
61+
.expect("error while running tauri application");
62+
}
63+
```
64+
65+
3. Install the JavaScript Guest bindings using your preferred JavaScript package manager:
66+
67+
<CommandTabs
68+
npm = "npm install @tauri-apps/plugin-fs"
69+
yarn = "yarn add @tauri-apps/plugin-fs"
70+
pnpm = "pnpm add @tauri-apps/plugin-fs"
71+
/>
72+
73+
</Steps>
74+
</TabItem>
75+
7576
</Tabs>
7677

7778
## Usage

src/content/docs/features/global-shortcut.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Install the global-shortcut plugin to get started.
7171
/>
7272

7373
</Steps>
74+
7475
</TabItem>
7576
</Tabs>
7677

src/content/docs/features/http-client.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Install the http plugin to get started.
5555

5656
</Steps>
5757
</TabItem>
58+
5859
</Tabs>
5960

6061
## Usage
@@ -70,11 +71,11 @@ The http plugin is available in both as an JavaScript API and in Rust as a [reqw
7071
```json
7172
//tauri.conf.json
7273
{
73-
"plugins": {
74-
"http": {
75-
"scope": ["http://my.api.host/*"]
76-
}
77-
}
74+
"plugins": {
75+
"http": {
76+
"scope": ["http://my.api.host/*"]
77+
}
78+
}
7879
}
7980
```
8081

@@ -85,7 +86,7 @@ The http plugin is available in both as an JavaScript API and in Rust as a [reqw
8586

8687
// Send a GET request
8788
const response = await fetch('http://my.api.host/data.json', {
88-
method: 'GET',
89+
method: 'GET',
8990
});
9091
console.log(response.status); // e.g. 200
9192
console.log(response.statusText); // e.g. "OK"

src/content/docs/features/localhost.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ This plugin brings considerable security risks and you should only use it if you
2424
## Setup
2525

2626
_This plugin requires a Rust version of at least **1.75**_
27+
2728
<Steps>
2829

2930
1. Install the localhost plugin by adding the following to your `Cargo.toml` file:

0 commit comments

Comments
 (0)