rails_com 1.2.9 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (526) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +20 -165
  3. data/README.md +45 -22
  4. data/Rakefile +2 -1
  5. data/app/apis/ali_dns.rb +66 -0
  6. data/app/assets/images/avatar.png +0 -0
  7. data/app/channels/com/session_channel.rb +16 -0
  8. data/app/channels/rails_com/connection.rb +31 -0
  9. data/app/controllers/admin_controller.rb +4 -0
  10. data/app/controllers/application_controller.rb +7 -0
  11. data/app/controllers/base_controller.rb +2 -0
  12. data/app/controllers/board/base_controller.rb +3 -0
  13. data/app/controllers/board/home_controller.rb +6 -0
  14. data/app/controllers/board_controller.rb +3 -0
  15. data/app/controllers/com/audios_controller.rb +27 -0
  16. data/app/controllers/com/base_controller.rb +4 -0
  17. data/app/controllers/com/common_controller.rb +69 -0
  18. data/app/controllers/com/controller/admin.rb +114 -0
  19. data/app/controllers/com/controller/err_handler.rb +13 -0
  20. data/app/controllers/com/direct_uploads_controller.rb +11 -0
  21. data/app/controllers/com/log_controller.rb +30 -0
  22. data/app/controllers/com/nodes_controller.rb +22 -0
  23. data/app/controllers/com/panel/acme_accounts_controller.rb +12 -0
  24. data/app/controllers/com/panel/acme_identifiers_controller.rb +31 -0
  25. data/app/controllers/com/panel/acme_orders_controller.rb +64 -0
  26. data/app/controllers/com/panel/attachments_controller.rb +31 -0
  27. data/app/controllers/com/panel/base_controller.rb +5 -0
  28. data/app/controllers/com/panel/blob_defaults_controller.rb +13 -0
  29. data/app/controllers/com/panel/blobs_controller.rb +52 -0
  30. data/app/controllers/com/panel/cache_lists_controller.rb +5 -0
  31. data/app/controllers/com/panel/csps_controller.rb +18 -0
  32. data/app/controllers/com/panel/errs_controller.rb +18 -0
  33. data/app/controllers/com/panel/inbound_emails_controller.rb +15 -0
  34. data/app/controllers/com/panel/infos_controller.rb +9 -0
  35. data/app/controllers/com/panel/meta_actions_controller.rb +46 -0
  36. data/app/controllers/com/panel/meta_businesses_controller.rb +21 -0
  37. data/app/controllers/com/panel/meta_columns_controller.rb +47 -0
  38. data/app/controllers/com/panel/meta_controllers_controller.rb +46 -0
  39. data/app/controllers/com/panel/meta_models_controller.rb +32 -0
  40. data/app/controllers/com/panel/meta_namespaces_controller.rb +29 -0
  41. data/app/controllers/com/pdfs_controller.rb +37 -0
  42. data/app/controllers/com/videos_controller.rb +28 -0
  43. data/app/controllers/home_controller.rb +6 -0
  44. data/app/controllers/my/base_controller.rb +4 -0
  45. data/app/controllers/my/home_controller.rb +8 -0
  46. data/app/controllers/my_controller.rb +3 -0
  47. data/app/controllers/panel/base_controller.rb +4 -0
  48. data/app/controllers/panel/home_controller.rb +8 -0
  49. data/app/controllers/panel_controller.rb +5 -0
  50. data/app/controllers/rails_com/application.rb +113 -0
  51. data/app/helpers/rails_com/active_helper.rb +35 -39
  52. data/app/helpers/rails_com/form_helper.rb +21 -0
  53. data/app/helpers/rails_com/format_helper.rb +13 -0
  54. data/app/helpers/rails_com/frame_helper.rb +13 -0
  55. data/app/helpers/rails_com/kaminari_helper.rb +9 -0
  56. data/app/helpers/rails_com/time_helper.rb +23 -0
  57. data/app/helpers/rails_com/url_helper.rb +12 -0
  58. data/app/jobs/active_storage/identify_job.rb +9 -0
  59. data/app/jobs/application_job.rb +2 -0
  60. data/app/jobs/com/acme_job.rb +9 -0
  61. data/app/jobs/com/err_job.rb +10 -0
  62. data/app/mailboxes/application_mailbox.rb +2 -0
  63. data/app/mailers/application_mailer.rb +3 -0
  64. data/app/models/com/acme_account.rb +5 -0
  65. data/app/models/com/acme_identifier.rb +5 -0
  66. data/app/models/com/acme_order.rb +5 -0
  67. data/app/models/com/application_record.rb +5 -0
  68. data/app/models/com/blob_default.rb +5 -0
  69. data/app/models/com/cache_list.rb +5 -0
  70. data/app/models/com/csp.rb +5 -0
  71. data/app/models/com/err.rb +5 -0
  72. data/app/models/com/ext/debug.rb +71 -0
  73. data/app/models/com/ext/extra.rb +20 -0
  74. data/app/models/com/ext/parameter.rb +19 -0
  75. data/app/models/com/ext/sequence.rb +36 -0
  76. data/app/models/com/ext/state_machine.rb +82 -0
  77. data/app/models/com/ext/taxon.rb +81 -0
  78. data/app/models/com/ext/taxon_prepend.rb +21 -0
  79. data/app/models/com/info.rb +5 -0
  80. data/app/models/com/meta_action.rb +5 -0
  81. data/app/models/com/meta_business.rb +5 -0
  82. data/app/models/com/meta_column.rb +5 -0
  83. data/app/models/com/meta_controller.rb +5 -0
  84. data/app/models/com/meta_model.rb +5 -0
  85. data/app/models/com/meta_namespace.rb +5 -0
  86. data/app/models/com/meta_operation.rb +5 -0
  87. data/app/models/com/meta_route.rb +5 -0
  88. data/app/models/com/model/acme_account.rb +70 -0
  89. data/app/models/com/model/acme_identifier.rb +132 -0
  90. data/app/models/com/model/acme_order.rb +139 -0
  91. data/app/models/com/model/blob_default.rb +36 -0
  92. data/app/models/com/model/cache_list.rb +15 -0
  93. data/app/models/com/model/csp.rb +23 -0
  94. data/app/models/com/model/err.rb +108 -0
  95. data/app/models/com/model/info.rb +31 -0
  96. data/app/models/com/model/meta_action.rb +70 -0
  97. data/app/models/com/model/meta_business.rb +66 -0
  98. data/app/models/com/model/meta_column.rb +36 -0
  99. data/app/models/com/model/meta_controller.rb +115 -0
  100. data/app/models/com/model/meta_model.rb +58 -0
  101. data/app/models/com/model/meta_namespace.rb +61 -0
  102. data/app/models/com/model/meta_operation.rb +18 -0
  103. data/app/models/com/model/meta_permission.rb +10 -0
  104. data/app/models/com/model/meta_relation.rb +6 -0
  105. data/app/models/com/model/meta_route.rb +10 -0
  106. data/app/models/com.rb +11 -0
  107. data/app/models/concerns/feishu_bot.rb +15 -0
  108. data/app/models/concerns/log_record_bot.rb +40 -0
  109. data/app/models/concerns/work_wechat_bot.rb +18 -0
  110. data/app/stores/com/env_yaml.rb +96 -0
  111. data/app/stores/com/yaml.rb +89 -0
  112. data/app/views/admin/_breadcrumb.html.erb +5 -0
  113. data/app/views/application/_actionsheet.html.erb +20 -0
  114. data/app/views/application/_alert.html+phone.erb +6 -0
  115. data/app/views/application/_alert.html.erb +9 -0
  116. data/app/views/application/_auth_navbar.html.erb +18 -0
  117. data/app/views/application/_breadcrumb.html.erb +0 -0
  118. data/app/views/application/_button.html+phone.erb +3 -0
  119. data/app/views/application/_button.html.erb +3 -0
  120. data/app/views/application/_edit_form.html+phone.erb +10 -0
  121. data/app/views/application/_edit_form.html.erb +4 -0
  122. data/app/views/application/_error_messages.html.erb +11 -0
  123. data/app/views/application/_filter_form.html+phone.erb +14 -0
  124. data/app/views/application/_filter_form.html.erb +9 -0
  125. data/app/views/application/_filter_table.html.erb +0 -0
  126. data/app/views/application/_footer.html.erb +8 -0
  127. data/app/views/application/_form.html.erb +4 -0
  128. data/app/views/application/_index_sortable_table.html.erb +22 -0
  129. data/app/views/application/_index_table.html+phone.erb +13 -0
  130. data/app/views/application/_index_table.html.erb +22 -0
  131. data/app/views/application/_index_tbody.html.erb +3 -0
  132. data/app/views/application/_index_thead.html.erb +4 -0
  133. data/app/views/application/_index_tr.html+phone.erb +4 -0
  134. data/app/views/application/_index_tr.html.erb +16 -0
  135. data/app/views/application/_index_tree_table.html.erb +18 -0
  136. data/app/views/application/_locales.html.erb +11 -0
  137. data/app/views/application/_modal.html+phone.erb +14 -0
  138. data/app/views/application/_modal.html.erb +14 -0
  139. data/app/views/application/_nav.html.erb +0 -0
  140. data/app/views/application/_nav_bar.html+phone.erb +0 -0
  141. data/app/views/application/_nav_bar.html.erb +25 -0
  142. data/app/views/application/_nav_brand.html.erb +3 -0
  143. data/app/views/application/_nav_with_login.html.erb +0 -0
  144. data/app/views/application/_nav_without_login.html.erb +0 -0
  145. data/app/views/application/_new_form.html+phone.erb +10 -0
  146. data/app/views/application/_new_form.html.erb +4 -0
  147. data/app/views/application/_pagination.json.jbuilder +7 -0
  148. data/app/views/application/_show.html+phone.erb +20 -0
  149. data/app/views/application/_show.html.erb +13 -0
  150. data/app/views/application/_show_table.html.erb +0 -0
  151. data/app/views/application/_tab_bar.html.erb +3 -0
  152. data/app/views/application/_tab_bar_item.erb +4 -0
  153. data/app/views/application/alert.turbo_stream.erb +1 -0
  154. data/app/views/application/controller_not_found.json.jbuilder +4 -0
  155. data/app/views/application/create.json.jbuilder +1 -0
  156. data/app/views/application/create.turbo_stream.erb +3 -0
  157. data/app/views/application/destroy.json.jbuilder +0 -0
  158. data/app/views/application/destroy.turbo_stream.erb +3 -0
  159. data/app/views/application/edit.html.erb +7 -0
  160. data/app/views/application/edit.json.jbuilder +2 -0
  161. data/app/views/{shared/_error_messages.html.erb → application/err.turbo_stream.erb} +4 -4
  162. data/app/views/application/index.html.erb +5 -0
  163. data/app/views/application/index.json.jbuilder +1 -0
  164. data/app/views/application/move_higher.turbo_stream.erb +3 -0
  165. data/app/views/application/move_lower.turbo_stream.erb +3 -0
  166. data/app/views/application/new.html.erb +7 -0
  167. data/app/views/application/new.json.jbuilder +2 -0
  168. data/app/views/application/show.html.erb +3 -0
  169. data/app/views/application/show.json.jbuilder +1 -0
  170. data/app/views/application/update.json.jbuilder +1 -0
  171. data/app/views/application/update.turbo_stream.erb +3 -0
  172. data/app/views/board/home/index.html.erb +0 -0
  173. data/app/views/com/attachments/_file_upload.html.erb +19 -0
  174. data/app/views/com/attachments/_image_preview.html.erb +9 -0
  175. data/app/views/com/attachments/_list.html.erb +31 -0
  176. data/app/views/com/attachments/_list_edit.html.erb +28 -0
  177. data/app/views/com/attachments/_list_field.html.erb +6 -0
  178. data/app/views/com/attachments/_list_many.html.erb +17 -0
  179. data/app/views/com/attachments/_video_item.html.erb +6 -0
  180. data/app/views/com/audios/show.html.erb +3 -0
  181. data/app/views/com/common/deploy.html.erb +0 -0
  182. data/app/views/com/common/info.json.jbuilder +1 -0
  183. data/app/views/com/extra/_extra_form.html.erb +5 -0
  184. data/app/views/com/extra/_item.html.erb +15 -0
  185. data/app/views/com/nodes/_children_options.html.erb +4 -0
  186. data/app/views/com/nodes/_children_select.html.erb +15 -0
  187. data/app/views/com/nodes/_outer_children_options.html.erb +4 -0
  188. data/app/views/com/nodes/_outer_options.html+phone.erb +2 -0
  189. data/app/views/com/nodes/_outer_options.html.erb +4 -0
  190. data/app/views/com/nodes/_outer_select.html.erb +12 -0
  191. data/app/views/com/nodes/_self_and_siblings_options.html.erb +4 -0
  192. data/app/views/com/nodes/_siblings_options.html.erb +4 -0
  193. data/app/views/com/nodes/_siblings_select.html.erb +14 -0
  194. data/app/views/com/nodes/children.turbo_stream.erb +3 -0
  195. data/app/views/com/nodes/outer.turbo_stream.erb +3 -0
  196. data/app/views/com/panel/acme_accounts/_filter_form.html.erb +9 -0
  197. data/app/views/com/panel/acme_accounts/_index_tbody.html.erb +7 -0
  198. data/app/views/com/panel/acme_accounts/_index_thead.html.erb +4 -0
  199. data/app/views/com/panel/acme_accounts/_index_tr.html.erb +16 -0
  200. data/app/views/com/panel/acme_identifiers/_breadcrumb.html.erb +7 -0
  201. data/app/views/com/panel/acme_identifiers/_button.html.erb +0 -0
  202. data/app/views/com/panel/acme_identifiers/_filter_form.html.erb +9 -0
  203. data/app/views/com/panel/acme_identifiers/_form.html.erb +2 -0
  204. data/app/views/com/panel/acme_identifiers/_index_tbody.html.erb +16 -0
  205. data/app/views/com/panel/acme_identifiers/_index_thead.html.erb +17 -0
  206. data/app/views/com/panel/acme_identifiers/_show_table.html.erb +24 -0
  207. data/app/views/com/panel/acme_identifiers/index.html.erb +3 -0
  208. data/app/views/com/panel/acme_orders/_breadcrumb.html.erb +6 -0
  209. data/app/views/com/panel/acme_orders/_filter_form.html.erb +9 -0
  210. data/app/views/com/panel/acme_orders/_form.html.erb +4 -0
  211. data/app/views/com/panel/acme_orders/_index_tbody.html.erb +11 -0
  212. data/app/views/com/panel/acme_orders/_index_thead.html.erb +8 -0
  213. data/app/views/com/panel/acme_orders/_index_tr.html.erb +25 -0
  214. data/app/views/com/panel/acme_orders/_item_form.html.erb +14 -0
  215. data/app/views/com/panel/acme_orders/_new_form.html.erb +7 -0
  216. data/app/views/com/panel/acme_orders/_show_table.html.erb +4 -0
  217. data/app/views/com/panel/attachments/_breadcrumb.html.erb +10 -0
  218. data/app/views/com/panel/attachments/_button.html.erb +0 -0
  219. data/app/views/com/panel/attachments/_filter_form.html.erb +13 -0
  220. data/app/views/com/panel/attachments/_index_tbody.html.erb +6 -0
  221. data/app/views/com/panel/attachments/_index_thead.html.erb +7 -0
  222. data/app/views/com/panel/attachments/_index_tr.html.erb +10 -0
  223. data/app/views/com/panel/attachments/index.html.erb +5 -0
  224. data/app/views/com/panel/base/_index_meta_action.html.erb +14 -0
  225. data/app/views/com/panel/base/_nav.html.erb +3 -0
  226. data/app/views/com/panel/blob_defaults/_add_form.html.erb +7 -0
  227. data/app/views/com/panel/blob_defaults/_filter_form.html.erb +10 -0
  228. data/app/views/com/panel/blob_defaults/_form.html.erb +4 -0
  229. data/app/views/com/panel/blob_defaults/_index_tbody.html.erb +7 -0
  230. data/app/views/com/panel/blob_defaults/_index_thead.html.erb +5 -0
  231. data/app/views/com/panel/blob_defaults/_index_tr.html.erb +13 -0
  232. data/app/views/com/panel/blob_defaults/add.turbo_stream.erb +1 -0
  233. data/app/views/com/panel/blobs/_breadcrumb.html.erb +6 -0
  234. data/app/views/com/panel/blobs/_filter_form.html.erb +13 -0
  235. data/app/views/com/panel/blobs/_index_tbody.html.erb +22 -0
  236. data/app/views/com/panel/blobs/_index_thead.html.erb +12 -0
  237. data/app/views/com/panel/blobs/_index_tr.html.erb +13 -0
  238. data/app/views/com/panel/blobs/_new_form.html.erb +5 -0
  239. data/app/views/com/panel/blobs/index.html.erb +5 -0
  240. data/app/views/com/panel/cache_lists/_index_tbody.html.erb +4 -0
  241. data/app/views/com/panel/cache_lists/_index_thead.html.erb +5 -0
  242. data/app/views/com/panel/cache_lists/_show_table.html.erb +8 -0
  243. data/app/views/com/panel/csps/_button.html.erb +0 -0
  244. data/app/views/com/panel/csps/_filter_form.html.erb +8 -0
  245. data/app/views/com/panel/csps/_index_tbody.html.erb +11 -0
  246. data/app/views/com/panel/csps/_index_thead.html.erb +12 -0
  247. data/app/views/com/panel/csps/_index_tr.html.erb +13 -0
  248. data/app/views/com/panel/csps/_show/_breadcrumb.html.erb +6 -0
  249. data/app/views/com/panel/csps/_show_table.html.erb +48 -0
  250. data/app/views/com/panel/csps/show.html.erb +7 -0
  251. data/app/views/com/panel/errs/_button.html.erb +0 -0
  252. data/app/views/com/panel/errs/_filter_form.html.erb +11 -0
  253. data/app/views/com/panel/errs/_index_tbody.html.erb +16 -0
  254. data/app/views/com/panel/errs/_index_thead.html.erb +11 -0
  255. data/app/views/com/panel/errs/_index_tr.html.erb +13 -0
  256. data/app/views/com/panel/errs/_show/_breadcrumb.html.erb +6 -0
  257. data/app/views/com/panel/errs/_show_table.html.erb +44 -0
  258. data/app/views/com/panel/errs/show.html.erb +7 -0
  259. data/app/views/com/panel/inbound_emails/_button.html.erb +0 -0
  260. data/app/views/com/panel/inbound_emails/_filter_form.html.erb +9 -0
  261. data/app/views/com/panel/inbound_emails/_index_tbody.html.erb +5 -0
  262. data/app/views/com/panel/inbound_emails/_index_thead.html.erb +6 -0
  263. data/app/views/com/panel/inbound_emails/_show_table.html.erb +10 -0
  264. data/app/views/com/panel/inbound_emails/index.html.erb +5 -0
  265. data/app/views/com/panel/infos/_filter_form.html.erb +9 -0
  266. data/app/views/com/panel/infos/_index_tbody.html.erb +4 -0
  267. data/app/views/com/panel/infos/_index_thead.html.erb +5 -0
  268. data/app/views/com/panel/infos/index.json.jbuilder +1 -0
  269. data/app/views/com/panel/meta_actions/_breadcrumb.html.erb +6 -0
  270. data/app/views/com/panel/meta_actions/_form.html.erb +1 -0
  271. data/app/views/com/panel/meta_actions/_index_tbody.html.erb +4 -0
  272. data/app/views/com/panel/meta_actions/_index_thead.html.erb +5 -0
  273. data/app/views/com/panel/meta_actions/_roles.html.erb +9 -0
  274. data/app/views/com/panel/meta_actions/index.html.erb +3 -0
  275. data/app/views/com/panel/meta_actions/roles.js.erb +6 -0
  276. data/app/views/com/panel/meta_actions/update.turbo_stream.erb +1 -0
  277. data/app/views/com/panel/meta_businesses/_breadcrumb.html.erb +10 -0
  278. data/app/views/com/panel/meta_businesses/_button.html.erb +3 -0
  279. data/app/views/com/panel/meta_businesses/_form.html.erb +3 -0
  280. data/app/views/com/panel/meta_businesses/_index_tbody.html.erb +12 -0
  281. data/app/views/com/panel/meta_businesses/_index_thead.html.erb +2 -0
  282. data/app/views/com/panel/meta_businesses/_index_tr.html.erb +16 -0
  283. data/app/views/com/panel/meta_businesses/_show_table.html.erb +8 -0
  284. data/app/views/com/panel/meta_businesses/sync.turbo_stream.erb +3 -0
  285. data/app/views/com/panel/meta_columns/_breadcrumb.html.erb +6 -0
  286. data/app/views/com/panel/meta_columns/_form.html.erb +6 -0
  287. data/app/views/com/panel/meta_columns/_index_tbody.html.erb +20 -0
  288. data/app/views/com/panel/meta_columns/_index_thead.html.erb +12 -0
  289. data/app/views/com/panel/meta_columns/_index_tr.html.erb +22 -0
  290. data/app/views/com/panel/meta_columns/_show_table.html.erb +20 -0
  291. data/app/views/com/panel/meta_columns/sync.turbo_stream.erb +3 -0
  292. data/app/views/com/panel/meta_columns/test.turbo_stream.erb +3 -0
  293. data/app/views/com/panel/meta_controllers/_button.html.erb +3 -0
  294. data/app/views/com/panel/meta_controllers/_filter_form.html.erb +8 -0
  295. data/app/views/com/panel/meta_controllers/_filter_tablex.html.erb +8 -0
  296. data/app/views/com/panel/meta_controllers/_form.html.erb +2 -0
  297. data/app/views/com/panel/meta_controllers/_index_meta_business.html.erb +10 -0
  298. data/app/views/com/panel/meta_controllers/_index_meta_controller.html.erb +15 -0
  299. data/app/views/com/panel/meta_controllers/_index_meta_namespace.html.erb +12 -0
  300. data/app/views/com/panel/meta_controllers/_index_tbody.html.erb +28 -0
  301. data/app/views/com/panel/meta_controllers/_index_thead.html.erb +2 -0
  302. data/app/views/com/panel/meta_controllers/index.html.erb +3 -0
  303. data/app/views/com/panel/meta_controllers/meta_actions.turbo_stream.erb +1 -0
  304. data/app/views/com/panel/meta_controllers/meta_controllers.turbo_stream.erb +1 -0
  305. data/app/views/com/panel/meta_controllers/meta_namespaces.turbo_stream.erb +1 -0
  306. data/app/views/com/panel/meta_controllers/sync.turbo_stream.erb +3 -0
  307. data/app/views/com/panel/meta_models/_button.html.erb +6 -0
  308. data/app/views/com/panel/meta_models/_form.html.erb +4 -0
  309. data/app/views/com/panel/meta_models/_index_tbody.html.erb +3 -0
  310. data/app/views/com/panel/meta_models/_index_thead.html.erb +4 -0
  311. data/app/views/com/panel/meta_models/_index_tr.html.erb +19 -0
  312. data/app/views/com/panel/meta_models/_show_table.html.erb +12 -0
  313. data/app/views/com/panel/meta_models/sync.turbo_stream.erb +3 -0
  314. data/app/views/com/panel/meta_namespaces/_breadcrumb.html.erb +10 -0
  315. data/app/views/com/panel/meta_namespaces/_button.html.erb +3 -0
  316. data/app/views/com/panel/meta_namespaces/_form.html.erb +5 -0
  317. data/app/views/com/panel/meta_namespaces/_index_tbody.html.erb +20 -0
  318. data/app/views/com/panel/meta_namespaces/_index_thead.html.erb +6 -0
  319. data/app/views/com/panel/meta_namespaces/_show_table.html.erb +20 -0
  320. data/app/views/com/panel/meta_namespaces/sync.turbo_stream.erb +3 -0
  321. data/app/views/com/videos/show.html.erb +9 -0
  322. data/app/{assets/javascripts/controllers/active_storage_ext/videos/show.ready.js → views/com/videos/show.js} +0 -0
  323. data/app/views/default_form/_date_field.html.erb +1 -0
  324. data/app/views/default_form/_datetime_field.html.erb +1 -0
  325. data/app/views/default_form/_number_field.html.erb +1 -0
  326. data/app/views/default_form/_outer_select.html.erb +14 -0
  327. data/app/views/default_form/_select_enum.html.erb +1 -0
  328. data/app/views/default_form/_text_field.html.erb +1 -0
  329. data/app/views/default_form/_time_field.html.erb +1 -0
  330. data/app/views/extra_form/_number_field.html.erb +1 -0
  331. data/app/views/extra_form/_outer_select.html.erb +14 -0
  332. data/app/views/extra_form/_text_field.html.erb +1 -0
  333. data/app/views/home/index.html.erb +0 -0
  334. data/app/views/kaminari/com/_first_page.html.erb +3 -0
  335. data/app/views/kaminari/{_gap.html.erb → com/_gap.html.erb} +1 -1
  336. data/app/views/kaminari/com/_last_page.html.erb +3 -0
  337. data/app/views/kaminari/com/_next_page.html.erb +3 -0
  338. data/app/views/kaminari/com/_page.html.erb +1 -0
  339. data/app/views/kaminari/{_paginator.html.erb → com/_paginator.html+phone.erb} +3 -3
  340. data/app/views/kaminari/com/_paginator.html.erb +17 -0
  341. data/app/views/kaminari/com/_prev_page.html.erb +3 -0
  342. data/app/views/layouts/_admin_head.html.erb +22 -0
  343. data/app/views/layouts/_application_head.html.erb +26 -0
  344. data/app/views/layouts/_phone_head.html.erb +28 -0
  345. data/app/views/layouts/admin.html.erb +12 -0
  346. data/app/views/layouts/application.html+phone.erb +12 -0
  347. data/app/views/layouts/application.html.erb +11 -0
  348. data/app/views/layouts/application.json.jbuilder +2 -0
  349. data/app/views/layouts/board.html+phone.erb +10 -0
  350. data/app/views/layouts/board.html.erb +12 -0
  351. data/app/views/layouts/mailer.html.erb +14 -0
  352. data/app/views/layouts/mailer.text.erb +1 -0
  353. data/app/views/layouts/my.html+phone.erb +11 -0
  354. data/app/views/layouts/my.html.erb +13 -0
  355. data/app/views/layouts/panel.html.erb +12 -0
  356. data/app/views/my/home/index.html.erb +0 -0
  357. data/app/views/panel/_breadcrumb.html.erb +0 -0
  358. data/app/views/panel/_com_nav.html.erb +19 -0
  359. data/app/views/panel/_nav.html.erb +6 -0
  360. data/app/views/panel/_nav_without_login.html.erb +3 -0
  361. data/app/views/panel/destroy.turbo_stream.erb +1 -0
  362. data/app/views/panel/home/index.html.erb +0 -0
  363. data/config/default_form.yml +74 -0
  364. data/config/locales/en.controller.yml +46 -0
  365. data/config/locales/en.yml +2 -2
  366. data/config/locales/zh.attributes.yml +9 -0
  367. data/config/locales/zh.controller.yml +65 -0
  368. data/config/locales/zh.enum.yml +11 -0
  369. data/config/locales/zh.helper.yml +10 -0
  370. data/config/locales/zh.rb +34 -0
  371. data/config/locales/zh.yml +66 -10
  372. data/config/routes.rb +140 -8
  373. data/lib/active_storage/service/disc_service.rb +41 -0
  374. data/lib/default_form/active_record/extend.rb +38 -0
  375. data/lib/default_form/builder/default.rb +88 -0
  376. data/lib/default_form/builder/helper.rb +212 -0
  377. data/lib/default_form/builder/wrap.rb +58 -0
  378. data/lib/default_form/config.rb +50 -0
  379. data/lib/default_form/controller_helper.rb +14 -0
  380. data/lib/default_form/form_builder.rb +61 -0
  381. data/lib/default_form/override/action_view/helpers/tags/collection_check_boxes.rb +23 -0
  382. data/lib/default_form/override/action_view/helpers/tags/collection_radio_buttons.rb +23 -0
  383. data/lib/default_form/view_helper.rb +39 -0
  384. data/lib/generators/jbuilder_generator.rb +22 -0
  385. data/lib/generators/scaffold_generator.rb +27 -0
  386. data/lib/generators/templates/jbuilder/_show.json.jbuilder.tt +1 -0
  387. data/lib/generators/templates/jbuilder/index.json.jbuilder.tt +1 -0
  388. data/lib/generators/templates/jbuilder/partial.json.jbuilder.tt +17 -0
  389. data/lib/generators/templates/scaffold_erb/_edit_form.html.erb.tt +4 -0
  390. data/lib/generators/templates/scaffold_erb/_filter_form.html.erb.tt +9 -0
  391. data/lib/generators/templates/scaffold_erb/_form.html.erb.tt +4 -0
  392. data/lib/generators/templates/scaffold_erb/_index_tbody.html.erb.tt +3 -0
  393. data/lib/generators/templates/scaffold_erb/_index_thead.html.erb.tt +4 -0
  394. data/lib/generators/templates/scaffold_erb/_new_form.html.erb.tt +4 -0
  395. data/lib/generators/templates/scaffold_erb/_show_table.html.erb.tt +6 -0
  396. data/lib/generators/templates/scaffold_erb/index.html.erb.tt +5 -0
  397. data/lib/rails_com/action_controller/errors.rb +9 -2
  398. data/lib/rails_com/action_controller/extend.rb +20 -0
  399. data/lib/rails_com/action_controller/include.rb +31 -0
  400. data/lib/rails_com/action_controller/parameters.rb +3 -0
  401. data/lib/rails_com/action_controller/public_exceptions.rb +31 -0
  402. data/lib/rails_com/action_controller/subscriber.rb +32 -0
  403. data/lib/rails_com/action_controller.rb +9 -3
  404. data/lib/rails_com/action_mailbox/inbound_email.rb +23 -0
  405. data/lib/rails_com/action_mailbox/mail_ext.rb +34 -0
  406. data/lib/rails_com/action_mailbox.rb +4 -0
  407. data/lib/rails_com/action_text/rich_text.rb +16 -0
  408. data/lib/rails_com/action_text.rb +3 -0
  409. data/lib/rails_com/action_view/partial_renderer.rb +22 -0
  410. data/lib/rails_com/action_view/template_renderer.rb +27 -28
  411. data/lib/rails_com/action_view/translation_helper.rb +7 -4
  412. data/lib/rails_com/action_view.rb +5 -2
  413. data/lib/rails_com/active_storage/activestorage_attached.rb +7 -4
  414. data/lib/rails_com/active_storage/attached_macros.rb +17 -5
  415. data/lib/rails_com/active_storage/attachment_prepend.rb +14 -0
  416. data/lib/rails_com/active_storage/attachment_transfer.rb +12 -5
  417. data/lib/rails_com/active_storage/video_response.rb +5 -1
  418. data/lib/rails_com/active_storage.rb +9 -4
  419. data/lib/rails_com/all.rb +23 -0
  420. data/lib/rails_com/api.rb +24 -0
  421. data/lib/rails_com/config.rb +22 -14
  422. data/lib/rails_com/engine.rb +41 -25
  423. data/lib/rails_com/utils/hex_helper.rb +12 -0
  424. data/lib/rails_com/utils/jobber.rb +3 -1
  425. data/lib/rails_com/utils/num_helper.rb +7 -5
  426. data/lib/rails_com/utils/qrcode_helper.rb +35 -0
  427. data/lib/rails_com/utils/setting.rb +5 -5
  428. data/lib/rails_com/utils/time_helper.rb +2 -0
  429. data/lib/rails_com/utils/uid_helper.rb +18 -15
  430. data/lib/rails_com.rb +25 -17
  431. data/lib/templates/rails/scaffold_controller/api_controller.rb.tt +20 -19
  432. data/lib/templates/rails/scaffold_controller/controller.rb.tt +1 -52
  433. data/lib/templates/test_unit/scaffold/functional_test.rb.tt +64 -0
  434. metadata +511 -120
  435. data/app/assets/config/rails_com_manifest.js +0 -6
  436. data/app/assets/images/image-square.png +0 -0
  437. data/app/assets/images/verification.jpg +0 -0
  438. data/app/assets/javascripts/rails_com/application.js +0 -29
  439. data/app/assets/javascripts/rails_com/attachment.js +0 -421
  440. data/app/assets/javascripts/rails_com/checkbox.js +0 -59
  441. data/app/assets/javascripts/rails_com/fetch_xhr_script.js +0 -31
  442. data/app/assets/javascripts/rails_com/footer.js +0 -9
  443. data/app/assets/javascripts/rails_com/picture.js +0 -18
  444. data/app/assets/javascripts/rails_com/sidebar.js +0 -40
  445. data/app/assets/javascripts/rails_com/time_local.js +0 -9
  446. data/app/assets/stylesheets/controllers/active_storage_ext/videos/show.css +0 -7
  447. data/app/assets/stylesheets/controllers/active_storage_ext/videos/transfer.css +0 -4
  448. data/app/assets/stylesheets/rails_com/application.css +0 -3
  449. data/app/controllers/active_storage_ext/admin/attachments_controller.rb +0 -13
  450. data/app/controllers/active_storage_ext/admin/base_controller.rb +0 -4
  451. data/app/controllers/active_storage_ext/admin/blob_defaults_controller.rb +0 -55
  452. data/app/controllers/active_storage_ext/admin/blobs_controller.rb +0 -48
  453. data/app/controllers/active_storage_ext/audios_controller.rb +0 -24
  454. data/app/controllers/active_storage_ext/videos_controller.rb +0 -25
  455. data/app/controllers/concerns/rails_common_api.rb +0 -60
  456. data/app/controllers/concerns/rails_common_controller.rb +0 -46
  457. data/app/controllers/concerns/rails_common_xhr.rb +0 -15
  458. data/app/helpers/rails_com/assets_helper.rb +0 -109
  459. data/app/models/active_storage/blob_default.rb +0 -24
  460. data/app/models/concerns/state_machine.rb +0 -79
  461. data/app/views/active_storage_ext/admin/attachments/destroy.js.erb +0 -1
  462. data/app/views/active_storage_ext/admin/blob_defaults/_form.html.erb +0 -8
  463. data/app/views/active_storage_ext/admin/blob_defaults/_search_form.html.erb +0 -7
  464. data/app/views/active_storage_ext/admin/blob_defaults/edit.html.erb +0 -9
  465. data/app/views/active_storage_ext/admin/blob_defaults/index.html.erb +0 -49
  466. data/app/views/active_storage_ext/admin/blob_defaults/new.html.erb +0 -9
  467. data/app/views/active_storage_ext/admin/blob_defaults/show.html.erb +0 -10
  468. data/app/views/active_storage_ext/admin/blobs/_search_form.html.erb +0 -9
  469. data/app/views/active_storage_ext/admin/blobs/destroy.js.erb +0 -1
  470. data/app/views/active_storage_ext/admin/blobs/index.html.erb +0 -51
  471. data/app/views/active_storage_ext/admin/blobs/new.html.erb +0 -13
  472. data/app/views/active_storage_ext/admin/blobs/show.html.erb +0 -10
  473. data/app/views/active_storage_ext/attachments/_default_image_item.html.erb +0 -14
  474. data/app/views/active_storage_ext/attachments/_image_item.html.erb +0 -6
  475. data/app/views/active_storage_ext/attachments/_list.html.erb +0 -25
  476. data/app/views/active_storage_ext/attachments/_list_edit.html.erb +0 -27
  477. data/app/views/active_storage_ext/attachments/_list_field.html.erb +0 -6
  478. data/app/views/active_storage_ext/attachments/_video_item.html.erb +0 -6
  479. data/app/views/active_storage_ext/audios/show.html.erb +0 -5
  480. data/app/views/active_storage_ext/videos/show.html.erb +0 -6
  481. data/app/views/kaminari/_first_page.html.erb +0 -3
  482. data/app/views/kaminari/_last_page.html.erb +0 -3
  483. data/app/views/kaminari/_next_page.html.erb +0 -3
  484. data/app/views/kaminari/_page.html.erb +0 -1
  485. data/app/views/kaminari/_prev_page.html.erb +0 -3
  486. data/app/views/layouts/rails_com/application.html.erb +0 -17
  487. data/app/views/shared/_alert.html.erb +0 -8
  488. data/app/views/shared/_locales.html.erb +0 -8
  489. data/config/locales/zh.datetime.yml +0 -44
  490. data/db/migrate/20181012025833_rails_com_init.rb +0 -14
  491. data/lib/active_record/type/i18n.rb +0 -19
  492. data/lib/generators/doc_model_generator.rb +0 -37
  493. data/lib/generators/doc_models_generator.rb +0 -11
  494. data/lib/generators/templates/model.erb +0 -6
  495. data/lib/mina/git2.rb +0 -59
  496. data/lib/mina/puma.rb +0 -64
  497. data/lib/mina/sidekiq.rb +0 -67
  498. data/lib/mina/whenever.rb +0 -27
  499. data/lib/rails_com/action_controller/controller_helper.rb +0 -29
  500. data/lib/rails_com/active_record/model_helper.rb +0 -107
  501. data/lib/rails_com/active_record/persistence_sneakily.rb +0 -11
  502. data/lib/rails_com/active_record/translation.rb +0 -66
  503. data/lib/rails_com/active_record.rb +0 -3
  504. data/lib/rails_com/active_storage/blob_ext.rb +0 -34
  505. data/lib/rails_com/core/array.rb +0 -72
  506. data/lib/rails_com/core/date.rb +0 -25
  507. data/lib/rails_com/core/hash.rb +0 -38
  508. data/lib/rails_com/core/nil.rb +0 -7
  509. data/lib/rails_com/core/numeric.rb +0 -11
  510. data/lib/rails_com/core/string.rb +0 -15
  511. data/lib/rails_com/core.rb +0 -7
  512. data/lib/rails_com/generators/named_base.rb +0 -10
  513. data/lib/rails_com/generators/scaffold_generator.rb +0 -15
  514. data/lib/rails_com/meta/controllers.rb +0 -8
  515. data/lib/rails_com/meta/models.rb +0 -21
  516. data/lib/rails_com/meta/routes.rb +0 -53
  517. data/lib/rails_com/sprockets/non_digest_assets.rb +0 -16
  518. data/lib/rails_com/utils/babel.rb +0 -38
  519. data/lib/rails_com/version.rb +0 -3
  520. data/lib/tasks/rails_com_tasks.rake +0 -4
  521. data/lib/templates/erb/scaffold/_filter.html.erb.tt +0 -10
  522. data/lib/templates/erb/scaffold/_form.html.erb.tt +0 -12
  523. data/lib/templates/erb/scaffold/edit.html.erb.tt +0 -9
  524. data/lib/templates/erb/scaffold/index.html.erb.tt +0 -45
  525. data/lib/templates/erb/scaffold/new.html.erb.tt +0 -9
  526. data/lib/templates/erb/scaffold/show.html.erb.tt +0 -16
