Skip to content

Commit

Permalink
feat: 代码生成器支持配置筛选项
Browse files Browse the repository at this point in the history
  • Loading branch information
slowlyo committed Jun 9, 2024
1 parent 45eeb36 commit 019121a
Show file tree
Hide file tree
Showing 8 changed files with 422 additions and 225 deletions.
178 changes: 93 additions & 85 deletions lang/en/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,91 +64,99 @@
'preview' => 'Preview',

'code_generators' => [
'remark1' => 'For more parameters, please refer to',
'remark2' => 'Database Migration',
'remark3' => 'Multiple parameters are separated by English commas',
'table_name' => 'Table Name',
'model_name' => 'Model',
'controller_name' => 'Controller',
'service_name' => 'Service',
'primary_key' => 'Primary Key',
'primary_key_description' => 'Use increments method',
'options' => 'Options',
'create_database_migration' => 'Create Database Migration File',
'create_table' => 'Create Table',
'create_model' => 'Create Model',
'create_controller' => 'Create Controller',
'create_service' => 'Create Service',
'app_title' => 'App Title',
'column_name' => 'Column Name',
'type' => 'Type',
'extra_params' => 'Extra Params',
'nullable' => 'Nullable',
'index' => 'Index',
'default_value' => 'Default Value',
'comment' => 'Comment',
'exists_table' => 'Exists Table',
'generate_code' => 'Generate Code',
'expand_more_settings' => 'More Settings',
'collapse_settings' => 'Collapse Settings',
'confirm_generate_code' => 'Confirm Generate Code?',
'preview' => 'Preview',
'base_info' => 'Base Info',
'column_info' => 'Column Info',
'route_config' => 'Route Config',
'page_config' => 'Page Config',
'gen_route_menu' => 'Generate Route And Menu',
'route' => 'Route',
'menu_name' => 'Menu Name',
'parent_menu' => 'Parent Menu',
'menu_icon' => 'Menu Icon',
'name_label_desc' => 'Name And Label Attribute Take Field Name And Comment',
'column_warning' => 'If the field name exists (no / status) will cause the form to fail to echo back!',
'add_column' => 'Add Column',
'scope' => 'Scope',
'list_component' => 'List Component',
'list_component_desc' => 'List Component, Default Is TableColumn',
'filter_component' => 'Table Filter',
'filter_component_desc' => 'Filter Component, Default Is TableColumn',
'form_component' => 'Form Component',
'form_component_desc' => 'Form Component, Default Is TextControl',
'detail_component' => 'Detail Component',
'detail_component_desc' => 'Detail Component, Default Is TextControl',
'model_config' => 'Model Config',
'file_column' => 'File Column',
'file_column_multi' => 'Multi File',
'file_column_desc' => 'File Column, Automatically Add Attribute Methods In The Model',
'preview_code' => 'Preview Code',
'property' => 'Property',
'property_name' => 'Property Name',
'value' => 'Value',
'dialog_form' => 'Dialog Form',
'dialog_size' => 'Dialog Size',
'copy_record' => 'Copy Record',
'copy_record_description' => 'You can copy and share to <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
'import_record' => 'Import Record',
'import_record_placeholder' => 'Please enter the imported json record',
'import_record_desc' => 'You can find some records shared by others on <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
'load_config' => 'Load Config',
'load_component_config' => 'Load :c Config',
'fill' => 'Fill',
'save_current_config' => 'Save Current Config',
'input_config_name' => 'Please Input Config Name',
'same_name_tips' => 'Configurations with the same name will be overwritten',
'save_path_dir' => 'Primary application',
'save_path_select' => 'Select Directory',
'save_path_select_tips' => 'Project root directory or plugin root directory can be selected',
'save_path_label_prefix' => 'Plugins -> ',
'clear_code' => 'Clear Code',
'select_clear_record' => 'Select what you want to clear',
'select_generate_record' => 'Select the content you want to generate',
'duplicate_column' => 'Duplicate column name',
'common_field_add' => 'Add Common Field',
'common_field_add_column' => 'Add Field',
'config_name' => 'Config Name',
'field_config' => 'Field Config',
'field_name' => 'Field Name',
'list_display' => 'List Display :content',
'remark1' => 'For more parameters, please refer to',
'remark2' => 'Database Migration',
'remark3' => 'Multiple parameters are separated by English commas',
'table_name' => 'Table Name',
'model_name' => 'Model',
'controller_name' => 'Controller',
'service_name' => 'Service',
'primary_key' => 'Primary Key',
'primary_key_description' => 'Use increments method',
'options' => 'Options',
'create_database_migration' => 'Create Database Migration File',
'create_table' => 'Create Table',
'create_model' => 'Create Model',
'create_controller' => 'Create Controller',
'create_service' => 'Create Service',
'app_title' => 'App Title',
'column_name' => 'Column Name',
'type' => 'Type',
'extra_params' => 'Extra Params',
'nullable' => 'Nullable',
'index' => 'Index',
'default_value' => 'Default Value',
'comment' => 'Comment',
'exists_table' => 'Exists Table',
'generate_code' => 'Generate Code',
'expand_more_settings' => 'More Settings',
'collapse_settings' => 'Collapse Settings',
'confirm_generate_code' => 'Confirm Generate Code?',
'preview' => 'Preview',
'base_info' => 'Base Info',
'column_info' => 'Column Info',
'route_config' => 'Route Config',
'page_config' => 'Page Config',
'gen_route_menu' => 'Generate Route And Menu',
'route' => 'Route',
'menu_name' => 'Menu Name',
'parent_menu' => 'Parent Menu',
'menu_icon' => 'Menu Icon',
'name_label_desc' => 'Name And Label Attribute Take Field Name And Comment',
'column_warning' => 'If the field name exists (no / status) will cause the form to fail to echo back!',
'add_column' => 'Add Column',
'scope' => 'Scope',
'list_component' => 'List Component',
'list_component_desc' => 'List Component, Default Is TableColumn',
'form_component' => 'Form Component',
'form_component_desc' => 'Form Component, Default Is TextControl',
'detail_component' => 'Detail Component',
'detail_component_desc' => 'Detail Component, Default Is TextControl',
'model_config' => 'Model Config',
'file_column' => 'File Column',
'file_column_multi' => 'Multi File',
'file_column_desc' => 'File Column, Automatically Add Attribute Methods In The Model',
'preview_code' => 'Preview Code',
'property' => 'Property',
'property_name' => 'Property Name',
'value' => 'Value',
'dialog_form' => 'Dialog Form',
'dialog_size' => 'Dialog Size',
'copy_record' => 'Copy Record',
'copy_record_description' => 'You can copy and share to <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
'import_record' => 'Import Record',
'import_record_placeholder' => 'Please enter the imported json record',
'import_record_desc' => 'You can find some records shared by others on <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
'load_config' => 'Load Config',
'load_component_config' => 'Load :c Config',
'fill' => 'Fill',
'save_current_config' => 'Save Current Config',
'input_config_name' => 'Please Input Config Name',
'same_name_tips' => 'Configurations with the same name will be overwritten',
'save_path_dir' => 'Primary application',
'save_path_select' => 'Select Directory',
'save_path_select_tips' => 'Project root directory or plugin root directory can be selected',
'save_path_label_prefix' => 'Plugins -> ',
'clear_code' => 'Clear Code',
'select_clear_record' => 'Select what you want to clear',
'select_generate_record' => 'Select the content you want to generate',
'duplicate_column' => 'Duplicate column name',
'common_field_add' => 'Add Common Field',
'common_field_add_column' => 'Add Field',
'config_name' => 'Config Name',
'field_config' => 'Field Config',
'field_name' => 'Field Name',
'list_display' => 'List Display :content',
'duplicate_filter_input_name' => 'Duplicate filter input name: :column',
'list_filter' => 'List Filter',
'filter_type' => 'Filter Type',
'filter_mode' => 'Filter Mode',
'filter_mode_fixed' => 'Fixed Query Condition',
'filter_mode_fixed_value' => 'Fixed Value',
'filter_mode_input' => 'Receive Parameter',
'filter_input_name' => 'Parameter Name',
'filter_input_label' => 'Filter Label',
'filter_component' => 'Filter Component',
],

'admin_users' => 'Admin Users',
Expand Down
Loading

0 comments on commit 019121a

Please sign in to comment.