tauri/examples/api
The1111mp dd4f13ce4b
feat: add set_dock_visibility method (#13185)
* feat: add `set_dock_visibility` method

Signed-off-by: The1111mp <The1111mp@outlook.com>

* add api

* retain focus

* fmt

* make SetDockVisibility message conditional (macos only)

* lint

---------

Signed-off-by: The1111mp <The1111mp@outlook.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2025-04-11 15:13:07 -03:00
..
dist chore: cleanup and simplify examples (#10743) 2024-08-27 01:25:36 +03:00
isolation-dist build: migrate repo to use pnpm as the package manager (#10607) 2024-08-16 23:04:08 -03:00
public refactor(examples/api): new look (#4465) 2022-07-03 22:15:23 -03:00
src feat: add set_dock_visibility method (#13185) 2025-04-11 15:13:07 -03:00
src-tauri feat: add set_dock_visibility method (#13185) 2025-04-11 15:13:07 -03:00
.gitignore chore: cleanup and simplify examples (#10743) 2024-08-27 01:25:36 +03:00
.setup-cross.sh fix(cross): Fix docker image and cross setup (#8094) 2023-10-26 13:58:56 -03:00
.taurignore feat(cli): automatically use .taurignore, ref #4617 (#4623) 2022-07-28 18:58:38 -03:00
index.html build: migrate repo to use pnpm as the package manager (#10607) 2024-08-16 23:04:08 -03:00
jsconfig.json refactor(core&api)!: hide internal functions and reuse them in api.js & rename tauri module to primitives (#7942) 2023-10-17 09:40:20 -03:00
package.json chore(deps-dev): bump vite from 6.2.5 to 6.2.6 (#13206) 2025-04-11 23:48:57 +08:00
README.md chore: Fix example readme instructions. Add pnpm build:debug. (#12983) 2025-03-15 12:51:40 -03:00
screenshot.png fix(examples): icon transparency (#2450) 2021-08-16 13:01:53 -03:00
svelte.config.js chore: cleanup and simplify examples (#10743) 2024-08-27 01:25:36 +03:00
unocss.config.js chore(example): refactor api example (#10228) 2024-07-09 12:00:06 +03:00
vite.config.js style: fix Vite and React branding (#12768) 2025-02-22 11:30:31 +01:00

API example

This example demonstrates Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the testbed of our development process. In the future, this app will be used on Tauri's integration tests.

App screenshot

Running the example

  • Compile Tauri go to root of the Tauri repo and run:
pnpm i
pnpm build:debug
  • Run the app in development mode (Run inside of this folder examples/api/)
$ pnpm tauri dev
  • Build an run the release app (Run inside of this folder examples/api/)
$ pnpm tauri build
$ ./src-tauri/target/release/app