mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user