cherry-studio/src/main
beyondkmp ff72c007c0
feat: add data parsing functionality in handleProvidersProtocolUrl (#8218)
* feat: add data parsing functionality in handleProvidersProtocolUrl

- Introduced a new ParseData function to decode and parse base64 encoded data from the URL parameters.
- Added error handling to log when data is null or invalid, improving robustness of the handleProvidersProtocolUrl function.

* fix: update data parsing in handleProvidersProtocolUrl and ProvidersList

- Modified ParseData function to return a JSON string instead of an object for consistency.
- Simplified data extraction in ProvidersList by directly parsing the addProviderData without base64 decoding, improving readability and performance.

* fix: improve data parsing in handleProvidersProtocolUrl

- Updated ParseData function to log the parsed result for better debugging.
- Enhanced data extraction by replacing URL-safe characters back to their original form before parsing, ensuring accurate data retrieval.

* fix: enhance error logging in ParseData function

- Updated the ParseData function to log errors when parsing fails, improving debugging capabilities and robustness in handling invalid data.

* format code
2025-07-17 13:15:29 +08:00
..
configs feat: SelectionAssistant macOS version / 划词助手macOS版 (#7561) 2025-07-03 14:31:31 +08:00
integration/nutstore/sso/lib build: remove sentry integration 2025-04-24 11:48:53 +08:00
knowledage [1.5.0-rc] Feat/memory (#7689) 2025-07-15 10:24:41 +08:00
knowledge feat: enhance proxy management and configuration (#8164) 2025-07-16 21:46:06 +08:00
mcpServers feat: implement Python MCP server using existing Pyodide infrastructure (#7506) 2025-06-25 18:21:10 +08:00
services feat: add data parsing functionality in handleProvidersProtocolUrl (#8218) 2025-07-17 13:15:29 +08:00
utils [1.5.0-rc] feat(MCP): Add DXT format support for MCP server installation (#7618) 2025-07-14 22:37:56 +08:00
bootstrap.ts feat: Implement occupied directories handling during data copy (#7485) 2025-06-25 00:39:28 +08:00
config.ts feat: Add app data path selection and relaunch functionality (#6096) 2025-06-18 17:39:26 +08:00
constant.ts feat: support portable config dir (#5039) 2025-04-24 17:23:56 +08:00
electron.d.ts feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00
env.d.ts feat: added vite_main_bundle_id config and improved code cleanliness 2024-09-15 10:35:02 +08:00
index.ts fix: [Linux] support Linux Wayland global shortcuts (#8080) 2025-07-13 00:30:01 +08:00
ipc.ts feat: enhance proxy management and configuration (#8164) 2025-07-16 21:46:06 +08:00