feat: Port path api to js#1006
Conversation
|
Would you please give some context behind the purpose of this PR and if it's related to prior discussion or an issue? |
|
The purpose it to make accessing these directories available from js side. I think it can ease the development for tauri users a bit, since they won't have to write this by themselves. No, this is not related to prior discussion but I think there is an issue open #929 . |
|
I pushed new changes but I am not sure if I named the endpoints and methods correctly. If you have some better names or other comments, let me know. |
| return await promisified<string>({ | ||
| cmd: 'getDirectory', | ||
| cmd: 'resolvePath', | ||
| path: '.', |
There was a problem hiding this comment.
@lucasfernog this will add a "dot" to the end of the path, I believe an empty string is better.
There was a problem hiding this comment.
One more thing, if a base directory doesn't exist, the user will get an error like this Path Error:unable to determine base dir path. In my opinion this will confuse the user as he doesn't know the underlying api is just resolving a path using a base dir, instead it would be better to just return null like tauri's Path api in rust.
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
wry has been supported http/socks5 proxy in [tauri-apps#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]>
* feat(wry): support proxy in wry runtime wry has been supported http/socks5 proxy in [#1006](tauri-apps/wry#1006), which has been merged in [commit 3cc4d79](tauri-apps/wry@3cc4d79). This patch aims to support its feature. Signed-off-by: lin fu <[email protected]> * Apply suggestions from code review * Apply suggestions from code review * Update core/tauri-runtime-wry/src/lib.rs * Update core/tauri/src/window/mod.rs * add macos-proxy flag * add change file * delete file * update change file * use macos-14 runner to test core --------- Signed-off-by: lin fu <[email protected]> Co-authored-by: Amr Bashir <[email protected]> Co-authored-by: Lucas Nogueira <[email protected]> Co-authored-by: Lucas Nogueira <[email protected]>
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
fix: #xxx[,#xxx], where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information:
Closes #929