@@ -0,0 +1,3 @@
1
+ <%= render 'error_messages', target: f.object %>
2
+ <%= f.text_field :name %>
3
+ <%= f.file_field :logo %>
@@ -0,0 +1,12 @@
1
+ <td>
2
+ <div class="is-several">
3
+ <%= image_tag model.logo, class: 'image is-24x24' if model.logo.attached? %>
4
+ <%= link_to model.name, { action: 'show', id: model.id }, text: true %>
5
+ <%= button_to({ action: 'move_higher', id: model.id }, method: :patch, data: { 'show-target': 'item' }, style: 'visibility: hidden') do %>
6
+ <i class="fa-light fa-arrow-up"></i>
7
+ <% end %>
8
+ <%= button_to({ action: 'move_lower', id: model.id }, method: :patch, data: { 'show-target': 'item' }, style: 'visibility: hidden') do %>
9
+ <i class="fa-light fa-arrow-down"></i>
10
+ <% end %>
11
+ </div>
12
+ </td>
@@ -0,0 +1,2 @@
1
+ <th><%= Com::MetaBusiness.human_attribute_name(:name) %></th>
2
+ <th></th>
@@ -0,0 +1,16 @@
1
+ <tr id="tr_<%= model.id %>" data-controller="show" data-action="mouseenter->show#show mouseleave->show#hide">
2
+ <%= yield %>
3
+ <td>
4
+ <span data-show-target="item" style="visibility: hidden">
5
+ <%= link_to({ action: 'show', id: model.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.show') }, class: 'button is-small is-rounded is-light') do %>
6
+ <i class="fa-light fa-circle-info"></i>
7
+ <% end %>
8
+ <%= link_to({ action: 'edit', id: model.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.edit') }, class: 'button is-small is-rounded is-light') do %>
9
+ <i class="fa-light fa-pencil"></i>
10
+ <% end %>
11
+ <%= link_to({ action: 'destroy', id: model.id }, method: :delete, data: { confirm: t('.confirm') }, aria: { label: t('.destroy') }, class: 'button is-small is-rounded is-light') do %>
12
+ <i class="fa-light fa-trash"></i>
13
+ <% end %>
14
+ </span>
15
+ </td>
16
+ </tr>
@@ -0,0 +1,8 @@
1
+ <tr>
2
+ <td class="has-text-right"><%= Com::MetaBusiness.human_attribute_name(:name) %></td>
3
+ <td><%= @meta_business.name %></td>
4
+ </tr>
5
+ <tr>
6
+ <td class="has-text-right"><%= Com::MetaBusiness.human_attribute_name(:identifier) %></td>
7
+ <td><%= @meta_business.identifier %></td>
8
+ </tr>
@@ -0,0 +1,3 @@
1
+ <%= turbo_stream.append 'body' do %>
2
+ <div data-controller="visit"></div>
3
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <div class="breadcrumb has-succeeds-separator">
2
+ <ul>
3
+ <li><%= link_to t('com.panel.meta_models.index.title'), { controller: 'meta_models' } %></li>
4
+ <li class="is-active"><%= t('.title') %></li>
5
+ </ul>
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <%= render 'error_messages', target: f.object %>
2
+ <%= f.text_field :column_name %>
3
+ <%= f.text_field :column_type %>
4
+ <%= f.text_field :sql_type %>
5
+ <%= f.number_field :column_limit %>
6
+ <%= f.text_area :comment %>
@@ -0,0 +1,20 @@
1
+ <td><%= model.column_name %></td>
2
+ <td>
3
+ <p><%= model.column_type %></p>
4
+ <p class="has-text-grey"><%= model.sql_type %></p>
5
+ </td>
6
+ <td><%= model.column_limit %></td>
7
+ <td>
8
+ <% if model.defined_db %>
9
+ <i class="fa-light fa-check has-text-success"></i>
10
+ <% else %>
11
+ <i class="fa-light fa-times has-text-danger"></i>
12
+ <% end %>
13
+ </td>
14
+ <td>
15
+ <% if model.defined_model %>
16
+ <i class="fa-light fa-check has-text-success"></i>
17
+ <% else %>
18
+ <i class="fa-light fa-times has-text-danger"></i>
19
+ <% end %>
20
+ </td>
@@ -0,0 +1,12 @@
1
+ <th><%= Com::MetaColumn.human_attribute_name(:column_name) %></th>
2
+ <th>
3
+ <p><%= Com::MetaColumn.human_attribute_name(:column_type) %></p>
4
+ <p class="has-text-grey">
5
+ <span><%= Com::MetaColumn.human_attribute_name(:sql_type) %></span>
6
+ <span>(<%= @meta_model.record_class.connection.adapter_name %>)</span>
7
+ </p>
8
+ </th>
9
+ <th><%= Com::MetaColumn.human_attribute_name(:column_limit) %></th>
10
+ <th><%= Com::MetaColumn.human_attribute_name(:defined_db) %></th>
11
+ <th><%= Com::MetaColumn.human_attribute_name(:defined_model) %></th>
12
+ <th></th>
@@ -0,0 +1,22 @@
1
+ <tr id="tr_<%= model.id %>" data-controller="show" data-action="mouseenter->show#show mouseleave->show#hide">
2
+ <%= yield %>
3
+ <td>
4
+ <span data-show-target="item" style="visibility: hidden">
5
+ <%= button_to({ action: 'sync', id: model.id }, method: :patch, aria: { label: t('.sync') }, class: 'button is-small is-rounded is-light') do %>
6
+ <i class="fa-light fa-sync"></i>
7
+ <% end %>
8
+ <%= button_to({ action: 'test', id: model.id }, method: :patch, aria: { label: t('.test') }, class: 'button is-small is-rounded is-light') do %>
9
+ <i class="fa-light fa-vial"></i>
10
+ <% end %>
11
+ <%= link_to({ action: 'show', id: model.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.show') }, class: 'button is-small is-rounded is-light') do %>
12
+ <i class="fa-light fa-circle-info"></i>
13
+ <% end %>
14
+ <%= link_to({ action: 'edit', id: model.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.edit') }, class: 'button is-small is-rounded is-light') do %>
15
+ <i class="fa-light fa-pencil"></i>
16
+ <% end %>
17
+ <%= button_to({ action: 'destroy', id: model.id }, method: :delete, data: { confirm: t('.confirm') }, aria: { label: t('.destroy') }, class: 'button is-small is-rounded is-light') do %>
18
+ <i class="fa-light fa-trash"></i>
19
+ <% end %>
20
+ </span>
21
+ </td>
22
+ </tr>
@@ -0,0 +1,20 @@
1
+ <tr>
2
+ <td class="has-text-right"><%= Com::MetaColumn.human_attribute_name(:model_name) %></td>
3
+ <td><%= @meta_column.model_name %></td>
4
+ </tr>
5
+ <tr>
6
+ <td class="has-text-right"><%= Com::MetaColumn.human_attribute_name(:column_name) %></td>
7
+ <td><%= @meta_column.column_name %></td>
8
+ </tr>
9
+ <tr>
10
+ <td class="has-text-right"><%= Com::MetaColumn.human_attribute_name(:column_type) %></td>
11
+ <td><%= @meta_column.column_type %></td>
12
+ </tr>
13
+ <tr>
14
+ <td class="has-text-right"><%= Com::MetaColumn.human_attribute_name(:sql_type) %></td>
15
+ <td><%= @meta_column.sql_type %></td>
16
+ </tr>
17
+ <tr>
18
+ <td class="has-text-right"><%= Com::MetaColumn.human_attribute_name(:column_limit) %></td>
19
+ <td><%= @meta_column.column_limit %></td>
20
+ </tr>
@@ -0,0 +1,3 @@
1
+ <%= turbo_stream.append 'body' do %>
2
+ <div data-controller="visit"></div>
3
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <%= turbo_stream.append 'body' do %>
2
+ <div data-controller="visit"></div>
3
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <%= button_to({ action: 'sync' }, method: :post, data: { disable_with: 'Syncing' }, class: 'button is-success') do %>
2
+ <i class="fa-light fa-sync-alt"></i><span><%= t('.sync') %></span>
3
+ <% end %>
@@ -0,0 +1,8 @@
1
+ <%= form_with theme: 'search', model: Com::MetaController.new do |f| %>
2
+ <div class="field-body">
3
+ <%= f.text_field :controller_name %>
4
+ <div class="field is-narrow">
5
+ <%= f.submit %>
6
+ </div>
7
+ </div>
8
+ <% end %>
@@ -0,0 +1,8 @@
1
+ <table class="as-search">
2
+ <tr>
3
+ <th><%= link_to Govern.human_attribute_name(:govern_taxon_id), panel_govern_taxons_path %></th>
4
+ <td>
5
+ <%= link_to t('.unclassified'), filter_params(except: [:govern_taxon_id]), class: active_params(govern_taxon_id: '', active: 'button is-info', item: 'button is-light') %>
6
+ </td>
7
+ </tr>
8
+ </table>
@@ -0,0 +1,2 @@
1
+ <%= f.text_field :name %>
2
+ <%= f.text_field :code %>
@@ -0,0 +1,10 @@
1
+ <tr id="<%= meta_business.tr_id %>" data-controller="tree-remote show" data-tree-remote-target="item" data-action="mouseenter->show#show mouseleave->show#hide">
2
+ <td>
3
+ <%= button_to({ action: 'meta_namespaces', business_identifier: meta_business.identifier }, data: { turbo_frame: 'visit' }) do %>
4
+ <i class="fa-solid fa-fw fa-caret-right" style="cursor: pointer" data-action="click->tree-remote#expand"></i>
5
+ <% end %>
6
+ <span><%= meta_business.name %></span>
7
+ <span class="has-text-grey">(<%= meta_business.identifier %>)</span>
8
+ </td>
9
+ <td></td>
10
+ </tr>
@@ -0,0 +1,15 @@
1
+ <% @meta_controllers.each do |meta_controller| %>
2
+ <tr id="tr_<%= meta_controller.identifier %>" data-controller="tree-remote" data-tree-remote-target="item">
3
+ <td>
4
+ <span style="width: 2.86em; display: inline-block"></span>
5
+ <%= button_to({ action: 'meta_actions', meta_controller_id: meta_controller.id }, data: { turbo_frame: 'visit' }) do %>
6
+ <i class="fa-solid fa-fw fa-caret-right" style="cursor: pointer" data-action="click->tree-remote#expand"></i>
7
+ <% end %>
8
+ <%= link_to({ controller: 'meta_actions', meta_controller_id: meta_controller.id }) do %>
9
+ <span><%= meta_controller.name %></span>
10
+ <span class="has-text-grey">(<%= meta_controller.controller_path %>)</span>
11
+ <% end %>
12
+ </td>
13
+ <td></td>
14
+ </tr>
15
+ <% end %>
@@ -0,0 +1,12 @@
1
+ <% @meta_namespaces.each do |meta_namespace| %>
2
+ <tr id="<%= meta_namespace.tr_id(params[:business_identifier]) %>" data-controller="tree-remote" data-tree-remote-target="item">
3
+ <td>
4
+ <span style="width: 1.43em; display: inline-block"></span>
5
+ <%= button_to({ action: 'meta_controllers', business_identifier: @meta_business.identifier, namespace_identifier: meta_namespace.identifier }, data: { turbo_frame: 'visit' }) do %>
6
+ <i class="fa-solid fa-fw fa-caret-right" style="cursor: pointer" data-action="click->tree-remote#expand"></i>
7
+ <% end %>
8
+ <span><%= meta_namespace.name %></span>
9
+ </td>
10
+ <td></td>
11
+ </tr>
12
+ <% end %>
@@ -0,0 +1,28 @@
1
+ <tr id="tr_<%= meta_controller.id %>">
2
+ <td><%= meta_controller.namespace_identifier %></td>
3
+ <td>
4
+ <%= button_to({ action: 'move_higher', id: meta_controller.id }, method: :patch, class: 'has-text-grey-lighter') do %>
5
+ <i class="fa-light fa-arrow-up"></i>
6
+ <% end %>
7
+ <%= button_to({ action: 'move_lower', id: meta_controller.id }, method: :patch, class: 'has-text-grey-lighter') do %>
8
+ <i class="fa-light fa-arrow-down"></i>
9
+ <% end %>
10
+ <span aria-label="<%= meta_controller.identifier %>"><%= meta_controller.name %></span>
11
+ <%= link_to({ action: 'edit', id: meta_controller.id }, aria: { label: t('.edit') }, class: 'has-text-grey-lighter') do %>
12
+ <i class="fa-light fa-pencil"></i>
13
+ <% end %>
14
+ </td>
15
+ <td>
16
+ <% meta_controller.meta_actions.each do |meta_action| %>
17
+ <div>
18
+ <span aria-label="<%= meta_action.action_name %>"><%= meta_action.name %></span>
19
+ <%= link_to({ controller: 'meta_actions', action: 'edit', meta_controller_id: meta_controller.id, id: meta_action.id }, id: "roles_#{meta_action.id}", class: 'has-text-grey-lighter') do %>
20
+ <i class="fa-light fa-users"></i>
21
+ <% end %>
22
+ <%= link_to({ controller: 'meta_actions', action: 'edit', meta_controller_id: meta_controller.id, id: meta_action.id }, aria: { label: t('.edit') }, class: 'has-text-grey-lighter') do %>
23
+ <i class="fa-light fa-pencil"></i>
24
+ <% end %>
25
+ </div>
26
+ <% end %>
27
+ </td>
28
+ </tr>
@@ -0,0 +1,2 @@
1
+ <th><%= Com::MetaController.human_attribute_name(:business_identifier) %></th>
2
+ <th></th>
@@ -0,0 +1,3 @@
1
+ <%= render layout: 'index_table', locals: { cache_key: Com::MetaController.column_names.hash } do %>
2
+ <%= render partial: 'index_meta_business', collection: @meta_businesses, as: :meta_business %>
3
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= turbo_stream.after "tr_#{@meta_controller.identifier}", partial: 'index_meta_action', collection: @meta_actions, as: :meta_action %>
@@ -0,0 +1 @@
1
+ <%= turbo_stream.after "tr_#{params[:business_identifier]}_#{params[:namespace_identifier].blank? ? '_' : params[:namespace_identifier]}", partial: 'index_meta_controller' %>
@@ -0,0 +1 @@
1
+ <%= turbo_stream.after "tr_#{params[:business_identifier].blank? ? '_' : params[:business_identifier] }", partial: 'index_meta_namespace' %>
@@ -0,0 +1,3 @@
1
+ <%= turbo_stream.append 'body' do %>
2
+ <div data-controller="visit"></div>
3
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <%= button_to({ action: 'sync' }, method: :post, data: { disable_with: 'Syncing' }, class: 'button is-success') do %>
2
+ <i class="fa-light fa-sync-alt"></i><span><%= t('.sync') %></span>
3
+ <% end %>
4
+ <%= link_to({ action: 'new' }, data: { turbo_frame: 'modal' }, class: 'button is-link') do %>
5
+ <i class="fa-light fa-plus"></i><span><%= t('.new') %></span>
6
+ <% end %>
@@ -0,0 +1,4 @@
1
+ <%= render 'error_messages', target: f.object %>
2
+ <%= f.text_field :name %>
3
+ <%= f.text_field :record_name %>
4
+ <%= f.text_field :description %>
@@ -0,0 +1,3 @@
1
+ <td><%= model.name %></td>
2
+ <td><%= model.record_name %></td>
3
+ <td><%= model.description %></td>
@@ -0,0 +1,4 @@
1
+ <th><%= Com::MetaModel.human_attribute_name(:name) %></th>
2
+ <th><%= Com::MetaModel.human_attribute_name(:record_name) %></th>
3
+ <th><%= Com::MetaModel.human_attribute_name(:description) %></th>
4
+ <th></th>
@@ -0,0 +1,19 @@
1
+ <tr id="tr_<%= model.id %>" data-controller="show" data-action="mouseenter->show#show mouseleave->show#hide">
2
+ <%= yield %>
3
+ <td>
4
+ <span data-show-target="item" style="visibility: hidden">
5
+ <%= link_to({ controller: 'meta_columns', meta_model_id: model.id }, aria: { label: t('.show') }, class: 'button is-small is-rounded is-light') do %>
6
+ <i class="fa-light fa-sitemap"></i>
7
+ <% end %>
8
+ <%= link_to({ action: 'show', id: model.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.show') }, class: 'button is-small is-rounded is-light') do %>
9
+ <i class="fa-light fa-circle-info"></i>
10
+ <% end %>
11
+ <%= link_to({ action: 'edit', id: model.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.edit') }, class: 'button is-small is-rounded is-light') do %>
12
+ <i class="fa-light fa-pencil"></i>
13
+ <% end %>
14
+ <%= button_to({ action: 'destroy', id: model.id }, method: :delete, data: { confirm: t('.confirm') }, aria: { label: t('.destroy') }, class: 'button is-small is-rounded is-light') do %>
15
+ <i class="fa-light fa-trash"></i>
16
+ <% end %>
17
+ </span>
18
+ </td>
19
+ </tr>
@@ -0,0 +1,12 @@
1
+ <tr>
2
+ <td class="has-text-right"><%= Com::MetaModel.human_attribute_name(:name) %></td>
3
+ <td><%= @meta_model.name %></td>
4
+ </tr>
5
+ <tr>
6
+ <td class="has-text-right"><%= Com::MetaModel.human_attribute_name(:model_name) %></td>
7
+ <td><%= @meta_model.model_name %></td>
8
+ </tr>
9
+ <tr>
10
+ <td class="has-text-right"><%= Com::MetaModel.human_attribute_name(:description) %></td>
11
+ <td><%= @meta_model.description %></td>
12
+ </tr>
@@ -0,0 +1,3 @@
1
+ <%= turbo_stream.append 'body' do %>
2
+ <div data-controller="visit"></div>
3
+ <% end %>
@@ -0,0 +1,10 @@
1
+ <div class="tabs">
2
+ <ul>
3
+ <li class="<%= active_helper(controller: 'meta_businesses', active: 'is-active') %>">
4
+ <%= link_to t('com.panel.meta_businesses.index.title'), { controller: 'meta_businesses' } %>
5
+ </li>
6
+ <li class="<%= active_helper(controller: 'meta_namespaces', active: 'is-active') %>">
7
+ <%= link_to t('com.panel.meta_namespaces.index.title'), { controller: 'meta_namespaces' } %>
8
+ </li>
9
+ </ul>
10
+ </div>
@@ -0,0 +1,3 @@
1
+ <%= button_to({ action: 'sync' }, method: :post, data: { disable_with: 'Syncing' }, class: 'button is-success') do %>
2
+ <i class="fa-light fa-sync-alt"></i><span><%= t('.sync') %></span>
3
+ <% end %>
@@ -0,0 +1,5 @@
1
+ <%= render 'error_messages', target: f.object %>
2
+ <%= f.text_field :name %>
3
+ <%= f.check_box :verify_organ %>
4
+ <%= f.check_box :verify_member %>
5
+ <%= f.check_box :verify_user %>
@@ -0,0 +1,20 @@
1
+ <td><%= model.name %></td>
2
+ <td><%= model.identifier %></td>
3
+ <td>
4
+ <%= form_with theme: nil, model: model, url: { action: 'update', id: model.id }, data: { controller: 'input' } do |f| %>
5
+ <%= f.check_box :verify_organ, data: { input_target: 'checkbox' }, id: nil, class: 'switch is-rounded' %>
6
+ <label data-action="click->input#check"></label>
7
+ <% end %>
8
+ </td>
9
+ <td>
10
+ <%= form_with theme: nil, model: model, url: { action: 'update', id: model.id }, data: { controller: 'input' } do |f| %>
11
+ <%= f.check_box :verify_member, data: { input_target: 'checkbox' }, id: nil, class: 'switch is-rounded' %>
12
+ <label data-action="click->input#check"></label>
13
+ <% end %>
14
+ </td>
15
+ <td>
16
+ <%= form_with theme: nil, model: model, url: { action: 'update', id: model.id }, data: { controller: 'input' } do |f| %>
17
+ <%= f.check_box :verify_user, data: { input_target: 'checkbox' }, id: nil, class: 'switch is-rounded' %>
18
+ <label data-action="click->input#check"></label>
19
+ <% end %>
20
+ </td>
@@ -0,0 +1,6 @@
1
+ <th><%= Com::MetaNamespace.human_attribute_name(:name) %></th>
2
+ <th><%= Com::MetaNamespace.human_attribute_name(:identifier) %></th>
3
+ <th><%= Com::MetaNamespace.human_attribute_name(:verify_organ) %></th>
4
+ <th><%= Com::MetaNamespace.human_attribute_name(:verify_member) %></th>
5
+ <th><%= Com::MetaNamespace.human_attribute_name(:verify_user) %></th>
6
+ <th></th>
@@ -0,0 +1,20 @@
1
+ <tr>
2
+ <td class="has-text-right"><%= Com::MetaNamespace.human_attribute_name(:name) %></td>
3
+ <td><%= @meta_namespace.name %></td>
4
+ </tr>
5
+ <tr>
6
+ <td class="has-text-right"><%= Com::MetaNamespace.human_attribute_name(:identifier) %></td>
7
+ <td><%= @meta_namespace.identifier %></td>
8
+ </tr>
9
+ <tr>
10
+ <td class="has-text-right"><%= Com::MetaNamespace.human_attribute_name(:verify_organ) %></td>
11
+ <td><%= @meta_namespace.verify_organ %></td>
12
+ </tr>
13
+ <tr>
14
+ <td class="has-text-right"><%= Com::MetaNamespace.human_attribute_name(:verify_member) %></td>
15
+ <td><%= @meta_namespace.verify_member %></td>
16
+ </tr>
17
+ <tr>
18
+ <td class="has-text-right"><%= Com::MetaNamespace.human_attribute_name(:verify_user) %></td>
19
+ <td><%= @meta_namespace.verify_user %></td>
20
+ </tr>
@@ -0,0 +1,3 @@
1
+ <%= turbo_stream.append 'body' do %>
2
+ <div data-controller="visit"></div>
3
+ <% end %>
@@ -0,0 +1,9 @@
1
+ <div class="ui basic center aligned segment">
2
+ <%=
3
+ video_tag(
4
+ @video.url(disposition: params[:disposition]),
5
+ controls: true,
6
+ preload: 'auto'
7
+ )
8
+ %>
9
+ </div>
@@ -0,0 +1 @@
1
+ <%= f.date_field name %>
@@ -0,0 +1 @@
1
+ <%= f.datetime_field name %>
@@ -0,0 +1 @@
1
+ <%= f.number_field name %>
@@ -0,0 +1,14 @@
1
+ <div class="field is-horizontal">
2
+ <div class="field-label is-normal">
3
+ <label class="label"><%= model_klass.human_attribute_name(name) %></label>
4
+ </div>
5
+ <div class="field-body">
6
+ <% if f.object.public_send(column[:outer])&.ancestors.present? %>
7
+ <% f.object.public_send(column[:outer]).ancestors.reverse_each do |node| %>
8
+ <%= render partial: 'com/nodes/outer_options', locals: { f: f, node: node, depth: node.depth, outer: column[:outer] } %>
9
+ <% end %>
10
+ <% else %>
11
+ <%= render partial: 'com/nodes/outer_options', locals: { f: f, node: f.object.public_send(column[:outer]), depth: 0, outer: column[:outer] } %>
12
+ <% end %>
13
+ </div>
14
+ </div>
@@ -0,0 +1 @@
1
+ <%= f.select name, options_for_select(f.object.class.options_i18n(name), f.object.public_send(name)), prompt: true %>
@@ -0,0 +1 @@
1
+ <%= f.text_field name %>
@@ -0,0 +1 @@
1
+ <%= f.time_field name %>
@@ -0,0 +1 @@
1
+ <%= ef.number_field k.to_s, value: f.object.extra[k.to_s], class: 'input', label: k.to_s %>
@@ -0,0 +1,14 @@
1
+ <div class="field is-horizontal">
2
+ <div class="field-label is-normal">
3
+ <label class="label"><%= k.to_s %></label>
4
+ </div>
5
+ <div class="field-body">
6
+ <% if node&.ancestors.present? %>
7
+ <% node.ancestors.reverse_each do |node| %>
8
+ <%= render partial: 'com/nodes/outer_options', locals: { f: ef, node: node, depth: node.depth, outer: outer } %>
9
+ <% end %>
10
+ <% else %>
11
+ <%= render partial: 'com/nodes/outer_options', locals: { f: ef, node: node, depth: 0, outer: outer } %>
12
+ <% end %>
13
+ </div>
14
+ </div>
@@ -0,0 +1 @@
1
+ <%= ef.text_field k.to_s, value: f.object.extra[k.to_s], class: 'input', label: k.to_s %>
File without changes
@@ -0,0 +1,3 @@
1
+ <%= link_to url, class: 'pagination-link', title: t('views.pagination.first') do %>
2
+ <i class="fa-light fa-fast-backward"></i>
3
+ <% end %>
@@ -1,3 +1,3 @@
1
- <div class="item">
1
+ <div class="pagination-ellipsis">
2
2
  <%= t('views.pagination.truncate').html_safe %>
3
3
  </div>
@@ -0,0 +1,3 @@
1
+ <%= link_to url, class: 'pagination-link', title: t('views.pagination.last') do %>
2
+ <i class="fa-light fa-fast-forward"></i>
3
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <%= link_to url, class: 'pagination-next', title: t('views.pagination.next') do %>
2
+ <i class="fa-light fa-step-forward"></i>
3
+ <% end %>
@@ -0,0 +1 @@
1
+ <li><%= link_to page, url, class: (page.current? ? 'pagination-link is-current' : 'pagination-link') %></li>
@@ -1,7 +1,7 @@
1
1
  <%= paginator.render do %>
2
- <nav class="<%= @options[:class] || 'ui pagination menu' %>">
3
- <%= first_page_tag unless current_page.first? %>
2
+ <nav class="<%= @options[:class] || 'box pagination is-centered' %>">
4
3
  <%= prev_page_tag unless current_page.first? %>
4
+ <ul class="pagination-list">
5
5
  <% each_page do |page| %>
6
6
  <% if page.display_tag? %>
7
7
  <%= page_tag page %>
@@ -9,7 +9,7 @@
9
9
  <%= gap_tag %>
10
10
  <% end %>
11
11
  <% end %>
12
+ </ul>
12
13
  <%= next_page_tag unless current_page.last? %>
13
- <%= last_page_tag unless current_page.last? %>
14
14
  </nav>
15
15
  <% end %>
@@ -0,0 +1,17 @@
1
+ <%= paginator.render do %>
2
+ <nav class="<%= @options[:class] || 'pagination is-centered' %>">
3
+ <%# first_page_tag unless current_page.first? %>
4
+ <%= prev_page_tag unless current_page.first? %>
5
+ <ul class="pagination-list">
6
+ <% each_page do |page| %>
7
+ <% if page.display_tag? %>
8
+ <%= page_tag page %>
9
+ <% elsif !page.was_truncated? %>
10
+ <%= gap_tag %>
11
+ <% end %>
12
+ <% end %>
13
+ </ul>
14
+ <%= next_page_tag unless current_page.last? %>
15
+ <%# last_page_tag unless current_page.last? %>
16
+ </nav>
17
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <%= link_to url, class: 'pagination-previous', title: t('views.pagination.previous') do %>
2
+ <i class="fa-light fa-step-backward"></i>
3
+ <% end %>
@@ -0,0 +1,22 @@
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="turbo-cache-control" content="no-preview">
10
+ <%= javascript_vite_tag 'admin/application', 'data-turbo-track': 'reload' %>
11
+ <%= stylesheet_vite_tag 'admin/application', media: 'all', 'data-turbo-track': 'reload' %>
12
+ <%= css_load media: 'all', 'data-turbo-track': 'reload' %>
13
+ <%= js_load 'data-turbo-track': 'reload' %>
14
+ <%= csrf_meta_tags %>
15
+ <%= action_cable_meta_tag %>
16
+ <%= csp_meta_tag %>
17
+ </head>
18
+ <body>
19
+ <%= yield %>
20
+ <%= render 'modal' %>
21
+ </body>
22
+ </html>