// 应用申请子页面 — 应用部署、版本发布申请 import { useTranslation } from 'react-i18next'; import { ApprovalCategoryPage, type FormField } from './ApprovalCategoryPage'; function ApprovalAppPage() { const { t } = useTranslation(); const APP_FIELDS: FormField[] = [ { key: 'app_name', label: 'App', type: 'text', placeholder: 'user-service', required: true }, { key: 'git_url', label: 'Git URL', type: 'text', placeholder: 'https://github.com/org/repo.git', required: true }, { key: 'branch', label: 'Branch', type: 'text', defaultValue: 'main', required: true }, { key: 'language', label: 'Language', type: 'select', options: ['Java', 'Go', 'Python', 'Node.js', 'C++'], required: true }, { key: 'http_port', label: 'HTTP Port', type: 'number', placeholder: '8080' }, { key: 'env', label: 'Env', type: 'select', options: ['dev', 'staging', 'prod'], required: true }, { key: 'replicas', label: 'Replicas', type: 'number', defaultValue: 2, required: true }, { key: 'remark', label: 'Remark', type: 'textarea' }, ]; return ( ); } export { ApprovalAppPage };