mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
feat: add configuration backup, sync, and version checker services
- Implemented ConfigBackupService for backing up local configuration files. - Added ConfigSyncService to download configuration files from GitHub with remote-first conflict resolution. - Created VersionChecker to check application version against the latest GitHub release with caching. - Introduced security validation utilities for input validation to prevent common vulnerabilities. - Developed utility functions to start and stop Docusaurus documentation server.
This commit is contained in:
@@ -24,11 +24,12 @@ import {
|
||||
MultiKeySettingsModal,
|
||||
ManageModelsModal,
|
||||
} from '@/components/api-settings';
|
||||
import { ConfigSync } from '@/components/shared';
|
||||
import { useProviders, useEndpoints, useModelPools, useCliSettings } from '@/hooks/useApiSettings';
|
||||
import { useNotifications } from '@/hooks/useNotifications';
|
||||
|
||||
// Tab type definitions
|
||||
type TabType = 'providers' | 'endpoints' | 'cache' | 'modelPools' | 'cliSettings';
|
||||
type TabType = 'providers' | 'endpoints' | 'cache' | 'modelPools' | 'cliSettings' | 'configSync';
|
||||
|
||||
export function ApiSettingsPage() {
|
||||
const { formatMessage } = useIntl();
|
||||
@@ -207,6 +208,7 @@ export function ApiSettingsPage() {
|
||||
{ value: 'cache', label: formatMessage({ id: 'apiSettings.tabs.cache' }) },
|
||||
{ value: 'modelPools', label: formatMessage({ id: 'apiSettings.tabs.modelPools' }) },
|
||||
{ value: 'cliSettings', label: formatMessage({ id: 'apiSettings.tabs.cliSettings' }) },
|
||||
{ value: 'configSync', label: formatMessage({ id: 'apiSettings.tabs.configSync' }) || 'Config Sync' },
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -256,6 +258,12 @@ export function ApiSettingsPage() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{activeTab === 'configSync' && (
|
||||
<div className="mt-4">
|
||||
<ConfigSync />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Modals */}
|
||||
<ProviderModal
|
||||
open={providerModalOpen}
|
||||
|
||||
Reference in New Issue
Block a user