Skip to content

Commit 7d58ce6

Browse files
dreyfus92tauri-bot
authored andcommitted
[ci] format
1 parent dfbb421 commit 7d58ce6

File tree

1 file changed

+45
-44
lines changed

1 file changed

+45
-44
lines changed

src/content/docs/features/stronghold.mdx

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -27,49 +27,50 @@ Install the stronghold plugin to get started.
2727
<TabItem label="Automatic" >
2828
Use your project's package manager to add the dependency:
2929

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

7576
## Usage
@@ -211,7 +212,7 @@ See [Access Control List](/references/v2/acl) for more information.
211212
```
212213

213214
| Permission | Description |
214-
|----------------------------------------|---------------------------------------------------------------------------|
215+
| -------------------------------------- | ------------------------------------------------------------------------- |
215216
| `stronghold:allow-create-client` | Enables the create_client command without any pre-configured scope. |
216217
| `stronghold:deny-create-client` | Denies the create_client command without any pre-configured scope. |
217218
| `stronghold:allow-destroy` | Enables the destroy command without any pre-configured scope. |

0 commit comments

Comments
 (0)