feat(deeplink): merge and display config in import dialog

Enhance import dialog to fetch and display complete config.
- Call mergeDeeplinkConfig API when config is present
- Add UTF-8 base64 decoding support for config content
- Add scrollable content area with custom scrollbar styling
- Show complete configuration before user confirms import
This commit is contained in:
YoVinchen
2025-11-22 18:05:52 +08:00
parent 2b1ae2aa71
commit d4cd8105d1
2 changed files with 49 additions and 4 deletions
+12
View File
@@ -30,6 +30,18 @@ export const deeplinkApi = {
return invoke("parse_deeplink", { url });
},
/**
* Merge configuration from Base64/URL into a deep link request
* This is used to show the complete configuration in the confirmation dialog
* @param request The deep link import request
* @returns Merged deep link request with config fields populated
*/
mergeDeeplinkConfig: async (
request: DeepLinkImportRequest,
): Promise<DeepLinkImportRequest> => {
return invoke("merge_deeplink_config", { request });
},
/**
* Import a provider from a deep link request
* @param request The deep link import request