rails_org 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +30 -0
- data/Rakefile +20 -0
- data/app/controllers/me/base_controller.rb +4 -0
- data/app/controllers/me/home_controller.rb +9 -0
- data/app/controllers/me_controller.rb +4 -0
- data/app/controllers/org/admin/authorized_tokens_controller.rb +48 -0
- data/app/controllers/org/admin/base_controller.rb +4 -0
- data/app/controllers/org/admin/current_organ_controller.rb +43 -0
- data/app/controllers/org/admin/department_grants_controller.rb +44 -0
- data/app/controllers/org/admin/departments_controller.rb +92 -0
- data/app/controllers/org/admin/home_controller.rb +8 -0
- data/app/controllers/org/admin/job_descriptions_controller.rb +49 -0
- data/app/controllers/org/admin/job_titles_controller.rb +69 -0
- data/app/controllers/org/admin/job_transfers_controller.rb +88 -0
- data/app/controllers/org/admin/member_departments_controller.rb +82 -0
- data/app/controllers/org/admin/members_controller.rb +129 -0
- data/app/controllers/org/admin/organ_domains_controller.rb +61 -0
- data/app/controllers/org/admin/organs_controller.rb +57 -0
- data/app/controllers/org/admin/resign_reasons_controller.rb +19 -0
- data/app/controllers/org/admin/resigns_controller.rb +103 -0
- data/app/controllers/org/admin/super_job_titles_controller.rb +70 -0
- data/app/controllers/org/admin/supports_controller.rb +93 -0
- data/app/controllers/org/admin/tutorials_controller.rb +74 -0
- data/app/controllers/org/base_controller.rb +4 -0
- data/app/controllers/org/board/base_controller.rb +4 -0
- data/app/controllers/org/board/members_controller.rb +61 -0
- data/app/controllers/org/board/organs_controller.rb +78 -0
- data/app/controllers/org/controller/application.rb +84 -0
- data/app/controllers/org/controller/me.rb +25 -0
- data/app/controllers/org/controller/our.rb +12 -0
- data/app/controllers/org/layout/me.rb +16 -0
- data/app/controllers/org/layout/panel.rb +16 -0
- data/app/controllers/org/me/base_controller.rb +4 -0
- data/app/controllers/org/me/departments_controller.rb +78 -0
- data/app/controllers/org/me/job_transfers_controller.rb +62 -0
- data/app/controllers/org/me/members_controller.rb +37 -0
- data/app/controllers/org/me/orders_controller.rb +66 -0
- data/app/controllers/org/me/resigns_controller.rb +53 -0
- data/app/controllers/org/me/tutorials_controller.rb +76 -0
- data/app/controllers/org/members_controller.rb +48 -0
- data/app/controllers/org/organs_controller.rb +30 -0
- data/app/controllers/org/panel/base_controller.rb +4 -0
- data/app/controllers/org/panel/organ_domains_controller.rb +5 -0
- data/app/controllers/org/panel/organs_controller.rb +40 -0
- data/app/mailers/org/attendance_mailer.rb +17 -0
- data/app/mailers/org/exam_mailer.rb +26 -0
- data/app/mailers/org/lesson_mailer.rb +15 -0
- data/app/mailers/org/lesson_member_mailer.rb +25 -0
- data/app/models/org/account.rb +8 -0
- data/app/models/org/application_record.rb +5 -0
- data/app/models/org/department.rb +6 -0
- data/app/models/org/department_grant.rb +5 -0
- data/app/models/org/department_hierarchy.rb +5 -0
- data/app/models/org/job_description.rb +5 -0
- data/app/models/org/job_title.rb +6 -0
- data/app/models/org/job_transfer.rb +5 -0
- data/app/models/org/member.rb +7 -0
- data/app/models/org/member_department.rb +6 -0
- data/app/models/org/model/account.rb +11 -0
- data/app/models/org/model/department.rb +67 -0
- data/app/models/org/model/department_grant.rb +13 -0
- data/app/models/org/model/department_hierarchy.rb +10 -0
- data/app/models/org/model/job_description.rb +18 -0
- data/app/models/org/model/job_title.rb +54 -0
- data/app/models/org/model/job_transfer.rb +108 -0
- data/app/models/org/model/member.rb +142 -0
- data/app/models/org/model/member_department.rb +66 -0
- data/app/models/org/model/organ.rb +62 -0
- data/app/models/org/model/organ_domain.rb +44 -0
- data/app/models/org/model/organ_handle.rb +15 -0
- data/app/models/org/model/resign.rb +66 -0
- data/app/models/org/model/resign_reason.rb +17 -0
- data/app/models/org/model/resign_reference.rb +11 -0
- data/app/models/org/model/super_job_title.rb +25 -0
- data/app/models/org/model/support.rb +19 -0
- data/app/models/org/model/tutorial.rb +64 -0
- data/app/models/org/model/user.rb +30 -0
- data/app/models/org/organ.rb +7 -0
- data/app/models/org/organ_domain.rb +5 -0
- data/app/models/org/organ_handle.rb +5 -0
- data/app/models/org/resign.rb +5 -0
- data/app/models/org/resign_reason.rb +5 -0
- data/app/models/org/resign_reference.rb +5 -0
- data/app/models/org/super_job_title.rb +6 -0
- data/app/models/org/support.rb +5 -0
- data/app/models/org/tutorial.rb +5 -0
- data/app/models/org.rb +11 -0
- data/app/views/admin/_department_navbar.html.erb +6 -0
- data/app/views/admin/_nav_show.erb +17 -0
- data/app/views/admin/_nav_with_login.html.erb +37 -0
- data/app/views/admin/_org_nav.html.erb +16 -0
- data/app/views/admin/_right_menu.html.erb +17 -0
- data/app/views/application/_org_navbar.html.erb +19 -0
- data/app/views/application/require_member.html.erb +4 -0
- data/app/views/application/require_member.js.erb +2 -0
- data/app/views/application/require_member.json.jbuilder +1 -0
- data/app/views/application/require_organ.html.erb +4 -0
- data/app/views/application/require_organ.js.erb +2 -0
- data/app/views/application/require_organ.json.jbuilder +1 -0
- data/app/views/layouts/me.html+phone.erb +12 -0
- data/app/views/layouts/me.html.erb +17 -0
- data/app/views/me/_nav_with_login.html.erb +3 -0
- data/app/views/me/_org_nav.html.erb +13 -0
- data/app/views/me/_right_menu.html.erb +23 -0
- data/app/views/me/home/index.html.erb +17 -0
- data/app/views/me/update.turbo_stream.erb +3 -0
- data/app/views/org/admin/authorized_tokens/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/authorized_tokens/_button.html.erb +0 -0
- data/app/views/org/admin/authorized_tokens/_edit_form.html.erb +4 -0
- data/app/views/org/admin/authorized_tokens/_filter_form.html.erb +9 -0
- data/app/views/org/admin/authorized_tokens/_form.html.erb +4 -0
- data/app/views/org/admin/authorized_tokens/_index_tbody.html.erb +18 -0
- data/app/views/org/admin/authorized_tokens/_index_thead.html.erb +6 -0
- data/app/views/org/admin/authorized_tokens/_new_form.html.erb +4 -0
- data/app/views/org/admin/authorized_tokens/_show_table.html.erb +20 -0
- data/app/views/org/admin/authorized_tokens/index.html.erb +3 -0
- data/app/views/org/admin/base/_nav.html.erb +3 -0
- data/app/views/org/admin/current_organ/_edit_form.html.erb +11 -0
- data/app/views/org/admin/current_organ/_edit_x_form.html.erb +5 -0
- data/app/views/org/admin/current_organ/_show_table.html.erb +16 -0
- data/app/views/org/admin/current_organ/show.html.erb +1 -0
- data/app/views/org/admin/department_grants/_add.html.erb +3 -0
- data/app/views/org/admin/department_grants/_index.html.erb +29 -0
- data/app/views/org/admin/department_grants/_new.html.erb +6 -0
- data/app/views/org/admin/department_grants/index.js.erb +7 -0
- data/app/views/org/admin/departments/_department.json.jbuilder +6 -0
- data/app/views/org/admin/departments/_department_form.html.erb +8 -0
- data/app/views/org/admin/departments/_department_support.html.erb +26 -0
- data/app/views/org/admin/departments/_edit_form.html.erb +4 -0
- data/app/views/org/admin/departments/_filter_form.html.erb +9 -0
- data/app/views/org/admin/departments/_filter_table.html.erb +11 -0
- data/app/views/org/admin/departments/_form.html.erb +23 -0
- data/app/views/org/admin/departments/_index_tbody.html.erb +29 -0
- data/app/views/org/admin/departments/_index_thead.html.erb +14 -0
- data/app/views/org/admin/departments/_index_tr.html.erb +23 -0
- data/app/views/org/admin/departments/_member.html.erb +28 -0
- data/app/views/org/admin/departments/_menu.html.erb +12 -0
- data/app/views/org/admin/departments/_new_form.html.erb +4 -0
- data/app/views/org/admin/departments/_show/_breadcrumb.html.erb +9 -0
- data/app/views/org/admin/departments/_show/_thead.html.erb +9 -0
- data/app/views/org/admin/departments/_show.json.jbuilder +1 -0
- data/app/views/org/admin/departments/index.html.erb +14 -0
- data/app/views/org/admin/departments/index.json.jbuilder +1 -0
- data/app/views/org/admin/departments/need.html.erb +12 -0
- data/app/views/org/admin/departments/show.html.erb +25 -0
- data/app/views/org/admin/departments/supports.html.erb +28 -0
- data/app/views/org/admin/home/index.html.erb +0 -0
- data/app/views/org/admin/job_descriptions/_edit_form.html.erb +4 -0
- data/app/views/org/admin/job_descriptions/_filter_form.html.erb +7 -0
- data/app/views/org/admin/job_descriptions/_form.html.erb +8 -0
- data/app/views/org/admin/job_descriptions/_index_tbody.html.erb +7 -0
- data/app/views/org/admin/job_descriptions/_index_thead.html.erb +8 -0
- data/app/views/org/admin/job_descriptions/_new_form.html.erb +4 -0
- data/app/views/org/admin/job_titles/_breadcrumb.html.erb +7 -0
- data/app/views/org/admin/job_titles/_edit_form.html.erb +4 -0
- data/app/views/org/admin/job_titles/_form.html.erb +3 -0
- data/app/views/org/admin/job_titles/_index_thead.html.erb +9 -0
- data/app/views/org/admin/job_titles/_job_titles.html.erb +49 -0
- data/app/views/org/admin/job_titles/_new_form.html.erb +4 -0
- data/app/views/org/admin/job_titles/_show_table.html.erb +12 -0
- data/app/views/org/admin/job_titles/_super_job_titles.html.erb +14 -0
- data/app/views/org/admin/job_titles/create_department.turbo_stream.erb +3 -0
- data/app/views/org/admin/job_titles/index.html.erb +4 -0
- data/app/views/org/admin/job_transfers/_edit_form.html.erb +4 -0
- data/app/views/org/admin/job_transfers/_filter_table.html.erb +11 -0
- data/app/views/org/admin/job_transfers/_form.html.erb +7 -0
- data/app/views/org/admin/job_transfers/_index_thead.html.erb +6 -0
- data/app/views/org/admin/job_transfers/_list.html.erb +29 -0
- data/app/views/org/admin/job_transfers/_new_form.html.erb +4 -0
- data/app/views/org/admin/job_transfers/index.html.erb +3 -0
- data/app/views/org/admin/job_transfers/my.html.erb +7 -0
- data/app/views/org/admin/job_transfers/show.html.erb +54 -0
- data/app/views/org/admin/member_departments/_edit_form.html.erb +3 -0
- data/app/views/org/admin/member_departments/_filter_form.html.erb +8 -0
- data/app/views/org/admin/member_departments/_form.html.erb +4 -0
- data/app/views/org/admin/member_departments/_job_title_options.html.erb +10 -0
- data/app/views/org/admin/member_departments/_new_form.html.erb +3 -0
- data/app/views/org/admin/member_departments/_organ_options.html.erb +1 -0
- data/app/views/org/admin/member_departments/_show_table.html.erb +20 -0
- data/app/views/org/admin/member_departments/_super_job_title_options.html.erb +10 -0
- data/app/views/org/admin/member_departments/index.html.erb +38 -0
- data/app/views/org/admin/member_departments/options.js.erb +4 -0
- data/app/views/org/admin/member_departments/show.html.erb +7 -0
- data/app/views/org/admin/members/_button.html.erb +6 -0
- data/app/views/org/admin/members/_edit/_breadcrumb.html.erb +12 -0
- data/app/views/org/admin/members/_edit_form.html.erb +4 -0
- data/app/views/org/admin/members/_edit_table.html.erb +3 -0
- data/app/views/org/admin/members/_filter_form.html.erb +10 -0
- data/app/views/org/admin/members/_filter_table.html.erb +9 -0
- data/app/views/org/admin/members/_form.html.erb +9 -0
- data/app/views/org/admin/members/_index_tbody.html.erb +24 -0
- data/app/views/org/admin/members/_index_thead.html.erb +7 -0
- data/app/views/org/admin/members/_index_tr.html.erb +22 -0
- data/app/views/org/admin/members/_item_field.html.erb +3 -0
- data/app/views/org/admin/members/_item_form.html.erb +27 -0
- data/app/views/org/admin/members/_member.json.jbuilder +5 -0
- data/app/views/org/admin/members/_menu.html.erb +11 -0
- data/app/views/org/admin/members/_new/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/members/_new_form.html.erb +4 -0
- data/app/views/org/admin/members/_outer_options.html.erb +4 -0
- data/app/views/org/admin/members/_profile/_show_table.html.erb +38 -0
- data/app/views/org/admin/members/_profile_form.html.erb +17 -0
- data/app/views/org/admin/members/_show/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/members/_show.json.jbuilder +1 -0
- data/app/views/org/admin/members/_show_table.html.erb +54 -0
- data/app/views/org/admin/members/edit_profile.html.erb +1 -0
- data/app/views/org/admin/members/index.html.erb +5 -0
- data/app/views/org/admin/members/index.json.jbuilder +1 -0
- data/app/views/org/admin/members/options.turbo_stream.erb +7 -0
- data/app/views/org/admin/members/profile.html.erb +16 -0
- data/app/views/org/admin/members/super_options.js.erb +15 -0
- data/app/views/org/admin/organ_domains/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/organ_domains/_edit_form.html.erb +4 -0
- data/app/views/org/admin/organ_domains/_filter_form.html.erb +9 -0
- data/app/views/org/admin/organ_domains/_form.html.erb +5 -0
- data/app/views/org/admin/organ_domains/_index_tbody.html.erb +12 -0
- data/app/views/org/admin/organ_domains/_index_thead.html.erb +8 -0
- data/app/views/org/admin/organ_domains/_new_form.html.erb +4 -0
- data/app/views/org/admin/organ_domains/_show_table.html.erb +20 -0
- data/app/views/org/admin/organ_domains/index.html.erb +5 -0
- data/app/views/org/admin/organs/_edit_form.html.erb +6 -0
- data/app/views/org/admin/organs/_filter_form.html.erb +9 -0
- data/app/views/org/admin/organs/_form.html.erb +6 -0
- data/app/views/org/admin/organs/_index_tbody.html.erb +17 -0
- data/app/views/org/admin/organs/_index_thead.html.erb +9 -0
- data/app/views/org/admin/organs/_index_tr.html.erb +22 -0
- data/app/views/org/admin/organs/_new_form.html.erb +8 -0
- data/app/views/org/admin/organs/_organ.json.jbuilder +7 -0
- data/app/views/org/admin/organs/_show.json.jbuilder +1 -0
- data/app/views/org/admin/organs/_show_table.html.erb +16 -0
- data/app/views/org/admin/organs/index.html.erb +4 -0
- data/app/views/org/admin/organs/index.json.jbuilder +1 -0
- data/app/views/org/admin/organs/show.json.jbuilder +1 -0
- data/app/views/org/admin/resign_reasons/_edit_form.html.erb +4 -0
- data/app/views/org/admin/resign_reasons/_filter_form.html.erb +7 -0
- data/app/views/org/admin/resign_reasons/_form.html.erb +3 -0
- data/app/views/org/admin/resign_reasons/_new_form.html.erb +4 -0
- data/app/views/org/admin/resign_reasons/_resign_reason.html.erb +13 -0
- data/app/views/org/admin/resign_reasons/index.html.erb +30 -0
- data/app/views/org/admin/resigns/_edit_form.html.erb +4 -0
- data/app/views/org/admin/resigns/_form.html.erb +6 -0
- data/app/views/org/admin/resigns/_index_tbody.html.erb +23 -0
- data/app/views/org/admin/resigns/_index_thead.html.erb +6 -0
- data/app/views/org/admin/resigns/_new_form.html.erb +4 -0
- data/app/views/org/admin/resigns/_search_chart1_form.html.erb +9 -0
- data/app/views/org/admin/resigns/_search_chart2_form.html.erb +8 -0
- data/app/views/org/admin/resigns/_search_form.html.erb +8 -0
- data/app/views/org/admin/resigns/charts.html.erb +19 -0
- data/app/views/org/admin/resigns/index.html.erb +1 -0
- data/app/views/org/admin/resigns/my.html.erb +1 -0
- data/app/views/org/admin/resigns/show.html.erb +47 -0
- data/app/views/org/admin/super_job_titles/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/super_job_titles/_edit_form.html.erb +4 -0
- data/app/views/org/admin/super_job_titles/_filter_form.html.erb +9 -0
- data/app/views/org/admin/super_job_titles/_form.html.erb +3 -0
- data/app/views/org/admin/super_job_titles/_index_tbody.html.erb +13 -0
- data/app/views/org/admin/super_job_titles/_index_thead.html.erb +6 -0
- data/app/views/org/admin/super_job_titles/_new_form.html.erb +4 -0
- data/app/views/org/admin/super_job_titles/_show_table.html.erb +12 -0
- data/app/views/org/admin/super_job_titles/index.html.erb +5 -0
- data/app/views/org/admin/supports/_edit_form.html.erb +4 -0
- data/app/views/org/admin/supports/_filter_form.html.erb +8 -0
- data/app/views/org/admin/supports/_form.html.erb +6 -0
- data/app/views/org/admin/supports/_index_tbody.html.erb +5 -0
- data/app/views/org/admin/supports/_index_thead.html.erb +6 -0
- data/app/views/org/admin/supports/_new_form.html.erb +4 -0
- data/app/views/org/admin/supports/index.html.erb +5 -0
- data/app/views/org/admin/tutorials/_edit_form.html.erb +4 -0
- data/app/views/org/admin/tutorials/_filter_form.html.erb +9 -0
- data/app/views/org/admin/tutorials/_form.html.erb +5 -0
- data/app/views/org/admin/tutorials/_index_tbody.html.erb +19 -0
- data/app/views/org/admin/tutorials/_index_thead.html.erb +15 -0
- data/app/views/org/admin/tutorials/_new_form.html.erb +8 -0
- data/app/views/org/admin/tutorials/index.html.erb +5 -0
- data/app/views/org/admin/tutorials/my.html.erb +5 -0
- data/app/views/org/board/base/_nav.html.erb +4 -0
- data/app/views/org/board/members/_form.html+phone.erb +29 -0
- data/app/views/org/board/members/_form.html.erb +4 -0
- data/app/views/org/board/members/_member.json.jbuilder +11 -0
- data/app/views/org/board/members/_new_form.html+phone.erb +4 -0
- data/app/views/org/board/members/_new_form.html.erb +4 -0
- data/app/views/org/board/members/index.html+phone.erb +40 -0
- data/app/views/org/board/members/index.html.erb +28 -0
- data/app/views/org/board/members/index.json.jbuilder +1 -0
- data/app/views/org/board/members/login.json.jbuilder +1 -0
- data/app/views/org/board/organs/_form.html.erb +4 -0
- data/app/views/org/board/organs/_new_form.html.erb +4 -0
- data/app/views/org/board/organs/create.turbo_stream.erb +3 -0
- data/app/views/org/board/organs/index.html+phone.erb +9 -0
- data/app/views/org/board/organs/index.html.erb +41 -0
- data/app/views/org/board/organs/showx.html.erb +1 -0
- data/app/views/org/me/base/_nav.html.erb +3 -0
- data/app/views/org/me/departments/_breadcrumb.html.erb +5 -0
- data/app/views/org/me/departments/_department.html.erb +31 -0
- data/app/views/org/me/departments/_filter_form.html.erb +9 -0
- data/app/views/org/me/departments/_index_thead.html.erb +5 -0
- data/app/views/org/me/departments/_index_tr.html.erb +10 -0
- data/app/views/org/me/departments/_member.html.erb +11 -0
- data/app/views/org/me/departments/_nav_show.erb +16 -0
- data/app/views/org/me/departments/index.html.erb +11 -0
- data/app/views/org/me/departments/index2.html.erb +46 -0
- data/app/views/org/me/home/index.html.erb +8 -0
- data/app/views/org/me/job_transfers/_form.html.erb +8 -0
- data/app/views/org/me/job_transfers/_index_tbody.html.erb +7 -0
- data/app/views/org/me/job_transfers/_index_thead.html.erb +6 -0
- data/app/views/org/me/job_transfers/_tabs.html.erb +9 -0
- data/app/views/org/me/job_transfers/index.html.erb +25 -0
- data/app/views/org/me/members/_badges.html.erb +13 -0
- data/app/views/org/me/members/_edit.html+phone.erb +10 -0
- data/app/views/org/me/members/_edit_form.html.erb +6 -0
- data/app/views/org/me/members/_member.json.jbuilder +6 -0
- data/app/views/org/me/members/_show.json.jbuilder +1 -0
- data/app/views/org/me/members/_show_table.html.erb +24 -0
- data/app/views/org/me/members/index.json.jbuilder +1 -0
- data/app/views/org/me/members/show.json.jbuilder +1 -0
- data/app/views/org/me/orders/_search_form.html.erb +7 -0
- data/app/views/org/me/orders/dinners.html.erb +32 -0
- data/app/views/org/me/orders/new.html.erb +5 -0
- data/app/views/org/me/orders/show.html.erb +0 -0
- data/app/views/org/me/resigns/_form.html.erb +12 -0
- data/app/views/org/me/resigns/_tabs.html.erb +4 -0
- data/app/views/org/me/resigns/show.html.erb +45 -0
- data/app/views/org/me/tutorials/_form.html.erb +6 -0
- data/app/views/org/me/tutorials/_menu.html.erb +11 -0
- data/app/views/org/me/tutorials/_search_form.html.erb +7 -0
- data/app/views/org/me/tutorials/index.html.erb +35 -0
- data/app/views/org/me/tutorials/perform.html.erb +21 -0
- data/app/views/org/me/tutorials/tutorings.html.erb +40 -0
- data/app/views/org/members/_filter_form.html.erb +9 -0
- data/app/views/org/members/_filter_table.html.erb +11 -0
- data/app/views/org/members/groups.json.jbuilder +5 -0
- data/app/views/org/members/index.html.erb +24 -0
- data/app/views/org/members/journals.json.jbuilder +9 -0
- data/app/views/org/members/people.json.jbuilder +14 -0
- data/app/views/org/members/sections.json.jbuilder +5 -0
- data/app/views/org/members/show.html+phone.erb +23 -0
- data/app/views/org/members/show.html.erb +39 -0
- data/app/views/org/organs/_form_search.html.erb +11 -0
- data/app/views/org/organs/form_search.js.erb +1 -0
- data/app/views/org/organs/index.html+phone.erb +20 -0
- data/app/views/org/organs/index.html.erb +18 -0
- data/app/views/org/organs/show.html.erb +0 -0
- data/app/views/org/panel/base/_nav.html.erb +3 -0
- data/app/views/org/panel/organs/_edit_form.html.erb +6 -0
- data/app/views/org/panel/organs/_filter_form.html.erb +9 -0
- data/app/views/org/panel/organs/_form.html.erb +5 -0
- data/app/views/org/panel/organs/_index_tbody.html.erb +28 -0
- data/app/views/org/panel/organs/_index_thead.html.erb +12 -0
- data/app/views/org/panel/organs/_index_tr.html.erb +19 -0
- data/app/views/org/panel/organs/_new_form.html.erb +6 -0
- data/app/views/org/panel/organs/_show_table.html.erb +16 -0
- data/app/views/org/panel/organs/index.html.erb +5 -0
- data/app/views/our/_nav_bar.html.erb +18 -0
- data/app/views/our/_nav_choosex.html.erb +23 -0
- data/app/views/panel/_org_nav.html.erb +10 -0
- data/config/locales/en.attributes.yml +37 -0
- data/config/locales/en.controller.yml +113 -0
- data/config/locales/en.enum.yml +31 -0
- data/config/locales/zh.attributes.yml +89 -0
- data/config/locales/zh.controller.yml +116 -0
- data/config/locales/zh.enum.yml +31 -0
- data/config/locales/zh.help.yml +7 -0
- data/config/routes.rb +152 -0
- data/lib/rails_org/config.rb +13 -0
- data/lib/rails_org/default_form.rb +17 -0
- data/lib/rails_org/engine.rb +19 -0
- data/lib/rails_org.rb +3 -0
- data/test/application_system_test_case.rb +5 -0
- data/test/controllers/department_journals_controller_test.rb +48 -0
- data/test/controllers/job_transfers_controller_test.rb +48 -0
- data/test/controllers/journal_transfers_controller_test.rb +48 -0
- data/test/controllers/org/admin/authorized_tokens_controller_test.rb +49 -0
- data/test/controllers/org/admin/department_grants_controller_test.rb +48 -0
- data/test/controllers/org/admin/departments_controller_test.rb +51 -0
- data/test/controllers/org/admin/job_descriptions_controller_test.rb +48 -0
- data/test/controllers/org/admin/job_titles_controller_test.rb +51 -0
- data/test/controllers/org/admin/member_departments_controller_test.rb +48 -0
- data/test/controllers/org/admin/organ_domains_controller_test.rb +49 -0
- data/test/controllers/org/admin/organ_handles_controller_test.rb +48 -0
- data/test/controllers/org/admin/organ_tokens_controller_test.rb +48 -0
- data/test/controllers/org/admin/super_job_titles_controller_test.rb +51 -0
- data/test/controllers/org/mine/members_controller_test.rb +49 -0
- data/test/controllers/resign_reasons_controller_test.rb +48 -0
- data/test/controllers/resigns_controller_test.rb +48 -0
- data/test/controllers/tutorials_controller_test.rb +48 -0
- data/test/dummy/Gemfile +59 -0
- data/test/dummy/Gemfile.lock +379 -0
- data/test/dummy/README.md +12 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/default_avatar.jpg +0 -0
- data/test/dummy/app/assets/images/logo.png +0 -0
- data/test/dummy/app/assets/javascripts/admin/application.js +1 -0
- data/test/dummy/app/assets/javascripts/application.js +11 -0
- data/test/dummy/app/assets/javascripts/phone.js +5 -0
- data/test/dummy/app/assets/stylesheets/css.scss +4 -0
- data/test/dummy/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy/app/controllers/active_storage/base_controller.rb +19 -0
- data/test/dummy/app/controllers/admin_controller.rb +3 -0
- data/test/dummy/app/controllers/application_controller.rb +12 -0
- data/test/dummy/app/controllers/home_controller.rb +6 -0
- data/test/dummy/app/controllers/me_controller.rb +4 -0
- data/test/dummy/app/controllers/my_controller.rb +4 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/auth/user.rb +7 -0
- data/test/dummy/app/views/home/index.css +3 -0
- data/test/dummy/app/views/home/index.html.erb +0 -0
- data/test/dummy/app/views/layouts/_right_menu.html.erb +3 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/vite +19 -0
- data/test/dummy/bin/yarn +11 -0
- data/test/dummy/config/application.rb +20 -0
- data/test/dummy/config/boot.rb +9 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/credentials/development.key +1 -0
- data/test/dummy/config/credentials/test.key +1 -0
- data/test/dummy/config/credentials.yml.enc +1 -0
- data/test/dummy/config/database.yml +16 -0
- data/test/dummy/config/environment.rb +3 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +74 -0
- data/test/dummy/config/environments/test.rb +47 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +0 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +14 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +2 -0
- data/test/dummy/config/master.key +1 -0
- data/test/dummy/config/puma.rb +34 -0
- data/test/dummy/config/routes.rb +14 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/config/storage.yml +11 -0
- data/test/dummy/config/vite/base.js +7 -0
- data/test/dummy/config/vite/development.js +6 -0
- data/test/dummy/config/vite/production.js +6 -0
- data/test/dummy/config.ru +7 -0
- data/test/dummy/lib/deploy.rb +115 -0
- data/test/dummy/package.json +27 -0
- data/test/dummy/postcss.config.js +11 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/yarn.lock +2147 -0
- data/test/factories/attendance_logs.rb +5 -0
- data/test/factories/badges.rb +5 -0
- data/test/factories/bands.rb +5 -0
- data/test/factories/department_grants.rb +8 -0
- data/test/factories/department_journals.rb +5 -0
- data/test/factories/departments.rb +12 -0
- data/test/factories/job_descriptions.rb +5 -0
- data/test/factories/job_titles.rb +9 -0
- data/test/factories/job_transfers.rb +5 -0
- data/test/factories/resigns.rb +5 -0
- data/test/factories/super_job_titles.rb +8 -0
- data/test/factories/tutorials.rb +5 -0
- data/test/mailers/previews/the_notify_mailer_preview.rb +9 -0
- data/test/models/department_test.rb +7 -0
- data/test/models/job_description_test.rb +7 -0
- data/test/models/job_title/department_job_title_test.rb +1 -0
- data/test/models/job_title/super_job_title_test.rb +1 -0
- data/test/models/job_title_test.rb +10 -0
- data/test/models/job_transfer_test.rb +7 -0
- data/test/models/resign_test.rb +7 -0
- data/test/models/teacher_test.rb +7 -0
- data/test/models/tutorial_test.rb +7 -0
- data/test/system/org/admin/authorized_tokens_test.rb +51 -0
- data/test/system/org/admin/organ_domains_test.rb +51 -0
- data/test/system/org/mine/members_test.rb +41 -0
- data/test/test_helper.rb +14 -0
- metadata +654 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
# dummy
|
2
|
+
基础rails 项目 for engine test
|
3
|
+
|
4
|
+
## 如何使用
|
5
|
+
如果是在本项目下运行Rails,请使用`bundle exec rails`, 这样会正确设置ENV['BUNDLE_GEMFILE']的值。
|
6
|
+
|
7
|
+
## Prepare
|
8
|
+
* copy `database.yml.mysql` or `database.yml.sqlite3` to `database.yml`;
|
9
|
+
* run `yarn install`
|
10
|
+
|
11
|
+
## Notices
|
12
|
+
* Used Sqlite MemoryDB, see https://www.sqlite.org/inmemorydb.html
|
data/test/dummy/Rakefile
ADDED
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
import '../application'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
const modules = import.meta.glob('../images/**/*')
|
2
|
+
for (const path in modules) {
|
3
|
+
console.log(path) // 如果没有引用的话,无法编译进 manifest
|
4
|
+
}
|
5
|
+
|
6
|
+
// css
|
7
|
+
import '../stylesheets/css.scss'
|
8
|
+
import 'rails_design_engine_ui/stylesheets/app.scss'
|
9
|
+
import '@fortawesome/fontawesome-free/css/all.css'
|
10
|
+
|
11
|
+
import 'rails_design_engine_ui/javascripts/rails_design'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Override controller in active storage library
|
4
|
+
class ActiveStorage::BaseController < ActionController::Base
|
5
|
+
include ActiveStorage::Streaming if defined? ActiveStorage::Streaming
|
6
|
+
|
7
|
+
protect_from_forgery with: :exception
|
8
|
+
|
9
|
+
self.etag_with_template_digest = false
|
10
|
+
|
11
|
+
before_action do
|
12
|
+
ActiveStorage::Current.url_options = {
|
13
|
+
protocol: request.protocol,
|
14
|
+
host: request.host,
|
15
|
+
port: request.port
|
16
|
+
}
|
17
|
+
ActiveStorage::Current.url_options.merge! host: SETTING.host if defined? SETTING
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class ApplicationController < ActionController::Base
|
2
|
+
if defined? RailsCom
|
3
|
+
include Com::Controller::ErrHandler
|
4
|
+
include RailsCom::Application
|
5
|
+
include Com::Controller::Admin
|
6
|
+
end
|
7
|
+
include Auth::Controller::Application if defined? RailsAuth
|
8
|
+
include Roled::Controller::Application if defined? RailsRole
|
9
|
+
include Org::Controller::Application if defined? RailsOrg
|
10
|
+
|
11
|
+
protect_from_forgery with: :exception, unless: -> { json_format? }
|
12
|
+
end
|
File without changes
|
data/test/dummy/bin/rake
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
require 'fileutils'
|
4
|
+
include FileUtils
|
5
|
+
|
6
|
+
# path to your application root.
|
7
|
+
APP_ROOT = Pathname.new File.expand_path('..', __dir__)
|
8
|
+
|
9
|
+
def system!(*args)
|
10
|
+
system(*args) || abort("\n== Command #{args} failed ==")
|
11
|
+
end
|
12
|
+
|
13
|
+
chdir APP_ROOT do
|
14
|
+
# This script is a starting point to setup your application.
|
15
|
+
# Add necessary setup steps to this file.
|
16
|
+
|
17
|
+
puts '== Installing dependencies =='
|
18
|
+
system! 'gem install bundler --conservative'
|
19
|
+
system('bundle check') || system!('bundle install')
|
20
|
+
|
21
|
+
# puts "\n== Copying sample files =="
|
22
|
+
# unless File.exist?('config/database.yml')
|
23
|
+
# cp 'config/database.yml.sample', 'config/database.yml'
|
24
|
+
# end
|
25
|
+
|
26
|
+
puts "\n== Preparing database =="
|
27
|
+
system! 'bin/rails db:setup'
|
28
|
+
|
29
|
+
puts "\n== Removing old logs and tempfiles =="
|
30
|
+
system! 'bin/rails log:clear tmp:clear'
|
31
|
+
|
32
|
+
puts "\n== Restarting application server =="
|
33
|
+
system! 'bin/rails restart'
|
34
|
+
end
|
data/test/dummy/bin/vite
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
ENV['RAILS_ENV'] ||= ENV['RACK_ENV'] || 'development'
|
5
|
+
ENV['NODE_ENV'] ||= ENV['RACK_ENV'] || 'development'
|
6
|
+
|
7
|
+
require 'pathname'
|
8
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', Pathname.new(__dir__).realpath)
|
9
|
+
|
10
|
+
require 'rubygems'
|
11
|
+
require_relative '../config/application'
|
12
|
+
|
13
|
+
require 'viter'
|
14
|
+
require 'viter/dev_server_runner'
|
15
|
+
Viter::Exporter.export
|
16
|
+
APP_ROOT = File.expand_path('..', __dir__)
|
17
|
+
Dir.chdir(APP_ROOT) do
|
18
|
+
Viter::DevServerRunner.run(ARGV)
|
19
|
+
end
|
data/test/dummy/bin/yarn
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.expand_path('..', __dir__)
|
3
|
+
Dir.chdir(APP_ROOT) do
|
4
|
+
begin
|
5
|
+
exec 'yarnpkg', *ARGV
|
6
|
+
rescue Errno::ENOENT
|
7
|
+
$stderr.puts 'Yarn executable was not detected in the system.'
|
8
|
+
$stderr.puts 'Download Yarn at https://yarnpkg.com/en/docs/install'
|
9
|
+
exit 1
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative 'boot'
|
2
|
+
require 'rails_com/all'
|
3
|
+
Bundler.require(*Rails.groups)
|
4
|
+
|
5
|
+
module Dummy
|
6
|
+
class Application < Rails::Application
|
7
|
+
config.load_defaults Rails::VERSION::STRING.to_f
|
8
|
+
|
9
|
+
config.time_zone = 'Beijing'
|
10
|
+
config.i18n.default_locale = :zh
|
11
|
+
|
12
|
+
config.hosts += [
|
13
|
+
'.one.work',
|
14
|
+
'.work.design'
|
15
|
+
]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
ENV['EDITOR'] = 'code --wait'
|
20
|
+
SETTING = Rails.application.credentials
|
@@ -0,0 +1,9 @@
|
|
1
|
+
engine_path = File.expand_path('../../../Gemfile', __dir__)
|
2
|
+
if File.exist? engine_path
|
3
|
+
ENV['BUNDLE_GEMFILE'] ||= engine_path
|
4
|
+
$:.unshift File.expand_path('../../../lib', __dir__)
|
5
|
+
else
|
6
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
7
|
+
end
|
8
|
+
|
9
|
+
require 'bundler/setup'
|
@@ -0,0 +1 @@
|
|
1
|
+
ff68435ed592040b43a4c366b25cab2c
|
@@ -0,0 +1 @@
|
|
1
|
+
1ea3054fbe191c8d99769422e565b79a
|
@@ -0,0 +1 @@
|
|
1
|
+
MimMLkFHCBq1zcnnkv2zngu4tS+Gtep7hx1J8qFTCqFvN4H31Pd2UqdRlXpHLGL+4qKEhNJOQunMTACW+qIzvZPoJ9MTjLM1ZLabVbkHYgRYhkOX4vZ2hj7Z+YUWWe/OHKzjfsPLAMVkeoqn4BTi+mmf6rdX3NHryamuJIa+w9drlkevWgV0iUlUtJZu9F8QsHTOHT1U+MpCkssMRwvjbumB8Jp9GLatQbZGFVeXsdk4ZXmnWCIFkOWIPBxOBLiTs+blWqDajnhLU9CN9byqNpmDim6i0/2HCAIjeBF0t1TzPye9Ni2xsUNPC83HXmhk6nqw+swFiAIplgvLH5Hpziw5W+V9mQ9h4NOSw9HypZiQannZBEysB+VOhw==--l6w0Rkun7l6DUA45--mARmDw0cZ9J82/uugsKu0w==
|
@@ -0,0 +1,16 @@
|
|
1
|
+
default: &default
|
2
|
+
adapter: <%= ENV['DATABASE_ADAPTER'] || 'postgresql' %>
|
3
|
+
pool: 5
|
4
|
+
timeout: 5000
|
5
|
+
|
6
|
+
development:
|
7
|
+
<<: *default
|
8
|
+
url: <%= ENV['DATABASE_URL'] || Rails.application.credentials.postgres[:dev] %>
|
9
|
+
|
10
|
+
test:
|
11
|
+
<<: *default
|
12
|
+
url: <%= ENV['DATABASE_URL'] || Rails.application.credentials.postgres[:test] %>
|
13
|
+
|
14
|
+
production:
|
15
|
+
<<: *default
|
16
|
+
url: <%= ENV['DATABASE_URL'] || Rails.application.credentials.postgres[:pro] %>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
|
3
|
+
config.cache_classes = false
|
4
|
+
config.eager_load = false
|
5
|
+
config.consider_all_requests_local = true
|
6
|
+
|
7
|
+
#config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
8
|
+
|
9
|
+
config.hosts += [
|
10
|
+
'.lvh.me'
|
11
|
+
]
|
12
|
+
|
13
|
+
if Rails.root.join('tmp/caching-dev.txt').exist?
|
14
|
+
config.action_controller.perform_caching = true
|
15
|
+
config.action_controller.enable_fragment_cache_logging = true
|
16
|
+
config.cache_store = :file_store, 'tmp/cache/store'
|
17
|
+
config.public_file_server.headers = {
|
18
|
+
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
19
|
+
}
|
20
|
+
else
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
config.cache_store = :null_store
|
23
|
+
end
|
24
|
+
|
25
|
+
config.action_mailbox.ingress = :mailgun
|
26
|
+
|
27
|
+
config.action_mailer.raise_delivery_errors = false
|
28
|
+
config.action_mailer.perform_caching = false
|
29
|
+
|
30
|
+
config.active_record.migration_error = :page_load
|
31
|
+
|
32
|
+
config.active_storage.service = :local
|
33
|
+
|
34
|
+
config.active_support.deprecation = :log
|
35
|
+
end
|
36
|
+
|
37
|
+
Rails.application.routes.default_url_options = {
|
38
|
+
protocol: 'http',
|
39
|
+
host: 'lvh.me',
|
40
|
+
port: 3000
|
41
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both threaded web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Disable serving static files from the `/public` folder by default since
|
18
|
+
# Apache or NGINX already handles this.
|
19
|
+
config.public_file_server.enabled = ENV.fetch('RAILS_SERVE_STATIC_FILES') { true }
|
20
|
+
|
21
|
+
# Specifies the header that your server uses for sending files.
|
22
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
23
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
24
|
+
|
25
|
+
# Mount Action Cable outside main process or domain
|
26
|
+
# config.action_cable.mount_path = nil
|
27
|
+
# config.action_cable.url = 'wss://example.com/cable'
|
28
|
+
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
29
|
+
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
+
# config.force_ssl = true
|
32
|
+
|
33
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
34
|
+
# when problems arise.
|
35
|
+
config.log_level = :debug
|
36
|
+
|
37
|
+
# Prepend all log lines with the following tags.
|
38
|
+
config.log_tags = [ :request_id ]
|
39
|
+
|
40
|
+
# Use a different cache store in production.
|
41
|
+
# config.cache_store = :mem_cache_store
|
42
|
+
|
43
|
+
# Use a real queuing backend for Active Job (and separate queues per environment)
|
44
|
+
# config.active_job.queue_adapter = :resque
|
45
|
+
# config.active_job.queue_name_prefix = "dummy_#{Rails.env}"
|
46
|
+
config.action_mailer.perform_caching = false
|
47
|
+
|
48
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
49
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
50
|
+
# config.action_mailer.raise_delivery_errors = false
|
51
|
+
|
52
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
53
|
+
# the I18n.default_locale when a translation cannot be found).
|
54
|
+
config.i18n.fallbacks = true
|
55
|
+
|
56
|
+
# Send deprecation notices to registered listeners.
|
57
|
+
config.active_support.deprecation = :notify
|
58
|
+
|
59
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
60
|
+
config.log_formatter = ::Logger::Formatter.new
|
61
|
+
|
62
|
+
# Use a different logger for distributed setups.
|
63
|
+
# require 'syslog/logger'
|
64
|
+
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
65
|
+
|
66
|
+
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
67
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
68
|
+
logger.formatter = config.log_formatter
|
69
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
70
|
+
end
|
71
|
+
|
72
|
+
# Do not dump schema after migrations.
|
73
|
+
config.active_record.dump_schema_after_migration = false
|
74
|
+
end
|