plutonium 0.6.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (845) hide show
  1. checksums.yaml +4 -4
  2. data/.node-version +1 -0
  3. data/README copy.md +1 -2
  4. data/README.md +19 -5
  5. data/app/assets/css/plutonium.css +3 -0
  6. data/app/assets/icons/flags/ghana.svg +49 -0
  7. data/app/assets/icons/outline/address-book.svg +3 -0
  8. data/app/assets/icons/outline/adjustments-horizontal.svg +3 -0
  9. data/app/assets/icons/outline/adjustments-vertical.svg +3 -0
  10. data/app/assets/icons/outline/align-center.svg +3 -0
  11. data/app/assets/icons/outline/angle-down.svg +3 -0
  12. data/app/assets/icons/outline/angle-left.svg +3 -0
  13. data/app/assets/icons/outline/angle-right.svg +3 -0
  14. data/app/assets/icons/outline/angle-up.svg +3 -0
  15. data/app/assets/icons/outline/annotation.svg +3 -0
  16. data/app/assets/icons/outline/archive-arrow-down.svg +3 -0
  17. data/app/assets/icons/outline/archive.svg +3 -0
  18. data/app/assets/icons/outline/arrow-down-to-bracket.svg +3 -0
  19. data/app/assets/icons/outline/arrow-down.svg +3 -0
  20. data/app/assets/icons/outline/arrow-left-to-bracket.svg +3 -0
  21. data/app/assets/icons/outline/arrow-left.svg +3 -0
  22. data/app/assets/icons/outline/arrow-right-alt.svg +3 -0
  23. data/app/assets/icons/outline/arrow-right-to-bracket.svg +3 -0
  24. data/app/assets/icons/outline/arrow-right.svg +3 -0
  25. data/app/assets/icons/outline/arrow-sort-letters.svg +3 -0
  26. data/app/assets/icons/outline/arrow-up-down.svg +3 -0
  27. data/app/assets/icons/outline/arrow-up-from-bracket.svg +3 -0
  28. data/app/assets/icons/outline/arrow-up-right-down-left.svg +3 -0
  29. data/app/assets/icons/outline/arrow-up-right-from-square.svg +3 -0
  30. data/app/assets/icons/outline/arrow-up.svg +3 -0
  31. data/app/assets/icons/outline/arrows-repeat-count.svg +3 -0
  32. data/app/assets/icons/outline/arrows-repeat.svg +3 -0
  33. data/app/assets/icons/outline/atom.svg +3 -0
  34. data/app/assets/icons/outline/backward-step.svg +3 -0
  35. data/app/assets/icons/outline/badge-check.svg +3 -0
  36. data/app/assets/icons/outline/bars-from-left.svg +3 -0
  37. data/app/assets/icons/outline/bars.svg +3 -0
  38. data/app/assets/icons/outline/bell-active-alt.svg +3 -0
  39. data/app/assets/icons/outline/bell-active.svg +3 -0
  40. data/app/assets/icons/outline/bell-ring.svg +3 -0
  41. data/app/assets/icons/outline/bell.svg +3 -0
  42. data/app/assets/icons/outline/blender-phone.svg +3 -0
  43. data/app/assets/icons/outline/book-open.svg +3 -0
  44. data/app/assets/icons/outline/book.svg +3 -0
  45. data/app/assets/icons/outline/bookmark.svg +3 -0
  46. data/app/assets/icons/outline/brain.svg +3 -0
  47. data/app/assets/icons/outline/briefcase.svg +3 -0
  48. data/app/assets/icons/outline/bug.svg +3 -0
  49. data/app/assets/icons/outline/building.svg +3 -0
  50. data/app/assets/icons/outline/bullhorn.svg +3 -0
  51. data/app/assets/icons/outline/calendar-edit.svg +3 -0
  52. data/app/assets/icons/outline/calendar-month.svg +3 -0
  53. data/app/assets/icons/outline/calendar-plus.svg +3 -0
  54. data/app/assets/icons/outline/calendar-week.svg +3 -0
  55. data/app/assets/icons/outline/camera-photo.svg +4 -0
  56. data/app/assets/icons/outline/caption.svg +3 -0
  57. data/app/assets/icons/outline/caret-down.svg +3 -0
  58. data/app/assets/icons/outline/caret-left.svg +3 -0
  59. data/app/assets/icons/outline/caret-right.svg +3 -0
  60. data/app/assets/icons/outline/caret-sort.svg +3 -0
  61. data/app/assets/icons/outline/caret-up.svg +3 -0
  62. data/app/assets/icons/outline/cart-plus-alt.svg +3 -0
  63. data/app/assets/icons/outline/cart-plus.svg +3 -0
  64. data/app/assets/icons/outline/cart.svg +3 -0
  65. data/app/assets/icons/outline/cash.svg +3 -0
  66. data/app/assets/icons/outline/chart-line-down.svg +3 -0
  67. data/app/assets/icons/outline/chart-line-up.svg +3 -0
  68. data/app/assets/icons/outline/chart-mixed-dollar.svg +3 -0
  69. data/app/assets/icons/outline/chart-mixed.svg +3 -0
  70. data/app/assets/icons/outline/chart-pie.svg +4 -0
  71. data/app/assets/icons/outline/chart.svg +3 -0
  72. data/app/assets/icons/outline/check-circle.svg +3 -0
  73. data/app/assets/icons/outline/check-plus-circle.svg +3 -0
  74. data/app/assets/icons/outline/check.svg +3 -0
  75. data/app/assets/icons/outline/chevron-double-down.svg +3 -0
  76. data/app/assets/icons/outline/chevron-double-left.svg +3 -0
  77. data/app/assets/icons/outline/chevron-double-right.svg +3 -0
  78. data/app/assets/icons/outline/chevron-double-up.svg +3 -0
  79. data/app/assets/icons/outline/chevron-down.svg +3 -0
  80. data/app/assets/icons/outline/chevron-left.svg +3 -0
  81. data/app/assets/icons/outline/chevron-right.svg +3 -0
  82. data/app/assets/icons/outline/chevron-sort.svg +3 -0
  83. data/app/assets/icons/outline/chevron-up.svg +3 -0
  84. data/app/assets/icons/outline/circle-pause.svg +3 -0
  85. data/app/assets/icons/outline/circle-plus.svg +3 -0
  86. data/app/assets/icons/outline/clapperboard-play.svg +3 -0
  87. data/app/assets/icons/outline/clipboard-check.svg +3 -0
  88. data/app/assets/icons/outline/clipboard-list.svg +3 -0
  89. data/app/assets/icons/outline/clipboard.svg +3 -0
  90. data/app/assets/icons/outline/clock.svg +3 -0
  91. data/app/assets/icons/outline/close-circle.svg +3 -0
  92. data/app/assets/icons/outline/close.svg +3 -0
  93. data/app/assets/icons/outline/cloud-arrow-up.svg +3 -0
  94. data/app/assets/icons/outline/code-branch.svg +3 -0
  95. data/app/assets/icons/outline/code-fork.svg +3 -0
  96. data/app/assets/icons/outline/code-merge.svg +3 -0
  97. data/app/assets/icons/outline/code-pull-request.svg +3 -0
  98. data/app/assets/icons/outline/code.svg +3 -0
  99. data/app/assets/icons/outline/cog.svg +4 -0
  100. data/app/assets/icons/outline/column.svg +3 -0
  101. data/app/assets/icons/outline/command.svg +3 -0
  102. data/app/assets/icons/outline/compress.svg +3 -0
  103. data/app/assets/icons/outline/computer-speaker.svg +3 -0
  104. data/app/assets/icons/outline/credit-card.svg +3 -0
  105. data/app/assets/icons/outline/database.svg +3 -0
  106. data/app/assets/icons/outline/desktop-pc.svg +3 -0
  107. data/app/assets/icons/outline/dna.svg +3 -0
  108. data/app/assets/icons/outline/dollar.svg +3 -0
  109. data/app/assets/icons/outline/dots-horizontal.svg +3 -0
  110. data/app/assets/icons/outline/dots-vertical.svg +3 -0
  111. data/app/assets/icons/outline/download.svg +3 -0
  112. data/app/assets/icons/outline/draw-square.svg +3 -0
  113. data/app/assets/icons/outline/edit.svg +3 -0
  114. data/app/assets/icons/outline/envelope-open.svg +3 -0
  115. data/app/assets/icons/outline/envelope.svg +3 -0
  116. data/app/assets/icons/outline/euro.svg +3 -0
  117. data/app/assets/icons/outline/exclamation-circle.svg +3 -0
  118. data/app/assets/icons/outline/expand.svg +3 -0
  119. data/app/assets/icons/outline/eye-slash.svg +3 -0
  120. data/app/assets/icons/outline/eye.svg +4 -0
  121. data/app/assets/icons/outline/face-explode.svg +4 -0
  122. data/app/assets/icons/outline/face-grin-stars.svg +6 -0
  123. data/app/assets/icons/outline/face-grin.svg +3 -0
  124. data/app/assets/icons/outline/face-laugh.svg +3 -0
  125. data/app/assets/icons/outline/file-chart-bar.svg +3 -0
  126. data/app/assets/icons/outline/file-check.svg +3 -0
  127. data/app/assets/icons/outline/file-circle-plus.svg +3 -0
  128. data/app/assets/icons/outline/file-clone.svg +3 -0
  129. data/app/assets/icons/outline/file-code.svg +3 -0
  130. data/app/assets/icons/outline/file-copy-alt.svg +3 -0
  131. data/app/assets/icons/outline/file-copy.svg +3 -0
  132. data/app/assets/icons/outline/file-csv.svg +3 -0
  133. data/app/assets/icons/outline/file-export.svg +3 -0
  134. data/app/assets/icons/outline/file-image.svg +4 -0
  135. data/app/assets/icons/outline/file-import.svg +3 -0
  136. data/app/assets/icons/outline/file-invoice.svg +3 -0
  137. data/app/assets/icons/outline/file-lines.svg +3 -0
  138. data/app/assets/icons/outline/file-music.svg +3 -0
  139. data/app/assets/icons/outline/file-paste.svg +3 -0
  140. data/app/assets/icons/outline/file-pdf.svg +3 -0
  141. data/app/assets/icons/outline/file-pen.svg +3 -0
  142. data/app/assets/icons/outline/file-ppt.svg +3 -0
  143. data/app/assets/icons/outline/file-search.svg +3 -0
  144. data/app/assets/icons/outline/file-shield.svg +3 -0
  145. data/app/assets/icons/outline/file-video.svg +3 -0
  146. data/app/assets/icons/outline/file-word.svg +3 -0
  147. data/app/assets/icons/outline/file-zip.svg +3 -0
  148. data/app/assets/icons/outline/file.svg +3 -0
  149. data/app/assets/icons/outline/filter.svg +3 -0
  150. data/app/assets/icons/outline/fingerprint.svg +3 -0
  151. data/app/assets/icons/outline/fire.svg +3 -0
  152. data/app/assets/icons/outline/flag.svg +3 -0
  153. data/app/assets/icons/outline/folder-arrow-right.svg +3 -0
  154. data/app/assets/icons/outline/folder-duplicate.svg +3 -0
  155. data/app/assets/icons/outline/folder-open.svg +3 -0
  156. data/app/assets/icons/outline/folder-plus.svg +3 -0
  157. data/app/assets/icons/outline/folder.svg +3 -0
  158. data/app/assets/icons/outline/forward-step.svg +3 -0
  159. data/app/assets/icons/outline/forward.svg +3 -0
  160. data/app/assets/icons/outline/gift-box.svg +3 -0
  161. data/app/assets/icons/outline/globe.svg +3 -0
  162. data/app/assets/icons/outline/grid-plus.svg +3 -0
  163. data/app/assets/icons/outline/grid.svg +3 -0
  164. data/app/assets/icons/outline/headphones.svg +3 -0
  165. data/app/assets/icons/outline/heart.svg +3 -0
  166. data/app/assets/icons/outline/home.svg +3 -0
  167. data/app/assets/icons/outline/hourglass.svg +3 -0
  168. data/app/assets/icons/outline/image.svg +3 -0
  169. data/app/assets/icons/outline/inbox-full.svg +3 -0
  170. data/app/assets/icons/outline/inbox.svg +3 -0
  171. data/app/assets/icons/outline/indent.svg +3 -0
  172. data/app/assets/icons/outline/info-circle.svg +3 -0
  173. data/app/assets/icons/outline/keyboard.svg +5 -0
  174. data/app/assets/icons/outline/label.svg +3 -0
  175. data/app/assets/icons/outline/landmark.svg +3 -0
  176. data/app/assets/icons/outline/layers.svg +3 -0
  177. data/app/assets/icons/outline/letter-bold.svg +3 -0
  178. data/app/assets/icons/outline/letter-italic.svg +3 -0
  179. data/app/assets/icons/outline/letter-underline.svg +3 -0
  180. data/app/assets/icons/outline/life-saver.svg +3 -0
  181. data/app/assets/icons/outline/lightbulb.svg +3 -0
  182. data/app/assets/icons/outline/link.svg +3 -0
  183. data/app/assets/icons/outline/list-music.svg +3 -0
  184. data/app/assets/icons/outline/list.svg +3 -0
  185. data/app/assets/icons/outline/lock-open.svg +3 -0
  186. data/app/assets/icons/outline/lock-time.svg +3 -0
  187. data/app/assets/icons/outline/lock.svg +3 -0
  188. data/app/assets/icons/outline/mail-box.svg +3 -0
  189. data/app/assets/icons/outline/map-pin-alt.svg +4 -0
  190. data/app/assets/icons/outline/map-pin.svg +3 -0
  191. data/app/assets/icons/outline/message-caption.svg +3 -0
  192. data/app/assets/icons/outline/message-dots.svg +3 -0
  193. data/app/assets/icons/outline/messages.svg +3 -0
  194. data/app/assets/icons/outline/microphone.svg +3 -0
  195. data/app/assets/icons/outline/minimize.svg +3 -0
  196. data/app/assets/icons/outline/minus.svg +3 -0
  197. data/app/assets/icons/outline/mobile-phone.svg +3 -0
  198. data/app/assets/icons/outline/moon.svg +3 -0
  199. data/app/assets/icons/outline/newspaper.svg +3 -0
  200. data/app/assets/icons/outline/ordered-list.svg +3 -0
  201. data/app/assets/icons/outline/outdent.svg +3 -0
  202. data/app/assets/icons/outline/palette.svg +3 -0
  203. data/app/assets/icons/outline/paper-clip.svg +3 -0
  204. data/app/assets/icons/outline/paper-plane.svg +3 -0
  205. data/app/assets/icons/outline/paragraph.svg +3 -0
  206. data/app/assets/icons/outline/pause.svg +3 -0
  207. data/app/assets/icons/outline/pen-nib.svg +3 -0
  208. data/app/assets/icons/outline/pen.svg +3 -0
  209. data/app/assets/icons/outline/phone.svg +3 -0
  210. data/app/assets/icons/outline/play.svg +3 -0
  211. data/app/assets/icons/outline/plus.svg +3 -0
  212. data/app/assets/icons/outline/printer.svg +3 -0
  213. data/app/assets/icons/outline/profile-card.svg +3 -0
  214. data/app/assets/icons/outline/question-circle.svg +3 -0
  215. data/app/assets/icons/outline/quote.svg +3 -0
  216. data/app/assets/icons/outline/receipt.svg +3 -0
  217. data/app/assets/icons/outline/rectangle-list.svg +3 -0
  218. data/app/assets/icons/outline/redo.svg +3 -0
  219. data/app/assets/icons/outline/refresh.svg +3 -0
  220. data/app/assets/icons/outline/reply-all.svg +3 -0
  221. data/app/assets/icons/outline/reply.svg +3 -0
  222. data/app/assets/icons/outline/restore-window.svg +3 -0
  223. data/app/assets/icons/outline/rocket.svg +3 -0
  224. data/app/assets/icons/outline/ruler-combined.svg +3 -0
  225. data/app/assets/icons/outline/sale-percent.svg +3 -0
  226. data/app/assets/icons/outline/scale-balanced.svg +3 -0
  227. data/app/assets/icons/outline/search.svg +3 -0
  228. data/app/assets/icons/outline/share-all.svg +3 -0
  229. data/app/assets/icons/outline/share-nodes.svg +3 -0
  230. data/app/assets/icons/outline/shield-check.svg +3 -0
  231. data/app/assets/icons/outline/shield.svg +3 -0
  232. data/app/assets/icons/outline/shopping-bag.svg +3 -0
  233. data/app/assets/icons/outline/shuffle.svg +3 -0
  234. data/app/assets/icons/outline/sort-horizontal.svg +3 -0
  235. data/app/assets/icons/outline/sort.svg +3 -0
  236. data/app/assets/icons/outline/star-half-stroke.svg +3 -0
  237. data/app/assets/icons/outline/star-half.svg +3 -0
  238. data/app/assets/icons/outline/star.svg +3 -0
  239. data/app/assets/icons/outline/store.svg +3 -0
  240. data/app/assets/icons/outline/sun.svg +3 -0
  241. data/app/assets/icons/outline/swatchbook.svg +3 -0
  242. data/app/assets/icons/outline/table-column.svg +3 -0
  243. data/app/assets/icons/outline/table-row.svg +3 -0
  244. data/app/assets/icons/outline/tablet.svg +3 -0
  245. data/app/assets/icons/outline/tag.svg +3 -0
  246. data/app/assets/icons/outline/terminal.svg +3 -0
  247. data/app/assets/icons/outline/text-size.svg +3 -0
  248. data/app/assets/icons/outline/text-slash.svg +3 -0
  249. data/app/assets/icons/outline/thumbs-down.svg +3 -0
  250. data/app/assets/icons/outline/thumbs-up.svg +3 -0
  251. data/app/assets/icons/outline/ticket.svg +3 -0
  252. data/app/assets/icons/outline/trash-bin.svg +3 -0
  253. data/app/assets/icons/outline/truck.svg +3 -0
  254. data/app/assets/icons/outline/undo.svg +3 -0
  255. data/app/assets/icons/outline/upload.svg +3 -0
  256. data/app/assets/icons/outline/user-add.svg +3 -0
  257. data/app/assets/icons/outline/user-circle.svg +3 -0
  258. data/app/assets/icons/outline/user-edit.svg +3 -0
  259. data/app/assets/icons/outline/user-headset.svg +3 -0
  260. data/app/assets/icons/outline/user-remove.svg +3 -0
  261. data/app/assets/icons/outline/user-settings.svg +3 -0
  262. data/app/assets/icons/outline/user.svg +3 -0
  263. data/app/assets/icons/outline/users-group.svg +3 -0
  264. data/app/assets/icons/outline/users.svg +3 -0
  265. data/app/assets/icons/outline/video-camera.svg +3 -0
  266. data/app/assets/icons/outline/volume-down.svg +3 -0
  267. data/app/assets/icons/outline/volume-up.svg +3 -0
  268. data/app/assets/icons/outline/wallet.svg +3 -0
  269. data/app/assets/icons/outline/wand-magic-sparkles.svg +3 -0
  270. data/app/assets/icons/outline/window.svg +3 -0
  271. data/app/assets/icons/outline/zoom-in.svg +3 -0
  272. data/app/assets/icons/outline/zoom-out.svg +3 -0
  273. data/app/assets/icons/solid/X.svg +3 -0
  274. data/app/assets/icons/solid/address-book.svg +3 -0
  275. data/app/assets/icons/solid/adjustments-horizontal.svg +3 -0
  276. data/app/assets/icons/solid/adjustments-vertical.svg +3 -0
  277. data/app/assets/icons/solid/annotation.svg +3 -0
  278. data/app/assets/icons/solid/apple.svg +3 -0
  279. data/app/assets/icons/solid/archive-arrow-down.svg +3 -0
  280. data/app/assets/icons/solid/archive.svg +4 -0
  281. data/app/assets/icons/solid/arrow-right-alt.svg +3 -0
  282. data/app/assets/icons/solid/arrow-up-right-from-square.svg +4 -0
  283. data/app/assets/icons/solid/backward-step.svg +3 -0
  284. data/app/assets/icons/solid/badge-check.svg +3 -0
  285. data/app/assets/icons/solid/bell-active-alt.svg +3 -0
  286. data/app/assets/icons/solid/bell-active.svg +5 -0
  287. data/app/assets/icons/solid/bell-ring.svg +3 -0
  288. data/app/assets/icons/solid/bell.svg +3 -0
  289. data/app/assets/icons/solid/blender-phone.svg +3 -0
  290. data/app/assets/icons/solid/book-open.svg +3 -0
  291. data/app/assets/icons/solid/book.svg +3 -0
  292. data/app/assets/icons/solid/bookmark.svg +3 -0
  293. data/app/assets/icons/solid/brain.svg +3 -0
  294. data/app/assets/icons/solid/briefcase.svg +3 -0
  295. data/app/assets/icons/solid/bug.svg +3 -0
  296. data/app/assets/icons/solid/building.svg +3 -0
  297. data/app/assets/icons/solid/bullhorn.svg +3 -0
  298. data/app/assets/icons/solid/calendar-edit.svg +4 -0
  299. data/app/assets/icons/solid/calendar-month.svg +3 -0
  300. data/app/assets/icons/solid/calendar-plus.svg +3 -0
  301. data/app/assets/icons/solid/calendar-week.svg +3 -0
  302. data/app/assets/icons/solid/camera-photo.svg +3 -0
  303. data/app/assets/icons/solid/caption.svg +3 -0
  304. data/app/assets/icons/solid/caret-down.svg +3 -0
  305. data/app/assets/icons/solid/caret-left.svg +3 -0
  306. data/app/assets/icons/solid/caret-right.svg +3 -0
  307. data/app/assets/icons/solid/caret-sort.svg +3 -0
  308. data/app/assets/icons/solid/caret-up.svg +3 -0
  309. data/app/assets/icons/solid/cart-plus-alt.svg +4 -0
  310. data/app/assets/icons/solid/cart-plus.svg +4 -0
  311. data/app/assets/icons/solid/cart.svg +3 -0
  312. data/app/assets/icons/solid/cash.svg +5 -0
  313. data/app/assets/icons/solid/chart-mixed-dollar.svg +3 -0
  314. data/app/assets/icons/solid/chart-pie.svg +4 -0
  315. data/app/assets/icons/solid/check-circle.svg +3 -0
  316. data/app/assets/icons/solid/check-plus-circle.svg +4 -0
  317. data/app/assets/icons/solid/circle-pause.svg +3 -0
  318. data/app/assets/icons/solid/circle-plus.svg +3 -0
  319. data/app/assets/icons/solid/clapperboard-play.svg +3 -0
  320. data/app/assets/icons/solid/clipboard-check.svg +3 -0
  321. data/app/assets/icons/solid/clipboard-list.svg +3 -0
  322. data/app/assets/icons/solid/clipboard.svg +3 -0
  323. data/app/assets/icons/solid/clock.svg +3 -0
  324. data/app/assets/icons/solid/close-circle.svg +3 -0
  325. data/app/assets/icons/solid/cloud-arrow-up.svg +4 -0
  326. data/app/assets/icons/solid/code-branch.svg +3 -0
  327. data/app/assets/icons/solid/code-fork.svg +3 -0
  328. data/app/assets/icons/solid/code-merge.svg +3 -0
  329. data/app/assets/icons/solid/code-pull-request.svg +3 -0
  330. data/app/assets/icons/solid/cog.svg +3 -0
  331. data/app/assets/icons/solid/column.svg +3 -0
  332. data/app/assets/icons/solid/computer-speaker.svg +4 -0
  333. data/app/assets/icons/solid/credit-card.svg +4 -0
  334. data/app/assets/icons/solid/css.svg +3 -0
  335. data/app/assets/icons/solid/database.svg +3 -0
  336. data/app/assets/icons/solid/desktop-pc.svg +3 -0
  337. data/app/assets/icons/solid/discord.svg +3 -0
  338. data/app/assets/icons/solid/download.svg +4 -0
  339. data/app/assets/icons/solid/draw-square.svg +4 -0
  340. data/app/assets/icons/solid/dribbble.svg +3 -0
  341. data/app/assets/icons/solid/dropbox.svg +4 -0
  342. data/app/assets/icons/solid/edit.svg +4 -0
  343. data/app/assets/icons/solid/envelope-open.svg +4 -0
  344. data/app/assets/icons/solid/envelope.svg +4 -0
  345. data/app/assets/icons/solid/exclamation-circle.svg +3 -0
  346. data/app/assets/icons/solid/eye-slash.svg +5 -0
  347. data/app/assets/icons/solid/eye.svg +3 -0
  348. data/app/assets/icons/solid/face-explode.svg +3 -0
  349. data/app/assets/icons/solid/face-grin-stars.svg +3 -0
  350. data/app/assets/icons/solid/face-grin.svg +3 -0
  351. data/app/assets/icons/solid/face-laugh.svg +3 -0
  352. data/app/assets/icons/solid/facebook.svg +3 -0
  353. data/app/assets/icons/solid/file-chart-bar.svg +3 -0
  354. data/app/assets/icons/solid/file-check.svg +4 -0
  355. data/app/assets/icons/solid/file-circle-plus.svg +4 -0
  356. data/app/assets/icons/solid/file-clone.svg +4 -0
  357. data/app/assets/icons/solid/file-code.svg +3 -0
  358. data/app/assets/icons/solid/file-copy-alt.svg +4 -0
  359. data/app/assets/icons/solid/file-copy.svg +4 -0
  360. data/app/assets/icons/solid/file-csv.svg +3 -0
  361. data/app/assets/icons/solid/file-export.svg +3 -0
  362. data/app/assets/icons/solid/file-image.svg +3 -0
  363. data/app/assets/icons/solid/file-import.svg +3 -0
  364. data/app/assets/icons/solid/file-invoice.svg +3 -0
  365. data/app/assets/icons/solid/file-lines.svg +3 -0
  366. data/app/assets/icons/solid/file-music.svg +3 -0
  367. data/app/assets/icons/solid/file-paste.svg +4 -0
  368. data/app/assets/icons/solid/file-pdf.svg +3 -0
  369. data/app/assets/icons/solid/file-pen.svg +4 -0
  370. data/app/assets/icons/solid/file-ppt.svg +3 -0
  371. data/app/assets/icons/solid/file-search.svg +3 -0
  372. data/app/assets/icons/solid/file-shield.svg +4 -0
  373. data/app/assets/icons/solid/file-video.svg +3 -0
  374. data/app/assets/icons/solid/file-word.svg +3 -0
  375. data/app/assets/icons/solid/file-zip.svg +3 -0
  376. data/app/assets/icons/solid/file.svg +3 -0
  377. data/app/assets/icons/solid/filter.svg +3 -0
  378. data/app/assets/icons/solid/fire.svg +3 -0
  379. data/app/assets/icons/solid/flag.svg +3 -0
  380. data/app/assets/icons/solid/flowbite.svg +6 -0
  381. data/app/assets/icons/solid/folder-arrow-right.svg +3 -0
  382. data/app/assets/icons/solid/folder-duplicate.svg +4 -0
  383. data/app/assets/icons/solid/folder-open.svg +3 -0
  384. data/app/assets/icons/solid/folder-plus.svg +3 -0
  385. data/app/assets/icons/solid/folder.svg +3 -0
  386. data/app/assets/icons/solid/forward-step.svg +3 -0
  387. data/app/assets/icons/solid/forward.svg +3 -0
  388. data/app/assets/icons/solid/gift-box.svg +3 -0
  389. data/app/assets/icons/solid/github.svg +3 -0
  390. data/app/assets/icons/solid/globe.svg +3 -0
  391. data/app/assets/icons/solid/google.svg +3 -0
  392. data/app/assets/icons/solid/grid-plus.svg +3 -0
  393. data/app/assets/icons/solid/grid.svg +3 -0
  394. data/app/assets/icons/solid/headphones.svg +3 -0
  395. data/app/assets/icons/solid/heart.svg +3 -0
  396. data/app/assets/icons/solid/home.svg +3 -0
  397. data/app/assets/icons/solid/hourglass.svg +3 -0
  398. data/app/assets/icons/solid/html.svg +3 -0
  399. data/app/assets/icons/solid/image.svg +4 -0
  400. data/app/assets/icons/solid/inbox-full.svg +3 -0
  401. data/app/assets/icons/solid/inbox.svg +3 -0
  402. data/app/assets/icons/solid/indent.svg +3 -0
  403. data/app/assets/icons/solid/info-circle.svg +3 -0
  404. data/app/assets/icons/solid/keyboard.svg +3 -0
  405. data/app/assets/icons/solid/label.svg +3 -0
  406. data/app/assets/icons/solid/landmark.svg +4 -0
  407. data/app/assets/icons/solid/layers.svg +4 -0
  408. data/app/assets/icons/solid/life-saver.svg +3 -0
  409. data/app/assets/icons/solid/lightbulb.svg +3 -0
  410. data/app/assets/icons/solid/linkedin.svg +4 -0
  411. data/app/assets/icons/solid/list-music.svg +3 -0
  412. data/app/assets/icons/solid/lock-open.svg +3 -0
  413. data/app/assets/icons/solid/lock-time.svg +4 -0
  414. data/app/assets/icons/solid/lock.svg +3 -0
  415. data/app/assets/icons/solid/mail-box.svg +3 -0
  416. data/app/assets/icons/solid/map-pin-alt.svg +3 -0
  417. data/app/assets/icons/solid/map-pin.svg +3 -0
  418. data/app/assets/icons/solid/message-caption.svg +3 -0
  419. data/app/assets/icons/solid/message-dots.svg +3 -0
  420. data/app/assets/icons/solid/messages.svg +4 -0
  421. data/app/assets/icons/solid/microphone.svg +4 -0
  422. data/app/assets/icons/solid/mobile-phone.svg +3 -0
  423. data/app/assets/icons/solid/moon.svg +3 -0
  424. data/app/assets/icons/solid/newspaper.svg +3 -0
  425. data/app/assets/icons/solid/npm.svg +3 -0
  426. data/app/assets/icons/solid/outdent.svg +3 -0
  427. data/app/assets/icons/solid/palette.svg +3 -0
  428. data/app/assets/icons/solid/paper-plane.svg +3 -0
  429. data/app/assets/icons/solid/paragraph.svg +3 -0
  430. data/app/assets/icons/solid/pause.svg +3 -0
  431. data/app/assets/icons/solid/pen-nib.svg +3 -0
  432. data/app/assets/icons/solid/pen.svg +3 -0
  433. data/app/assets/icons/solid/phone.svg +3 -0
  434. data/app/assets/icons/solid/play.svg +3 -0
  435. data/app/assets/icons/solid/printer.svg +3 -0
  436. data/app/assets/icons/solid/profile-card.svg +3 -0
  437. data/app/assets/icons/solid/question-circle.svg +3 -0
  438. data/app/assets/icons/solid/quote.svg +3 -0
  439. data/app/assets/icons/solid/react.svg +4 -0
  440. data/app/assets/icons/solid/receipt.svg +3 -0
  441. data/app/assets/icons/solid/rectangle-list.svg +3 -0
  442. data/app/assets/icons/solid/reply-all.svg +3 -0
  443. data/app/assets/icons/solid/reply.svg +3 -0
  444. data/app/assets/icons/solid/rocket.svg +3 -0
  445. data/app/assets/icons/solid/sale-percent.svg +3 -0
  446. data/app/assets/icons/solid/scale-balanced.svg +3 -0
  447. data/app/assets/icons/solid/search.svg +4 -0
  448. data/app/assets/icons/solid/share-all.svg +3 -0
  449. data/app/assets/icons/solid/share-nodes.svg +3 -0
  450. data/app/assets/icons/solid/shield-check.svg +3 -0
  451. data/app/assets/icons/solid/shield.svg +3 -0
  452. data/app/assets/icons/solid/shopping-bag.svg +3 -0
  453. data/app/assets/icons/solid/stackoverflow.svg +4 -0
  454. data/app/assets/icons/solid/star-half-stroke.svg +3 -0
  455. data/app/assets/icons/solid/star-half.svg +3 -0
  456. data/app/assets/icons/solid/star.svg +3 -0
  457. data/app/assets/icons/solid/store.svg +3 -0
  458. data/app/assets/icons/solid/sun.svg +3 -0
  459. data/app/assets/icons/solid/swatchbook.svg +3 -0
  460. data/app/assets/icons/solid/table-column.svg +3 -0
  461. data/app/assets/icons/solid/table-row.svg +3 -0
  462. data/app/assets/icons/solid/tablet.svg +3 -0
  463. data/app/assets/icons/solid/tag.svg +3 -0
  464. data/app/assets/icons/solid/tailwind.svg +3 -0
  465. data/app/assets/icons/solid/terminal.svg +3 -0
  466. data/app/assets/icons/solid/thumbs-down.svg +3 -0
  467. data/app/assets/icons/solid/thumbs-up.svg +3 -0
  468. data/app/assets/icons/solid/ticket.svg +3 -0
  469. data/app/assets/icons/solid/trash-bin.svg +3 -0
  470. data/app/assets/icons/solid/truck.svg +3 -0
  471. data/app/assets/icons/solid/twitter.svg +3 -0
  472. data/app/assets/icons/solid/upload.svg +3 -0
  473. data/app/assets/icons/solid/user-add.svg +3 -0
  474. data/app/assets/icons/solid/user-circle.svg +3 -0
  475. data/app/assets/icons/solid/user-edit.svg +3 -0
  476. data/app/assets/icons/solid/user-headset.svg +3 -0
  477. data/app/assets/icons/solid/user-remove.svg +3 -0
  478. data/app/assets/icons/solid/user-settings.svg +3 -0
  479. data/app/assets/icons/solid/user.svg +3 -0
  480. data/app/assets/icons/solid/users-group.svg +3 -0
  481. data/app/assets/icons/solid/users.svg +3 -0
  482. data/app/assets/icons/solid/video-camera.svg +3 -0
  483. data/app/assets/icons/solid/volume-down.svg +4 -0
  484. data/app/assets/icons/solid/volume-up.svg +5 -0
  485. data/app/assets/icons/solid/vue.svg +3 -0
  486. data/app/assets/icons/solid/wallet.svg +4 -0
  487. data/app/assets/icons/solid/wand-magic-sparkles.svg +4 -0
  488. data/app/assets/icons/solid/window-restore.svg +4 -0
  489. data/app/assets/icons/solid/window.svg +3 -0
  490. data/app/assets/icons/solid/youtube.svg +3 -0
  491. data/app/assets/icons/solid/zoom-in.svg +3 -0
  492. data/app/assets/icons/solid/zoom-out.svg +3 -0
  493. data/app/assets/js/controllers/application.js +6 -0
  494. data/app/assets/js/controllers/dropdown_controller.js +12 -0
  495. data/app/assets/js/controllers/index.js +21 -0
  496. data/app/assets/js/plutonium.js +2 -0
  497. data/app/assets/js/turbo/index.js +5 -0
  498. data/app/assets/js/turbo/turbo_actions.js +8 -0
  499. data/app/assets/js/turbo/turbo_debug.js +30 -0
  500. data/app/assets/js/turbo/turbo_frame_monkey_patch.js +23 -0
  501. data/app/views/{resource → application}/_color_modes.html.erb +3 -1
  502. data/app/views/application/_flash.html.erb +1 -0
  503. data/app/views/application/_resource_header.html.erb +721 -0
  504. data/app/views/application/_resource_sidebar.html.erb +12 -0
  505. data/app/views/components/action_button/action_button_component.html.erb +7 -0
  506. data/app/views/components/action_button/action_button_component.rb +15 -0
  507. data/app/views/components/base.rb +50 -0
  508. data/app/views/components/block/block_component.html.erb +3 -0
  509. data/app/views/components/block/block_component.rb +40 -0
  510. data/app/views/components/breadcrumbs/breadcrumbs_component.html.erb +96 -0
  511. data/app/views/components/breadcrumbs/breadcrumbs_component.rb +9 -0
  512. data/app/views/components/button/button_component.html.erb +11 -0
  513. data/app/views/components/button/button_component.rb +123 -0
  514. data/app/views/components/dyna_frame_content/dyna_frame_content_component.html.erb +7 -0
  515. data/app/views/components/dyna_frame_content/dyna_frame_content_component.rb +6 -0
  516. data/app/views/components/dyna_frame_host/dyna_frame_host_component.html.erb +4 -0
  517. data/app/views/components/dyna_frame_host/dyna_frame_host_component.rb +11 -0
  518. data/app/views/components/empty_card/empty_card_component.html.erb +6 -0
  519. data/app/views/components/empty_card/empty_card_component.rb +7 -0
  520. data/app/views/components/form/form_builder.rb +71 -0
  521. data/app/views/components/form/form_component.html.erb +77 -0
  522. data/app/views/components/form/form_component.rb +23 -0
  523. data/app/views/components/form/form_controller.js +13 -0
  524. data/app/views/components/header/header_component.html.erb +1 -0
  525. data/app/views/components/header/header_component.rb +7 -0
  526. data/app/views/components/interactive_action_form/interactive_action_form_component.html.erb +41 -0
  527. data/app/views/components/interactive_action_form/interactive_action_form_component.rb +8 -0
  528. data/app/views/components/interactive_action_form/interactive_action_form_controller.js +13 -0
  529. data/app/views/components/pagination/pagination_component.html.erb +6 -0
  530. data/app/views/components/pagination/pagination_component.rb +91 -0
  531. data/app/views/components/panel/panel_component.html.erb +10 -0
  532. data/app/views/components/panel/panel_component.rb +11 -0
  533. data/app/views/components/sidebar/sidebar_component.html.erb +154 -0
  534. data/app/views/components/sidebar/sidebar_component.rb +15 -0
  535. data/app/views/components/sidebar_menu/sidebar_menu_component.html.erb +3 -0
  536. data/app/views/components/sidebar_menu/sidebar_menu_component.rb +13 -0
  537. data/app/views/components/sidebar_menu_item/sidebar_menu_item_component.html.erb +72 -0
  538. data/app/views/components/sidebar_menu_item/sidebar_menu_item_component.rb +23 -0
  539. data/app/views/components/skeleton/table/table_component.html.erb +18 -0
  540. data/app/views/components/skeleton/table/table_component.rb +6 -0
  541. data/app/views/components/tab_bar/tab_bar_component.html.erb +11 -0
  542. data/app/views/components/tab_bar/tab_bar_component.rb +9 -0
  543. data/app/views/components/tab_bar/tab_bar_controller.js +8 -0
  544. data/app/views/components/table/table_component.html.erb +92 -0
  545. data/app/views/components/table/table_component.rb +63 -0
  546. data/app/views/components/table/table_controller.js +8 -0
  547. data/app/views/components/table_search_input/table_search_input_component.html.erb +42 -0
  548. data/app/views/components/table_search_input/table_search_input_component.rb +10 -0
  549. data/app/views/components/table_search_input/table_search_input_controller.js +8 -0
  550. data/app/views/components/table_toolbar/table_toolbar_component.html.erb +7 -0
  551. data/app/views/components/table_toolbar/table_toolbar_component.rb +9 -0
  552. data/app/views/components/table_toolbar/table_toolbar_controller.js +8 -0
  553. data/app/views/components/toolbar/toolbar_component.html.erb +67 -0
  554. data/app/views/components/toolbar/toolbar_component.rb +18 -0
  555. data/app/views/components/toolbar/toolbar_controller.js +8 -0
  556. data/app/views/layouts/resource.html copy.erb +51 -0
  557. data/app/views/layouts/resource.html.erb +32 -25
  558. data/app/views/layouts/rodauth.html.erb +32 -0
  559. data/app/views/resource/_interactive_resource_action_form.html.erb +4 -26
  560. data/app/views/resource/_resource_details.html.erb +26 -0
  561. data/app/views/resource/{_resource.rabl → _resource_details.rabl} +1 -1
  562. data/app/views/resource/_resource_form.html.erb +5 -0
  563. data/app/views/resource/_resource_table.html.erb +15 -0
  564. data/app/views/resource/edit.html.erb +4 -9
  565. data/app/views/resource/index.html.erb +4 -18
  566. data/app/views/resource/interactive_resource_collection_action.html.erb +3 -10
  567. data/app/views/resource/interactive_resource_record_action.html.erb +3 -10
  568. data/app/views/resource/interactive_resource_recordless_action.html.erb +3 -10
  569. data/app/views/resource/new.html.erb +3 -10
  570. data/app/views/resource/show.html.erb +4 -13
  571. data/app/views/resource/show.rabl +1 -1
  572. data/brakeman.ignore +5 -5
  573. data/build.js +12 -0
  574. data/config/initializers/hotwire_turbo_monkey_patches.rb +12 -0
  575. data/{lib/plutonium → config}/initializers/pagy.rb +0 -1
  576. data/config/initializers/simple_form.rb +54 -0
  577. data/lib/active_model/validations/array_validator.rb +1 -1
  578. data/lib/active_model/validations/attached_validator.rb +1 -1
  579. data/lib/active_model/validations/url_validator.rb +1 -1
  580. data/lib/generators/pu/core/install/install_generator.rb +1 -1
  581. data/lib/generators/pu/core/install/templates/app/controllers/resource_controller.rb.tt +2 -1
  582. data/lib/generators/pu/core/install/templates/app/interactions/resource_interaction.rb.tt +1 -1
  583. data/lib/generators/pu/core/install/templates/app/models/resource_record.rb.tt +1 -1
  584. data/lib/generators/pu/core/install/templates/app/policies/resource_policy.rb.tt +1 -1
  585. data/lib/generators/pu/core/install/templates/app/presenters/resource_presenter.rb.tt +1 -1
  586. data/lib/generators/pu/core/install/templates/app/query_objects/resource_query_object.rb.tt +2 -0
  587. data/lib/generators/pu/core/install/templates/config/packages.rb +1 -3
  588. data/lib/generators/pu/gem/pagy/pagy_generator.rb +1 -1
  589. data/lib/generators/pu/gem/rabl/rabl_generator.rb +1 -1
  590. data/lib/generators/pu/gem/simple_form/simple_form_generator.rb +1 -1
  591. data/lib/generators/pu/gen/component/component_generator.rb +87 -0
  592. data/lib/generators/pu/gen/component/templates/component.html.erb.tt +3 -0
  593. data/lib/generators/pu/gen/component/templates/component.rb.tt +9 -0
  594. data/lib/generators/pu/gen/component/templates/controller.js.tt +8 -0
  595. data/lib/generators/pu/lib/plutonium_generators/concerns/actions.rb +353 -0
  596. data/lib/generators/pu/lib/plutonium_generators/concerns/config.rb +39 -0
  597. data/lib/generators/pu/lib/plutonium_generators/concerns/logger.rb +36 -0
  598. data/lib/generators/pu/lib/plutonium_generators/concerns/serializer.rb +39 -0
  599. data/lib/generators/pu/lib/plutonium_generators/generator.rb +86 -0
  600. data/lib/generators/pu/lib/plutonium_generators/installer.rb +205 -0
  601. data/lib/generators/pu/lib/plutonium_generators/model_generator.rb +151 -0
  602. data/lib/generators/pu/lib/plutonium_generators.rb +7 -0
  603. data/lib/generators/pu/pkg/app/app_generator.rb +14 -4
  604. data/lib/generators/pu/pkg/app/templates/app/controllers/app_controller.rb.tt +5 -0
  605. data/lib/generators/pu/pkg/app/templates/app/controllers/dashboard_controller.rb.tt +6 -0
  606. data/lib/generators/pu/pkg/app/templates/app/controllers/{resource_controller.rb.tt → package_controller.rb.tt} +3 -3
  607. data/lib/generators/pu/pkg/app/templates/app/{interactions/resource_interaction.rb.tt → query_objects/resource_query_object.rb.tt} +1 -1
  608. data/lib/generators/pu/pkg/app/templates/app/views/package/dashboard/index.html.erb +23 -0
  609. data/lib/generators/pu/pkg/app/templates/config/routes.rb.tt +5 -3
  610. data/lib/generators/pu/pkg/feature/feature_generator.rb +4 -4
  611. data/lib/generators/pu/pkg/feature/templates/app/query_objects/resource_query_object.rb.tt +4 -0
  612. data/lib/generators/pu/{resource → res}/conn/conn_generator.rb +3 -2
  613. data/lib/generators/pu/res/conn/templates/.keep +0 -0
  614. data/lib/generators/pu/{resource → res}/conn/templates/app/controllers/resource_controller.rb.tt +1 -1
  615. data/lib/generators/pu/res/conn/templates/app/query_objects/resource_query_object.rb.tt +3 -0
  616. data/lib/generators/pu/res/model/model_generator.rb +36 -0
  617. data/lib/generators/pu/{resource → res}/model/templates/model.rb.tt +1 -1
  618. data/lib/generators/pu/res/scaffold/scaffold_generator.rb +43 -0
  619. data/lib/generators/pu/res/scaffold/templates/.keep +0 -0
  620. data/lib/generators/pu/{resource/model → res/scaffold}/templates/policy.rb.tt +2 -2
  621. data/lib/generators/pu/{resource/model → res/scaffold}/templates/presenter.rb.tt +0 -5
  622. data/lib/generators/pu/res/scaffold/templates/query_object.rb.tt +17 -0
  623. data/lib/generators/pu/rodauth/account_generator.rb +6 -17
  624. data/lib/generators/pu/rodauth/concerns/account_selector.rb +5 -1
  625. data/lib/generators/pu/rodauth/migration/active_record/base.erb +0 -4
  626. data/lib/generators/pu/rodauth/migration_generator.rb +2 -4
  627. data/lib/generators/pu/rodauth/templates/app/controllers/plugin_controller.rb.tt +11 -1
  628. data/lib/generators/pu/rodauth/templates/app/controllers/rodauth_controller.rb.tt +2 -1
  629. data/lib/generators/pu/rodauth/templates/app/mailers/account_mailer.rb.tt +1 -1
  630. data/lib/generators/pu/rodauth/templates/app/misc/account_rodauth_plugin.rb.tt +26 -11
  631. data/lib/generators/pu/rodauth/templates/app/misc/rodauth_plugin.rb.tt +1 -1
  632. data/lib/generators/pu/rodauth/templates/app/models/account.rb.tt +4 -1
  633. data/lib/generators/pu/rodauth/views_generator.rb +1 -14
  634. data/lib/plutonium/application/controller.rb +43 -0
  635. data/lib/plutonium/auth/{public_access.rb → public.rb} +1 -1
  636. data/lib/plutonium/auth.rb +0 -5
  637. data/lib/plutonium/builders/menus/sidebar_menu.rb.bk +26 -0
  638. data/lib/plutonium/builders/menus/sidebar_menu_item.rb.bk +28 -0
  639. data/lib/plutonium/component_registry.rb +19 -0
  640. data/lib/plutonium/config.rb +17 -2
  641. data/lib/plutonium/core/action.rb +9 -6
  642. data/lib/plutonium/core/actions/collection.rb +4 -0
  643. data/lib/plutonium/core/actions/destroy_action.rb +5 -3
  644. data/lib/plutonium/core/actions/edit_action.rb +5 -3
  645. data/lib/plutonium/core/actions/interactive_action.rb +1 -1
  646. data/lib/plutonium/core/actions/new_action.rb +5 -3
  647. data/lib/plutonium/core/actions/show_action.rb +5 -3
  648. data/lib/plutonium/core/autodiscovery/input_discoverer.rb +0 -2
  649. data/lib/plutonium/core/autodiscovery/renderer_discoverer.rb +0 -2
  650. data/lib/plutonium/core/controllers/authorizable.rb +3 -5
  651. data/lib/plutonium/core/controllers/base.rb +86 -0
  652. data/lib/plutonium/core/controllers/bootable.rb +5 -24
  653. data/lib/plutonium/core/controllers/crud_actions.rb +43 -8
  654. data/lib/plutonium/core/controllers/entity_scoping.rb +16 -5
  655. data/lib/plutonium/core/controllers/interactive_actions.rb +9 -7
  656. data/lib/plutonium/core/controllers/presentable.rb +11 -11
  657. data/lib/plutonium/core/controllers/queryable.rb +26 -0
  658. data/lib/plutonium/core/definers/input_definer.rb +47 -7
  659. data/lib/plutonium/core/definers/renderer_definer.rb +5 -3
  660. data/lib/plutonium/core/fields/inputs/base.rb +3 -3
  661. data/lib/plutonium/core/fields/inputs/date_time_input.rb +13 -0
  662. data/lib/plutonium/core/fields/inputs/factory.rb +13 -4
  663. data/lib/plutonium/core/fields/inputs/noop_input.rb +1 -1
  664. data/lib/plutonium/core/fields/inputs/phone_input.rb +22 -0
  665. data/lib/plutonium/core/fields/inputs/polymorphic_belongs_to_association_input.rb +47 -0
  666. data/lib/plutonium/core/fields/inputs/simple_form_association_input.rb +3 -2
  667. data/lib/plutonium/core/fields/inputs/simple_form_input.rb +4 -1
  668. data/lib/plutonium/core/fields/renderers/association_renderer.rb +4 -7
  669. data/lib/plutonium/core/ui/collection.rb +12 -8
  670. data/lib/plutonium/core/ui/detail.rb +8 -5
  671. data/lib/plutonium/core/ui/form.rb +6 -5
  672. data/lib/plutonium/helpers/action_buttons_helper.rb +23 -23
  673. data/lib/plutonium/helpers/application_helper.rb +0 -4
  674. data/lib/plutonium/helpers/attachment_helper.rb +1 -1
  675. data/lib/plutonium/helpers/component_helper.rb +14 -0
  676. data/lib/plutonium/helpers/display_helper.rb +6 -6
  677. data/lib/plutonium/helpers/form_helper.rb +29 -10
  678. data/lib/plutonium/helpers/table_helper.rb +35 -0
  679. data/lib/plutonium/helpers/turbo_helper.rb +2 -2
  680. data/lib/plutonium/helpers.rb +6 -19
  681. data/lib/plutonium/icons.rb +25 -0
  682. data/lib/plutonium/lib/after_commit.rb +2 -2
  683. data/lib/plutonium/{packaging → pkg}/app.rb +8 -6
  684. data/lib/plutonium/{packaging/package.rb → pkg/base.rb} +6 -2
  685. data/lib/plutonium/{packaging → pkg}/feature.rb +2 -2
  686. data/lib/plutonium/preserved__/{field.rb → field.rb.bk} +1 -1
  687. data/lib/plutonium/preserved__/{input.rb → input.rb.bk} +1 -1
  688. data/lib/plutonium/railtie.rb +17 -3
  689. data/lib/plutonium/reactor/core.rb +34 -19
  690. data/lib/plutonium/refinements/parameter_refinements.rb +2 -0
  691. data/lib/plutonium/resource/context.rb +5 -0
  692. data/lib/plutonium/resource/controller.rb +138 -0
  693. data/lib/plutonium/resource/interaction.rb +8 -0
  694. data/lib/plutonium/{reactor/resource_policy.rb → resource/policy.rb} +10 -3
  695. data/lib/plutonium/{reactor → resource}/policy_context.rb +1 -1
  696. data/lib/plutonium/{reactor/resource_presenter.rb → resource/presenter.rb} +2 -6
  697. data/lib/plutonium/resource/query_object.rb +219 -0
  698. data/lib/plutonium/{reactor/resource_record.rb → resource/record.rb} +55 -35
  699. data/lib/plutonium/rodauth/controller_methods.rb +12 -0
  700. data/lib/plutonium/{simple_form_components → simple_form}/attachment_component.rb +2 -0
  701. data/lib/plutonium/{simple_form_components → simple_form}/input_group_component.rb +2 -0
  702. data/lib/plutonium/version.rb +1 -1
  703. data/lib/plutonium.rb +33 -16
  704. data/package-lock.json +2523 -0
  705. data/package.json +21 -0
  706. data/postcss.config.js +11 -0
  707. data/public/plutonium-assets/application.css +1617 -811
  708. data/public/plutonium-assets/application.js +299 -300
  709. data/tailwind.config.js +91 -0
  710. metadata +754 -176
  711. data/app/views/resource/_details.html.erb +0 -6
  712. data/app/views/resource/_empty_card.html.erb +0 -12
  713. data/app/views/resource/_form.html.erb +0 -32
  714. data/app/views/resource/_header.html.erb +0 -8
  715. data/app/views/resource/_messages.html.erb +0 -1
  716. data/app/views/resource/_pagination.html.erb +0 -6
  717. data/app/views/resource/_pagy_pagination.html.erb +0 -15
  718. data/app/views/resource/_resource.html.erb +0 -1
  719. data/app/views/resource/_sidebar.html.erb +0 -11
  720. data/app/views/resource/_sidebar_menu.html.erb +0 -1
  721. data/app/views/resource/_table.html.erb +0 -78
  722. data/app/views/resource/_table_actions.html.erb +0 -15
  723. data/app/views/resource/_toolbar.html.erb +0 -22
  724. data/app/views/resource/_toolbar_actions.html.erb +0 -16
  725. data/app/views/resource/_toolbar_breadcrumbs.html.erb +0 -32
  726. data/app/views/resource/_toolbar_search_input.erb +0 -27
  727. data/lib/generators/pu/resource/model/model_generator.rb +0 -163
  728. data/lib/generators/pu/resource/scaffold/scaffold_generator.rb +0 -219
  729. data/lib/generators/pu/resource/scaffold/templates/app/controllers/admin_resources/resource_controller.rb.tt +0 -7
  730. data/lib/generators/pu/resource/scaffold/templates/app/controllers/entity_resources/resource_controller.rb.tt +0 -7
  731. data/lib/generators/pu/resource/scaffold/templates/app/policies/resources/admin/resource_policy.rb.tt +0 -22
  732. data/lib/generators/pu/resource/scaffold/templates/app/policies/resources/entity/resource_policy.rb.tt +0 -22
  733. data/lib/generators/pu/resource/scaffold/templates/app/policies/resources/resource_policy.rb.tt +0 -13
  734. data/lib/generators/pu/resource/scaffold/templates/app/resources/resource/admin_presenter.rb.tt +0 -7
  735. data/lib/generators/pu/resource/scaffold/templates/app/resources/resource/entity_presenter.rb.tt +0 -7
  736. data/lib/generators/pu/resource/scaffold/templates/app/resources/resource/presenter.rb.tt +0 -23
  737. data/lib/generators/pu/resource/scaffold/templates/app/views/resources/resource/_resource.html.erb.tt +0 -3
  738. data/lib/generators/pu/resource/scaffold/templates/app/views/resources/resource/_resource.rabl +0 -7
  739. data/lib/generators/pu/rodauth/templates/app/views/rodauth/_email_auth_request_form.html.erb +0 -7
  740. data/lib/generators/pu/rodauth/templates/app/views/rodauth/_login_form.html.erb +0 -26
  741. data/lib/generators/pu/rodauth/templates/app/views/rodauth/_login_form_footer.html.erb +0 -9
  742. data/lib/generators/pu/rodauth/templates/app/views/rodauth/add_recovery_codes.html.erb +0 -6
  743. data/lib/generators/pu/rodauth/templates/app/views/rodauth/change_login.html.erb +0 -27
  744. data/lib/generators/pu/rodauth/templates/app/views/rodauth/change_password.html.erb +0 -27
  745. data/lib/generators/pu/rodauth/templates/app/views/rodauth/close_account.html.erb +0 -13
  746. data/lib/generators/pu/rodauth/templates/app/views/rodauth/confirm_password.html.erb +0 -11
  747. data/lib/generators/pu/rodauth/templates/app/views/rodauth/create_account.html.erb +0 -35
  748. data/lib/generators/pu/rodauth/templates/app/views/rodauth/email_auth.html.erb +0 -5
  749. data/lib/generators/pu/rodauth/templates/app/views/rodauth/login.html.erb +0 -4
  750. data/lib/generators/pu/rodauth/templates/app/views/rodauth/logout.html.erb +0 -14
  751. data/lib/generators/pu/rodauth/templates/app/views/rodauth/multi_phase_login.html.erb +0 -3
  752. data/lib/generators/pu/rodauth/templates/app/views/rodauth/otp_auth.html.erb +0 -15
  753. data/lib/generators/pu/rodauth/templates/app/views/rodauth/otp_disable.html.erb +0 -13
  754. data/lib/generators/pu/rodauth/templates/app/views/rodauth/otp_setup.html.erb +0 -41
  755. data/lib/generators/pu/rodauth/templates/app/views/rodauth/recovery_auth.html.erb +0 -11
  756. data/lib/generators/pu/rodauth/templates/app/views/rodauth/recovery_codes.html.erb +0 -13
  757. data/lib/generators/pu/rodauth/templates/app/views/rodauth/remember.html.erb +0 -22
  758. data/lib/generators/pu/rodauth/templates/app/views/rodauth/reset_password.html.erb +0 -19
  759. data/lib/generators/pu/rodauth/templates/app/views/rodauth/reset_password_request.html.erb +0 -17
  760. data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_auth.html.erb +0 -15
  761. data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_confirm.html.erb +0 -15
  762. data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_disable.html.erb +0 -13
  763. data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_request.html.erb +0 -5
  764. data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_setup.html.erb +0 -23
  765. data/lib/generators/pu/rodauth/templates/app/views/rodauth/two_factor_auth.html.erb +0 -5
  766. data/lib/generators/pu/rodauth/templates/app/views/rodauth/two_factor_disable.html.erb +0 -13
  767. data/lib/generators/pu/rodauth/templates/app/views/rodauth/two_factor_manage.html.erb +0 -22
  768. data/lib/generators/pu/rodauth/templates/app/views/rodauth/unlock_account.html.erb +0 -15
  769. data/lib/generators/pu/rodauth/templates/app/views/rodauth/unlock_account_request.html.erb +0 -9
  770. data/lib/generators/pu/rodauth/templates/app/views/rodauth/verify_account.html.erb +0 -21
  771. data/lib/generators/pu/rodauth/templates/app/views/rodauth/verify_account_resend.html.erb +0 -17
  772. data/lib/generators/pu/rodauth/templates/app/views/rodauth/verify_login_change.html.erb +0 -5
  773. data/lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb +0 -15
  774. data/lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_autofill.html.erb +0 -10
  775. data/lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb +0 -23
  776. data/lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_setup.html.erb +0 -23
  777. data/lib/plutonium/core/actions.rb +0 -17
  778. data/lib/plutonium/core/app_controller.rb +0 -121
  779. data/lib/plutonium/core/autodiscovery.rb +0 -13
  780. data/lib/plutonium/core/controllers.rb +0 -16
  781. data/lib/plutonium/core/definers.rb +0 -14
  782. data/lib/plutonium/core/fields/inputs.rb +0 -20
  783. data/lib/plutonium/core/fields/renderers.rb +0 -16
  784. data/lib/plutonium/core/fields.rb +0 -12
  785. data/lib/plutonium/core/ui.rb +0 -13
  786. data/lib/plutonium/core.rb +0 -16
  787. data/lib/plutonium/helpers/menu_helper.rb +0 -69
  788. data/lib/plutonium/helpers/pagination_helper.rb +0 -9
  789. data/lib/plutonium/initializers/TODO +0 -2
  790. data/lib/plutonium/initializers/patches.rb +0 -2
  791. data/lib/plutonium/initializers/simple_form.rb +0 -405
  792. data/lib/plutonium/packaging.rb +0 -9
  793. data/lib/plutonium/policy.rb +0 -8
  794. data/lib/plutonium/reactor/resource_context.rb +0 -5
  795. data/lib/plutonium/reactor/resource_controller.rb +0 -131
  796. data/lib/plutonium/reactor/resource_interaction.rb +0 -8
  797. data/lib/plutonium/reactor.rb +0 -14
  798. /data/app/views/{resource/_flash.html.erb → application/_flash_alerts.html.erb} +0 -0
  799. /data/app/views/{resource/_toast.html.erb → application/_flash_toasts.html.erb} +0 -0
  800. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/_email_auth_request_form.html.erb +0 -0
  801. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/_login_form.html.erb +0 -0
  802. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/_login_form_footer.html.erb +0 -0
  803. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/add_recovery_codes.html.erb +0 -0
  804. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/change_login.html.erb +0 -0
  805. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/change_password.html.erb +0 -0
  806. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/close_account.html.erb +0 -0
  807. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/confirm_password.html.erb +0 -0
  808. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/create_account.html.erb +0 -0
  809. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/email_auth.html.erb +0 -0
  810. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/login.html.erb +0 -0
  811. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/logout.html.erb +0 -0
  812. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/multi_phase_login.html.erb +0 -0
  813. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/otp_auth.html.erb +0 -0
  814. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/otp_disable.html.erb +0 -0
  815. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/otp_setup.html.erb +0 -0
  816. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/recovery_auth.html.erb +0 -0
  817. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/recovery_codes.html.erb +0 -0
  818. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/remember.html.erb +0 -0
  819. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/reset_password.html.erb +0 -0
  820. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/reset_password_request.html.erb +0 -0
  821. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_auth.html.erb +0 -0
  822. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_confirm.html.erb +0 -0
  823. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_disable.html.erb +0 -0
  824. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_request.html.erb +0 -0
  825. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_setup.html.erb +0 -0
  826. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/two_factor_auth.html.erb +0 -0
  827. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/two_factor_disable.html.erb +0 -0
  828. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/two_factor_manage.html.erb +0 -0
  829. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/unlock_account.html.erb +0 -0
  830. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/unlock_account_request.html.erb +0 -0
  831. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/verify_account.html.erb +0 -0
  832. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/verify_account_resend.html.erb +0 -0
  833. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/verify_login_change.html.erb +0 -0
  834. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/webauthn_auth.html.erb +0 -0
  835. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/webauthn_autofill.html.erb +0 -0
  836. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/webauthn_remove.html.erb +0 -0
  837. /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/webauthn_setup.html.erb +0 -0
  838. /data/{lib/plutonium → config}/initializers/rabl.rb +0 -0
  839. /data/lib/generators/pu/{resource/conn/templates → pkg/app/templates/app/views/package}/.keep +0 -0
  840. /data/lib/generators/pu/{resource → res}/conn/templates/app/policies/resource_policy.rb.tt +0 -0
  841. /data/lib/generators/pu/{resource → res}/conn/templates/app/presenters/resource_presenter.rb.tt +0 -0
  842. /data/lib/generators/pu/{resource → res}/model/USAGE +0 -0
  843. /data/lib/generators/pu/{resource → res}/model/templates/create_table_migration.rb.tt +0 -0
  844. /data/lib/generators/pu/{resource → res}/model/templates/module.rb.tt +0 -0
  845. /data/lib/generators/pu/{resource/model → res/scaffold}/templates/controller.rb.tt +0 -0
