项目初始化
This commit is contained in:
168
web/src/lang/backend/zh-cn/crud/crud.ts
Normal file
168
web/src/lang/backend/zh-cn/crud/crud.ts
Normal file
@@ -0,0 +1,168 @@
|
||||
export default {
|
||||
show: '在表格列中显示',
|
||||
width: '表格列宽度',
|
||||
sortable: '字段排序',
|
||||
operator: '公共搜索操作符',
|
||||
comSearchRender: '公共搜索输入框渲染方案',
|
||||
comSearchInputAttr: '公共搜索输入框扩展属性',
|
||||
comSearchInputAttrTip: '格式如:size=large,一行一个属性,远程下拉的公共搜索也渲染为远程下拉时,此处免填远程下拉组件的必填属性',
|
||||
render: '渲染方案',
|
||||
timeFormat: '格式化方式',
|
||||
step: '步进值',
|
||||
rows: '行数',
|
||||
'api url': '数据接口URL',
|
||||
'api url example': '比如: /admin/user.User/index',
|
||||
'remote-pk': '远程下拉 value 字段',
|
||||
'remote-field': '远程下拉 label 字段',
|
||||
'remote-url': '远程下拉数据接口 URL',
|
||||
'remote-controller': '关联表的控制器',
|
||||
'remote-table': '关联数据表',
|
||||
'remote-model': '关联表的模型',
|
||||
'remote-primary-table-alias': '主表别名',
|
||||
'relation-fields': '关联表显示字段',
|
||||
'image-multi': '图片多选上传',
|
||||
'file-multi': '文件多选上传',
|
||||
'select-multi': '下拉框多选',
|
||||
validator: '验证规则',
|
||||
validatorMsg: '验证错误提示',
|
||||
copy: '复制设计',
|
||||
'CRUD record': 'CRUD 记录',
|
||||
'Delete Code': '删除代码',
|
||||
'Start CRUD design with this record?': '以此记录开始 CRUD 设计?',
|
||||
'Are you sure to delete the generated CRUD code?': '确认删除生成的 CRUD 代码?',
|
||||
start: '开始',
|
||||
create: '新建',
|
||||
or: '或',
|
||||
'New background CRUD from zero': '从零新建后台 CRUD',
|
||||
'Select Data Table': '选择数据表',
|
||||
'Select a designed data table from the database': '从数据库中选择一个设计好的数据表',
|
||||
'Start with previously generated CRUD code': '从以往生成的 CRUD 代码开始',
|
||||
'Fast experience': '快速体验',
|
||||
'Please enter SQL': '请输入 SQL',
|
||||
'Please select a data table': '请选择数据表',
|
||||
'data sheet help': '数据表前缀需要同项目配置的数据表前缀一致',
|
||||
'data sheet': '数据表',
|
||||
'table create SQL': '建表 SQL',
|
||||
'Please enter the table creation SQL': '请输入建表 SQL',
|
||||
'experience 1 1': '准备好',
|
||||
'experience 1 2': '开发环境',
|
||||
'experience 1 3': '(站点端口为:1818)',
|
||||
'experience 2 1': '在本页点击',
|
||||
'experience 2 2': '选择数据表',
|
||||
'experience 2 3': '(可选择 test_build 数据表)',
|
||||
'experience 3 1': '点击',
|
||||
'experience 3 2': '生成 CRUD 代码',
|
||||
'experience 3 3': ',点击',
|
||||
'experience 3 4': '继续生成',
|
||||
'experience 4 1': '您当前未在开发环境,请 ',
|
||||
'experience 4 2': '搭建开发环境',
|
||||
'experience 4 3': ',或生成好代码之后点击右上角终端内的',
|
||||
'experience 4 4': '重新发布',
|
||||
// design
|
||||
'Name of the data table': '数据表的名称',
|
||||
'Data Table Notes': '数据表注释',
|
||||
'Generate CRUD code': '生成 CRUD 代码',
|
||||
'give up': '放弃',
|
||||
'Table Quick Search Fields': '表格快速搜索字段',
|
||||
'Table Default Sort Fields': '表格默认排序字段',
|
||||
'sort order': '排序方式',
|
||||
'sort order asc': 'asc-顺序',
|
||||
'sort order desc': 'desc-倒序',
|
||||
'Fields as Table Columns': '作为表格列的字段',
|
||||
'Fields as form items': '作为表单项的字段',
|
||||
'The relative path to the generated code': '生成代码的相对位置',
|
||||
'For quick combination code generation location, please fill in the relative path': '快速的组合代码生成位置,请填写相对路径',
|
||||
'Generated Controller Location': '生成的控制器位置',
|
||||
'Generated Data Model Location': '生成的数据模型位置',
|
||||
'Generated Validator Location': '生成的验证器位置',
|
||||
'WEB end view directory': 'WEB端视图目录',
|
||||
'Check model class': "请检查以上数据模型类中是否已经配置 protected $connection = '{connection}';",
|
||||
'There is no connection attribute in model class': '未配置请手动配置。',
|
||||
'Common model': '公共模型',
|
||||
'Advanced Configuration': '高级配置',
|
||||
'Common Fields': '常用字段',
|
||||
'Base Fields': '基础字段',
|
||||
'Advanced Fields': '高级字段',
|
||||
'Field Name': '字段名',
|
||||
'field comment': '字段注释',
|
||||
'Please select a field from the left first': '请先从左侧选择一个字段',
|
||||
Common: '常用',
|
||||
'Generate type': '生成类型',
|
||||
'Field comments (CRUD dictionary)': '字段注释(CRUD 字典)',
|
||||
'Field Properties': '字段属性',
|
||||
'Field Type': '字段类型',
|
||||
length: '长度',
|
||||
'decimal point': '小数点',
|
||||
'Field Defaults': '字段默认值',
|
||||
'Please input the default value': '请输入默认值',
|
||||
'Auto increment': '自动递增',
|
||||
Unsigned: '无符号',
|
||||
'Allow NULL': '允许 NULL',
|
||||
'Field Form Properties': '字段表单属性',
|
||||
'Field Table Properties': '字段表格属性',
|
||||
'Remote drop-down association information': '远程下拉关联信息',
|
||||
'Associated Data Table': '关联数据表',
|
||||
'Drop down value field': '下拉 value 字段',
|
||||
'Drop down label field': '下拉 label 字段',
|
||||
'Please select the value field of the select component': '请选择 select 组件的 value 字段',
|
||||
'Please select the label field of the select component': '请选择 select 组件的 label 字段',
|
||||
'Fields displayed in the table': '在表格中显示的字段',
|
||||
'Please select the fields displayed in the table': '请选择在表格中显示的字段',
|
||||
'Controller position': '控制器位置',
|
||||
'Please select the controller of the data table': '请选择数据表的控制器',
|
||||
'Data Model Location': '数据模型位置',
|
||||
'Please select the data model location of the data table': '请选择数据表的数据模型位置',
|
||||
'Data source configuration type': '数据源配置类型',
|
||||
'Fast configuration with generated controllers and models': '通过已生成好的控制器和模型快速配置',
|
||||
'Custom configuration': '自定义配置',
|
||||
'If the remote interface query involves associated query of multiple tables, enter the alias of the primary data table here':
|
||||
'如果远程接口查询数据时涉及多表关联查询,请在此填写主数据表的别名',
|
||||
'Confirm CRUD code generation': '确认生成 CRUD 代码',
|
||||
'Continue building': '继续生成',
|
||||
'Please enter the data table name!': '请输入数据表名!',
|
||||
'Please enter the correct table name!': '请输入正确的数据表名!',
|
||||
'Use lower case underlined for table names': '请使用小写加下划线作为表名,小写字母开头,可以带有数字',
|
||||
'Please design the primary key field!': '请设计主键字段!',
|
||||
'It is irreversible to give up the design Are you sure you want to give up?': '放弃设计不可逆,确定要放弃吗?',
|
||||
'There can only be one primary key field': '只可以有一个主键字段。',
|
||||
'Drag the left element here to start designing CRUD': '拖动左侧元素至此处以开始设计CRUD',
|
||||
'The data table already exists Continuing to generate will automatically delete the original table and create a new one!':
|
||||
'数据表已经存在,继续生成将自动删除原表并建立新的数据表(数据表是空的或您已勾选删表重建)!',
|
||||
'The controller already exists Continuing to generate will automatically overwrite the existing code!':
|
||||
'控制器已经存在,继续生成将自动覆盖已有代码!',
|
||||
'The menu rule with the same name already exists The menu and permission node will not be created in this generation':
|
||||
'同名菜单规则已经存在,本次生成将不会创建菜单和权限节点!',
|
||||
'For example: `user table` will be generated into `user management`': '如:会员表(将生成为会员管理)',
|
||||
'The remote pull-down will request the corresponding controller to obtain data, so it is recommended that you create the CRUD of the associated table':
|
||||
'远程下拉将请求该控制器的 index 方法来获取 value 和 label 字段数据,所以请先生成好被关联表的CRUD',
|
||||
'If it is left blank, the model of the associated table will be generated automatically If the table already has a model, it is recommended to select it to avoid repeated generation':
|
||||
'留空则自动生成关联表的模型,若该表已有模型,请选择好以免重复生成',
|
||||
'The field comment will be used as the CRUD dictionary, and will be identified as the field title before the colon, and as the data dictionary after the colon':
|
||||
'字段注释将作为 CRUD 字典,冒号前将识别为字段标题,冒号后识别为数据字典',
|
||||
'Field name is invalid It starts with a letter or underscore and cannot contain any character other than letters, digits, or underscores':
|
||||
'字段名 {field} 不符合规范,请以 字母、_ 开头,不能出现 字母、数字、下划线 以外的字符',
|
||||
'The selected table has already generated records You are advised to start with historical records':
|
||||
'选择的表已有成功生成的记录,建议从历史记录开始~',
|
||||
'Start with the historical record': '从历史记录开始',
|
||||
'Add field': '添加字段',
|
||||
'Modify field properties': '修改字段属性',
|
||||
'Modify field name': '修改字段名称',
|
||||
'Delete field': '删除字段',
|
||||
'Modify field order': '修改字段顺序',
|
||||
'First field': '第一个字段',
|
||||
After: '之后',
|
||||
'Table design change': '表设计变更',
|
||||
'Data table design changes preview': '数据表设计变更预览',
|
||||
designChangeTips: '取消勾选后,则该项变动不会尝试同步至数据表(通常用于已经手动修改过表结构等情况)',
|
||||
tableReBuild: '删表重建',
|
||||
tableReBuildBlockHelp: '不调整表结构,直接删除已有数据表并重建,此举可以确保CRUD代码/记录与数据表结构一致',
|
||||
Yes: '是',
|
||||
No: '否',
|
||||
'If the data is abnormal, repeat the previous step': '数据异常,请重做上步操作',
|
||||
'Field name duplication': '字段名称 {field} 重复!',
|
||||
'Design remote select tips':
|
||||
'将自动根据表名生成本字段的名称;确认生成时,字段名 user_id 生成的关联方法名为 user,字段名 developer_done_id 生成的关联方法名为 developerDone,请注意远程下拉字段的名称前缀不要重复',
|
||||
'Vite hot warning': '未找到 Vite 热更新服务,请在开发环境生成代码,或点击右上角的WEB终端重新发布',
|
||||
'Reset generate type attr': '字段生成类型已修改,是否将字段设计重置为新类型预设的方案?',
|
||||
'Design efficiency': '自行确定设计有效性',
|
||||
}
|
||||
51
web/src/lang/backend/zh-cn/crud/log.ts
Normal file
51
web/src/lang/backend/zh-cn/crud/log.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
export default {
|
||||
id: 'ID',
|
||||
table_name: '数据表名',
|
||||
comment: '表注释',
|
||||
table: '数据表数据',
|
||||
fields: '字段数据',
|
||||
sync: '是否上传',
|
||||
'sync no': '否',
|
||||
'sync yes': '是',
|
||||
status: '状态',
|
||||
delete: '删除代码',
|
||||
'status delete': '代码已删除',
|
||||
'status success': '成功',
|
||||
'status error': '失败',
|
||||
'status start': '生成中',
|
||||
create_time: '创建时间',
|
||||
'quick Search Fields': 'ID、表名、注释',
|
||||
'Upload the selected design records to the cloud for cross-device use': '上传选中的设计记录至云端以跨设备使用',
|
||||
'Design records that have been synchronized to the cloud': '已同步至云端的设计记录',
|
||||
'Cloud record': '云记录',
|
||||
Settings: '设置',
|
||||
'Login for backup design': '登录以备份设计',
|
||||
'CRUD design record synchronization scheme': 'CRUD 设计记录同步方案',
|
||||
Manual: '手动',
|
||||
automatic: '自动',
|
||||
'When automatically synchronizing records, share them to the open source community': '自动同步记录时分享至开源社区',
|
||||
'Not to share': '不分享',
|
||||
Share: '分享',
|
||||
'Enabling sharing can automatically earn community points during development': '开启分享可于开发同时自动获取社区积分',
|
||||
'The synchronized CRUD records are automatically resynchronized when they are updated': '已同步的 CRUD 记录被更新时自动重新同步',
|
||||
'Do not resynchronize': '不重新同步',
|
||||
'Automatic resynchronization': '自动重新同步',
|
||||
'No effective design': '无有效设计',
|
||||
'Number of fields': '字段数',
|
||||
'Upload type': '上传类型',
|
||||
Update: '更新',
|
||||
'New added': '新增',
|
||||
'Share to earn points': '分享获得积分',
|
||||
'Share to the open source community': '分享至开源社区',
|
||||
'No design record': '无设计记录',
|
||||
Field: '字段',
|
||||
'Field information': '字段信息',
|
||||
'No field': '无字段',
|
||||
'Field name': '字段名',
|
||||
Note: '注释',
|
||||
Type: '类型',
|
||||
Load: '载入',
|
||||
'Delete cloud records?': '删除云端记录?',
|
||||
'You can use the synchronized design records across devices':
|
||||
'您可以跨设备使用已同步的设计记录;选择手动同步时,系统不会主动收集任何数据,同时系统永远不会同步表内数据',
|
||||
}
|
||||
19
web/src/lang/backend/zh-cn/crud/state.ts
Normal file
19
web/src/lang/backend/zh-cn/crud/state.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export default {
|
||||
remarks: '备注',
|
||||
'Primary key': '主键',
|
||||
'Primary key (Snowflake ID)': '主键(雪花ID)',
|
||||
'Disable Search': '禁用搜索',
|
||||
'Weight (drag and drop sorting)': '权重(拖拽排序)',
|
||||
'Status:0=Disabled,1=Enabled': '状态:0=禁用,1=启用',
|
||||
'Remote Select (association table)': '远程下拉(关联表)',
|
||||
'Remote Select (Multi)': '远程下拉(关联多选)',
|
||||
'Radio:opt0=Option1,opt1=Option2': '单选框:opt0=选项一,opt1=选项二',
|
||||
'Checkbox:opt0=Option1,opt1=Option2': '复选框:opt0=选项一,opt1=选项二',
|
||||
Multi: '(多选)',
|
||||
'Select:opt0=Option1,opt1=Option2': '下拉框:opt0=选项一,opt1=选项二',
|
||||
'Switch:0=off,1=on': '开关:0=关,1=开',
|
||||
'Time date (timestamp storage)': '时间日期(时间戳存储)',
|
||||
'If left blank, the verifier title attribute will be filled in automatically': '留空则自动填写验证器title属性(看不懂请直接填写完整错误消息)',
|
||||
'Weight (automatically generate drag sort button)': '权重(自动生成拖拽排序按钮)',
|
||||
'If it is not input, it will be automatically analyzed by the controller': '不输入则以控制器自动解析',
|
||||
}
|
||||
Reference in New Issue
Block a user