mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
fix(docs): plugin usage examples using wrong package name (#527)
This commit is contained in:
committed by
GitHub
parent
6f01bc11ab
commit
7f2e2dd5b8
@@ -125,7 +125,7 @@ async function open(
|
||||
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope).
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { open } from '@tauri-apps/api/dialog';
|
||||
* import { open } from '@tauri-apps/plugin-dialog';
|
||||
* // Open a selection dialog for image files
|
||||
* const selected = await open({
|
||||
* multiple: true,
|
||||
@@ -145,7 +145,7 @@ async function open(
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { open } from '@tauri-apps/api/dialog';
|
||||
* import { open } from '@tauri-apps/plugin-dialog';
|
||||
* import { appDir } from '@tauri-apps/api/path';
|
||||
* // Open a selection dialog for directories
|
||||
* const selected = await open({
|
||||
@@ -187,7 +187,7 @@ async function open(
|
||||
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope).
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { save } from '@tauri-apps/api/dialog';
|
||||
* import { save } from '@tauri-apps/plugin-dialog';
|
||||
* const filePath = await save({
|
||||
* filters: [{
|
||||
* name: 'Image',
|
||||
@@ -212,7 +212,7 @@ async function save(options: SaveDialogOptions = {}): Promise<string | null> {
|
||||
* Shows a message dialog with an `Ok` button.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { message } from '@tauri-apps/api/dialog';
|
||||
* import { message } from '@tauri-apps/plugin-dialog';
|
||||
* await message('Tauri is awesome', 'Tauri');
|
||||
* await message('File not found', { title: 'Tauri', type: 'error' });
|
||||
* ```
|
||||
@@ -242,7 +242,7 @@ async function message(
|
||||
* Shows a question dialog with `Yes` and `No` buttons.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { ask } from '@tauri-apps/api/dialog';
|
||||
* import { ask } from '@tauri-apps/plugin-dialog';
|
||||
* const yes = await ask('Are you sure?', 'Tauri');
|
||||
* const yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });
|
||||
* ```
|
||||
@@ -272,7 +272,7 @@ async function ask(
|
||||
* Shows a question dialog with `Ok` and `Cancel` buttons.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { confirm } from '@tauri-apps/api/dialog';
|
||||
* import { confirm } from '@tauri-apps/plugin-dialog';
|
||||
* const confirmed = await confirm('Are you sure?', 'Tauri');
|
||||
* const confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });
|
||||
* ```
|
||||
|
||||
Reference in New Issue
Block a user