tauri/examples
Lucas Fernandes Nogueira fedf93eb7e
refactor(core): return 200 on any IPC call, closes #10286 (#10585)
* refactor(core): return 200 on any IPC call, closes #10286

By default the webview prints a `Failed to load resource: the server responded with a status of 400 (Bad Request) ipc://localhost` error message when a command returns an error, which is confusing to users.

This changes the IPC to return status 200 on any call, with a header to indicate whether the result was ok or not. This removes the console error, which would only log the actual error result if it isn't caught by the user.

* add change file

* apply code review changes
2024-08-13 08:39:20 -03:00
..
.icons fix(cli): corrupted icons in bundled macOS icons (#5698) 2022-11-28 08:57:32 -03:00
api fix(cli): make app_dir() logic consistent (#10418) 2024-08-11 09:44:15 -03:00
commands style: simplify string formatting (#10259) 2024-07-12 13:33:14 +03:00
file-associations chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
helloworld chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
isolation chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
multiwebview chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
multiwindow feat!: add Listener and Emitter traits (#9640) 2024-07-12 09:01:40 -03:00
navigation chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
parent-window feat!: add Listener and Emitter traits (#9640) 2024-07-12 09:01:40 -03:00
plugins/tauri-plugin-example chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
resources refactor: core plugin permissions are now prefixed core:, closes #10359 (#10390) 2024-07-30 07:52:43 -03:00
run-iteration chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
splashscreen feat(core): allow swapping the assets implementation (#9141) 2024-03-11 11:07:15 -03:00
state fix(example/state): correct invoke method path to __TAURI__.core.invoke() (#9817) 2024-05-19 11:16:23 +02:00
streaming refactor(core): return 200 on any IPC call, closes #10286 (#10585) 2024-08-13 08:39:20 -03:00
web chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
workspace chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
README.md docs(examples): add missing Readme and clarify existing (#3327) 2022-02-04 17:56:57 -03:00

Examples

Following directories contain examples of tauri app functionality.

There are different execution steps depending on the example. See each directory README.md for execution method.