File tree Expand file tree Collapse file tree 8 files changed +8
-129
lines changed Expand file tree Collapse file tree 8 files changed +8
-129
lines changed Original file line number Diff line number Diff line change @@ -19,30 +19,13 @@ Install the clipboard plugin to get started.
1919<Tabs >
2020 <TabItem label = " Automatic" >
2121
22- 1 . Use your project's package manager to add the dependency:
22+ Use your project's package manager to add the dependency:
2323
2424 <CommandTabs npm = " npm run tauri add clipboard-manager"
2525 yarn = " yarn run tauri add clipboard-manager"
2626 pnpm = " pnpm tauri add clipboard-manager"
2727 cargo = " cargo tauri add clipboard-manager" />
2828
29- 2 . Modify ` lib.rs ` to initialize the plugin:
30-
31- { /* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */ }
32-
33- ``` rust
34- #[cfg_attr(mobile, tauri:: mobile_entry_point)]
35- pub fn run () {
36- tauri :: Builder :: default ()
37- // Initialize the plugin
38- . plugin (tauri_plugin_clipboard_manager :: init ())
39- . run (tauri :: generate_context! ())
40- . expect (" error while running tauri application" );
41- }
42- ```
43-
44-
45-
4629 </TabItem >
4730 <TabItem label = " Manual" >
4831
Original file line number Diff line number Diff line change @@ -21,25 +21,13 @@ Install the dialog plugin to get started.
2121<Tabs >
2222 <TabItem label = " Automatic" >
2323
24- 1 . Use your project's package manager to add the dependency:
24+ Use your project's package manager to add the dependency:
2525
2626 <CommandTabs npm = " npm run tauri add dialog"
2727 yarn = " yarn run tauri add dialog"
2828 pnpm = " pnpm tauri add dialog"
2929 cargo = " cargo tauri add dialog" />
3030
31- 2 . Modify ` lib.rs ` to initialize the plugin:
32-
33- ``` rust
34- #[cfg_attr(mobile, tauri:: mobile_entry_point)]
35- pub fn run () {
36- tauri :: Builder :: default ()
37- // Initialize the plugin
38- . plugin (tauri_plugin_dialog :: init ())
39- . run (tauri :: generate_context! ())
40- . expect (" error while running tauri application" );
41- }
42- ```
4331 </TabItem >
4432 <TabItem label = " Manual" >
4533
Original file line number Diff line number Diff line change @@ -18,29 +18,13 @@ Install the http plugin to get started.
1818<Tabs >
1919 <TabItem label = " Automatic" >
2020
21- 1 . Use your project's package manager to add the dependency:
21+ Use your project's package manager to add the dependency:
2222
2323 <CommandTabs npm = " npm run tauri add http"
2424 yarn = " yarn run tauri add http"
2525 pnpm = " pnpm tauri add http"
2626 cargo = " cargo tauri add http" />
2727
28- 2 . Modify ` lib.rs ` to initialize the plugin:
29-
30- { /* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */ }
31-
32- ``` rust ins={6}
33- // lib.rs
34- #[cfg_attr(mobile, tauri:: mobile_entry_point)]
35- pub fn run () {
36- tauri :: Builder :: default ()
37- // Initialize the plugin
38- . plugin (tauri_plugin_http :: init ())
39- . run (tauri :: generate_context! ())
40- . expect (" error while running tauri application" );
41- }
42- ```
43-
4428 </TabItem >
4529 <TabItem label = " Manual" >
4630
Original file line number Diff line number Diff line change @@ -20,28 +20,13 @@ Install the notifications plugin to get started.
2020<Tabs >
2121 <TabItem label = " Automatic" >
2222
23- 1 . Use your project's package manager to add the dependency:
23+ Use your project's package manager to add the dependency:
2424
2525 <CommandTabs npm = " npm run tauri add notification"
2626 yarn = " yarn run tauri add notification"
2727 pnpm = " pnpm tauri add notification"
2828 cargo = " cargo tauri add notification" />
2929
30- 2 . Modify ` lib.rs ` to initialize the plugin:
31-
32- { /* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */ }
33-
34- ``` rust
35- #[cfg_attr(mobile, tauri:: mobile_entry_point)]
36- pub fn run () {
37- tauri :: Builder :: default ()
38- // Initialize the plugin
39- . plugin (tauri_plugin_notification :: init ())
40- . run (tauri :: generate_context! ())
41- . expect (" error while running tauri application" );
42- }
43- ```
44-
4530 </TabItem >
4631 <TabItem label = " Manual" >
4732
Original file line number Diff line number Diff line change @@ -18,28 +18,13 @@ Install the OS Information plugin to get started.
1818<Tabs >
1919 <TabItem label = " Automatic" >
2020
21- 1 . Use your project's package manager to add the dependency:
21+ Use your project's package manager to add the dependency:
2222
2323 <CommandTabs npm = " npm run tauri add os"
2424 yarn = " yarn run tauri add os"
2525 pnpm = " pnpm tauri add os"
2626 cargo = " cargo tauri add os" />
2727
28- 2 . Modify ` lib.rs ` to initialize the plugin:
29-
30- { /* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */ }
31-
32- ``` rust
33- #[cfg_attr(mobile, tauri:: mobile_entry_point)]
34- pub fn run () {
35- tauri :: Builder :: default ()
36- // Initialize the plugin
37- . plugin (tauri_plugin_os :: init ())
38- . run (tauri :: generate_context! ())
39- . expect (" error while running tauri application" );
40- }
41- ```
42-
4328 </TabItem >
4429 <TabItem label = " Manual" >
4530
Original file line number Diff line number Diff line change @@ -18,29 +18,13 @@ Install the plugin-process to get started.
1818<Tabs >
1919 <TabItem label = " Automatic" >
2020
21- 1 . Use your project's package manager to add the dependency:
21+ Use your project's package manager to add the dependency:
2222
2323 <CommandTabs npm = " npm run tauri add process"
2424 yarn = " yarn run tauri add process"
2525 pnpm = " pnpm tauri add process"
2626 cargo = " cargo tauri add process" />
2727
28- 2 . Modify ` lib.rs ` to initialize the plugin:
29-
30- { /* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */ }
31-
32- ``` rust ins={6}
33- // lib.rs
34- #[cfg_attr(mobile, tauri:: mobile_entry_point)]
35- pub fn run () {
36- tauri :: Builder :: default ()
37- // Initialize the plugin
38- . plugin (tauri_plugin_process :: init ())
39- . run (tauri :: generate_context! ())
40- . expect (" error while running tauri application" );
41- }
42- ```
43-
4428 </TabItem >
4529 <TabItem label = " Manual" >
4630
Original file line number Diff line number Diff line change @@ -20,28 +20,13 @@ Pour commencer, installez le plugin de notifications.
2020<Tabs >
2121 <TabItem label = " Automatic" >
2222
23- 1 . Utilisez le gestionnaire de package (package manager) de votre projet pour ajouter la dépendance:
23+ Utilisez le gestionnaire de package (package manager) de votre projet pour ajouter la dépendance:
2424
2525 <CommandTabs npm = " npm run tauri add notification"
2626 yarn = " yarn run tauri add notification"
2727 pnpm = " pnpm tauri add notification"
2828 cargo = " cargo tauri add notification" />
2929
30- 2 . Modifiez ` lib.rs ` pour initialiser le plugin:
31-
32- { /* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */ }
33-
34- ``` rust
35- #[cfg_attr(mobile, tauri:: mobile_entry_point)]
36- pub fn run () {
37- tauri :: Builder :: default ()
38- // Initialisation du plugin
39- . plugin (tauri_plugin_notification :: init ())
40- . run (tauri :: generate_context! ())
41- . expect (" error while running tauri application" );
42- }
43- ```
44-
4530 </TabItem >
4631 <TabItem label = " Manual" >
4732
Original file line number Diff line number Diff line change @@ -20,28 +20,13 @@ import Stub from '@components/Stub.astro';
2020<Tabs >
2121 <TabItem label = " 自动" >
2222
23- 1 . 使用你的项目的包管理器以添加依赖:
23+ 使用你的项目的包管理器以添加依赖:
2424
2525 <CommandTabs npm = " npm run tauri plugin add notification"
2626 yarn = " yarn run tauri plugin add notification"
2727 pnpm = " pnpm tauri plugin add notification"
2828 cargo = " cargo tauri plugin add notification" />
2929
30- 2 . 修改 ` lib.rs ` 以初始化插件:
31-
32- { /* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */ }
33-
34- ``` rust
35- #[cfg_attr(mobile, tauri:: mobile_entry_point)]
36- pub fn run () {
37- tauri :: Builder :: default ()
38- // 初始化插件
39- . plugin (tauri_plugin_notification :: init ())
40- . run (tauri :: generate_context! ())
41- . expect (" error while running tauri application" );
42- }
43- ```
44-
4530 </TabItem >
4631 <TabItem label = " 手动" >
4732
You can’t perform that action at this time.
0 commit comments