Commit Graph

22 Commits

Author SHA1 Message Date
Amr Bashir
354be36d4e refactor(core)!: pass webview label to uri scheme protocol handlers (#11163)
* refactor!(core): pass webview label to uri scheme protocol handlers

close #10691

* Add `UriSchemeContext`

* doctests
2024-09-29 07:41:26 -03:00
Amr Bashir
ad83d41cb5 chore: cleanup and simplify examples (#10743) 2024-08-27 01:25:36 +03:00
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
Amr Bashir
bcc63bf36d chore(examples/streaming): use get getrandom to generate boundary (#9546) 2024-05-28 11:50:55 -03:00
Amr Bashir
4b75834a41 chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
Amr Bashir
a68ccaf59a fix: skip leading slash for asset protocol, closes #7815 (#7822)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-09-12 16:57:11 -03:00
Lucas Fernandes Nogueira
0d63732b96 refactor(core): allow custom protocol handler to resolve async (#7754) 2023-09-06 15:53:03 -03:00
Amr Bashir
45330e3819 fix(core): rewrite asset protocol streaming, closes #6375 (#6390)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-05-23 15:30:31 -03:00
Lucas Fernandes Nogueira
46e6187c89 chore: update license year (#6311) 2023-02-19 10:17:49 -03:00
Amr Bashir
f6c3ea6faa chore: simplify windows_subsystem attribute (#6273) 2023-02-18 16:23:09 -03:00
Lucas Nogueira
015020760a chore: fix clippy warnings 2022-12-15 18:03:28 -03:00
Lucas Nogueira
50fbd49273 chore(examples): simplify streaming example code, closes #5670 2022-11-22 10:47:03 -03:00
Lucas Fernandes Nogueira
9b1a6a1c02 fix(core): set correct mimetype for asset protocol streams, #5203 (#5536) 2022-11-04 12:35:45 -03:00
Lucas Fernandes Nogueira
2901145c49 chore: update license headers (#5067) 2022-08-28 15:13:21 -03:00
Amr Bashir
9105588373 feat: add implicit default menu for macOS only, closes #4551 (#4570)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-07-03 20:26:32 -03:00
Lucas Fernandes Nogueira
5105b428c4 feat(cli): change app template to only set default menu on macOS (#4518) 2022-06-29 14:03:42 -03:00
Amr Bashir
4c4acc3094 feat: implement Default for Menu, closes #2398 (#4291)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-06-15 10:51:40 -03:00
Lucas Nogueira
c479922f9a refactor: use strip_prefix to remove request uri domain, ref #4132 2022-05-24 16:57:02 -03:00
Lucas Fernandes Nogueira
43daeafd73 refactor: cleanup logic to get path from protocol req url, closes #4132 (#4192) 2022-05-23 09:37:50 -03:00
Lucas Nogueira
5666c0bce8 fix(examples): properly load request path in streaming example 2022-05-01 20:46:37 -03:00
Lucas Nogueira
30c38a50ee fix(examples): streaming video download link 2022-04-03 10:20:45 -03:00
Lucas Fernandes Nogueira
f1637d62df refactor(examples): remove unused files (#3762) 2022-03-23 20:45:43 -03:00