@@ -1,219 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "plutonium_generators"
4
-
5
- module Pu
6
- module Resource
7
- class ScaffoldGenerator < Rails::Generators::Base
8
- include PlutoniumGenerators::Generator
9
-
10
- source_root File.expand_path("templates", __dir__)
11
-
12
- desc "Scaffold a resource"
13
-
14
- argument :name
15
- class_option :env, type: :string, default: "all"
16
-
17
- def start
18
- setup_models
19
- scaffold_route
20
- scaffold_controllers
21
- scaffold_views
22
- scaffold_policies
23
- scaffold_presenters
24
- rescue => e
25
- exception "Resource scaffold failed:", e
26
- end
27
-
28
- protected
29
-
30
- def setup_models
31
- return if resource_class < Pu::ResourceModel
32
-
33
- insert_into_file "app/models/#{resource_path}.rb",
34
- indent("include ResourceModel\n", 2),
35
- before: /.*# pu:add concerns.*\n/
36
- end
37
-
38
- def scaffold_route
39
- route_exists = File.read("config/routes.rb").match?(/concern :#{resource_name_underscored}_routes do/)
40
- return if route_exists && skip_existing?
41
-
42
- if resource_module_underscored.present?
43
- indentation = " resources :#{resource_name_plural_underscored}, ".size
44
- module_config = [
45
- "module: '#{resource_module_underscored}'",
46
- "controller: '#{resource_attribute_plural}'",
47
- "path: '#{resources_path}'"
48
- ].map { |c| indent c, indentation }.join(",\n")
49
- module_config = ",\n#{module_config}"
50
- end
51
- route = <<~TILDE
52
- concern :#{resource_name_underscored}_routes do
53
- #{resource_name_underscored}_concerns = %i[]
54
- #{resource_name_underscored}_concerns += shared_resource_concerns
55
- resources :#{resource_name_plural_underscored}, concerns: #{resource_name_underscored}_concerns#{module_config} do
56
- # pu:routes:#{resource_name_plural_underscored}
57
- end
58
- end
59
- entity_resource_routes << :#{resource_name_underscored}_routes
60
- admin_resource_routes << :#{resource_name_underscored}_routes
61
- TILDE
62
-
63
- route.gsub!(/entity_resource_routes << :#{resource_name_underscored}_routes\n/, "") if admin_only?
64
- route = indent route, 2
65
-
66
- if route_exists
67
- gsub_file "config/routes.rb",
68
- /.*concern :#{resource_name_underscored}_routes do(.|\n)*<< :#{resource_name_underscored}_routes\n/,
69
- route
70
- else
71
- insert_into_file "config/routes.rb",
72
- "#{route}\n",
73
- before: /.*# pu:add #{entity? ? "entity" : "resource"} routes above.*/
74
- end
75
- end
76
-
77
- def scaffold_controllers
78
- template "app/controllers/admin_resources/resource_controller.rb",
79
- "app/controllers/admin_resources/#{resources_path}_controller.rb", skip: skip_existing?
80
-
81
- return if admin_only?
82
-
83
- template "app/controllers/entity_resources/resource_controller.rb",
84
- "app/controllers/entity_resources/#{resources_path}_controller.rb", skip: skip_existing?
85
- end
86
-
87
- def scaffold_views
88
- %w[entity_resources admin_resources].each do |subdir|
89
- next if subdir != "admin_resources" && admin_only?
90
-
91
- create_file "app/views/#{subdir}/#{resources_path}/.keep", ""
92
-
93
- # template 'app/views/resources/resource/_resource.html.erb',
94
- # "app/views/#{subdir}/#{resources_path}/_#{resource_attribute}.html.erb", skip: skip_existing?
95
- # copy_file 'app/views/resources/resource/_resource.rabl',
96
- # "app/views/#{subdir}/#{resources_path}/_#{resource_attribute}.rabl", skip: skip_existing?
97
- end
98
- end
99
-
100
- def scaffold_policies
101
- template "app/policies/resources/resource_policy.rb",
102
- "app/policies/resources/#{resource_path}_policy.rb", skip: skip_existing?
103
-
104
- template "app/policies/resources/admin/resource_policy.rb",
105
- "app/policies/resources/admin/#{resource_path}_policy.rb", skip: skip_existing?
106
-
107
- return if admin_only?
108
-
109
- template "app/policies/resources/entity/resource_policy.rb",
110
- "app/policies/resources/entity/#{resource_path}_policy.rb", skip: skip_existing?
111
- end
112
-
113
- def scaffold_presenters
114
- template "app/resources/resource/presenter.rb",
115
- "app/resources/#{resources_path}/presenter.rb", skip: skip_existing?
116
- template "app/resources/resource/admin_presenter.rb",
117
- "app/resources/#{resources_path}/admin_presenter.rb", skip: skip_existing?
118
-
119
- return if admin_only?
120
-
121
- template "app/resources/resource/entity_presenter.rb",
122
- "app/resources/#{resources_path}/entity_presenter.rb", skip: skip_existing?
123
- end
124
-
125
- def create_fields
126
- @create_fields ||= (resource_class.attribute_names - %w[id slug created_at updated_at]).map(&:to_sym)
127
- end
128
-
129
- def read_fields
130
- @read_fields ||= begin
131
- attribute_names = resource_class.attribute_names.reject { |attr| associations[attr] }
132
- attribute_names = attribute_names.map(&:to_sym)
133
- attribute_names.insert(1, entity_assoc.name) if entity_assoc
134
- attribute_names - %i[]
135
- end
136
- end
137
-
138
- def associations
139
- @associations ||= resource_class.reflect_on_all_associations.map do |assoc|
140
- [assoc.foreign_key, assoc]
141
- end.compact.to_h.with_indifferent_access
142
- end
143
-
144
- def entity_assoc(source_class = nil)
145
- @entity_assoc ||= {}
146
-
147
- source_class ||= resource_class
148
- @entity_assoc[source_class] ||= begin
149
- matcher = lambda do |assoc|
150
- assoc_class = assoc.class_name.constantize
151
- assoc_class == Entity || assoc_class < Entity
152
- rescue
153
- false
154
- end
155
-
156
- assoc = source_class.reflect_on_all_associations(:belongs_to).find(&matcher)
157
- assoc ||= source_class.reflect_on_all_associations(:has_one).find(&matcher)
158
- assoc
159
- end
160
- end
161
-
162
- def assoc?(attr)
163
- resource_class.reflect_on_association(attr)
164
- end
165
-
166
- def admin_only?
167
- entity? || entity_assoc.nil?
168
- end
169
-
170
- def entity?
171
- resource_class == Entity || resource_class < Entity
172
- end
173
-
174
- def resource_name
175
- @resource_name ||= name.classify
176
- end
177
-
178
- def resource_name_plural
179
- @resource_name_plural ||= resource_name.pluralize
180
- end
181
-
182
- def resource_class
183
- @resource_class ||= resource_name.constantize
184
- end
185
-
186
- def resource_name_underscored
187
- @resource_name_underscored ||= resource_name.underscore.tr("/", "_")
188
- end
189
-
190
- def resource_name_plural_underscored
191
- @resource_name_plural_underscored ||= resource_name_plural.underscore.tr("/", "_")
192
- end
193
-
194
- def resource_path
195
- @resource_path ||= resource_name.underscore
196
- end
197
-
198
- def resources_path
199
- @resources_path ||= resource_name_plural.underscore
200
- end
201
-
202
- def resource_attribute
203
- @resource_attribute ||= resource_name.demodulize.underscore
204
- end
205
-
206
- def resource_attribute_plural
207
- @resource_attribute_plural ||= resource_name_plural.demodulize.underscore
208
- end
209
-
210
- def resource_module_underscored
211
- @resource_module_underscored ||= resource_name.deconstantize.underscore
212
- end
213
-
214
- def skip_existing?
215
- !options[:force]
216
- end
217
- end
218
- end
219
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module AdminResources
4
- class <%= resource_name_plural %>Controller < ResourceController
5
- controller_for ::<%= resource_name %>
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module EntityResources
4
- class <%= resource_name_plural %>Controller < ResourceController
5
- controller_for ::<%= resource_name %>
6
- end
7
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Resources
4
- module Admin
5
- class <%= resource_name %>Policy < Resources::Admin::ResourcePolicy
6
- include Resources::<%= resource_name %>Policy
7
-
8
- class Scope
9
- include Pu::Policy::Initializer
10
-
11
- def resolve
12
- scope = ::<%= resource_name %>.all
13
- scope = @context.parent.<%= resource_name_plural_underscored %> if @context.parent.present?
14
- scope
15
- <%- if entity_assoc -%>
16
- .includes(:<%= entity_assoc.name %>)
17
- <%- end -%>
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Resources
4
- module Entity
5
- class <%= resource_name %>Policy < Resources::Entity::ResourcePolicy
6
- include Resources::<%= resource_name %>Policy
7
-
8
- class Scope
9
- include Pu::Policy::Initializer
10
-
11
- def resolve
12
- @context
13
- .parent
14
- .<%= resource_name_plural_underscored %>
15
- <%- if entity_assoc -%>
16
- .includes(:<%= entity_assoc.name %>)
17
- <%- end -%>
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Resources
4
- module <%= resource_name %>Policy
5
- def permitted_attributes_for_read
6
- <%= read_fields.inspect %>
7
- end
8
-
9
- def permitted_attributes_for_create
10
- <%= create_fields.inspect %>
11
- end
12
- end
13
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module <%= resource_name_plural %>
4
- class AdminPresenter < Presenter
5
- include AdminResourcePresenter
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module <%= resource_name_plural %>
4
- class EntityPresenter < Presenter
5
- include EntityResourcePresenter
6
- end
7
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module <%= resource_name_plural %>
4
- class Presenter < ResourcePresenter
5
- private
6
-
7
- def collection_fields
8
- <%= (read_fields - %i[id]).inspect %>
9
- end
10
-
11
- def detail_fields
12
- <%= (read_fields - %i[id]).inspect %>
13
- end
14
-
15
- def form_inputs
16
- <%= create_fields.inspect %>
17
- end
18
-
19
- def associations_list
20
- []
21
- end
22
- end
23
- end
@@ -1,3 +0,0 @@
1
- <%% raise NotImplementedError, "Only Builders::Details is supported" unless <%= resource_name_underscored %>.is_a? ::Pu::UI::Builder::Detail %>
2
-
3
- <%%= render 'details', details: <%= resource_name_underscored %> %>
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- attributes :id
4
- attributes(*permitted_attributes)
5
- attributes :created_at, :updated_at
6
-
7
- node(:url) { |resource| url_for(adapt_route_args(resource)) }
@@ -1,7 +0,0 @@
1
- <%= form_with url: rodauth.email_auth_request_path, method: :post, data: { turbo: false } do |form| %>
2
- <%= form.hidden_field rodauth.login_param, value: params[rodauth.login_param] %>
3
-
4
- <div class="form-group mb-3">
5
- <%= form.submit rodauth.email_auth_request_button, class: "btn btn-primary" %>
6
- </div>
7
- <% end %>
@@ -1,26 +0,0 @@
1
- <%= form_with url: rodauth.login_path, method: :post, data: { turbo: false } do |form| %>
2
- <% if rodauth.skip_login_field_on_login? %>
3
- <div class="form-group mb-3">
4
- <%= form.label "login", rodauth.login_label, class: "form-label" %>
5
- <%= form.email_field rodauth.login_param, value: params[rodauth.login_param], id: "login", readonly: true, class: "form-control-plaintext" %>
6
- </div>
7
- <% else %>
8
- <div class="form-group mb-3">
9
- <%= form.label "login", rodauth.login_label, class: "form-label" %>
10
- <%= form.email_field rodauth.login_param, value: params[rodauth.login_param], id: "login", autocomplete: rodauth.login_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.login_param)}", aria: ({ invalid: true, describedby: "login_error_message" } if rodauth.field_error(rodauth.login_param)) %>
11
- <%= content_tag(:span, rodauth.field_error(rodauth.login_param), class: "invalid-feedback", id: "login_error_message") if rodauth.field_error(rodauth.login_param) %>
12
- </div>
13
- <% end %>
14
-
15
- <% unless rodauth.skip_password_field_on_login? %>
16
- <div class="form-group mb-3">
17
- <%= form.label "password", rodauth.password_label, class: "form-label" %>
18
- <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
19
- <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
20
- </div>
21
- <% end %>
22
-
23
- <div class="form-group mb-3">
24
- <%= form.submit rodauth.login_button, class: "btn btn-primary" %>
25
- </div>
26
- <% end %>
@@ -1,9 +0,0 @@
1
- <% unless rodauth.login_form_footer_links.empty? %>
2
- <%== rodauth.login_form_footer_links_heading %>
3
-
4
- <ul>
5
- <% rodauth.login_form_footer_links.sort.each do |_, link, text| %>
6
- <li><%= link_to text, link %></li>
7
- <% end %>
8
- </ul>
9
- <% end %>
@@ -1,6 +0,0 @@
1
- <pre id="recovery-codes"><%= rodauth.recovery_codes.map { |s| h(s) }.join("\n\n") %></pre>
2
-
3
- <% if rodauth.can_add_recovery_codes? %>
4
- <%== rodauth.add_recovery_codes_heading %>
5
- <%= render template: "rodauth/recovery_codes", layout: false %>
6
- <% end %>
@@ -1,27 +0,0 @@
1
- <%= form_with url: rodauth.change_login_path, method: :post, data: { turbo: false } do |form| %>
2
- <div class="form-group mb-3">
3
- <%= form.label "login", rodauth.login_label, class: "form-label" %>
4
- <%= form.email_field rodauth.login_param, value: params[rodauth.login_param], id: "login", autocomplete: "email", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.login_param)}", aria: ({ invalid: true, describedby: "login_error_message" } if rodauth.field_error(rodauth.login_param)) %>
5
- <%= content_tag(:span, rodauth.field_error(rodauth.login_param), class: "invalid-feedback", id: "login_error_message") if rodauth.field_error(rodauth.login_param) %>
6
- </div>
7
-
8
- <% if rodauth.require_login_confirmation? %>
9
- <div class="form-group mb-3">
10
- <%= form.label "login-confirm", rodauth.login_confirm_label, class: "form-label" %>
11
- <%= form.email_field rodauth.login_confirm_param, value: params[rodauth.login_confirm_param], id: "login-confirm", autocomplete: "email", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.login_confirm_param)}", aria: ({ invalid: true, describedby: "login-confirm_error_message" } if rodauth.field_error(rodauth.login_confirm_param)) %>
12
- <%= content_tag(:span, rodauth.field_error(rodauth.login_confirm_param), class: "invalid-feedback", id: "login-confirm_error_message") if rodauth.field_error(rodauth.login_confirm_param) %>
13
- </div>
14
- <% end %>
15
-
16
- <% if rodauth.change_login_requires_password? %>
17
- <div class="form-group mb-3">
18
- <%= form.label "password", rodauth.password_label, class: "form-label" %>
19
- <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
20
- <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
21
- </div>
22
- <% end %>
23
-
24
- <div class="form-group mb-3">
25
- <%= form.submit rodauth.change_login_button, class: "btn btn-primary" %>
26
- </div>
27
- <% end %>
@@ -1,27 +0,0 @@
1
- <%= form_with url: rodauth.change_password_path, method: :post, data: { turbo: false } do |form| %>
2
- <% if rodauth.change_password_requires_password? %>
3
- <div class="form-group mb-3">
4
- <%= form.label "password", rodauth.password_label, class: "form-label" %>
5
- <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
6
- <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
7
- </div>
8
- <% end %>
9
-
10
- <div class="form-group mb-3">
11
- <%= form.label "new-password", rodauth.new_password_label, class: "form-label" %>
12
- <%= form.password_field rodauth.new_password_param, value: "", id: "new-password", autocomplete: "new-password", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.new_password_param)}", aria: ({ invalid: true, describedby: "new-password_error_message" } if rodauth.field_error(rodauth.new_password_param)) %>
13
- <%= content_tag(:span, rodauth.field_error(rodauth.new_password_param), class: "invalid-feedback", id: "new-password_error_message") if rodauth.field_error(rodauth.new_password_param) %>
14
- </div>
15
-
16
- <% if rodauth.require_password_confirmation? %>
17
- <div class="form-group mb-3">
18
- <%= form.label "password-confirm", rodauth.password_confirm_label, class: "form-label" %>
19
- <%= form.password_field rodauth.password_confirm_param, value: "", id: "password-confirm", autocomplete: "new-password", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_confirm_param)}", aria: ({ invalid: true, describedby: "password-confirm_error_message" } if rodauth.field_error(rodauth.password_confirm_param)) %>
20
- <%= content_tag(:span, rodauth.field_error(rodauth.password_confirm_param), class: "invalid-feedback", id: "password-confirm_error_message") if rodauth.field_error(rodauth.password_confirm_param) %>
21
- </div>
22
- <% end %>
23
-
24
- <div class="form-group mb-3">
25
- <%= form.submit rodauth.change_password_button, class: "btn btn-primary" %>
26
- </div>
27
- <% end %>
@@ -1,13 +0,0 @@
1
- <%= form_with url: rodauth.close_account_path, method: :post, data: { turbo: false } do |form| %>
2
- <% if rodauth.close_account_requires_password? %>
3
- <div class="form-group mb-3">
4
- <%= form.label "password", rodauth.password_label, class: "form-label" %>
5
- <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
6
- <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
7
- </div>
8
- <% end %>
9
-
10
- <div class="form-group mb-3">
11
- <%= form.submit rodauth.close_account_button, class: "btn btn-danger" %>
12
- </div>
13
- <% end %>
@@ -1,11 +0,0 @@
1
- <%= form_with url: rodauth.confirm_password_path, method: :post, data: { turbo: false } do |form| %>
2
- <div class="form-group mb-3">
3
- <%= form.label "password", rodauth.password_label, class: "form-label" %>
4
- <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
5
- <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
6
- </div>
7
-
8
- <div class="form-group mb-3">
9
- <%= form.submit rodauth.confirm_password_button, class: "btn btn-primary" %>
10
- </div>
11
- <% end %>
@@ -1,35 +0,0 @@
1
- <%= form_with url: rodauth.create_account_path, method: :post, data: { turbo: false } do |form| %>
2
- <div class="form-group mb-3">
3
- <%= form.label "login", rodauth.login_label, class: "form-label" %>
4
- <%= form.email_field rodauth.login_param, value: params[rodauth.login_param], id: "login", autocomplete: "email", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.login_param)}", aria: ({ invalid: true, describedby: "login_error_message" } if rodauth.field_error(rodauth.login_param)) %>
5
- <%= content_tag(:span, rodauth.field_error(rodauth.login_param), class: "invalid-feedback", id: "login_error_message") if rodauth.field_error(rodauth.login_param) %>
6
- </div>
7
-
8
- <% if rodauth.require_login_confirmation? %>
9
- <div class="form-group mb-3">
10
- <%= form.label "login-confirm", rodauth.login_confirm_label, class: "form-label" %>
11
- <%= form.email_field rodauth.login_confirm_param, value: params[rodauth.login_confirm_param], id: "login-confirm", autocomplete: "email", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.login_confirm_param)}", aria: ({ invalid: true, describedby: "login-confirm_error_message" } if rodauth.field_error(rodauth.login_confirm_param)) %>
12
- <%= content_tag(:span, rodauth.field_error(rodauth.login_confirm_param), class: "invalid-feedback", id: "login-confirm_error_message") if rodauth.field_error(rodauth.login_confirm_param) %>
13
- </div>
14
- <% end %>
15
-
16
- <% if rodauth.create_account_set_password? %>
17
- <div class="form-group mb-3">
18
- <%= form.label "password", rodauth.password_label, class: "form-label" %>
19
- <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
20
- <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
21
- </div>
22
-
23
- <% if rodauth.require_password_confirmation? %>
24
- <div class="form-group mb-3">
25
- <%= form.label "password-confirm", rodauth.password_confirm_label, class: "form-label" %>
26
- <%= form.password_field rodauth.password_confirm_param, value: "", id: "password-confirm", autocomplete: "new-password", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_confirm_param)}", aria: ({ invalid: true, describedby: "password-confirm_error_message" } if rodauth.field_error(rodauth.password_confirm_param)) %>
27
- <%= content_tag(:span, rodauth.field_error(rodauth.password_confirm_param), class: "invalid-feedback", id: "password-confirm_error_message") if rodauth.field_error(rodauth.password_confirm_param) %>
28
- </div>
29
- <% end %>
30
- <% end %>
31
-
32
- <div class="form-group mb-3">
33
- <%= form.submit rodauth.create_account_button, class: "btn btn-primary" %>
34
- </div>
35
- <% end %>
@@ -1,5 +0,0 @@
1
- <%= form_with url: rodauth.email_auth_path, method: :post, data: { turbo: false } do |form| %>
2
- <div class="form-group mb-3">
3
- <%= form.submit rodauth.login_button, class: "btn btn-primary" %>
4
- </div>
5
- <% end %>
@@ -1,4 +0,0 @@
1
- <%== rodauth.login_form_header %>
2
- <%= render "login_form" %>
3
- <%== rodauth.create_account_additional_form_tags if rodauth.respond_to? :create_account_additional_form_tags %>
4
- <%== rodauth.login_form_footer %>
@@ -1,14 +0,0 @@
1
- <%= form_with url: rodauth.logout_path, method: :post, data: { turbo: false } do |form| %>
2
- <% if rodauth.features.include?(:active_sessions) %>
3
- <div class="form-group mb-3">
4
- <div class="form-check">
5
- <%= form.check_box rodauth.global_logout_param, id: "global-logout", class: "form-check-input", include_hidden: false %>
6
- <%= form.label "global-logout", rodauth.global_logout_label, class: "form-check-label" %>
7
- </div>
8
- </div>
9
- <% end %>
10
-
11
- <div class="form-group mb-3">
12
- <%= form.submit rodauth.logout_button, class: "btn btn-warning" %>
13
- </div>
14
- <% end %>
@@ -1,3 +0,0 @@
1
- <%== rodauth.login_form_header %>
2
- <%== rodauth.render_multi_phase_login_forms %>
3
- <%== rodauth.login_form_footer %>
@@ -1,15 +0,0 @@
1
- <%= form_with url: rodauth.otp_auth_path, method: :post, data: { turbo: false } do |form| %>
2
- <div class="form-group mb-3">
3
- <%= form.label "otp-auth-code", rodauth.otp_auth_label, class: "form-label" %>
4
- <div class="row">
5
- <div class="col-sm-3">
6
- <%= form.text_field rodauth.otp_auth_param, value: "", id: "otp-auth-code", autocomplete: "off", inputmode: "numeric", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.otp_auth_param)}", aria: ({ invalid: true, describedby: "otp-auth-code_error_message" } if rodauth.field_error(rodauth.otp_auth_param)) %>
7
- <%= content_tag(:span, rodauth.field_error(rodauth.otp_auth_param), class: "invalid-feedback", id: "otp-auth-code_error_message") if rodauth.field_error(rodauth.otp_auth_param) %>
8
- </div>
9
- </div>
10
- </div>
11
-
12
- <div class="form-group mb-3">
13
- <%= form.submit rodauth.otp_auth_button, class: "btn btn-primary" %>
14
- </div>
15
- <% end %>
@@ -1,13 +0,0 @@
1
- <%= form_with url: rodauth.otp_disable_path, method: :post, data: { turbo: false } do |form| %>
2
- <% if rodauth.two_factor_modifications_require_password? %>
3
- <div class="form-group mb-3">
4
- <%= form.label "password", rodauth.password_label, class: "form-label" %>
5
- <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
6
- <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
7
- </div>
8
- <% end %>
9
-
10
- <div class="form-group mb-3">
11
- <%= form.submit rodauth.otp_disable_button, class: "btn btn-warning" %>
12
- </div>
13
- <% end %>
@@ -1,41 +0,0 @@
1
- <%= form_with url: rodauth.otp_setup_path, method: :post, data: { turbo: false } do |form| %>
2
- <%= form.hidden_field rodauth.otp_setup_param, value: rodauth.otp_user_key, id: "otp-key" %>
3
- <%= form.hidden_field rodauth.otp_setup_raw_param, value: rodauth.otp_key, id: "otp-hmac-secret" if rodauth.otp_keys_use_hmac? %>
4
-
5
- <div class="form-group mb-3">
6
- <p><%= rodauth.otp_secret_label %>: <%= rodauth.otp_user_key %></p>
7
- <p><%= rodauth.otp_provisioning_uri_label %>: <%= rodauth.otp_provisioning_uri %></p>
8
- </div>
9
-
10
- <div class="row">
11
- <div class="col-lg-6 col-lg">
12
- <div class="form-group mb-3">
13
- <p><%== rodauth.otp_qr_code %></p>
14
- </div>
15
- </div>
16
-
17
- <div class="col-lg-6 col-lg">
18
- <% if rodauth.two_factor_modifications_require_password? %>
19
- <div class="form-group mb-3">
20
- <%= form.label "password", rodauth.password_label, class: "form-label" %>
21
- <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
22
- <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
23
- </div>
24
- <% end %>
25
-
26
- <div class="form-group mb-3">
27
- <%= form.label "otp-auth-code", rodauth.otp_auth_label, class: "form-label" %>
28
- <div class="row">
29
- <div class="col-sm-3">
30
- <%= form.text_field rodauth.otp_auth_param, value: "", id: "otp-auth-code", autocomplete: "off", inputmode: "numeric", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.otp_auth_param)}", aria: ({ invalid: true, describedby: "otp-auth-code_error_message" } if rodauth.field_error(rodauth.otp_auth_param)) %>
31
- <%= content_tag(:span, rodauth.field_error(rodauth.otp_auth_param), class: "invalid-feedback", id: "otp-auth-code_error_message") if rodauth.field_error(rodauth.otp_auth_param) %>
32
- </div>
33
- </div>
34
- </div>
35
-
36
- <div class="form-group mb-3">
37
- <%= form.submit rodauth.otp_setup_button, class: "btn btn-primary" %>
38
- </div>
39
- </div>
40
- </div>
41
- <% end %>