cherry-studio/packages/catalog/web/components/ui
suyao 5b009769c3
feat: add utility functions for merging models and providers, including deep merge capabilities
- Implemented mergeObjects function to smartly merge objects, preserving existing values and allowing for configurable overwrite options.
- Added mergeModelsList and mergeProvidersList functions to handle merging of model and provider lists, respectively, with case-insensitive ID matching.
- Introduced preset merge strategies for common use cases.
- Created a new API route for syncing provider models, handling data import and merge operations.
- Developed ModelEditForm and ProviderEditForm components for editing model and provider details, respectively, with form validation and state management.
- Added UI components for labels, selects, and notifications to enhance user experience.
2025-12-24 01:29:07 +08:00
..
alert.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
badge.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
button.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
card.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
dialog.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
input.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
label.tsx feat: add utility functions for merging models and providers, including deep merge capabilities 2025-12-24 01:29:07 +08:00
pagination.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
select.tsx feat: add utility functions for merging models and providers, including deep merge capabilities 2025-12-24 01:29:07 +08:00
separator.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
sonner.tsx feat: add utility functions for merging models and providers, including deep merge capabilities 2025-12-24 01:29:07 +08:00
table.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00
textarea.tsx feat: implement API client with SWR integration for catalog management 2025-12-01 13:07:23 +08:00