mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
🌐 chore: translate non-English comments to English in packages (#13427)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
967302269e
commit
993dfe1bb0
10 changed files with 17 additions and 17 deletions
|
|
@ -294,7 +294,7 @@ async function main() {
|
|||
}
|
||||
|
||||
state = result.newState;
|
||||
nextContext = result.nextContext; // 使用返回的 nextContext
|
||||
nextContext = result.nextContext; // use the returned nextContext
|
||||
}
|
||||
|
||||
console.log(`\n📊 总共执行了 ${state.stepCount} 个步骤`);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export const ExecTaskInspector = memo<BuiltinInspectorProps<ExecTaskParams, Exec
|
|||
|
||||
const description = args?.description || partialArgs?.description;
|
||||
|
||||
// 参数还在流式传输且没有 description
|
||||
// Arguments are still streaming and no description yet
|
||||
if (isArgumentsStreaming) {
|
||||
if (!description)
|
||||
return (
|
||||
|
|
@ -32,7 +32,7 @@ export const ExecTaskInspector = memo<BuiltinInspectorProps<ExecTaskParams, Exec
|
|||
);
|
||||
}
|
||||
|
||||
// 有 description 时,根据 loading 状态显示不同文案
|
||||
// When description is available, show different text based on loading state
|
||||
if (description) {
|
||||
return (
|
||||
<div className={cx(inspectorTextStyles.root, isLoading && shinyTextStyles.shinyText)}>
|
||||
|
|
|
|||
|
|
@ -8,18 +8,18 @@ const formatTimeout = (ms?: number) => {
|
|||
|
||||
const seconds = ms / 1000;
|
||||
|
||||
// >= 60s 显示分钟
|
||||
// >= 60s show minutes
|
||||
if (seconds >= 60) {
|
||||
const minutes = seconds / 60;
|
||||
return `${minutes.toFixed(1)}min`;
|
||||
}
|
||||
|
||||
// >= 1s 显示秒
|
||||
// >= 1s show seconds
|
||||
if (seconds >= 1) {
|
||||
return `${seconds.toFixed(1)}s`;
|
||||
}
|
||||
|
||||
// < 1s 显示毫秒
|
||||
// < 1s show milliseconds
|
||||
return `${ms}ms`;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ const VideoItem = memo<SearchResultProps>(
|
|||
({ content, url, iframeSrc, highlight, score, engines, title, category, ...res }) => {
|
||||
const [expand, setExpand] = useState(false);
|
||||
|
||||
const videoUrl = iframeSrc || (res as any).iframe_src; // iframe_src 是 SearchXNG 的字段,兼容老的数据结构
|
||||
const videoUrl = iframeSrc || (res as any).iframe_src; // iframe_src is a SearchXNG field, for backward compatibility with old data structure
|
||||
return (
|
||||
<Flexbox gap={12}>
|
||||
<Flexbox className={styles.container} onClick={() => setExpand(!expand)}>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import Search from './Search';
|
|||
|
||||
const Inspector = memo<BuiltinPortalProps>(({ arguments: args, messageId, state, apiName }) => {
|
||||
switch (apiName) {
|
||||
// 兼容旧版数据
|
||||
// Backward compatibility for old data
|
||||
case WebBrowsingApiName.search: {
|
||||
return <Search messageId={messageId} query={args as SearchQuery} response={state} />;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export interface ProtocolBroadcastEvents {
|
|||
marketId?: string;
|
||||
/** Plugin ID */
|
||||
pluginId: string;
|
||||
/** MCP Schema 对象 */
|
||||
/** MCP Schema object */
|
||||
schema: McpInstallSchema;
|
||||
}) => void;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,13 +50,13 @@ export interface GroupSupervisorAgentInfo {
|
|||
* @example
|
||||
* ```typescript
|
||||
* const agents = [
|
||||
* { id: 'agt_xxx', title: '创意总监' },
|
||||
* { id: 'agt_yyy', title: '设计师' },
|
||||
* { id: 'agt_xxx', title: 'Creative Director' },
|
||||
* { id: 'agt_yyy', title: 'Designer' },
|
||||
* ];
|
||||
* const xml = buildGroupMembersXml(agents);
|
||||
* // Returns:
|
||||
* // <member name="创意总监" id="agt_xxx" />
|
||||
* // <member name="设计师" id="agt_yyy" />
|
||||
* // <member name="Creative Director" id="agt_xxx" />
|
||||
* // <member name="Designer" id="agt_yyy" />
|
||||
* ```
|
||||
*/
|
||||
export const buildGroupMembersXml = (agents: GroupSupervisorAgentInfo[]): string => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
export interface BriefAction {
|
||||
/** Action identifier, e.g. 'approve', 'reject', 'feedback' */
|
||||
key: string;
|
||||
/** Display label, e.g. "✅ 确认开始", "💬 修改意见" */
|
||||
/** Display label, e.g. "✅ Confirm Start", "💬 Revisions" */
|
||||
label: string;
|
||||
/**
|
||||
* Action type:
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export interface SkillResourceContent {
|
|||
size: number;
|
||||
}
|
||||
|
||||
// ===== Skill Item (完整结构,用于详情查询) =====
|
||||
// ===== Skill Item (full structure, for detail queries) =====
|
||||
|
||||
export interface SkillItem {
|
||||
content?: string | null;
|
||||
|
|
@ -127,7 +127,7 @@ export interface SkillItem {
|
|||
zipFileHash?: string | null;
|
||||
}
|
||||
|
||||
// ===== Skill List Item (精简结构,用于列表查询) =====
|
||||
// ===== Skill List Item (simplified structure, for list queries) =====
|
||||
|
||||
export interface SkillListItem {
|
||||
createdAt: Date;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export default ({ token }: { prefixCls: string; token: Theme }) => css`
|
|||
}
|
||||
|
||||
body {
|
||||
/* 提高合成层级,强制硬件加速,否则会有渲染黑边出现 */
|
||||
/* Increase compositing layer, force hardware acceleration, otherwise render black edges will appear */
|
||||
will-change: opacity;
|
||||
transform: translateZ(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue