Ver Fonte

🔧 chore(claude): add git commands to allowed bash patterns
- 允许执行git add和git commit命令以支持版本控制操作

✨ feat(system-config): improve config value input component
- 将配置值输入框从Input替换为Textarea组件
- 增强长文本配置值的输入体验和显示效果

yourname há 1 mês atrás
pai
commit
5ce5cdc04b

+ 3 - 1
.claude/settings.local.json

@@ -49,7 +49,9 @@
       "Bash(pnpm --filter:*)",
       "Bash(tree:*)",
       "Bash(mv:*)",
-      "Bash(rm:*)"
+      "Bash(rm:*)",
+      "Bash(git add:*)",
+      "Bash(git commit:*)"
     ],
     "deny": [],
     "ask": []

+ 2 - 1
packages/system-config-management-ui-mt/src/components/SystemConfigManagement.tsx

@@ -3,6 +3,7 @@ import { useQuery, useMutation } from '@tanstack/react-query';
 import { Plus, Edit, Trash2, Search } from 'lucide-react';
 import { format } from 'date-fns';
 import { Input } from '@d8d/shared-ui-components/components/ui/input';
+import { Textarea } from '@d8d/shared-ui-components/components/ui/textarea';
 import { Button } from '@d8d/shared-ui-components/components/ui/button';
 import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@d8d/shared-ui-components/components/ui/card';
 import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@d8d/shared-ui-components/components/ui/table';
@@ -375,7 +376,7 @@ export const SystemConfigManagement: React.FC = () => {
                         配置值 <span className="text-red-500 ml-1">*</span>
                       </FormLabel>
                       <FormControl>
-                        <Input
+                        <Textarea
                           placeholder="请输入配置值"
                           {...field}
                           data-testid="config-value-input"