mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 23:22:05 +08:00
refactor: Clean up JSON structure and improve readability in locale files
This commit is contained in:
parent
87f3628b49
commit
21c436d900
19
CLAUDE.md
19
CLAUDE.md
@ -21,13 +21,18 @@ This file provides guidance to AI coding assistants when working with code in th
|
|||||||
|
|
||||||
## Development Commands
|
## Development Commands
|
||||||
|
|
||||||
- **Install**: `yarn install`
|
- **Install**: `yarn install` - Install all project dependencies
|
||||||
- **Development**: `yarn dev` - Runs Electron app in development mode
|
- **Development**: `yarn dev` - Runs Electron app in development mode with hot reload
|
||||||
- **Debug**: `yarn debug` - Starts with debugging enabled, use chrome://inspect
|
- **Debug**: `yarn debug` - Starts with debugging enabled, use `chrome://inspect` to attach debugger
|
||||||
- **Build Check**: `yarn build:check` - REQUIRED before commits (lint + test + typecheck), if having i18n sort issues, run `yarn i18n:sync` first to sync template.
|
- **Build Check**: `yarn build:check` - **REQUIRED** before commits (lint + test + typecheck)
|
||||||
- **Test**: `yarn test` - Run all tests (Vitest)
|
- If having i18n sort issues, run `yarn i18n:sync` first to sync template
|
||||||
- **Single Test**: `yarn test:main` or `yarn test:renderer`
|
- If having formatting issues, run `yarn format` first
|
||||||
- **Lint**: `yarn lint` - Fix linting issues and run typecheck
|
- **Test**: `yarn test` - Run all tests (Vitest) across main and renderer processes
|
||||||
|
- **Single Test**:
|
||||||
|
- `yarn test:main` - Run tests for main process only
|
||||||
|
- `yarn test:renderer` - Run tests for renderer process only
|
||||||
|
- **Lint**: `yarn lint` - Fix linting issues and run TypeScript type checking
|
||||||
|
- **Format**: `yarn format` - Auto-format code using Biome
|
||||||
|
|
||||||
## Project Architecture
|
## Project Architecture
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,7 @@
|
|||||||
"test:e2e": "yarn playwright test",
|
"test:e2e": "yarn playwright test",
|
||||||
"test:lint": "oxlint --deny-warnings && eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --cache",
|
"test:lint": "oxlint --deny-warnings && eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --cache",
|
||||||
"test:scripts": "vitest scripts",
|
"test:scripts": "vitest scripts",
|
||||||
"lint": "oxlint --fix && eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --cache && yarn typecheck && yarn check:i18n",
|
"lint": "oxlint --fix && eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --cache && yarn typecheck && yarn check:i18n && yarn format:check",
|
||||||
"format": "biome format --write && biome lint --write",
|
"format": "biome format --write && biome lint --write",
|
||||||
"format:check": "biome format && biome lint",
|
"format:check": "biome format && biome lint",
|
||||||
"prepare": "git config blame.ignoreRevsFile .git-blame-ignore-revs && husky",
|
"prepare": "git config blame.ignoreRevsFile .git-blame-ignore-revs && husky",
|
||||||
|
|||||||
@ -1,10 +1,5 @@
|
|||||||
import { Input, Tooltip } from '@heroui/react'
|
import { Input, Tooltip } from '@heroui/react'
|
||||||
import {
|
import { AgentConfiguration, AgentConfigurationSchema, GetAgentResponse, UpdateAgentForm } from '@renderer/types'
|
||||||
AgentConfiguration,
|
|
||||||
AgentConfigurationSchema,
|
|
||||||
GetAgentResponse,
|
|
||||||
UpdateAgentForm
|
|
||||||
} from '@renderer/types'
|
|
||||||
import { Info } from 'lucide-react'
|
import { Info } from 'lucide-react'
|
||||||
import { useCallback, useEffect, useState } from 'react'
|
import { useCallback, useEffect, useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
@ -83,9 +78,7 @@ export const AgentAdvanceSettings: React.FC<AgentAdvanceSettingsProps> = ({ agen
|
|||||||
}}
|
}}
|
||||||
aria-label={t('agent.settings.advance.maxTurns.label')}
|
aria-label={t('agent.settings.advance.maxTurns.label')}
|
||||||
/>
|
/>
|
||||||
<span className="text-foreground-500 text-xs">
|
<span className="text-foreground-500 text-xs">{t('agent.settings.advance.maxTurns.helper')}</span>
|
||||||
{t('agent.settings.advance.maxTurns.helper')}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</SettingsItem>
|
</SettingsItem>
|
||||||
</SettingsContainer>
|
</SettingsContainer>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user