rails_com 1.2.5 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +20 -165
- data/README.md +45 -22
- data/Rakefile +2 -1
- data/app/apis/ali_dns.rb +66 -0
- data/app/assets/images/avatar.png +0 -0
- data/app/channels/com/session_channel.rb +16 -0
- data/app/channels/rails_com/connection.rb +31 -0
- data/app/controllers/admin_controller.rb +4 -0
- data/app/controllers/application_controller.rb +7 -0
- data/app/controllers/base_controller.rb +2 -0
- data/app/controllers/board/base_controller.rb +3 -0
- data/app/controllers/board/home_controller.rb +6 -0
- data/app/controllers/board_controller.rb +3 -0
- data/app/controllers/com/audios_controller.rb +27 -0
- data/app/controllers/com/base_controller.rb +4 -0
- data/app/controllers/com/common_controller.rb +69 -0
- data/app/controllers/com/controller/admin.rb +114 -0
- data/app/controllers/com/controller/err_handler.rb +13 -0
- data/app/controllers/com/direct_uploads_controller.rb +11 -0
- data/app/controllers/com/log_controller.rb +30 -0
- data/app/controllers/com/nodes_controller.rb +22 -0
- data/app/controllers/com/panel/acme_accounts_controller.rb +12 -0
- data/app/controllers/com/panel/acme_identifiers_controller.rb +31 -0
- data/app/controllers/com/panel/acme_orders_controller.rb +64 -0
- data/app/controllers/com/panel/attachments_controller.rb +31 -0
- data/app/controllers/com/panel/base_controller.rb +5 -0
- data/app/controllers/com/panel/blob_defaults_controller.rb +13 -0
- data/app/controllers/com/panel/blobs_controller.rb +52 -0
- data/app/controllers/com/panel/cache_lists_controller.rb +5 -0
- data/app/controllers/com/panel/csps_controller.rb +18 -0
- data/app/controllers/com/panel/errs_controller.rb +18 -0
- data/app/controllers/com/panel/inbound_emails_controller.rb +15 -0
- data/app/controllers/com/panel/infos_controller.rb +9 -0
- data/app/controllers/com/panel/meta_actions_controller.rb +46 -0
- data/app/controllers/com/panel/meta_businesses_controller.rb +21 -0
- data/app/controllers/com/panel/meta_columns_controller.rb +47 -0
- data/app/controllers/com/panel/meta_controllers_controller.rb +46 -0
- data/app/controllers/com/panel/meta_models_controller.rb +32 -0
- data/app/controllers/com/panel/meta_namespaces_controller.rb +29 -0
- data/app/controllers/com/pdfs_controller.rb +37 -0
- data/app/controllers/com/videos_controller.rb +28 -0
- data/app/controllers/home_controller.rb +6 -0
- data/app/controllers/my/base_controller.rb +4 -0
- data/app/controllers/my/home_controller.rb +8 -0
- data/app/controllers/my_controller.rb +3 -0
- data/app/controllers/panel/base_controller.rb +4 -0
- data/app/controllers/panel/home_controller.rb +8 -0
- data/app/controllers/panel_controller.rb +5 -0
- data/app/controllers/rails_com/application.rb +113 -0
- data/app/helpers/rails_com/active_helper.rb +35 -39
- data/app/helpers/rails_com/form_helper.rb +21 -0
- data/app/helpers/rails_com/format_helper.rb +13 -0
- data/app/helpers/rails_com/frame_helper.rb +13 -0
- data/app/helpers/rails_com/kaminari_helper.rb +9 -0
- data/app/helpers/rails_com/time_helper.rb +23 -0
- data/app/helpers/rails_com/url_helper.rb +12 -0
- data/app/jobs/active_storage/identify_job.rb +9 -0
- data/app/jobs/application_job.rb +2 -0
- data/app/jobs/com/acme_job.rb +9 -0
- data/app/jobs/com/err_job.rb +10 -0
- data/app/mailboxes/application_mailbox.rb +2 -0
- data/app/mailers/application_mailer.rb +3 -0
- data/app/models/com/acme_account.rb +5 -0
- data/app/models/com/acme_identifier.rb +5 -0
- data/app/models/com/acme_order.rb +5 -0
- data/app/models/com/application_record.rb +5 -0
- data/app/models/com/blob_default.rb +5 -0
- data/app/models/com/cache_list.rb +5 -0
- data/app/models/com/csp.rb +5 -0
- data/app/models/com/err.rb +5 -0
- data/app/models/com/ext/debug.rb +71 -0
- data/app/models/com/ext/extra.rb +20 -0
- data/app/models/com/ext/parameter.rb +19 -0
- data/app/models/com/ext/sequence.rb +36 -0
- data/app/models/com/ext/state_machine.rb +82 -0
- data/app/models/com/ext/taxon.rb +81 -0
- data/app/models/com/ext/taxon_prepend.rb +21 -0
- data/app/models/com/info.rb +5 -0
- data/app/models/com/meta_action.rb +5 -0
- data/app/models/com/meta_business.rb +5 -0
- data/app/models/com/meta_column.rb +5 -0
- data/app/models/com/meta_controller.rb +5 -0
- data/app/models/com/meta_model.rb +5 -0
- data/app/models/com/meta_namespace.rb +5 -0
- data/app/models/com/meta_operation.rb +5 -0
- data/app/models/com/meta_route.rb +5 -0
- data/app/models/com/model/acme_account.rb +70 -0
- data/app/models/com/model/acme_identifier.rb +132 -0
- data/app/models/com/model/acme_order.rb +139 -0
- data/app/models/com/model/blob_default.rb +36 -0
- data/app/models/com/model/cache_list.rb +15 -0
- data/app/models/com/model/csp.rb +23 -0
- data/app/models/com/model/err.rb +108 -0
- data/app/models/com/model/info.rb +31 -0
- data/app/models/com/model/meta_action.rb +70 -0
- data/app/models/com/model/meta_business.rb +66 -0
- data/app/models/com/model/meta_column.rb +36 -0
- data/app/models/com/model/meta_controller.rb +115 -0
- data/app/models/com/model/meta_model.rb +58 -0
- data/app/models/com/model/meta_namespace.rb +61 -0
- data/app/models/com/model/meta_operation.rb +18 -0
- data/app/models/com/model/meta_permission.rb +10 -0
- data/app/models/com/model/meta_relation.rb +6 -0
- data/app/models/com/model/meta_route.rb +10 -0
- data/app/models/com.rb +11 -0
- data/app/models/concerns/feishu_bot.rb +15 -0
- data/app/models/concerns/log_record_bot.rb +40 -0
- data/app/models/concerns/work_wechat_bot.rb +18 -0
- data/app/stores/com/env_yaml.rb +96 -0
- data/app/stores/com/yaml.rb +89 -0
- data/app/views/admin/_breadcrumb.html.erb +5 -0
- data/app/views/application/_actionsheet.html.erb +20 -0
- data/app/views/application/_alert.html+phone.erb +6 -0
- data/app/views/application/_alert.html.erb +9 -0
- data/app/views/application/_auth_navbar.html.erb +18 -0
- data/app/views/application/_breadcrumb.html.erb +0 -0
- data/app/views/application/_button.html+phone.erb +3 -0
- data/app/views/application/_button.html.erb +3 -0
- data/app/views/application/_edit_form.html+phone.erb +10 -0
- data/app/views/application/_edit_form.html.erb +4 -0
- data/app/views/application/_error_messages.html.erb +11 -0
- data/app/views/application/_filter_form.html+phone.erb +14 -0
- data/app/views/application/_filter_form.html.erb +9 -0
- data/app/views/application/_filter_table.html.erb +0 -0
- data/app/views/application/_footer.html.erb +8 -0
- data/app/views/application/_form.html.erb +4 -0
- data/app/views/application/_index_sortable_table.html.erb +22 -0
- data/app/views/application/_index_table.html+phone.erb +13 -0
- data/app/views/application/_index_table.html.erb +22 -0
- data/app/views/application/_index_tbody.html.erb +3 -0
- data/app/views/application/_index_thead.html.erb +4 -0
- data/app/views/application/_index_tr.html+phone.erb +4 -0
- data/app/views/application/_index_tr.html.erb +16 -0
- data/app/views/application/_index_tree_table.html.erb +18 -0
- data/app/views/application/_locales.html.erb +11 -0
- data/app/views/application/_modal.html+phone.erb +14 -0
- data/app/views/application/_modal.html.erb +14 -0
- data/app/views/application/_nav.html.erb +0 -0
- data/app/views/application/_nav_bar.html+phone.erb +0 -0
- data/app/views/application/_nav_bar.html.erb +25 -0
- data/app/views/application/_nav_brand.html.erb +3 -0
- data/app/views/application/_nav_with_login.html.erb +0 -0
- data/app/views/application/_nav_without_login.html.erb +0 -0
- data/app/views/application/_new_form.html+phone.erb +10 -0
- data/app/views/application/_new_form.html.erb +4 -0
- data/app/views/application/_pagination.json.jbuilder +7 -0
- data/app/views/application/_show.html+phone.erb +20 -0
- data/app/views/application/_show.html.erb +13 -0
- data/app/views/application/_show_table.html.erb +0 -0
- data/app/views/application/_tab_bar.html.erb +3 -0
- data/app/views/application/_tab_bar_item.erb +4 -0
- data/app/views/application/alert.turbo_stream.erb +1 -0
- data/app/views/application/controller_not_found.json.jbuilder +4 -0
- data/app/views/application/create.json.jbuilder +1 -0
- data/app/views/application/create.turbo_stream.erb +3 -0
- data/app/views/application/destroy.json.jbuilder +0 -0
- data/app/views/application/destroy.turbo_stream.erb +3 -0
- data/app/views/application/edit.html.erb +7 -0
- data/app/views/application/edit.json.jbuilder +2 -0
- data/app/views/{shared/_error_messages.html.erb → application/err.turbo_stream.erb} +4 -4
- data/app/views/application/index.html.erb +5 -0
- data/app/views/application/index.json.jbuilder +1 -0
- data/app/views/application/move_higher.turbo_stream.erb +3 -0
- data/app/views/application/move_lower.turbo_stream.erb +3 -0
- data/app/views/application/new.html.erb +7 -0
- data/app/views/application/new.json.jbuilder +2 -0
- data/app/views/application/show.html.erb +3 -0
- data/app/views/application/show.json.jbuilder +1 -0
- data/app/views/application/update.json.jbuilder +1 -0
- data/app/views/application/update.turbo_stream.erb +3 -0
- data/app/views/board/home/index.html.erb +0 -0
- data/app/views/com/attachments/_file_upload.html.erb +19 -0
- data/app/views/com/attachments/_image_preview.html.erb +9 -0
- data/app/views/com/attachments/_list.html.erb +31 -0
- data/app/views/com/attachments/_list_edit.html.erb +28 -0
- data/app/views/com/attachments/_list_field.html.erb +6 -0
- data/app/views/com/attachments/_list_many.html.erb +17 -0
- data/app/views/com/attachments/_video_item.html.erb +6 -0
- data/app/views/com/audios/show.html.erb +3 -0
- data/app/views/com/common/deploy.html.erb +0 -0
- data/app/views/com/common/info.json.jbuilder +1 -0
- data/app/views/com/extra/_extra_form.html.erb +5 -0
- data/app/views/com/extra/_item.html.erb +15 -0
- data/app/views/com/nodes/_children_options.html.erb +4 -0
- data/app/views/com/nodes/_children_select.html.erb +15 -0
- data/app/views/com/nodes/_outer_children_options.html.erb +4 -0
- data/app/views/com/nodes/_outer_options.html+phone.erb +2 -0
- data/app/views/com/nodes/_outer_options.html.erb +4 -0
- data/app/views/com/nodes/_outer_select.html.erb +12 -0
- data/app/views/com/nodes/_self_and_siblings_options.html.erb +4 -0
- data/app/views/com/nodes/_siblings_options.html.erb +4 -0
- data/app/views/com/nodes/_siblings_select.html.erb +14 -0
- data/app/views/com/nodes/children.turbo_stream.erb +3 -0
- data/app/views/com/nodes/outer.turbo_stream.erb +3 -0
- data/app/views/com/panel/acme_accounts/_filter_form.html.erb +9 -0
- data/app/views/com/panel/acme_accounts/_index_tbody.html.erb +7 -0
- data/app/views/com/panel/acme_accounts/_index_thead.html.erb +4 -0
- data/app/views/com/panel/acme_accounts/_index_tr.html.erb +16 -0
- data/app/views/com/panel/acme_identifiers/_breadcrumb.html.erb +7 -0
- data/app/views/com/panel/acme_identifiers/_button.html.erb +0 -0
- data/app/views/com/panel/acme_identifiers/_filter_form.html.erb +9 -0
- data/app/views/com/panel/acme_identifiers/_form.html.erb +2 -0
- data/app/views/com/panel/acme_identifiers/_index_tbody.html.erb +16 -0
- data/app/views/com/panel/acme_identifiers/_index_thead.html.erb +17 -0
- data/app/views/com/panel/acme_identifiers/_show_table.html.erb +24 -0
- data/app/views/com/panel/acme_identifiers/index.html.erb +3 -0
- data/app/views/com/panel/acme_orders/_breadcrumb.html.erb +6 -0
- data/app/views/com/panel/acme_orders/_filter_form.html.erb +9 -0
- data/app/views/com/panel/acme_orders/_form.html.erb +4 -0
- data/app/views/com/panel/acme_orders/_index_tbody.html.erb +11 -0
- data/app/views/com/panel/acme_orders/_index_thead.html.erb +8 -0
- data/app/views/com/panel/acme_orders/_index_tr.html.erb +25 -0
- data/app/views/com/panel/acme_orders/_item_form.html.erb +14 -0
- data/app/views/com/panel/acme_orders/_new_form.html.erb +7 -0
- data/app/views/com/panel/acme_orders/_show_table.html.erb +4 -0
- data/app/views/com/panel/attachments/_breadcrumb.html.erb +10 -0
- data/app/views/com/panel/attachments/_button.html.erb +0 -0
- data/app/views/com/panel/attachments/_filter_form.html.erb +13 -0
- data/app/views/com/panel/attachments/_index_tbody.html.erb +6 -0
- data/app/views/com/panel/attachments/_index_thead.html.erb +7 -0
- data/app/views/com/panel/attachments/_index_tr.html.erb +10 -0
- data/app/views/com/panel/attachments/index.html.erb +5 -0
- data/app/views/com/panel/base/_index_meta_action.html.erb +14 -0
- data/app/views/com/panel/base/_nav.html.erb +3 -0
- data/app/views/com/panel/blob_defaults/_add_form.html.erb +7 -0
- data/app/views/com/panel/blob_defaults/_filter_form.html.erb +10 -0
- data/app/views/com/panel/blob_defaults/_form.html.erb +4 -0
- data/app/views/com/panel/blob_defaults/_index_tbody.html.erb +7 -0
- data/app/views/com/panel/blob_defaults/_index_thead.html.erb +5 -0
- data/app/views/com/panel/blob_defaults/_index_tr.html.erb +13 -0
- data/app/views/com/panel/blob_defaults/add.turbo_stream.erb +1 -0
- data/app/views/com/panel/blobs/_breadcrumb.html.erb +6 -0
- data/app/views/com/panel/blobs/_filter_form.html.erb +13 -0
- data/app/views/com/panel/blobs/_index_tbody.html.erb +22 -0
- data/app/views/com/panel/blobs/_index_thead.html.erb +12 -0
- data/app/views/com/panel/blobs/_index_tr.html.erb +13 -0
- data/app/views/com/panel/blobs/_new_form.html.erb +5 -0
- data/app/views/com/panel/blobs/index.html.erb +5 -0
- data/app/views/com/panel/cache_lists/_index_tbody.html.erb +4 -0
- data/app/views/com/panel/cache_lists/_index_thead.html.erb +5 -0
- data/app/views/com/panel/cache_lists/_show_table.html.erb +8 -0
- data/app/views/com/panel/csps/_button.html.erb +0 -0
- data/app/views/com/panel/csps/_filter_form.html.erb +8 -0
- data/app/views/com/panel/csps/_index_tbody.html.erb +11 -0
- data/app/views/com/panel/csps/_index_thead.html.erb +12 -0
- data/app/views/com/panel/csps/_index_tr.html.erb +13 -0
- data/app/views/com/panel/csps/_show/_breadcrumb.html.erb +6 -0
- data/app/views/com/panel/csps/_show_table.html.erb +48 -0
- data/app/views/com/panel/csps/show.html.erb +7 -0
- data/app/views/com/panel/errs/_button.html.erb +0 -0
- data/app/views/com/panel/errs/_filter_form.html.erb +11 -0
- data/app/views/com/panel/errs/_index_tbody.html.erb +16 -0
- data/app/views/com/panel/errs/_index_thead.html.erb +11 -0
- data/app/views/com/panel/errs/_index_tr.html.erb +13 -0
- data/app/views/com/panel/errs/_show/_breadcrumb.html.erb +6 -0
- data/app/views/com/panel/errs/_show_table.html.erb +44 -0
- data/app/views/com/panel/errs/show.html.erb +7 -0
- data/app/views/com/panel/inbound_emails/_button.html.erb +0 -0
- data/app/views/com/panel/inbound_emails/_filter_form.html.erb +9 -0
- data/app/views/com/panel/inbound_emails/_index_tbody.html.erb +5 -0
- data/app/views/com/panel/inbound_emails/_index_thead.html.erb +6 -0
- data/app/views/com/panel/inbound_emails/_show_table.html.erb +10 -0
- data/app/views/com/panel/inbound_emails/index.html.erb +5 -0
- data/app/views/com/panel/infos/_filter_form.html.erb +9 -0
- data/app/views/com/panel/infos/_index_tbody.html.erb +4 -0
- data/app/views/com/panel/infos/_index_thead.html.erb +5 -0
- data/app/views/com/panel/infos/index.json.jbuilder +1 -0
- data/app/views/com/panel/meta_actions/_breadcrumb.html.erb +6 -0
- data/app/views/com/panel/meta_actions/_form.html.erb +1 -0
- data/app/views/com/panel/meta_actions/_index_tbody.html.erb +4 -0
- data/app/views/com/panel/meta_actions/_index_thead.html.erb +5 -0
- data/app/views/com/panel/meta_actions/_roles.html.erb +9 -0
- data/app/views/com/panel/meta_actions/index.html.erb +3 -0
- data/app/views/com/panel/meta_actions/roles.js.erb +6 -0
- data/app/views/com/panel/meta_actions/update.turbo_stream.erb +1 -0
- data/app/views/com/panel/meta_businesses/_breadcrumb.html.erb +10 -0
- data/app/views/com/panel/meta_businesses/_button.html.erb +3 -0
- data/app/views/com/panel/meta_businesses/_form.html.erb +3 -0
- data/app/views/com/panel/meta_businesses/_index_tbody.html.erb +12 -0
- data/app/views/com/panel/meta_businesses/_index_thead.html.erb +2 -0
- data/app/views/com/panel/meta_businesses/_index_tr.html.erb +16 -0
- data/app/views/com/panel/meta_businesses/_show_table.html.erb +8 -0
- data/app/views/com/panel/meta_businesses/sync.turbo_stream.erb +3 -0
- data/app/views/com/panel/meta_columns/_breadcrumb.html.erb +6 -0
- data/app/views/com/panel/meta_columns/_form.html.erb +6 -0
- data/app/views/com/panel/meta_columns/_index_tbody.html.erb +20 -0
- data/app/views/com/panel/meta_columns/_index_thead.html.erb +12 -0
- data/app/views/com/panel/meta_columns/_index_tr.html.erb +22 -0
- data/app/views/com/panel/meta_columns/_show_table.html.erb +20 -0
- data/app/views/com/panel/meta_columns/sync.turbo_stream.erb +3 -0
- data/app/views/com/panel/meta_columns/test.turbo_stream.erb +3 -0
- data/app/views/com/panel/meta_controllers/_button.html.erb +3 -0
- data/app/views/com/panel/meta_controllers/_filter_form.html.erb +8 -0
- data/app/views/com/panel/meta_controllers/_filter_tablex.html.erb +8 -0
- data/app/views/com/panel/meta_controllers/_form.html.erb +2 -0
- data/app/views/com/panel/meta_controllers/_index_meta_business.html.erb +10 -0
- data/app/views/com/panel/meta_controllers/_index_meta_controller.html.erb +15 -0
- data/app/views/com/panel/meta_controllers/_index_meta_namespace.html.erb +12 -0
- data/app/views/com/panel/meta_controllers/_index_tbody.html.erb +28 -0
- data/app/views/com/panel/meta_controllers/_index_thead.html.erb +2 -0
- data/app/views/com/panel/meta_controllers/index.html.erb +3 -0
- data/app/views/com/panel/meta_controllers/meta_actions.turbo_stream.erb +1 -0
- data/app/views/com/panel/meta_controllers/meta_controllers.turbo_stream.erb +1 -0
- data/app/views/com/panel/meta_controllers/meta_namespaces.turbo_stream.erb +1 -0
- data/app/views/com/panel/meta_controllers/sync.turbo_stream.erb +3 -0
- data/app/views/com/panel/meta_models/_button.html.erb +6 -0
- data/app/views/com/panel/meta_models/_form.html.erb +4 -0
- data/app/views/com/panel/meta_models/_index_tbody.html.erb +3 -0
- data/app/views/com/panel/meta_models/_index_thead.html.erb +4 -0
- data/app/views/com/panel/meta_models/_index_tr.html.erb +19 -0
- data/app/views/com/panel/meta_models/_show_table.html.erb +12 -0
- data/app/views/com/panel/meta_models/sync.turbo_stream.erb +3 -0
- data/app/views/com/panel/meta_namespaces/_breadcrumb.html.erb +10 -0
- data/app/views/com/panel/meta_namespaces/_button.html.erb +3 -0
- data/app/views/com/panel/meta_namespaces/_form.html.erb +5 -0
- data/app/views/com/panel/meta_namespaces/_index_tbody.html.erb +20 -0
- data/app/views/com/panel/meta_namespaces/_index_thead.html.erb +6 -0
- data/app/views/com/panel/meta_namespaces/_show_table.html.erb +20 -0
- data/app/views/com/panel/meta_namespaces/sync.turbo_stream.erb +3 -0
- data/app/views/com/videos/show.html.erb +9 -0
- data/app/{assets/javascripts/controllers/active_storage_ext/videos/show.ready.js → views/com/videos/show.js} +0 -0
- data/app/views/default_form/_date_field.html.erb +1 -0
- data/app/views/default_form/_datetime_field.html.erb +1 -0
- data/app/views/default_form/_number_field.html.erb +1 -0
- data/app/views/default_form/_outer_select.html.erb +14 -0
- data/app/views/default_form/_select_enum.html.erb +1 -0
- data/app/views/default_form/_text_field.html.erb +1 -0
- data/app/views/default_form/_time_field.html.erb +1 -0
- data/app/views/extra_form/_number_field.html.erb +1 -0
- data/app/views/extra_form/_outer_select.html.erb +14 -0
- data/app/views/extra_form/_text_field.html.erb +1 -0
- data/app/views/home/index.html.erb +0 -0
- data/app/views/kaminari/com/_first_page.html.erb +3 -0
- data/app/views/kaminari/{_gap.html.erb → com/_gap.html.erb} +1 -1
- data/app/views/kaminari/com/_last_page.html.erb +3 -0
- data/app/views/kaminari/com/_next_page.html.erb +3 -0
- data/app/views/kaminari/com/_page.html.erb +1 -0
- data/app/views/kaminari/{_paginator.html.erb → com/_paginator.html+phone.erb} +3 -3
- data/app/views/kaminari/com/_paginator.html.erb +17 -0
- data/app/views/kaminari/com/_prev_page.html.erb +3 -0
- data/app/views/layouts/_admin_head.html.erb +22 -0
- data/app/views/layouts/_application_head.html.erb +26 -0
- data/app/views/layouts/_phone_head.html.erb +28 -0
- data/app/views/layouts/admin.html.erb +12 -0
- data/app/views/layouts/application.html+phone.erb +12 -0
- data/app/views/layouts/application.html.erb +11 -0
- data/app/views/layouts/application.json.jbuilder +2 -0
- data/app/views/layouts/board.html+phone.erb +10 -0
- data/app/views/layouts/board.html.erb +12 -0
- data/app/views/layouts/mailer.html.erb +14 -0
- data/app/views/layouts/mailer.text.erb +1 -0
- data/app/views/layouts/my.html+phone.erb +11 -0
- data/app/views/layouts/my.html.erb +13 -0
- data/app/views/layouts/panel.html.erb +12 -0
- data/app/views/my/home/index.html.erb +0 -0
- data/app/views/panel/_breadcrumb.html.erb +0 -0
- data/app/views/panel/_com_nav.html.erb +19 -0
- data/app/views/panel/_nav.html.erb +6 -0
- data/app/views/panel/_nav_without_login.html.erb +3 -0
- data/app/views/panel/destroy.turbo_stream.erb +1 -0
- data/app/views/panel/home/index.html.erb +0 -0
- data/config/default_form.yml +74 -0
- data/config/locales/en.controller.yml +46 -0
- data/config/locales/en.yml +2 -2
- data/config/locales/zh.attributes.yml +9 -0
- data/config/locales/zh.controller.yml +65 -0
- data/config/locales/zh.enum.yml +11 -0
- data/config/locales/zh.helper.yml +10 -0
- data/config/locales/zh.rb +34 -0
- data/config/locales/zh.yml +66 -10
- data/config/routes.rb +140 -8
- data/lib/active_storage/service/disc_service.rb +41 -0
- data/lib/default_form/active_record/extend.rb +38 -0
- data/lib/default_form/builder/default.rb +88 -0
- data/lib/default_form/builder/helper.rb +212 -0
- data/lib/default_form/builder/wrap.rb +58 -0
- data/lib/default_form/config.rb +50 -0
- data/lib/default_form/controller_helper.rb +14 -0
- data/lib/default_form/form_builder.rb +61 -0
- data/lib/default_form/override/action_view/helpers/tags/collection_check_boxes.rb +23 -0
- data/lib/default_form/override/action_view/helpers/tags/collection_radio_buttons.rb +23 -0
- data/lib/default_form/view_helper.rb +39 -0
- data/lib/generators/jbuilder_generator.rb +22 -0
- data/lib/generators/scaffold_generator.rb +27 -0
- data/lib/generators/templates/jbuilder/_show.json.jbuilder.tt +1 -0
- data/lib/generators/templates/jbuilder/index.json.jbuilder.tt +1 -0
- data/lib/generators/templates/jbuilder/partial.json.jbuilder.tt +17 -0
- data/lib/generators/templates/scaffold_erb/_edit_form.html.erb.tt +4 -0
- data/lib/generators/templates/scaffold_erb/_filter_form.html.erb.tt +9 -0
- data/lib/generators/templates/scaffold_erb/_form.html.erb.tt +4 -0
- data/lib/generators/templates/scaffold_erb/_index_tbody.html.erb.tt +3 -0
- data/lib/generators/templates/scaffold_erb/_index_thead.html.erb.tt +4 -0
- data/lib/generators/templates/scaffold_erb/_new_form.html.erb.tt +4 -0
- data/lib/generators/templates/scaffold_erb/_show_table.html.erb.tt +6 -0
- data/lib/generators/templates/scaffold_erb/index.html.erb.tt +5 -0
- data/lib/rails_com/action_controller/errors.rb +11 -0
- data/lib/rails_com/action_controller/extend.rb +20 -0
- data/lib/rails_com/action_controller/include.rb +31 -0
- data/lib/rails_com/action_controller/parameters.rb +19 -0
- data/lib/rails_com/action_controller/public_exceptions.rb +31 -0
- data/lib/rails_com/action_controller/subscriber.rb +32 -0
- data/lib/rails_com/action_controller.rb +9 -0
- data/lib/rails_com/action_mailbox/inbound_email.rb +23 -0
- data/lib/rails_com/action_mailbox/mail_ext.rb +34 -0
- data/lib/rails_com/action_mailbox.rb +4 -0
- data/lib/rails_com/action_text/rich_text.rb +16 -0
- data/lib/rails_com/action_text.rb +3 -0
- data/lib/rails_com/action_view/partial_renderer.rb +22 -0
- data/lib/rails_com/action_view/template_renderer.rb +41 -0
- data/lib/rails_com/action_view/translation_helper.rb +23 -0
- data/lib/rails_com/action_view.rb +5 -0
- data/lib/rails_com/{rails_ext → active_storage}/activestorage_attached.rb +7 -3
- data/lib/rails_com/active_storage/attached_macros.rb +32 -0
- data/lib/rails_com/active_storage/attachment_prepend.rb +14 -0
- data/lib/rails_com/{rails_ext → active_storage}/attachment_transfer.rb +15 -6
- data/lib/rails_com/{rails_ext → active_storage}/video_response.rb +6 -1
- data/lib/rails_com/active_storage.rb +9 -0
- data/lib/rails_com/all.rb +23 -0
- data/lib/rails_com/api.rb +24 -0
- data/lib/rails_com/config.rb +22 -14
- data/lib/rails_com/engine.rb +42 -21
- data/lib/rails_com/utils/hex_helper.rb +12 -0
- data/lib/rails_com/utils/jobber.rb +3 -1
- data/lib/rails_com/utils/num_helper.rb +7 -5
- data/lib/rails_com/utils/qrcode_helper.rb +35 -0
- data/lib/rails_com/utils/setting.rb +5 -5
- data/lib/rails_com/utils/time_helper.rb +2 -0
- data/lib/rails_com/utils/uid_helper.rb +22 -13
- data/lib/rails_com.rb +31 -29
- data/lib/templates/rails/scaffold_controller/api_controller.rb.tt +20 -19
- data/lib/templates/rails/scaffold_controller/controller.rb.tt +1 -52
- data/lib/templates/test_unit/scaffold/functional_test.rb.tt +64 -0
- metadata +558 -108
- data/app/assets/config/rails_com_manifest.js +0 -6
- data/app/assets/images/image-square.png +0 -0
- data/app/assets/images/verification.jpg +0 -0
- data/app/assets/javascripts/rails_com/application.js +0 -45
- data/app/assets/javascripts/rails_com/attachment.js +0 -416
- data/app/assets/javascripts/rails_com/checkbox.js +0 -59
- data/app/assets/javascripts/rails_com/fetch_xhr_script.js +0 -20
- data/app/assets/javascripts/rails_com/footer.js +0 -3
- data/app/assets/javascripts/rails_com/picture.js +0 -17
- data/app/assets/javascripts/rails_com/sidebar.js +0 -40
- data/app/assets/stylesheets/controllers/active_storage_ext/videos/show.css +0 -7
- data/app/assets/stylesheets/controllers/active_storage_ext/videos/transfer.css +0 -4
- data/app/assets/stylesheets/rails_com/application.css +0 -3
- data/app/controllers/active_storage_ext/admin/attachments_controller.rb +0 -13
- data/app/controllers/active_storage_ext/admin/base_controller.rb +0 -4
- data/app/controllers/active_storage_ext/admin/blob_defaults_controller.rb +0 -54
- data/app/controllers/active_storage_ext/admin/blobs_controller.rb +0 -48
- data/app/controllers/active_storage_ext/audios_controller.rb +0 -24
- data/app/controllers/active_storage_ext/videos_controller.rb +0 -25
- data/app/controllers/concerns/rails_common_api.rb +0 -50
- data/app/controllers/concerns/rails_common_xhr.rb +0 -15
- data/app/helpers/rails_com/assets_helper.rb +0 -91
- data/app/models/active_storage/blob_default.rb +0 -5
- data/app/models/concerns/state_machine.rb +0 -79
- data/app/views/active_storage_ext/admin/attachments/destroy.js.erb +0 -1
- data/app/views/active_storage_ext/admin/blob_defaults/_form.html.erb +0 -7
- data/app/views/active_storage_ext/admin/blob_defaults/_search_form.html.erb +0 -7
- data/app/views/active_storage_ext/admin/blob_defaults/edit.html.erb +0 -9
- data/app/views/active_storage_ext/admin/blob_defaults/index.html.erb +0 -48
- data/app/views/active_storage_ext/admin/blob_defaults/new.html.erb +0 -9
- data/app/views/active_storage_ext/admin/blob_defaults/show.html.erb +0 -10
- data/app/views/active_storage_ext/admin/blobs/_search_form.html.erb +0 -9
- data/app/views/active_storage_ext/admin/blobs/destroy.js.erb +0 -1
- data/app/views/active_storage_ext/admin/blobs/index.html.erb +0 -51
- data/app/views/active_storage_ext/admin/blobs/new.html.erb +0 -13
- data/app/views/active_storage_ext/admin/blobs/show.html.erb +0 -10
- data/app/views/active_storage_ext/attachments/_default_image_item.html.erb +0 -6
- data/app/views/active_storage_ext/attachments/_image_item.html.erb +0 -6
- data/app/views/active_storage_ext/attachments/_list.html.erb +0 -25
- data/app/views/active_storage_ext/attachments/_list_edit.html.erb +0 -25
- data/app/views/active_storage_ext/attachments/_list_form.html.erb +0 -28
- data/app/views/active_storage_ext/attachments/_video_item.html.erb +0 -6
- data/app/views/active_storage_ext/audios/show.html.erb +0 -5
- data/app/views/active_storage_ext/videos/show.html.erb +0 -6
- data/app/views/kaminari/_first_page.html.erb +0 -3
- data/app/views/kaminari/_last_page.html.erb +0 -3
- data/app/views/kaminari/_next_page.html.erb +0 -3
- data/app/views/kaminari/_page.html.erb +0 -1
- data/app/views/kaminari/_prev_page.html.erb +0 -3
- data/app/views/layouts/rails_com/application.html.erb +0 -17
- data/app/views/shared/_alert.html.erb +0 -8
- data/app/views/shared/_locales.html.erb +0 -8
- data/config/locales/zh.datetime.yml +0 -44
- data/db/migrate/20181012025833_rails_com_init.rb +0 -13
- data/lib/generators/doc_model_generator.rb +0 -37
- data/lib/generators/doc_models_generator.rb +0 -11
- data/lib/generators/templates/model.erb +0 -6
- data/lib/mina/git2.rb +0 -59
- data/lib/mina/puma.rb +0 -64
- data/lib/mina/sidekiq.rb +0 -67
- data/lib/mina/whenever.rb +0 -27
- data/lib/rails_com/core_ext/array.rb +0 -72
- data/lib/rails_com/core_ext/date.rb +0 -25
- data/lib/rails_com/core_ext/hash.rb +0 -38
- data/lib/rails_com/core_ext/nil.rb +0 -7
- data/lib/rails_com/core_ext/numeric.rb +0 -11
- data/lib/rails_com/core_ext/string.rb +0 -15
- data/lib/rails_com/helpers/controller_helper.rb +0 -30
- data/lib/rails_com/helpers/model_helper.rb +0 -107
- data/lib/rails_com/meta/controllers.rb +0 -8
- data/lib/rails_com/meta/models.rb +0 -21
- data/lib/rails_com/meta/routes.rb +0 -53
- data/lib/rails_com/rails_ext/attached_macros.rb +0 -21
- data/lib/rails_com/rails_ext/errors.rb +0 -4
- data/lib/rails_com/rails_ext/named_base.rb +0 -9
- data/lib/rails_com/rails_ext/persistence_sneakily.rb +0 -11
- data/lib/rails_com/rails_ext/scaffold_generator.rb +0 -15
- data/lib/rails_com/rails_ext/template_renderer.rb +0 -54
- data/lib/rails_com/rails_ext/translation_helper.rb +0 -18
- data/lib/rails_com/sprockets/non_digest_assets.rb +0 -16
- data/lib/rails_com/utils/babel.rb +0 -38
- data/lib/rails_com/version.rb +0 -3
- data/lib/tasks/rails_com_tasks.rake +0 -4
- data/lib/templates/erb/scaffold/_form.html.erb.tt +0 -12
- data/lib/templates/erb/scaffold/_search_form.html.erb.tt +0 -7
- data/lib/templates/erb/scaffold/edit.html.erb.tt +0 -9
- data/lib/templates/erb/scaffold/index.html.erb.tt +0 -47
- data/lib/templates/erb/scaffold/new.html.erb.tt +0 -9
- data/lib/templates/erb/scaffold/show.html.erb.tt +0 -16
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="<%= I18n.locale %>">
|
3
|
+
<head>
|
4
|
+
<% if content_for?(:title) %>
|
5
|
+
<title><%= yield(:title) %></title>
|
6
|
+
<% else %>
|
7
|
+
<title><%= current_title %></title>
|
8
|
+
<% end %>
|
9
|
+
<meta name="description" content="<%= yield(:meta_description) %>">
|
10
|
+
<meta name="keywords" content="<%= yield(:meta_keywords) %>">
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
12
|
+
<meta name="turbo-cache-control" content="no-preview">
|
13
|
+
<%= javascript_vite_tag 'application' %>
|
14
|
+
<%= stylesheet_vite_tag 'application', media: 'all', 'data-turbo-track': 'reload' %>
|
15
|
+
<%= css_load media: 'all', 'data-turbo-track': 'reload' %>
|
16
|
+
<%= js_load 'data-turbo-track': 'reload' %>
|
17
|
+
<%= csrf_meta_tags %>
|
18
|
+
<%= action_cable_meta_tag %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<%= yield :head %>
|
21
|
+
</head>
|
22
|
+
<body>
|
23
|
+
<%= yield %>
|
24
|
+
<%= render 'modal' %>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="<%= I18n.locale %>">
|
3
|
+
<head>
|
4
|
+
<% if content_for?(:title) %>
|
5
|
+
<title><%= yield(:title) %></title>
|
6
|
+
<% else %>
|
7
|
+
<title><%= current_title %></title>
|
8
|
+
<% end %>
|
9
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
|
10
|
+
<meta name="description" content="<%= yield(:meta_description) %>">
|
11
|
+
<meta name="keywords" content="<%= yield(:meta_keywords) %>">
|
12
|
+
<meta name="turbo-cache-control" content="no-preview">
|
13
|
+
<%= stylesheet_vite_tag 'phone', media: 'all', 'data-turbo-track': 'reload' %>
|
14
|
+
<%= css_load suffix: 'phone', media: 'all', 'data-turbo-track': 'reload' %>
|
15
|
+
<%= javascript_vite_tag 'phone', 'data-turbo-track': 'reload' %>
|
16
|
+
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
17
|
+
<%= js_load suffix: 'phone', 'data-turbo-track': 'reload' %>
|
18
|
+
<% if content_for?(:wechat_js) %>
|
19
|
+
<%= yield(:wechat_js) %>
|
20
|
+
<% end %>
|
21
|
+
<%= csrf_meta_tags %>
|
22
|
+
<%= action_cable_meta_tag %>
|
23
|
+
<%= csp_meta_tag %>
|
24
|
+
</head>
|
25
|
+
<body data-weui-theme="light">
|
26
|
+
<%= yield %>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%= render layout: 'layouts/admin_head' do %>
|
2
|
+
<%= render 'nav_bar' %>
|
3
|
+
<main class="columns">
|
4
|
+
<div class="column is-narrow p-0" style="width:260px">
|
5
|
+
<%= render 'nav' %>
|
6
|
+
</div>
|
7
|
+
<div class="column">
|
8
|
+
<%= render 'breadcrumb' %>
|
9
|
+
<%= yield %>
|
10
|
+
</div>
|
11
|
+
</main>
|
12
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%= render layout: 'layouts/application_head' do %>
|
2
|
+
<%= render 'nav_bar' %>
|
3
|
+
<div id="alert"></div>
|
4
|
+
<main class="columns is-fluid is-centered">
|
5
|
+
<div class="column container is-full">
|
6
|
+
<%= render 'breadcrumb' %>
|
7
|
+
<%= yield %>
|
8
|
+
</div>
|
9
|
+
</main>
|
10
|
+
<%= render 'footer' %>
|
11
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%= render layout: 'layouts/application_head' do %>
|
2
|
+
<%= render 'nav_bar' %>
|
3
|
+
<main class="columns container">
|
4
|
+
<div class="column is-narrow" style="width: 260px;">
|
5
|
+
<%= render 'nav' %>
|
6
|
+
</div>
|
7
|
+
<div class="column">
|
8
|
+
<%= yield %>
|
9
|
+
</div>
|
10
|
+
</main>
|
11
|
+
<%= render 'footer' %>
|
12
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="<%= I18n.locale %>">
|
3
|
+
<head>
|
4
|
+
<title></title>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<style>
|
7
|
+
/* Email styles need to be inline */
|
8
|
+
</style>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<%= yield %>
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%= render layout: 'layouts/application_head' do %>
|
2
|
+
<%= render 'nav_bar' %>
|
3
|
+
<main class="columns container">
|
4
|
+
<div class="column is-narrow" style="width: 260px;">
|
5
|
+
<%= render 'nav' %>
|
6
|
+
</div>
|
7
|
+
<div class="column">
|
8
|
+
<%= render 'breadcrumb' %>
|
9
|
+
<%= yield %>
|
10
|
+
</div>
|
11
|
+
</main>
|
12
|
+
<%= render 'footer' %>
|
13
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%= render layout: 'layouts/admin_head' do %>
|
2
|
+
<%= render 'nav_bar' %>
|
3
|
+
<main class="columns">
|
4
|
+
<div class="column is-narrow p-0" style="width: 260px">
|
5
|
+
<%= render 'nav' %>
|
6
|
+
</div>
|
7
|
+
<div class="column table-container">
|
8
|
+
<%= render 'breadcrumb' %>
|
9
|
+
<%= yield %>
|
10
|
+
</div>
|
11
|
+
</main>
|
12
|
+
<% end %>
|
File without changes
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class="<%= active_helper(modules: 'com/panel', active: 'menu ex-accordion is-active', item: 'menu ex-accordion') %>" data-controller="menu">
|
2
|
+
<%= content_tag :div, class: 'menu-list' do %>
|
3
|
+
<%= link_to t('com.panel.blob_defaults.index.title'), { controller: 'com/panel/blob_defaults' }, class: active_helper(controllers: 'blob_defaults', active: 'is-active') %>
|
4
|
+
<%= link_to t('com.panel.blobs.index.title'), { controller: 'com/panel/blobs' }, class: active_helper(controllers: 'blobs', active: 'is-active') %>
|
5
|
+
<%= link_to t('com.panel.attachments.index.title'), { controller: 'com/panel/attachments' }, class: active_helper(controllers: 'attachments', active: 'is-active') %>
|
6
|
+
<%= link_to t('com.panel.inbound_emails.index.title'), { controller: 'com/panel/inbound_emails' }, class: active_helper(controllers: 'inbound_emails', active: 'is-active') %>
|
7
|
+
<%= link_to t('com.panel.acme_accounts.index.title'), { controller: 'com/panel/acme_accounts' }, class: active_helper(controllers: 'acme_accounts', active: 'is-active') %>
|
8
|
+
<%= link_to t('com.panel.meta_controllers.index.title'), { controller: 'com/panel/meta_controllers' }, class: active_helper(controllers: 'meta_controllers', active: 'is-active') %>
|
9
|
+
<%= link_to t('com.panel.meta_businesses.index.title'), { controller: 'com/panel/meta_businesses' }, class: active_helper(controllers: ['meta_businesses', 'meta_namespaces'], active: 'is-active') %>
|
10
|
+
<%= link_to t('com.panel.meta_models.index.title'), { controller: 'com/panel/meta_models' }, class: active_helper(controllers: 'meta_models', active: 'is-active') %>
|
11
|
+
<%= link_to t('com.panel.errs.index.title'), { controller: 'com/panel/errs' }, class: active_helper(controllers: 'errs', active: 'is-active') %>
|
12
|
+
<%= link_to t('com.panel.csps.index.title'), { controller: 'com/panel/csps' }, class: active_helper(controllers: 'csps', active: 'is-active') -%>
|
13
|
+
<% end %>
|
14
|
+
<a class="menu-label" data-action="menu#toggle">
|
15
|
+
<i class="fa-solid fa-cogs fa-fw"></i>
|
16
|
+
<span><%= t('com.panel.title') %></span>
|
17
|
+
<i class="fa-solid dropdown"></i>
|
18
|
+
</a>
|
19
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= turbo_stream.remove "tr_#{params[:id]}" %>
|
File without changes
|
@@ -0,0 +1,74 @@
|
|
1
|
+
defaults: &defaults
|
2
|
+
autocomplete: true
|
3
|
+
label: true
|
4
|
+
searches: &searches
|
5
|
+
method: get
|
6
|
+
placeholder: true
|
7
|
+
autofilter: true
|
8
|
+
default:
|
9
|
+
<<: *defaults
|
10
|
+
origin:
|
11
|
+
label: label
|
12
|
+
offset: field-label
|
13
|
+
input: input
|
14
|
+
textarea: field textarea
|
15
|
+
submit: button is-primary
|
16
|
+
inline_checkbox: checkbox
|
17
|
+
inline_checkbox_checked: checkbox
|
18
|
+
inline_radio: radio
|
19
|
+
inline_radio_checked: radio
|
20
|
+
offset:
|
21
|
+
submit: field-label
|
22
|
+
checkboxes: field-label
|
23
|
+
wrap:
|
24
|
+
all: field is-horizontal
|
25
|
+
all_required: field is-horizontal
|
26
|
+
all_error: field is-horizontal
|
27
|
+
all_submit: field is-horizontal
|
28
|
+
label: field-label is-normal
|
29
|
+
input: field-body > field > control
|
30
|
+
select: field-body > field is-narrow > control > select is-fullwidth
|
31
|
+
checkbox: field-body > field > control > checkbox
|
32
|
+
checkboxes: field-body > field is-narrow > control
|
33
|
+
submit: field-body control
|
34
|
+
error:
|
35
|
+
input: input is-danger
|
36
|
+
search:
|
37
|
+
<<: *searches
|
38
|
+
origin:
|
39
|
+
form: field is-horizontal
|
40
|
+
input: input
|
41
|
+
submit: button is-primary
|
42
|
+
wrap:
|
43
|
+
input: field is-narrow
|
44
|
+
weui:
|
45
|
+
<<: *defaults
|
46
|
+
origin:
|
47
|
+
form: weui-form
|
48
|
+
label: weui-label
|
49
|
+
input: weui-input
|
50
|
+
textarea: weui-textarea
|
51
|
+
select: weui-select
|
52
|
+
muilti_select: weui-select
|
53
|
+
submit: weui-btn weui-btn_primary
|
54
|
+
wrap:
|
55
|
+
all: weui-cell weui-cell_active
|
56
|
+
all_error: weui-cell
|
57
|
+
all_required: weui-cell
|
58
|
+
label: weui-cell__hd
|
59
|
+
input: weui-cell__bd
|
60
|
+
submit: weui-form__opr-area
|
61
|
+
weui_search:
|
62
|
+
<<: *searches
|
63
|
+
origin:
|
64
|
+
form: weui-cells weui-cells_form
|
65
|
+
label: weui-label
|
66
|
+
input: weui-input
|
67
|
+
select: weui-select
|
68
|
+
muilti_select: weui-select
|
69
|
+
submit: weui-btn weui-btn_primary
|
70
|
+
wrap:
|
71
|
+
all: weui-cell
|
72
|
+
all_error: inline field error
|
73
|
+
input: weui-cell__bd
|
74
|
+
submit: weui-btn-area
|
@@ -0,0 +1,46 @@
|
|
1
|
+
en:
|
2
|
+
application:
|
3
|
+
modal:
|
4
|
+
title: 编辑/新建
|
5
|
+
panel:
|
6
|
+
title: Panel
|
7
|
+
home:
|
8
|
+
index:
|
9
|
+
title: 后台
|
10
|
+
com:
|
11
|
+
title: Settings
|
12
|
+
panel:
|
13
|
+
acme_accounts:
|
14
|
+
index:
|
15
|
+
title: SSL
|
16
|
+
acme_orders:
|
17
|
+
index:
|
18
|
+
title: SSL Orders
|
19
|
+
order: 生成订单
|
20
|
+
verify: DNS验证
|
21
|
+
cert: 办法证书
|
22
|
+
acme_identifiers:
|
23
|
+
index:
|
24
|
+
title: SSL 订单详情
|
25
|
+
blob_defaults:
|
26
|
+
index:
|
27
|
+
title: Default Blobs
|
28
|
+
new:
|
29
|
+
title: 新建图片
|
30
|
+
blobs:
|
31
|
+
index:
|
32
|
+
title: Blobs
|
33
|
+
unattached:
|
34
|
+
title: 游离文件
|
35
|
+
attachments:
|
36
|
+
index:
|
37
|
+
title: Attachments
|
38
|
+
errs:
|
39
|
+
index:
|
40
|
+
title: System Errors
|
41
|
+
csps:
|
42
|
+
index:
|
43
|
+
title: Content Secure
|
44
|
+
inbound_emails:
|
45
|
+
index:
|
46
|
+
title: Emails
|
data/config/locales/en.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
en:
|
2
2
|
site_name: Rails Application
|
3
|
+
en: English
|
3
4
|
controller:
|
4
5
|
show: Show
|
5
6
|
edit: Edit
|
@@ -27,8 +28,7 @@ en:
|
|
27
28
|
create: 'Creates %{model}'
|
28
29
|
update: 'Updates %{model}'
|
29
30
|
submit: 'Saves %{model}'
|
30
|
-
|
31
|
-
submit: 'Search'
|
31
|
+
search: Search
|
32
32
|
number:
|
33
33
|
human:
|
34
34
|
storage_units:
|
@@ -0,0 +1,65 @@
|
|
1
|
+
zh:
|
2
|
+
application:
|
3
|
+
modal:
|
4
|
+
title: 编辑/新建
|
5
|
+
panel:
|
6
|
+
home:
|
7
|
+
index:
|
8
|
+
title: 后台
|
9
|
+
com:
|
10
|
+
panel:
|
11
|
+
title: 系统配置
|
12
|
+
acme_accounts:
|
13
|
+
index:
|
14
|
+
title: SSL 证书申请
|
15
|
+
acme_orders:
|
16
|
+
index:
|
17
|
+
title: SSL 订单
|
18
|
+
order: 生成订单
|
19
|
+
verify: DNS验证
|
20
|
+
cert: 办法证书
|
21
|
+
acme_identifiers:
|
22
|
+
index:
|
23
|
+
title: SSL 订单详情
|
24
|
+
blob_defaults:
|
25
|
+
index:
|
26
|
+
title: 默认图片
|
27
|
+
new:
|
28
|
+
title: 新建图片
|
29
|
+
blobs:
|
30
|
+
index:
|
31
|
+
title: 文件
|
32
|
+
unattached:
|
33
|
+
title: 游离文件
|
34
|
+
attachments:
|
35
|
+
index:
|
36
|
+
title: 附件管理
|
37
|
+
errs:
|
38
|
+
index:
|
39
|
+
title: 错误日志
|
40
|
+
csps:
|
41
|
+
index:
|
42
|
+
title: 内容安全
|
43
|
+
inbound_emails:
|
44
|
+
index:
|
45
|
+
title: 邮件管理
|
46
|
+
meta_businesses:
|
47
|
+
index:
|
48
|
+
title: 业务
|
49
|
+
meta_namespaces:
|
50
|
+
index:
|
51
|
+
title: 命名空间
|
52
|
+
meta_controllers:
|
53
|
+
index:
|
54
|
+
title: 控制器(Controller)
|
55
|
+
meta_actions:
|
56
|
+
index:
|
57
|
+
title: 方法(Action)
|
58
|
+
meta_models:
|
59
|
+
index:
|
60
|
+
title: 模型(Model)
|
61
|
+
meta_columns:
|
62
|
+
index:
|
63
|
+
title: 属性列表
|
64
|
+
sync: 同步
|
65
|
+
test: 测试
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
{
|
3
|
+
zh: {
|
4
|
+
number: {
|
5
|
+
nth: {
|
6
|
+
ordinals: lambda do |_key, number:, **_options|
|
7
|
+
case number
|
8
|
+
when 1;
|
9
|
+
'st'
|
10
|
+
when 2;
|
11
|
+
'nd'
|
12
|
+
when 3;
|
13
|
+
'rd'
|
14
|
+
when 4, 5, 6, 7, 8, 9, 10, 11, 12, 13;
|
15
|
+
'th'
|
16
|
+
else
|
17
|
+
num_modulo = number.to_i.abs % 100
|
18
|
+
num_modulo %= 10 if num_modulo > 13
|
19
|
+
case num_modulo
|
20
|
+
when 1; "st"
|
21
|
+
when 2; "nd"
|
22
|
+
when 3; "rd"
|
23
|
+
else "th"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end,
|
27
|
+
|
28
|
+
ordinalized: lambda do |_key, number:, **_options|
|
29
|
+
"#{number}#{ActiveSupport::Inflector.ordinal(number)}"
|
30
|
+
end
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
data/config/locales/zh.yml
CHANGED
@@ -1,25 +1,81 @@
|
|
1
1
|
zh:
|
2
2
|
site_name: Rails Application
|
3
|
+
zh: 中文
|
3
4
|
controller:
|
4
5
|
show: 详情
|
5
6
|
edit: 编辑
|
6
7
|
destroy: 删除
|
8
|
+
new: 添加
|
7
9
|
search: 搜索
|
10
|
+
export: 导出
|
11
|
+
sync: 加载默认配置
|
12
|
+
all: 所有
|
13
|
+
log: 操作日志
|
14
|
+
approve: 接受
|
15
|
+
reject: 拒绝
|
16
|
+
clear: 重置
|
17
|
+
confirm: 确认操作
|
18
|
+
back: 返回
|
19
|
+
save: 保存
|
20
|
+
attributes:
|
21
|
+
id: ID
|
22
|
+
name: 名称
|
23
|
+
title: 标题
|
24
|
+
type: 类型
|
25
|
+
description: 描述
|
26
|
+
note: 备注
|
27
|
+
birthday: 生日
|
28
|
+
gender: 性别
|
29
|
+
avatar: 头像
|
30
|
+
position: 序号
|
31
|
+
parent_ancestors: 上级
|
32
|
+
start_at: 开始时间
|
33
|
+
finish_at: 截止时间
|
34
|
+
created_at: 创建时间
|
35
|
+
updated_at: 更新时间
|
8
36
|
errors:
|
9
|
-
format:
|
37
|
+
format: '%{attribute}%{message}'
|
10
38
|
messages:
|
11
|
-
|
12
|
-
model_invalid: "验证失败: %{errors}"
|
13
|
-
required: 必须存在
|
39
|
+
model_invalid: 验证失败:%{errors}
|
14
40
|
blank: 不能为空
|
15
|
-
too_short:
|
16
|
-
|
41
|
+
too_short: 过短(最短为 %{count} 个字符)
|
42
|
+
required: 必须存在
|
43
|
+
taken: 已经被使用
|
44
|
+
accepted: 必须是可被接受的
|
45
|
+
present: 必须是空白
|
46
|
+
confirmation: 不匹配
|
47
|
+
empty: 不能留空
|
48
|
+
equal_to: 必须等于 %{count}
|
49
|
+
even: 必须为双数
|
50
|
+
exclusion: 是保留关键字
|
51
|
+
greater_than: 必须大于 %{count}
|
52
|
+
greater_than_or_equal_to: 必须大于或等于 %{count}
|
53
|
+
inclusion: 不包含于列表中
|
54
|
+
invalid: 是无效的
|
55
|
+
less_than: 必须小于 %{count}
|
56
|
+
less_than_or_equal_to: 必须小于或等于 %{count}
|
57
|
+
not_a_number: 不是数字
|
58
|
+
not_an_integer: 必须是整数
|
59
|
+
odd: 必须为单数
|
60
|
+
too_long: 过长(最长为 %{count} 个字符)
|
61
|
+
wrong_length: 长度非法(必须为 %{count} 个字符)
|
62
|
+
other_than: 长度非法(不可为 %{count} 个字符
|
63
|
+
template:
|
64
|
+
body: 如下字段出现错误:
|
65
|
+
header: 有 %{count} 个错误发生导致“%{model}”无法被保存。
|
66
|
+
activerecord:
|
67
|
+
errors:
|
68
|
+
messages:
|
69
|
+
record_invalid: 验证失败:%{errors}
|
70
|
+
restrict_dependent_destroy:
|
71
|
+
has_one: "Cannot delete record because a dependent %{record} exists"
|
72
|
+
has_many: "Cannot delete record because dependent %{record} exist"
|
17
73
|
views:
|
18
74
|
pagination:
|
19
|
-
first:
|
20
|
-
last:
|
21
|
-
previous:
|
22
|
-
next:
|
75
|
+
first: 第一页
|
76
|
+
last: 最后一页
|
77
|
+
previous: 上一页
|
78
|
+
next: 下一页
|
23
79
|
truncate: ...
|
24
80
|
helpers:
|
25
81
|
page_entries_info:
|