spina 2.0.2 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spina might be problematic. Click here for more details.

Files changed (882) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -7
  3. data/Rakefile +2 -0
  4. data/app/assets/config/spina/manifest.js +8 -4
  5. data/app/assets/config/spina/tailwind.config.js +27 -0
  6. data/app/assets/icons/heroicons/outline/academic-cap.svg +5 -0
  7. data/app/assets/icons/heroicons/outline/adjustments.svg +3 -0
  8. data/app/assets/icons/heroicons/outline/annotation.svg +3 -0
  9. data/app/assets/icons/heroicons/outline/archive.svg +3 -0
  10. data/app/assets/icons/heroicons/outline/arrow-circle-down.svg +3 -0
  11. data/app/assets/icons/heroicons/outline/arrow-circle-left.svg +3 -0
  12. data/app/assets/icons/heroicons/outline/arrow-circle-right.svg +3 -0
  13. data/app/assets/icons/heroicons/outline/arrow-circle-up.svg +3 -0
  14. data/app/assets/icons/heroicons/outline/arrow-down.svg +3 -0
  15. data/app/assets/icons/heroicons/outline/arrow-left.svg +3 -0
  16. data/app/assets/icons/heroicons/outline/arrow-narrow-down.svg +3 -0
  17. data/app/assets/icons/heroicons/outline/arrow-narrow-left.svg +3 -0
  18. data/app/assets/icons/heroicons/outline/arrow-narrow-right.svg +3 -0
  19. data/app/assets/icons/heroicons/outline/arrow-narrow-up.svg +3 -0
  20. data/app/assets/icons/heroicons/outline/arrow-right.svg +3 -0
  21. data/app/assets/icons/heroicons/outline/arrow-up.svg +3 -0
  22. data/app/assets/icons/heroicons/outline/arrows-expand.svg +3 -0
  23. data/app/assets/icons/heroicons/outline/at-symbol.svg +3 -0
  24. data/app/assets/icons/heroicons/outline/backspace.svg +3 -0
  25. data/app/assets/icons/heroicons/outline/badge-check.svg +3 -0
  26. data/app/assets/icons/heroicons/outline/ban.svg +3 -0
  27. data/app/assets/icons/heroicons/outline/beaker.svg +3 -0
  28. data/app/assets/icons/heroicons/outline/bell.svg +3 -0
  29. data/app/assets/icons/heroicons/outline/book-open.svg +3 -0
  30. data/app/assets/icons/heroicons/outline/bookmark-alt.svg +3 -0
  31. data/app/assets/icons/heroicons/outline/bookmark.svg +3 -0
  32. data/app/assets/icons/heroicons/outline/briefcase.svg +3 -0
  33. data/app/assets/icons/heroicons/outline/cake.svg +3 -0
  34. data/app/assets/icons/heroicons/outline/calculator.svg +3 -0
  35. data/app/assets/icons/heroicons/outline/calendar.svg +3 -0
  36. data/app/assets/icons/heroicons/outline/camera.svg +4 -0
  37. data/app/assets/icons/heroicons/outline/cash.svg +3 -0
  38. data/app/assets/icons/heroicons/outline/chart-bar.svg +3 -0
  39. data/app/assets/icons/heroicons/outline/chart-pie.svg +4 -0
  40. data/app/assets/icons/heroicons/outline/chart-square-bar.svg +3 -0
  41. data/app/assets/icons/heroicons/outline/chat-alt-2.svg +3 -0
  42. data/app/assets/icons/heroicons/outline/chat-alt.svg +3 -0
  43. data/app/assets/icons/heroicons/outline/chat.svg +3 -0
  44. data/app/assets/icons/heroicons/outline/check-circle.svg +3 -0
  45. data/app/assets/icons/heroicons/outline/check.svg +3 -0
  46. data/app/assets/icons/heroicons/outline/chevron-double-down.svg +3 -0
  47. data/app/assets/icons/heroicons/outline/chevron-double-left.svg +3 -0
  48. data/app/assets/icons/heroicons/outline/chevron-double-right.svg +3 -0
  49. data/app/assets/icons/heroicons/outline/chevron-double-up.svg +3 -0
  50. data/app/assets/icons/heroicons/outline/chevron-down.svg +3 -0
  51. data/app/assets/icons/heroicons/outline/chevron-left.svg +3 -0
  52. data/app/assets/icons/heroicons/outline/chevron-right.svg +3 -0
  53. data/app/assets/icons/heroicons/outline/chevron-up.svg +3 -0
  54. data/app/assets/icons/heroicons/outline/chip.svg +3 -0
  55. data/app/assets/icons/heroicons/outline/clipboard-check.svg +3 -0
  56. data/app/assets/icons/heroicons/outline/clipboard-copy.svg +3 -0
  57. data/app/assets/icons/heroicons/outline/clipboard-list.svg +3 -0
  58. data/app/assets/icons/heroicons/outline/clipboard.svg +3 -0
  59. data/app/assets/icons/heroicons/outline/clock.svg +3 -0
  60. data/app/assets/icons/heroicons/outline/cloud-download.svg +3 -0
  61. data/app/assets/icons/heroicons/outline/cloud-upload.svg +3 -0
  62. data/app/assets/icons/heroicons/outline/cloud.svg +3 -0
  63. data/app/assets/icons/heroicons/outline/code.svg +3 -0
  64. data/app/assets/icons/heroicons/outline/cog.svg +4 -0
  65. data/app/assets/icons/heroicons/outline/collection.svg +3 -0
  66. data/app/assets/icons/heroicons/outline/color-swatch.svg +3 -0
  67. data/app/assets/icons/heroicons/outline/credit-card.svg +3 -0
  68. data/app/assets/icons/heroicons/outline/cube-transparent.svg +3 -0
  69. data/app/assets/icons/heroicons/outline/cube.svg +3 -0
  70. data/app/assets/icons/heroicons/outline/currency-bangladeshi.svg +3 -0
  71. data/app/assets/icons/heroicons/outline/currency-dollar.svg +3 -0
  72. data/app/assets/icons/heroicons/outline/currency-euro.svg +3 -0
  73. data/app/assets/icons/heroicons/outline/currency-pound.svg +3 -0
  74. data/app/assets/icons/heroicons/outline/currency-rupee.svg +3 -0
  75. data/app/assets/icons/heroicons/outline/currency-yen.svg +3 -0
  76. data/app/assets/icons/heroicons/outline/cursor-click.svg +3 -0
  77. data/app/assets/icons/heroicons/outline/database.svg +3 -0
  78. data/app/assets/icons/heroicons/outline/desktop-computer.svg +3 -0
  79. data/app/assets/icons/heroicons/outline/device-mobile.svg +3 -0
  80. data/app/assets/icons/heroicons/outline/device-tablet.svg +3 -0
  81. data/app/assets/icons/heroicons/outline/document-add.svg +3 -0
  82. data/app/assets/icons/heroicons/outline/document-download.svg +3 -0
  83. data/app/assets/icons/heroicons/outline/document-duplicate.svg +3 -0
  84. data/app/assets/icons/heroicons/outline/document-remove.svg +3 -0
  85. data/app/assets/icons/heroicons/outline/document-report.svg +3 -0
  86. data/app/assets/icons/heroicons/outline/document-search.svg +3 -0
  87. data/app/assets/icons/heroicons/outline/document-text.svg +3 -0
  88. data/app/assets/icons/heroicons/outline/document.svg +3 -0
  89. data/app/assets/icons/heroicons/outline/dots-circle-horizontal.svg +3 -0
  90. data/app/assets/icons/heroicons/outline/dots-horizontal.svg +3 -0
  91. data/app/assets/icons/heroicons/outline/dots-vertical.svg +3 -0
  92. data/app/assets/icons/heroicons/outline/download.svg +3 -0
  93. data/app/assets/icons/heroicons/outline/duplicate.svg +3 -0
  94. data/app/assets/icons/heroicons/outline/emoji-happy.svg +3 -0
  95. data/app/assets/icons/heroicons/outline/emoji-sad.svg +3 -0
  96. data/app/assets/icons/heroicons/outline/exclamation-circle.svg +3 -0
  97. data/app/assets/icons/heroicons/outline/exclamation.svg +3 -0
  98. data/app/assets/icons/heroicons/outline/external-link.svg +3 -0
  99. data/app/assets/icons/heroicons/outline/eye-off.svg +3 -0
  100. data/app/assets/icons/heroicons/outline/eye.svg +4 -0
  101. data/app/assets/icons/heroicons/outline/fast-forward.svg +3 -0
  102. data/app/assets/icons/heroicons/outline/film.svg +3 -0
  103. data/app/assets/icons/heroicons/outline/filter.svg +3 -0
  104. data/app/assets/icons/heroicons/outline/finger-print.svg +3 -0
  105. data/app/assets/icons/heroicons/outline/fire.svg +4 -0
  106. data/app/assets/icons/heroicons/outline/flag.svg +3 -0
  107. data/app/assets/icons/heroicons/outline/folder-add.svg +3 -0
  108. data/app/assets/icons/heroicons/outline/folder-download.svg +3 -0
  109. data/app/assets/icons/heroicons/outline/folder-open.svg +3 -0
  110. data/app/assets/icons/heroicons/outline/folder-remove.svg +3 -0
  111. data/app/assets/icons/heroicons/outline/folder.svg +3 -0
  112. data/app/assets/icons/heroicons/outline/gift.svg +3 -0
  113. data/app/assets/icons/heroicons/outline/globe-alt.svg +3 -0
  114. data/app/assets/icons/heroicons/outline/globe.svg +3 -0
  115. data/app/assets/icons/heroicons/outline/hand.svg +3 -0
  116. data/app/assets/icons/heroicons/outline/hashtag.svg +3 -0
  117. data/app/assets/icons/heroicons/outline/heart.svg +3 -0
  118. data/app/assets/icons/heroicons/outline/home.svg +3 -0
  119. data/app/assets/icons/heroicons/outline/identification.svg +3 -0
  120. data/app/assets/icons/heroicons/outline/inbox-in.svg +3 -0
  121. data/app/assets/icons/heroicons/outline/inbox.svg +3 -0
  122. data/app/assets/icons/heroicons/outline/information-circle.svg +3 -0
  123. data/app/assets/icons/heroicons/outline/key.svg +3 -0
  124. data/app/assets/icons/heroicons/outline/library.svg +3 -0
  125. data/app/assets/icons/heroicons/outline/light-bulb.svg +3 -0
  126. data/app/assets/icons/heroicons/outline/lightning-bolt.svg +3 -0
  127. data/app/assets/icons/heroicons/outline/link.svg +3 -0
  128. data/app/assets/icons/heroicons/outline/location-marker.svg +4 -0
  129. data/app/assets/icons/heroicons/outline/lock-closed.svg +3 -0
  130. data/app/assets/icons/heroicons/outline/lock-open.svg +3 -0
  131. data/app/assets/icons/heroicons/outline/login.svg +3 -0
  132. data/app/assets/icons/heroicons/outline/logout.svg +3 -0
  133. data/app/assets/icons/heroicons/outline/mail-open.svg +3 -0
  134. data/app/assets/icons/heroicons/outline/mail.svg +3 -0
  135. data/app/assets/icons/heroicons/outline/map.svg +3 -0
  136. data/app/assets/icons/heroicons/outline/menu-alt-1.svg +3 -0
  137. data/app/assets/icons/heroicons/outline/menu-alt-2.svg +3 -0
  138. data/app/assets/icons/heroicons/outline/menu-alt-3.svg +3 -0
  139. data/app/assets/icons/heroicons/outline/menu-alt-4.svg +3 -0
  140. data/app/assets/icons/heroicons/outline/menu.svg +3 -0
  141. data/app/assets/icons/heroicons/outline/microphone.svg +3 -0
  142. data/app/assets/icons/heroicons/outline/minus-circle.svg +3 -0
  143. data/app/assets/icons/heroicons/outline/minus-sm.svg +3 -0
  144. data/app/assets/icons/heroicons/outline/minus.svg +3 -0
  145. data/app/assets/icons/heroicons/outline/moon.svg +3 -0
  146. data/app/assets/icons/heroicons/outline/music-note.svg +3 -0
  147. data/app/assets/icons/heroicons/outline/newspaper.svg +3 -0
  148. data/app/assets/icons/heroicons/outline/office-building.svg +3 -0
  149. data/app/assets/icons/heroicons/outline/paper-airplane.svg +3 -0
  150. data/app/assets/icons/heroicons/outline/paper-clip.svg +3 -0
  151. data/app/assets/icons/heroicons/outline/pause.svg +3 -0
  152. data/app/assets/icons/heroicons/outline/pencil-alt.svg +3 -0
  153. data/app/assets/icons/heroicons/outline/pencil.svg +3 -0
  154. data/app/assets/icons/heroicons/outline/phone-incoming.svg +3 -0
  155. data/app/assets/icons/heroicons/outline/phone-missed-call.svg +3 -0
  156. data/app/assets/icons/heroicons/outline/phone-outgoing.svg +3 -0
  157. data/app/assets/icons/heroicons/outline/phone.svg +3 -0
  158. data/app/assets/icons/heroicons/outline/photograph.svg +3 -0
  159. data/app/assets/icons/heroicons/outline/play.svg +4 -0
  160. data/app/assets/icons/heroicons/outline/plus-circle.svg +3 -0
  161. data/app/assets/icons/heroicons/outline/plus-sm.svg +3 -0
  162. data/app/assets/icons/heroicons/outline/plus.svg +3 -0
  163. data/app/assets/icons/heroicons/outline/presentation-chart-bar.svg +3 -0
  164. data/app/assets/icons/heroicons/outline/presentation-chart-line.svg +3 -0
  165. data/app/assets/icons/heroicons/outline/printer.svg +3 -0
  166. data/app/assets/icons/heroicons/outline/puzzle.svg +3 -0
  167. data/app/assets/icons/heroicons/outline/qrcode.svg +3 -0
  168. data/app/assets/icons/heroicons/outline/question-mark-circle.svg +3 -0
  169. data/app/assets/icons/heroicons/outline/receipt-refund.svg +3 -0
  170. data/app/assets/icons/heroicons/outline/receipt-tax.svg +3 -0
  171. data/app/assets/icons/heroicons/outline/refresh.svg +3 -0
  172. data/app/assets/icons/heroicons/outline/reply.svg +3 -0
  173. data/app/assets/icons/heroicons/outline/rewind.svg +3 -0
  174. data/app/assets/icons/heroicons/outline/rss.svg +3 -0
  175. data/app/assets/icons/heroicons/outline/save-as.svg +3 -0
  176. data/app/assets/icons/heroicons/outline/save.svg +3 -0
  177. data/app/assets/icons/heroicons/outline/scale.svg +3 -0
  178. data/app/assets/icons/heroicons/outline/scissors.svg +3 -0
  179. data/app/assets/icons/heroicons/outline/search-circle.svg +3 -0
  180. data/app/assets/icons/heroicons/outline/search.svg +3 -0
  181. data/app/assets/icons/heroicons/outline/selector.svg +3 -0
  182. data/app/assets/icons/heroicons/outline/server.svg +3 -0
  183. data/app/assets/icons/heroicons/outline/share.svg +3 -0
  184. data/app/assets/icons/heroicons/outline/shield-check.svg +3 -0
  185. data/app/assets/icons/heroicons/outline/shield-exclamation.svg +3 -0
  186. data/app/assets/icons/heroicons/outline/shopping-bag.svg +3 -0
  187. data/app/assets/icons/heroicons/outline/shopping-cart.svg +3 -0
  188. data/app/assets/icons/heroicons/outline/sort-ascending.svg +3 -0
  189. data/app/assets/icons/heroicons/outline/sort-descending.svg +3 -0
  190. data/app/assets/icons/heroicons/outline/sparkles.svg +3 -0
  191. data/app/assets/icons/heroicons/outline/speakerphone.svg +3 -0
  192. data/app/assets/icons/heroicons/outline/star.svg +3 -0
  193. data/app/assets/icons/heroicons/outline/status-offline.svg +3 -0
  194. data/app/assets/icons/heroicons/outline/status-online.svg +3 -0
  195. data/app/assets/icons/heroicons/outline/stop.svg +4 -0
  196. data/app/assets/icons/heroicons/outline/sun.svg +3 -0
  197. data/app/assets/icons/heroicons/outline/support.svg +3 -0
  198. data/app/assets/icons/heroicons/outline/switch-horizontal.svg +3 -0
  199. data/app/assets/icons/heroicons/outline/switch-vertical.svg +3 -0
  200. data/app/assets/icons/heroicons/outline/table.svg +3 -0
  201. data/app/assets/icons/heroicons/outline/tag.svg +3 -0
  202. data/app/assets/icons/heroicons/outline/template.svg +3 -0
  203. data/app/assets/icons/heroicons/outline/terminal.svg +3 -0
  204. data/app/assets/icons/heroicons/outline/thumb-down.svg +3 -0
  205. data/app/assets/icons/heroicons/outline/thumb-up.svg +3 -0
  206. data/app/assets/icons/heroicons/outline/ticket.svg +3 -0
  207. data/app/assets/icons/heroicons/outline/translate.svg +3 -0
  208. data/app/assets/icons/heroicons/outline/trash.svg +3 -0
  209. data/app/assets/icons/heroicons/outline/trending-down.svg +3 -0
  210. data/app/assets/icons/heroicons/outline/trending-up.svg +3 -0
  211. data/app/assets/icons/heroicons/outline/truck.svg +4 -0
  212. data/app/assets/icons/heroicons/outline/upload.svg +3 -0
  213. data/app/assets/icons/heroicons/outline/user-add.svg +3 -0
  214. data/app/assets/icons/heroicons/outline/user-circle.svg +3 -0
  215. data/app/assets/icons/heroicons/outline/user-group.svg +3 -0
  216. data/app/assets/icons/heroicons/outline/user-remove.svg +3 -0
  217. data/app/assets/icons/heroicons/outline/user.svg +3 -0
  218. data/app/assets/icons/heroicons/outline/users.svg +3 -0
  219. data/app/assets/icons/heroicons/outline/variable.svg +3 -0
  220. data/app/assets/icons/heroicons/outline/video-camera.svg +3 -0
  221. data/app/assets/icons/heroicons/outline/view-boards.svg +3 -0
  222. data/app/assets/icons/heroicons/outline/view-grid-add.svg +3 -0
  223. data/app/assets/icons/heroicons/outline/view-grid.svg +3 -0
  224. data/app/assets/icons/heroicons/outline/view-list.svg +3 -0
  225. data/app/assets/icons/heroicons/outline/volume-off.svg +4 -0
  226. data/app/assets/icons/heroicons/outline/volume-up.svg +3 -0
  227. data/app/assets/icons/heroicons/outline/wifi.svg +3 -0
  228. data/app/assets/icons/heroicons/outline/x-circle.svg +3 -0
  229. data/app/assets/icons/heroicons/outline/x.svg +3 -0
  230. data/app/assets/icons/heroicons/outline/zoom-in.svg +3 -0
  231. data/app/assets/icons/heroicons/outline/zoom-out.svg +3 -0
  232. data/app/assets/icons/heroicons/solid/academic-cap.svg +3 -0
  233. data/app/assets/icons/heroicons/solid/adjustments.svg +3 -0
  234. data/app/assets/icons/heroicons/solid/annotation.svg +3 -0
  235. data/app/assets/icons/heroicons/solid/archive.svg +4 -0
  236. data/app/assets/icons/heroicons/solid/arrow-circle-down.svg +3 -0
  237. data/app/assets/icons/heroicons/solid/arrow-circle-left.svg +3 -0
  238. data/app/assets/icons/heroicons/solid/arrow-circle-right.svg +3 -0
  239. data/app/assets/icons/heroicons/solid/arrow-circle-up.svg +3 -0
  240. data/app/assets/icons/heroicons/solid/arrow-down.svg +3 -0
  241. data/app/assets/icons/heroicons/solid/arrow-left.svg +3 -0
  242. data/app/assets/icons/heroicons/solid/arrow-narrow-down.svg +3 -0
  243. data/app/assets/icons/heroicons/solid/arrow-narrow-left.svg +3 -0
  244. data/app/assets/icons/heroicons/solid/arrow-narrow-right.svg +3 -0
  245. data/app/assets/icons/heroicons/solid/arrow-narrow-up.svg +3 -0
  246. data/app/assets/icons/heroicons/solid/arrow-right.svg +3 -0
  247. data/app/assets/icons/heroicons/solid/arrow-up.svg +3 -0
  248. data/app/assets/icons/heroicons/solid/arrows-expand.svg +3 -0
  249. data/app/assets/icons/heroicons/solid/at-symbol.svg +3 -0
  250. data/app/assets/icons/heroicons/solid/backspace.svg +3 -0
  251. data/app/assets/icons/heroicons/solid/badge-check.svg +3 -0
  252. data/app/assets/icons/heroicons/solid/ban.svg +3 -0
  253. data/app/assets/icons/heroicons/solid/beaker.svg +3 -0
  254. data/app/assets/icons/heroicons/solid/bell.svg +3 -0
  255. data/app/assets/icons/heroicons/solid/book-open.svg +3 -0
  256. data/app/assets/icons/heroicons/solid/bookmark-alt.svg +3 -0
  257. data/app/assets/icons/heroicons/solid/bookmark.svg +3 -0
  258. data/app/assets/icons/heroicons/solid/briefcase.svg +4 -0
  259. data/app/assets/icons/heroicons/solid/cake.svg +3 -0
  260. data/app/assets/icons/heroicons/solid/calculator.svg +3 -0
  261. data/app/assets/icons/heroicons/solid/calendar.svg +3 -0
  262. data/app/assets/icons/heroicons/solid/camera.svg +3 -0
  263. data/app/assets/icons/heroicons/solid/cash.svg +3 -0
  264. data/app/assets/icons/heroicons/solid/chart-bar.svg +3 -0
  265. data/app/assets/icons/heroicons/solid/chart-pie.svg +4 -0
  266. data/app/assets/icons/heroicons/solid/chart-square-bar.svg +3 -0
  267. data/app/assets/icons/heroicons/solid/chat-alt-2.svg +4 -0
  268. data/app/assets/icons/heroicons/solid/chat-alt.svg +3 -0
  269. data/app/assets/icons/heroicons/solid/chat.svg +3 -0
  270. data/app/assets/icons/heroicons/solid/check-circle.svg +3 -0
  271. data/app/assets/icons/heroicons/solid/check.svg +3 -0
  272. data/app/assets/icons/heroicons/solid/chevron-double-down.svg +3 -0
  273. data/app/assets/icons/heroicons/solid/chevron-double-left.svg +3 -0
  274. data/app/assets/icons/heroicons/solid/chevron-double-right.svg +4 -0
  275. data/app/assets/icons/heroicons/solid/chevron-double-up.svg +3 -0
  276. data/app/assets/icons/heroicons/solid/chevron-down.svg +3 -0
  277. data/app/assets/icons/heroicons/solid/chevron-left.svg +3 -0
  278. data/app/assets/icons/heroicons/solid/chevron-right.svg +3 -0
  279. data/app/assets/icons/heroicons/solid/chevron-up.svg +3 -0
  280. data/app/assets/icons/heroicons/solid/chip.svg +4 -0
  281. data/app/assets/icons/heroicons/solid/clipboard-check.svg +4 -0
  282. data/app/assets/icons/heroicons/solid/clipboard-copy.svg +4 -0
  283. data/app/assets/icons/heroicons/solid/clipboard-list.svg +4 -0
  284. data/app/assets/icons/heroicons/solid/clipboard.svg +4 -0
  285. data/app/assets/icons/heroicons/solid/clock.svg +3 -0
  286. data/app/assets/icons/heroicons/solid/cloud-download.svg +3 -0
  287. data/app/assets/icons/heroicons/solid/cloud-upload.svg +4 -0
  288. data/app/assets/icons/heroicons/solid/cloud.svg +3 -0
  289. data/app/assets/icons/heroicons/solid/code.svg +3 -0
  290. data/app/assets/icons/heroicons/solid/cog.svg +3 -0
  291. data/app/assets/icons/heroicons/solid/collection.svg +3 -0
  292. data/app/assets/icons/heroicons/solid/color-swatch.svg +3 -0
  293. data/app/assets/icons/heroicons/solid/credit-card.svg +4 -0
  294. data/app/assets/icons/heroicons/solid/cube-transparent.svg +3 -0
  295. data/app/assets/icons/heroicons/solid/cube.svg +3 -0
  296. data/app/assets/icons/heroicons/solid/currency-bangladeshi.svg +3 -0
  297. data/app/assets/icons/heroicons/solid/currency-dollar.svg +4 -0
  298. data/app/assets/icons/heroicons/solid/currency-euro.svg +3 -0
  299. data/app/assets/icons/heroicons/solid/currency-pound.svg +3 -0
  300. data/app/assets/icons/heroicons/solid/currency-rupee.svg +3 -0
  301. data/app/assets/icons/heroicons/solid/currency-yen.svg +3 -0
  302. data/app/assets/icons/heroicons/solid/cursor-click.svg +3 -0
  303. data/app/assets/icons/heroicons/solid/database.svg +5 -0
  304. data/app/assets/icons/heroicons/solid/desktop-computer.svg +3 -0
  305. data/app/assets/icons/heroicons/solid/device-mobile.svg +3 -0
  306. data/app/assets/icons/heroicons/solid/device-tablet.svg +3 -0
  307. data/app/assets/icons/heroicons/solid/document-add.svg +3 -0
  308. data/app/assets/icons/heroicons/solid/document-download.svg +3 -0
  309. data/app/assets/icons/heroicons/solid/document-duplicate.svg +4 -0
  310. data/app/assets/icons/heroicons/solid/document-remove.svg +3 -0
  311. data/app/assets/icons/heroicons/solid/document-report.svg +3 -0
  312. data/app/assets/icons/heroicons/solid/document-search.svg +4 -0
  313. data/app/assets/icons/heroicons/solid/document-text.svg +3 -0
  314. data/app/assets/icons/heroicons/solid/document.svg +3 -0
  315. data/app/assets/icons/heroicons/solid/dots-circle-horizontal.svg +3 -0
  316. data/app/assets/icons/heroicons/solid/dots-horizontal.svg +3 -0
  317. data/app/assets/icons/heroicons/solid/dots-vertical.svg +3 -0
  318. data/app/assets/icons/heroicons/solid/download.svg +3 -0
  319. data/app/assets/icons/heroicons/solid/duplicate.svg +4 -0
  320. data/app/assets/icons/heroicons/solid/emoji-happy.svg +3 -0
  321. data/app/assets/icons/heroicons/solid/emoji-sad.svg +3 -0
  322. data/app/assets/icons/heroicons/solid/exclamation-circle.svg +3 -0
  323. data/app/assets/icons/heroicons/solid/exclamation.svg +3 -0
  324. data/app/assets/icons/heroicons/solid/external-link.svg +4 -0
  325. data/app/assets/icons/heroicons/solid/eye-off.svg +4 -0
  326. data/app/assets/icons/heroicons/solid/eye.svg +4 -0
  327. data/app/assets/icons/heroicons/solid/fast-forward.svg +3 -0
  328. data/app/assets/icons/heroicons/solid/film.svg +3 -0
  329. data/app/assets/icons/heroicons/solid/filter.svg +3 -0
  330. data/app/assets/icons/heroicons/solid/finger-print.svg +5 -0
  331. data/app/assets/icons/heroicons/solid/fire.svg +3 -0
  332. data/app/assets/icons/heroicons/solid/flag.svg +3 -0
  333. data/app/assets/icons/heroicons/solid/folder-add.svg +4 -0
  334. data/app/assets/icons/heroicons/solid/folder-download.svg +4 -0
  335. data/app/assets/icons/heroicons/solid/folder-open.svg +4 -0
  336. data/app/assets/icons/heroicons/solid/folder-remove.svg +4 -0
  337. data/app/assets/icons/heroicons/solid/folder.svg +3 -0
  338. data/app/assets/icons/heroicons/solid/gift.svg +4 -0
  339. data/app/assets/icons/heroicons/solid/globe-alt.svg +3 -0
  340. data/app/assets/icons/heroicons/solid/globe.svg +3 -0
  341. data/app/assets/icons/heroicons/solid/hand.svg +3 -0
  342. data/app/assets/icons/heroicons/solid/hashtag.svg +3 -0
  343. data/app/assets/icons/heroicons/solid/heart.svg +3 -0
  344. data/app/assets/icons/heroicons/solid/home.svg +3 -0
  345. data/app/assets/icons/heroicons/solid/identification.svg +3 -0
  346. data/app/assets/icons/heroicons/solid/inbox-in.svg +4 -0
  347. data/app/assets/icons/heroicons/solid/inbox.svg +3 -0
  348. data/app/assets/icons/heroicons/solid/information-circle.svg +3 -0
  349. data/app/assets/icons/heroicons/solid/key.svg +3 -0
  350. data/app/assets/icons/heroicons/solid/library.svg +3 -0
  351. data/app/assets/icons/heroicons/solid/light-bulb.svg +3 -0
  352. data/app/assets/icons/heroicons/solid/lightning-bolt.svg +3 -0
  353. data/app/assets/icons/heroicons/solid/link.svg +3 -0
  354. data/app/assets/icons/heroicons/solid/location-marker.svg +3 -0
  355. data/app/assets/icons/heroicons/solid/lock-closed.svg +3 -0
  356. data/app/assets/icons/heroicons/solid/lock-open.svg +3 -0
  357. data/app/assets/icons/heroicons/solid/login.svg +3 -0
  358. data/app/assets/icons/heroicons/solid/logout.svg +3 -0
  359. data/app/assets/icons/heroicons/solid/mail-open.svg +3 -0
  360. data/app/assets/icons/heroicons/solid/mail.svg +4 -0
  361. data/app/assets/icons/heroicons/solid/map.svg +3 -0
  362. data/app/assets/icons/heroicons/solid/menu-alt-1.svg +3 -0
  363. data/app/assets/icons/heroicons/solid/menu-alt-2.svg +3 -0
  364. data/app/assets/icons/heroicons/solid/menu-alt-3.svg +3 -0
  365. data/app/assets/icons/heroicons/solid/menu-alt-4.svg +3 -0
  366. data/app/assets/icons/heroicons/solid/menu.svg +3 -0
  367. data/app/assets/icons/heroicons/solid/microphone.svg +3 -0
  368. data/app/assets/icons/heroicons/solid/minus-circle.svg +3 -0
  369. data/app/assets/icons/heroicons/solid/minus-sm.svg +3 -0
  370. data/app/assets/icons/heroicons/solid/minus.svg +3 -0
  371. data/app/assets/icons/heroicons/solid/moon.svg +3 -0
  372. data/app/assets/icons/heroicons/solid/music-note.svg +3 -0
  373. data/app/assets/icons/heroicons/solid/newspaper.svg +4 -0
  374. data/app/assets/icons/heroicons/solid/office-building.svg +3 -0
  375. data/app/assets/icons/heroicons/solid/paper-airplane.svg +3 -0
  376. data/app/assets/icons/heroicons/solid/paper-clip.svg +3 -0
  377. data/app/assets/icons/heroicons/solid/pause.svg +3 -0
  378. data/app/assets/icons/heroicons/solid/pencil-alt.svg +4 -0
  379. data/app/assets/icons/heroicons/solid/pencil.svg +3 -0
  380. data/app/assets/icons/heroicons/solid/phone-incoming.svg +4 -0
  381. data/app/assets/icons/heroicons/solid/phone-missed-call.svg +4 -0
  382. data/app/assets/icons/heroicons/solid/phone-outgoing.svg +4 -0
  383. data/app/assets/icons/heroicons/solid/phone.svg +3 -0
  384. data/app/assets/icons/heroicons/solid/photograph.svg +3 -0
  385. data/app/assets/icons/heroicons/solid/play.svg +3 -0
  386. data/app/assets/icons/heroicons/solid/plus-circle.svg +3 -0
  387. data/app/assets/icons/heroicons/solid/plus-sm.svg +3 -0
  388. data/app/assets/icons/heroicons/solid/plus.svg +3 -0
  389. data/app/assets/icons/heroicons/solid/presentation-chart-bar.svg +3 -0
  390. data/app/assets/icons/heroicons/solid/presentation-chart-line.svg +3 -0
  391. data/app/assets/icons/heroicons/solid/printer.svg +3 -0
  392. data/app/assets/icons/heroicons/solid/puzzle.svg +3 -0
  393. data/app/assets/icons/heroicons/solid/qrcode.svg +4 -0
  394. data/app/assets/icons/heroicons/solid/question-mark-circle.svg +3 -0
  395. data/app/assets/icons/heroicons/solid/receipt-refund.svg +3 -0
  396. data/app/assets/icons/heroicons/solid/receipt-tax.svg +3 -0
  397. data/app/assets/icons/heroicons/solid/refresh.svg +3 -0
  398. data/app/assets/icons/heroicons/solid/reply.svg +3 -0
  399. data/app/assets/icons/heroicons/solid/rewind.svg +3 -0
  400. data/app/assets/icons/heroicons/solid/rss.svg +4 -0
  401. data/app/assets/icons/heroicons/solid/save-as.svg +4 -0
  402. data/app/assets/icons/heroicons/solid/save.svg +3 -0
  403. data/app/assets/icons/heroicons/solid/scale.svg +3 -0
  404. data/app/assets/icons/heroicons/solid/scissors.svg +4 -0
  405. data/app/assets/icons/heroicons/solid/search-circle.svg +4 -0
  406. data/app/assets/icons/heroicons/solid/search.svg +3 -0
  407. data/app/assets/icons/heroicons/solid/selector.svg +3 -0
  408. data/app/assets/icons/heroicons/solid/server.svg +3 -0
  409. data/app/assets/icons/heroicons/solid/share.svg +3 -0
  410. data/app/assets/icons/heroicons/solid/shield-check.svg +3 -0
  411. data/app/assets/icons/heroicons/solid/shield-exclamation.svg +3 -0
  412. data/app/assets/icons/heroicons/solid/shopping-bag.svg +3 -0
  413. data/app/assets/icons/heroicons/solid/shopping-cart.svg +3 -0
  414. data/app/assets/icons/heroicons/solid/sort-ascending.svg +3 -0
  415. data/app/assets/icons/heroicons/solid/sort-descending.svg +3 -0
  416. data/app/assets/icons/heroicons/solid/sparkles.svg +3 -0
  417. data/app/assets/icons/heroicons/solid/speakerphone.svg +3 -0
  418. data/app/assets/icons/heroicons/solid/star.svg +3 -0
  419. data/app/assets/icons/heroicons/solid/status-offline.svg +3 -0
  420. data/app/assets/icons/heroicons/solid/status-online.svg +3 -0
  421. data/app/assets/icons/heroicons/solid/stop.svg +3 -0
  422. data/app/assets/icons/heroicons/solid/sun.svg +3 -0
  423. data/app/assets/icons/heroicons/solid/support.svg +3 -0
  424. data/app/assets/icons/heroicons/solid/switch-horizontal.svg +3 -0
  425. data/app/assets/icons/heroicons/solid/switch-vertical.svg +3 -0
  426. data/app/assets/icons/heroicons/solid/table.svg +3 -0
  427. data/app/assets/icons/heroicons/solid/tag.svg +3 -0
  428. data/app/assets/icons/heroicons/solid/template.svg +3 -0
  429. data/app/assets/icons/heroicons/solid/terminal.svg +3 -0
  430. data/app/assets/icons/heroicons/solid/thumb-down.svg +3 -0
  431. data/app/assets/icons/heroicons/solid/thumb-up.svg +3 -0
  432. data/app/assets/icons/heroicons/solid/ticket.svg +3 -0
  433. data/app/assets/icons/heroicons/solid/translate.svg +3 -0
  434. data/app/assets/icons/heroicons/solid/trash.svg +3 -0
  435. data/app/assets/icons/heroicons/solid/trending-down.svg +3 -0
  436. data/app/assets/icons/heroicons/solid/trending-up.svg +3 -0
  437. data/app/assets/icons/heroicons/solid/truck.svg +4 -0
  438. data/app/assets/icons/heroicons/solid/upload.svg +3 -0
  439. data/app/assets/icons/heroicons/solid/user-add.svg +3 -0
  440. data/app/assets/icons/heroicons/solid/user-circle.svg +3 -0
  441. data/app/assets/icons/heroicons/solid/user-group.svg +3 -0
  442. data/app/assets/icons/heroicons/solid/user-remove.svg +3 -0
  443. data/app/assets/icons/heroicons/solid/user.svg +3 -0
  444. data/app/assets/icons/heroicons/solid/users.svg +3 -0
  445. data/app/assets/icons/heroicons/solid/variable.svg +3 -0
  446. data/app/assets/icons/heroicons/solid/video-camera.svg +3 -0
  447. data/app/assets/icons/heroicons/solid/view-boards.svg +3 -0
  448. data/app/assets/icons/heroicons/solid/view-grid-add.svg +3 -0
  449. data/app/assets/icons/heroicons/solid/view-grid.svg +3 -0
  450. data/app/assets/icons/heroicons/solid/view-list.svg +3 -0
  451. data/app/assets/icons/heroicons/solid/volume-off.svg +3 -0
  452. data/app/assets/icons/heroicons/solid/volume-up.svg +3 -0
  453. data/app/assets/icons/heroicons/solid/wifi.svg +3 -0
  454. data/app/assets/icons/heroicons/solid/x-circle.svg +3 -0
  455. data/app/assets/icons/heroicons/solid/x.svg +3 -0
  456. data/app/assets/icons/heroicons/solid/zoom-in.svg +4 -0
  457. data/app/assets/icons/heroicons/solid/zoom-out.svg +4 -0
  458. data/app/assets/images/spina/favicon.png +0 -0
  459. data/app/assets/images/spina/spina.png +0 -0
  460. data/app/assets/images/spina/spina.svg +9 -1
  461. data/app/assets/javascripts/spina/application.js +2 -0
  462. data/app/assets/javascripts/spina/controllers/attachment_picker_controller.js +15 -0
  463. data/app/assets/javascripts/spina/controllers/autofocus_controller.js +9 -0
  464. data/app/assets/javascripts/spina/controllers/button_controller.js +37 -0
  465. data/app/assets/javascripts/spina/controllers/confetti_controller.js +43 -0
  466. data/app/assets/javascripts/spina/controllers/confirm_controller.js +62 -0
  467. data/app/assets/javascripts/spina/controllers/delegate_click_controller.js +13 -0
  468. data/app/assets/javascripts/spina/controllers/exists_controller.js +11 -0
  469. data/app/assets/javascripts/spina/controllers/form_controller.js +10 -0
  470. data/app/assets/javascripts/spina/controllers/hotkeys_controller.js +21 -0
  471. data/app/assets/javascripts/spina/controllers/image_collection_controller.js +37 -0
  472. data/app/assets/javascripts/spina/controllers/image_fade_in_controller.js +20 -0
  473. data/app/assets/javascripts/spina/controllers/infinite_scroll_controller.js +33 -0
  474. data/app/assets/javascripts/spina/controllers/loading_button_controller.js +40 -0
  475. data/app/assets/javascripts/spina/controllers/media_picker_controller.js +46 -0
  476. data/app/assets/javascripts/spina/controllers/media_picker_modal_controller.js +34 -0
  477. data/app/assets/javascripts/spina/controllers/modal_controller.js +22 -0
  478. data/app/assets/javascripts/spina/controllers/navigation_controller.js +77 -0
  479. data/app/assets/javascripts/spina/controllers/parent_pages_controller.js +16 -0
  480. data/app/assets/javascripts/spina/controllers/repeater_controller.js +71 -0
  481. data/app/assets/javascripts/spina/controllers/reveal_controller.js +1 -0
  482. data/app/assets/javascripts/spina/controllers/select_placeholder_controller.js +27 -0
  483. data/app/assets/javascripts/spina/controllers/selectable_controller.js +44 -0
  484. data/app/assets/javascripts/spina/controllers/shortcuts_controller.js +15 -0
  485. data/app/assets/javascripts/spina/controllers/sortable_controller.js +39 -0
  486. data/app/assets/javascripts/spina/controllers/switch_controller.js +27 -0
  487. data/app/assets/javascripts/spina/controllers/tabs_controller.js +70 -0
  488. data/app/assets/javascripts/spina/controllers/toggle_controller.js +12 -0
  489. data/app/assets/javascripts/spina/controllers/trix_controller.js +87 -0
  490. data/app/assets/javascripts/spina/controllers/unique_id_controller.js +31 -0
  491. data/app/assets/javascripts/spina/libraries/canvas-confetti.js +1 -0
  492. data/app/assets/javascripts/spina/libraries/canvas-confetti@1.3.2.js +592 -0
  493. data/app/assets/javascripts/spina/libraries/form-request-submit-polyfill.js +1 -0
  494. data/app/assets/javascripts/spina/libraries/form-request-submit-polyfill@2.0.0.js +27 -0
  495. data/app/assets/javascripts/spina/libraries/hotkeys.js +1 -0
  496. data/app/assets/javascripts/spina/libraries/hotkeys@3.8.7.js +596 -0
  497. data/app/assets/javascripts/spina/libraries/sortablejs.js +1 -0
  498. data/app/assets/javascripts/spina/libraries/sortablejs@1.13.0.js +3711 -0
  499. data/app/assets/javascripts/spina/libraries/stimulus-reveal@1.2.4.js +388 -0
  500. data/app/assets/javascripts/spina/libraries/trix.js +9 -0
  501. data/app/assets/javascripts/spina/libraries/trix@1.3.1.js +21 -0
  502. data/app/assets/stylesheets/spina/_animate.css +4072 -0
  503. data/app/assets/stylesheets/spina/_fonts.scss +114 -0
  504. data/app/assets/stylesheets/spina/_tailwind.css +203630 -0
  505. data/app/assets/stylesheets/spina/application.sass +3 -4
  506. data/app/assets/stylesheets/spina/tailwind/custom.css +193 -0
  507. data/app/components/spina/application_component.rb +4 -0
  508. data/app/components/spina/forms/group_component.html.erb +14 -0
  509. data/app/components/spina/forms/group_component.rb +13 -0
  510. data/app/components/spina/forms/label_component.rb +17 -0
  511. data/app/components/spina/forms/password_field_component.html.erb +14 -0
  512. data/app/components/spina/forms/password_field_component.rb +6 -0
  513. data/app/components/spina/forms/switch_component.html.erb +7 -0
  514. data/app/components/spina/forms/switch_component.rb +13 -0
  515. data/app/components/spina/forms/text_field_component.html.erb +14 -0
  516. data/app/components/spina/forms/text_field_component.rb +50 -0
  517. data/app/components/spina/forms/trix_toolbar_component.html.erb +90 -0
  518. data/app/components/spina/forms/trix_toolbar_component.rb +11 -0
  519. data/app/components/spina/hooks/hook_component.rb +21 -0
  520. data/app/components/spina/hooks/partial_component.rb +21 -0
  521. data/app/components/spina/main_navigation/link_component.html.erb +5 -0
  522. data/app/components/spina/main_navigation/link_component.rb +21 -0
  523. data/app/components/spina/main_navigation/sub_nav_component.html.erb +18 -0
  524. data/app/components/spina/main_navigation/sub_nav_component.rb +33 -0
  525. data/app/components/spina/media_picker/image_component.html.erb +18 -0
  526. data/app/components/spina/media_picker/image_component.rb +11 -0
  527. data/app/components/spina/media_picker/modal_component.html.erb +74 -0
  528. data/app/components/spina/media_picker/modal_component.rb +29 -0
  529. data/app/components/spina/pages/actions_component.html.erb +65 -0
  530. data/app/components/spina/pages/actions_component.rb +12 -0
  531. data/app/components/spina/pages/list_component.html.erb +8 -0
  532. data/app/components/spina/pages/list_component.rb +13 -0
  533. data/app/components/spina/pages/location_component.html.erb +10 -0
  534. data/app/components/spina/pages/location_component.rb +29 -0
  535. data/app/components/spina/pages/page_component.html.erb +25 -0
  536. data/app/components/spina/pages/page_component.rb +43 -0
  537. data/app/components/spina/pages/page_select_component.html.erb +1 -0
  538. data/app/components/spina/pages/page_select_component.rb +21 -0
  539. data/app/components/spina/pages/tab_button_component.html.erb +3 -0
  540. data/app/components/spina/pages/tab_button_component.rb +11 -0
  541. data/app/components/spina/pages/translations_component.html.erb +41 -0
  542. data/app/components/spina/pages/translations_component.rb +32 -0
  543. data/app/components/spina/user_interface/dropdown_button_component.rb +23 -0
  544. data/app/components/spina/user_interface/dropdown_component.html.erb +5 -0
  545. data/app/components/spina/user_interface/dropdown_component.rb +28 -0
  546. data/app/components/spina/user_interface/flash_message_component.html.erb +3 -0
  547. data/app/components/spina/user_interface/flash_message_component.rb +25 -0
  548. data/app/components/spina/user_interface/header_component.html.erb +24 -0
  549. data/app/components/spina/user_interface/header_component.rb +9 -0
  550. data/app/components/spina/user_interface/modal_component.html.erb +11 -0
  551. data/app/components/spina/user_interface/modal_component.rb +11 -0
  552. data/app/components/spina/user_interface/tab_link_component.html.erb +3 -0
  553. data/app/components/spina/user_interface/tab_link_component.rb +22 -0
  554. data/app/controllers/concerns/spina/api/paginable.rb +44 -0
  555. data/app/controllers/concerns/spina/current_account.rb +17 -0
  556. data/app/controllers/concerns/spina/current_theme.rb +17 -0
  557. data/app/controllers/spina/admin/accounts_controller.rb +13 -21
  558. data/app/controllers/spina/admin/admin_controller.rb +18 -14
  559. data/app/controllers/spina/admin/attachments_controller.rb +27 -6
  560. data/app/controllers/spina/admin/images_controller.rb +49 -13
  561. data/app/controllers/spina/admin/layout_controller.rb +41 -0
  562. data/app/controllers/spina/admin/media_folders_controller.rb +10 -13
  563. data/app/controllers/spina/admin/media_picker_controller.rb +6 -30
  564. data/app/controllers/spina/admin/move_pages_controller.rb +24 -0
  565. data/app/controllers/spina/admin/navigation_items_controller.rb +36 -0
  566. data/app/controllers/spina/admin/navigations_controller.rb +19 -16
  567. data/app/controllers/spina/admin/pages_controller.rb +68 -65
  568. data/app/controllers/spina/admin/parent_pages_controller.rb +10 -0
  569. data/app/controllers/spina/admin/password_resets_controller.rb +4 -4
  570. data/app/controllers/spina/admin/resources_controller.rb +4 -7
  571. data/app/controllers/spina/admin/sessions_controller.rb +5 -8
  572. data/app/controllers/spina/admin/settings_controller.rb +30 -29
  573. data/app/controllers/spina/admin/theme_controller.rb +23 -0
  574. data/app/controllers/spina/admin/users_controller.rb +32 -13
  575. data/app/controllers/spina/api/api_controller.rb +29 -0
  576. data/app/controllers/spina/api/images_controller.rb +12 -0
  577. data/app/controllers/spina/api/navigations_controller.rb +20 -0
  578. data/app/controllers/spina/api/pages_controller.rb +26 -0
  579. data/app/controllers/spina/api/resources_controller.rb +19 -0
  580. data/app/controllers/spina/application_controller.rb +2 -1
  581. data/app/controllers/spina/pages_controller.rb +5 -5
  582. data/app/helpers/spina/admin/icons_helper.rb +26 -0
  583. data/app/helpers/spina/admin/images_helper.rb +18 -0
  584. data/app/helpers/spina/admin/pages_helper.rb +21 -48
  585. data/app/helpers/spina/attachments_helper.rb +1 -1
  586. data/app/helpers/spina/images_helper.rb +26 -2
  587. data/app/helpers/spina/spina_helper.rb +13 -0
  588. data/app/jobs/spina/application_job.rb +4 -0
  589. data/app/jobs/spina/resource_pages_update_job.rb +11 -0
  590. data/app/models/concerns/spina/gravatar.rb +20 -0
  591. data/app/models/concerns/spina/translated_content.rb +8 -7
  592. data/app/models/spina/account.rb +2 -0
  593. data/app/models/spina/application_record.rb +6 -0
  594. data/app/models/spina/attachment.rb +5 -1
  595. data/app/models/spina/current.rb +2 -0
  596. data/app/models/spina/navigation.rb +1 -0
  597. data/app/models/spina/navigation_item.rb +1 -1
  598. data/app/models/spina/page.rb +10 -5
  599. data/app/models/spina/parts/base.rb +6 -0
  600. data/app/models/spina/parts/image.rb +2 -0
  601. data/app/models/spina/resource.rb +12 -2
  602. data/app/models/spina/user.rb +4 -16
  603. data/app/serializers/spina/api/base_serializer.rb +6 -0
  604. data/app/serializers/spina/api/image_serializer.rb +20 -0
  605. data/app/serializers/spina/api/navigation_serializer.rb +30 -0
  606. data/app/serializers/spina/api/page_serializer.rb +28 -0
  607. data/app/serializers/spina/api/resource_serializer.rb +12 -0
  608. data/app/views/layouts/spina/admin/admin.html.erb +18 -0
  609. data/app/views/layouts/spina/admin/application.html.erb +27 -0
  610. data/app/views/layouts/spina/admin/sessions.html.erb +1 -0
  611. data/app/views/spina/admin/accounts/edit.html.erb +49 -0
  612. data/app/views/spina/admin/attachments/_attachment.html.erb +33 -0
  613. data/app/views/spina/admin/attachments/edit.html.erb +16 -0
  614. data/app/views/spina/admin/attachments/index.html.erb +46 -0
  615. data/app/views/spina/admin/attachments/show.html.erb +1 -0
  616. data/app/views/spina/admin/images/_image.html.erb +65 -0
  617. data/app/views/spina/admin/images/edit.html.erb +16 -0
  618. data/app/views/spina/admin/images/index.html.erb +73 -0
  619. data/app/views/spina/admin/images/show.html.erb +1 -0
  620. data/app/views/spina/admin/images/update.turbo_stream.erb +5 -0
  621. data/app/views/spina/admin/layout/edit.html.erb +34 -0
  622. data/app/views/spina/admin/media_folders/_form.html.erb +30 -0
  623. data/app/views/spina/admin/media_folders/_media_folder.html.erb +18 -0
  624. data/app/views/spina/admin/media_folders/edit.html.erb +3 -0
  625. data/app/views/spina/admin/media_folders/new.html.erb +3 -0
  626. data/app/views/spina/admin/media_picker/show.html.erb +1 -0
  627. data/app/views/spina/admin/move_pages/new.html.erb +32 -0
  628. data/app/views/spina/admin/navigation_items/_form.html.erb +29 -0
  629. data/app/views/spina/admin/navigation_items/_navigation_item.html.erb +36 -0
  630. data/app/views/spina/admin/navigation_items/new.html.erb +3 -0
  631. data/app/views/spina/admin/navigations/_navigation.html.erb +1 -0
  632. data/app/views/spina/admin/navigations/edit.html.erb +32 -0
  633. data/app/views/spina/admin/navigations/index.html.erb +7 -0
  634. data/app/views/spina/admin/pages/_button_advanced.html.erb +4 -0
  635. data/app/views/spina/admin/pages/_button_page_content.html.erb +4 -0
  636. data/app/views/spina/admin/pages/_button_search_engines.html.erb +5 -0
  637. data/app/views/spina/admin/pages/_form.html.erb +36 -0
  638. data/app/views/spina/admin/pages/_form_advanced.html.erb +55 -0
  639. data/app/views/spina/admin/pages/_form_page_content.html.erb +8 -0
  640. data/app/views/spina/admin/pages/_form_search_engines.html.erb +45 -0
  641. data/app/views/spina/admin/pages/_new_page_form.html.erb +35 -0
  642. data/app/views/spina/admin/pages/edit.html.erb +1 -0
  643. data/app/views/spina/admin/pages/edit_content.html.erb +11 -0
  644. data/app/views/spina/admin/pages/edit_template.html.erb +36 -0
  645. data/app/views/spina/admin/pages/index.html.erb +66 -0
  646. data/app/views/spina/admin/pages/new.html.erb +3 -0
  647. data/app/views/spina/admin/parent_pages/index.html.erb +3 -0
  648. data/app/views/spina/admin/parts/attachments/_form.html.erb +8 -0
  649. data/app/views/spina/admin/parts/image_collections/_fields.html.erb +16 -0
  650. data/app/views/spina/admin/parts/image_collections/_form.html.erb +30 -0
  651. data/app/views/spina/admin/parts/images/_form.html.erb +32 -0
  652. data/app/views/spina/admin/parts/lines/_form.html.erb +6 -0
  653. data/app/views/spina/admin/parts/multi_lines/_form.html.erb +4 -0
  654. data/app/views/spina/admin/parts/options/_form.html.erb +5 -0
  655. data/app/views/spina/admin/parts/repeaters/_fields.html.erb +18 -0
  656. data/app/views/spina/admin/parts/repeaters/_form.html.erb +37 -0
  657. data/app/views/spina/admin/parts/texts/_form.html.erb +12 -0
  658. data/app/views/spina/admin/password_resets/edit.html.erb +22 -0
  659. data/app/views/spina/admin/password_resets/new.html.erb +21 -0
  660. data/app/views/spina/admin/resources/edit.html.erb +55 -0
  661. data/app/views/spina/admin/sessions/new.html.erb +24 -0
  662. data/app/views/spina/admin/settings/_string_field.html.erb +4 -0
  663. data/app/views/spina/admin/settings/_text_field.html.erb +5 -0
  664. data/app/views/spina/admin/settings/_wysiwyg_field.html.erb +13 -0
  665. data/app/views/spina/admin/settings/edit.html.erb +24 -0
  666. data/app/views/spina/admin/shared/_flash.html.erb +5 -0
  667. data/app/views/spina/admin/shared/_navigation.html.erb +71 -0
  668. data/app/views/spina/admin/theme/edit.html.erb +21 -0
  669. data/app/views/spina/admin/users/_form.html.erb +52 -0
  670. data/app/views/spina/admin/users/_user.html.erb +36 -0
  671. data/app/views/spina/admin/users/edit.html.erb +1 -0
  672. data/app/views/spina/admin/users/index.html.erb +15 -0
  673. data/app/views/spina/admin/users/new.html.erb +1 -0
  674. data/app/views/spina/user_mailer/forgot_password.html.erb +1 -1
  675. data/app/views/spina/user_mailer/forgot_password.txt.erb +1 -1
  676. data/config/locales/TH.yml +98 -2
  677. data/config/locales/bg.yml +98 -2
  678. data/config/locales/de.yml +184 -78
  679. data/config/locales/en.yml +106 -2
  680. data/config/locales/es.yml +139 -41
  681. data/config/locales/fr.yml +98 -2
  682. data/config/locales/id.yml +98 -2
  683. data/config/locales/it.yml +107 -11
  684. data/config/locales/nl.yml +103 -5
  685. data/config/locales/pl.yml +98 -2
  686. data/config/locales/pt-BR.yml +98 -2
  687. data/config/locales/ro.yml +98 -2
  688. data/config/locales/ru.yml +205 -87
  689. data/config/locales/sv.yml +98 -2
  690. data/config/locales/tr.yml +98 -2
  691. data/config/locales/zh-CN.yml +98 -2
  692. data/config/routes.rb +31 -24
  693. data/lib/generators/spina/install_generator.rb +0 -1
  694. data/lib/generators/spina/templates/app/views/default/pages/homepage.html.erb +2 -0
  695. data/lib/generators/spina/templates/app/views/default/pages/show.html.erb +3 -0
  696. data/lib/generators/spina/templates/app/views/default/shared/_navigation.html.erb +2 -0
  697. data/lib/generators/spina/templates/app/views/demo/pages/demo.html.erb +25 -0
  698. data/lib/generators/spina/templates/app/views/demo/pages/homepage.html.erb +3 -0
  699. data/lib/generators/spina/templates/app/views/demo/pages/show.html.erb +3 -0
  700. data/lib/generators/spina/templates/app/views/demo/shared/_languages.html.erb +5 -0
  701. data/lib/generators/spina/templates/app/views/demo/shared/_navigation.html.erb +2 -0
  702. data/lib/generators/spina/templates/app/views/layouts/default/application.html.erb +12 -0
  703. data/lib/generators/spina/templates/app/views/layouts/demo/application.html.erb +13 -0
  704. data/lib/generators/spina/templates/config/initializers/mobility.rb +1 -0
  705. data/lib/generators/spina/templates/config/initializers/spina.rb +56 -12
  706. data/lib/generators/spina/templates/config/initializers/themes/default.rb +59 -37
  707. data/lib/generators/spina/templates/config/initializers/themes/demo.rb +63 -64
  708. data/lib/spina.rb +62 -15
  709. data/lib/spina/admin_sectionable.rb +23 -0
  710. data/lib/spina/attr_json_monkeypatch.rb +28 -0
  711. data/lib/spina/authentication/basic.rb +24 -0
  712. data/lib/spina/authentication/sessions.rb +32 -0
  713. data/lib/spina/engine.rb +23 -9
  714. data/lib/spina/plugin.rb +7 -1
  715. data/lib/spina/railtie.rb +5 -1
  716. data/lib/spina/tailwind_purger.rb +147 -0
  717. data/lib/spina/theme.rb +14 -5
  718. data/lib/spina/version.rb +1 -1
  719. data/lib/tasks/spina_tasks.rake +36 -0
  720. metadata +694 -192
  721. data/app/assets/config/spina_manifest.js +0 -5
  722. data/app/assets/fonts/spina/ics_spina.eot +0 -0
  723. data/app/assets/fonts/spina/ics_spina.svg +0 -380
  724. data/app/assets/fonts/spina/ics_spina.ttf +0 -0
  725. data/app/assets/fonts/spina/ics_spina.woff +0 -0
  726. data/app/assets/fonts/spina/ics_spina.woff2 +0 -0
  727. data/app/assets/images/spina/arrow-left.svg +0 -1
  728. data/app/assets/images/spina/arrow-right.svg +0 -1
  729. data/app/assets/images/spina/datepicker.svg +0 -1
  730. data/app/assets/images/spina/divider.svg +0 -1
  731. data/app/assets/images/spina/media_folder_placeholder.svg +0 -1
  732. data/app/assets/javascripts/spina/admin/application.js +0 -48
  733. data/app/assets/javascripts/spina/admin/confirm_delete.coffee.erb +0 -24
  734. data/app/assets/javascripts/spina/admin/controllers/attachment_picker_controller.js +0 -15
  735. data/app/assets/javascripts/spina/admin/controllers/gallery_select_controller.js +0 -52
  736. data/app/assets/javascripts/spina/admin/controllers/image_form_controller.js +0 -22
  737. data/app/assets/javascripts/spina/admin/controllers/infinite_scroll_controller.js +0 -38
  738. data/app/assets/javascripts/spina/admin/controllers/media_picker_controller.js +0 -171
  739. data/app/assets/javascripts/spina/admin/controllers/modal_controller.js +0 -18
  740. data/app/assets/javascripts/spina/admin/controllers/page_collapse_controller.js +0 -35
  741. data/app/assets/javascripts/spina/admin/controllers/repeater_form_controller.js +0 -38
  742. data/app/assets/javascripts/spina/admin/dropdown.coffee +0 -75
  743. data/app/assets/javascripts/spina/admin/forms.coffee +0 -7
  744. data/app/assets/javascripts/spina/admin/media_gallery.coffee +0 -62
  745. data/app/assets/javascripts/spina/admin/modal.coffee +0 -53
  746. data/app/assets/javascripts/spina/admin/navigation.coffee +0 -45
  747. data/app/assets/javascripts/spina/admin/notifications.coffee +0 -7
  748. data/app/assets/javascripts/spina/admin/pages.coffee.erb +0 -65
  749. data/app/assets/javascripts/spina/admin/scaffold.coffee +0 -87
  750. data/app/assets/javascripts/spina/admin/switch.coffee +0 -43
  751. data/app/assets/javascripts/spina/admin/tabs.coffee +0 -13
  752. data/app/assets/javascripts/spina/admin/trix.coffee.erb +0 -114
  753. data/app/assets/javascripts/spina/admin/uploads.coffee +0 -35
  754. data/app/assets/stylesheets/spina.sass +0 -564
  755. data/app/assets/stylesheets/spina/_admin_editing.sass +0 -21
  756. data/app/assets/stylesheets/spina/_buttons.sass +0 -393
  757. data/app/assets/stylesheets/spina/_configuration.sass.erb +0 -23
  758. data/app/assets/stylesheets/spina/_custom_animations.sass +0 -61
  759. data/app/assets/stylesheets/spina/_fonts.sass +0 -54
  760. data/app/assets/stylesheets/spina/_forms.sass +0 -893
  761. data/app/assets/stylesheets/spina/_gallery.sass +0 -405
  762. data/app/assets/stylesheets/spina/_ics_spina.scss +0 -70
  763. data/app/assets/stylesheets/spina/_labels.sass +0 -30
  764. data/app/assets/stylesheets/spina/_login.sass +0 -52
  765. data/app/assets/stylesheets/spina/_media_picker.sass +0 -133
  766. data/app/assets/stylesheets/spina/_mixins.sass +0 -5
  767. data/app/assets/stylesheets/spina/_modal.sass +0 -195
  768. data/app/assets/stylesheets/spina/_normalize.scss +0 -396
  769. data/app/assets/stylesheets/spina/_notifications.sass +0 -68
  770. data/app/assets/stylesheets/spina/_pages.sass +0 -131
  771. data/app/assets/stylesheets/spina/_sortable_lists.sass +0 -190
  772. data/app/assets/stylesheets/spina/_tables.sass +0 -308
  773. data/app/assets/stylesheets/spina/_trix_custom.sass +0 -224
  774. data/app/assets/stylesheets/spina/_wizard.sass +0 -122
  775. data/app/assets/stylesheets/spina/admin/application.css.sass +0 -7
  776. data/app/assets/stylesheets/spina_front_end.sass +0 -19
  777. data/app/controllers/concerns/spina/current_methods.rb +0 -26
  778. data/app/helpers/spina/admin/admin_helper.rb +0 -11
  779. data/app/helpers/spina/admin_nav_helper.rb +0 -7
  780. data/app/views/layouts/spina/admin/admin.html.haml +0 -34
  781. data/app/views/layouts/spina/admin/media_library.html.haml +0 -17
  782. data/app/views/layouts/spina/admin/pages.html.haml +0 -34
  783. data/app/views/layouts/spina/admin/resources.html.haml +0 -10
  784. data/app/views/layouts/spina/login.html.haml +0 -18
  785. data/app/views/spina/admin/accounts/_form.html.haml +0 -54
  786. data/app/views/spina/admin/accounts/analytics.html.haml +0 -28
  787. data/app/views/spina/admin/accounts/edit.html.haml +0 -1
  788. data/app/views/spina/admin/accounts/social.html.haml +0 -52
  789. data/app/views/spina/admin/accounts/style.html.haml +0 -35
  790. data/app/views/spina/admin/attachments/_attachment.html.haml +0 -7
  791. data/app/views/spina/admin/attachments/create.js.erb +0 -1
  792. data/app/views/spina/admin/attachments/index.html.haml +0 -16
  793. data/app/views/spina/admin/images/_form.html.haml +0 -5
  794. data/app/views/spina/admin/images/_image.html.haml +0 -8
  795. data/app/views/spina/admin/images/create.js.erb +0 -8
  796. data/app/views/spina/admin/images/index.html.haml +0 -24
  797. data/app/views/spina/admin/images/index.js.erb +0 -7
  798. data/app/views/spina/admin/media_folders/_form.html.haml +0 -17
  799. data/app/views/spina/admin/media_folders/_media_folder.html.haml +0 -8
  800. data/app/views/spina/admin/media_folders/edit.js.erb +0 -1
  801. data/app/views/spina/admin/media_folders/new.js.erb +0 -1
  802. data/app/views/spina/admin/media_folders/show.html.haml +0 -18
  803. data/app/views/spina/admin/media_picker/_image.html.haml +0 -3
  804. data/app/views/spina/admin/media_picker/_media_picker.html.haml +0 -32
  805. data/app/views/spina/admin/media_picker/_media_picker_grid.html.haml +0 -25
  806. data/app/views/spina/admin/media_picker/_modal.html.haml +0 -63
  807. data/app/views/spina/admin/media_picker/infinite_scroll.js.erb +0 -5
  808. data/app/views/spina/admin/media_picker/select.js.erb +0 -33
  809. data/app/views/spina/admin/media_picker/show.html.haml +0 -1
  810. data/app/views/spina/admin/media_picker/show.js.erb +0 -1
  811. data/app/views/spina/admin/navigations/_navigation_item_nested_list.html.haml +0 -7
  812. data/app/views/spina/admin/navigations/_page.html.haml +0 -8
  813. data/app/views/spina/admin/navigations/edit.html.haml +0 -22
  814. data/app/views/spina/admin/navigations/show.html.haml +0 -7
  815. data/app/views/spina/admin/pages/_form.html.haml +0 -52
  816. data/app/views/spina/admin/pages/_form_advanced.html.haml +0 -59
  817. data/app/views/spina/admin/pages/_form_page_content.html.haml +0 -17
  818. data/app/views/spina/admin/pages/_form_page_seo.html.haml +0 -32
  819. data/app/views/spina/admin/pages/_page.html.haml +0 -16
  820. data/app/views/spina/admin/pages/_page_nested_list.html.haml +0 -6
  821. data/app/views/spina/admin/pages/children.html.haml +0 -4
  822. data/app/views/spina/admin/pages/create.js.coffee +0 -0
  823. data/app/views/spina/admin/pages/edit.html.haml +0 -1
  824. data/app/views/spina/admin/pages/index.html.haml +0 -36
  825. data/app/views/spina/admin/pages/new.html.haml +0 -1
  826. data/app/views/spina/admin/pages/update.js.coffee +0 -1
  827. data/app/views/spina/admin/parts/attachments/_form.html.haml +0 -6
  828. data/app/views/spina/admin/parts/image_collections/_fields.html.haml +0 -7
  829. data/app/views/spina/admin/parts/image_collections/_form.html.haml +0 -12
  830. data/app/views/spina/admin/parts/images/_form.html.haml +0 -18
  831. data/app/views/spina/admin/parts/lines/_form.html.haml +0 -2
  832. data/app/views/spina/admin/parts/multi_lines/_form.html.haml +0 -2
  833. data/app/views/spina/admin/parts/options/_form.html.haml +0 -3
  834. data/app/views/spina/admin/parts/repeaters/_fields.html.haml +0 -15
  835. data/app/views/spina/admin/parts/repeaters/_form.html.haml +0 -17
  836. data/app/views/spina/admin/parts/texts/_form.html.haml +0 -6
  837. data/app/views/spina/admin/password_resets/edit.html.haml +0 -13
  838. data/app/views/spina/admin/password_resets/new.html.haml +0 -13
  839. data/app/views/spina/admin/resources/edit.html.haml +0 -65
  840. data/app/views/spina/admin/resources/show.html.haml +0 -27
  841. data/app/views/spina/admin/sessions/new.html.haml +0 -14
  842. data/app/views/spina/admin/settings/_string_field.html.haml +0 -4
  843. data/app/views/spina/admin/settings/_wysiwyg_field.html.haml +0 -4
  844. data/app/views/spina/admin/settings/edit.html.haml +0 -13
  845. data/app/views/spina/admin/shared/_breadcrumbs.html.haml +0 -1
  846. data/app/views/spina/admin/shared/_notifications.html.haml +0 -29
  847. data/app/views/spina/admin/shared/_primary_navigation.html.haml +0 -68
  848. data/app/views/spina/admin/shared/_rich_text_field.html.haml +0 -4
  849. data/app/views/spina/admin/users/_form.html.haml +0 -58
  850. data/app/views/spina/admin/users/edit.html.haml +0 -1
  851. data/app/views/spina/admin/users/index.html.haml +0 -30
  852. data/app/views/spina/admin/users/new.html.haml +0 -1
  853. data/app/views/spina/pages/robots.text.erb +0 -4
  854. data/app/views/spina/shared/_admin_bar.html.haml +0 -4
  855. data/app/views/spina/shared/_analytics.html.erb +0 -11
  856. data/app/views/spina/shared/_google_site_verification.html.haml +0 -1
  857. data/app/views/spina/shared/_navigation.html.haml +0 -3
  858. data/app/views/spina/shared/_social.html.haml +0 -5
  859. data/app/views/spina/shared/_spina_link.html.haml +0 -2
  860. data/config/fontcustom.yml +0 -95
  861. data/lib/generators/spina/templates/app/assets/stylesheets/default/application.css.sass +0 -0
  862. data/lib/generators/spina/templates/app/assets/stylesheets/demo/application.css.sass +0 -69
  863. data/lib/generators/spina/templates/app/views/default/pages/homepage.html.haml +0 -3
  864. data/lib/generators/spina/templates/app/views/default/pages/show.html.haml +0 -3
  865. data/lib/generators/spina/templates/app/views/default/shared/_navigation.html.haml +0 -2
  866. data/lib/generators/spina/templates/app/views/demo/pages/demo.html.haml +0 -20
  867. data/lib/generators/spina/templates/app/views/demo/pages/homepage.html.haml +0 -2
  868. data/lib/generators/spina/templates/app/views/demo/pages/show.html.haml +0 -3
  869. data/lib/generators/spina/templates/app/views/demo/shared/_languages.html.haml +0 -2
  870. data/lib/generators/spina/templates/app/views/demo/shared/_navigation.html.haml +0 -2
  871. data/lib/generators/spina/templates/app/views/layouts/default/application.html.haml +0 -10
  872. data/lib/generators/spina/templates/app/views/layouts/demo/application.html.haml +0 -11
  873. data/lib/spina/fontcustom/_ics_spina.scss +0 -5
  874. data/vendor/assets/javascripts/spina/jquery.customfileinput.js +0 -85
  875. data/vendor/assets/javascripts/spina/jquery.nestable.js +0 -485
  876. data/vendor/assets/javascripts/spina/jquery.ui.js +0 -6
  877. data/vendor/assets/javascripts/spina/sortable.js +0 -2
  878. data/vendor/assets/javascripts/spina/stimulus.umd.js +0 -5
  879. data/vendor/assets/javascripts/spina/trix.js +0 -21
  880. data/vendor/assets/stylesheets/spina/_animate.scss +0 -1
  881. data/vendor/assets/stylesheets/spina/_normalize.scss +0 -396
  882. data/vendor/assets/stylesheets/spina/_trix.css +0 -369
@@ -0,0 +1,11 @@
1
+ module Spina
2
+ module Forms
3
+ class TrixToolbarComponent < ApplicationComponent
4
+
5
+ def initialize(trix_id)
6
+ @trix_id = trix_id
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,21 @@
1
+ module Spina
2
+ module Hooks
3
+ class HookComponent < ApplicationComponent
4
+
5
+ def initialize(partial:)
6
+ @partial = partial
7
+ end
8
+
9
+ def call
10
+ render Spina::Hooks::PartialComponent.with_collection(plugins, partial: @partial)
11
+ end
12
+
13
+ def plugins
14
+ Spina::Plugin.all.find_all do |plugin|
15
+ helpers.current_theme.plugins.include?(plugin.name)
16
+ end
17
+ end
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Spina
2
+ module Hooks
3
+ class PartialComponent < ApplicationComponent
4
+ with_collection_parameter :plugin
5
+
6
+ def initialize(plugin:, partial:)
7
+ @plugin = plugin
8
+ @partial = partial
9
+ end
10
+
11
+ def call
12
+ render partial: "spina/admin/hooks/#{@plugin.namespace}/#{@partial}"
13
+ end
14
+
15
+ def render?
16
+ helpers.lookup_context.exists? "spina/admin/hooks/#{@plugin.namespace}/_#{@partial}"
17
+ end
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ <li <%= "data-navigation-active" if @active %>>
2
+ <%= link_to @path, class: "block p-3 leading-none text-white hover:opacity-100 transition-opacity font-semibold #{css_classes}" do %>
3
+ <%= @label %>
4
+ <% end %>
5
+ </li>
@@ -0,0 +1,21 @@
1
+ module Spina
2
+ module MainNavigation
3
+ class LinkComponent < ApplicationComponent
4
+
5
+ def initialize(label, path, active: false)
6
+ @label = label
7
+ @path = path
8
+ @active = active
9
+ end
10
+
11
+ def css_classes
12
+ if @active
13
+ ""
14
+ else
15
+ "opacity-50"
16
+ end
17
+ end
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,18 @@
1
+ <li data-navigation-target="navigation">
2
+ <button type="button" class="flex w-full items-center p-3 relative <%= button_classes %> hover:opacity-100 transition-opacity" data-navigation-target="button" data-action="navigation#toggle">
3
+ <%= icon %>
4
+ </button>
5
+
6
+ <ul class="flex items-center justify-center md:block md:h-screen absolute left-0 md:inset-0 z-30 w-full transform transition-transform ease-in-out duration-300 md:h-full <%= ul_classes %>">
7
+ <div class="bg-spina-dark md:bg-gradient-to-b md:from-spina-dark md:to-spina-light px-2 md:px-3 py-3 md:py-5 shadow-lg md:shadow-none w-full md:h-full">
8
+ <div>
9
+ <%= links %>
10
+ </div>
11
+
12
+ <button type="button" data-action="navigation#backToFirstLevel" class="hidden md:flex text-white opacity-30 hover:opacity-100 w-full transition-opacity font-semibold py-3">
13
+ <%= helpers.heroicon('chevron-right', style: :solid, class: "w-6 h-6 transform rotate-180 ml-1") %>
14
+ <%=t "spina.main_menu" %>
15
+ </button>
16
+ </div>
17
+ </ul>
18
+ </li>
@@ -0,0 +1,33 @@
1
+ module Spina
2
+ module MainNavigation
3
+ class SubNavComponent < ApplicationComponent
4
+ renders_one :icon
5
+ renders_one :links
6
+
7
+ def initialize(name = :content)
8
+ @name = name
9
+ end
10
+
11
+ def active?
12
+ helpers.admin_section == @name
13
+ end
14
+
15
+ def button_classes
16
+ if active?
17
+ "opacity-100"
18
+ else
19
+ "opacity-50"
20
+ end
21
+ end
22
+
23
+ def ul_classes
24
+ if active?
25
+ "md:translate-x-20 "
26
+ else
27
+ "translate-x-full"
28
+ end
29
+ end
30
+
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,18 @@
1
+ <div data-selectable-target="item">
2
+ <button type="button"
3
+ data-action="media-picker-modal#selectImage selectable#select dblclick->media-picker-modal#instantInsert"
4
+ data-image-id="<%= @image.id %>"
5
+ data-signed-blob-id="<%= @image.file.blob.signed_id %>"
6
+ data-filename="<%= @image.file.filename %>"
7
+ data-thumbnail="<%= helpers.thumbnail_url(@image) %>"
8
+ data-embedded-url="<%= helpers.embedded_image_url(@image) %>"
9
+ data-selected-class="bg-gray-100 border-spina scale-105"
10
+ data-deselected-class="border-transparent"
11
+ class="w-full h-40 overflow-hidden rounded-md transform transition-transform duration-200 border-2 border-transparent hover:scale-105">
12
+
13
+ <%= image_tag helpers.thumbnail_url(@image), class: 'object-contain h-40 w-full', data: {controller: "image-fade-in"} %>
14
+ </button>
15
+
16
+ <div class="text-xs text-center text-gray-700 rounded p-1" data-selected-class="text-white bg-spina" data-deselected-class="text-gray-700"><%= @image.file.filename %></div>
17
+ <div class="text-xs text-center text-gray-400"><%= number_to_human_size @image.file.byte_size %></div>
18
+ </div>
@@ -0,0 +1,11 @@
1
+ module Spina
2
+ module MediaPicker
3
+ class ImageComponent < ApplicationComponent
4
+
5
+ def initialize(image:)
6
+ @image = image
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,74 @@
1
+ <%= render(Spina::UserInterface::ModalComponent.new(size: "max-w-6xl h-full")) do |component| %>
2
+ <div class="h-full w-full" data-controller="infinite-scroll media-picker-modal" data-target="<%= @target %>">
3
+ <turbo-frame id="media_picker">
4
+ <div class="flex flex-col md:flex-row h-full w-full">
5
+ <div class="flex-1 bg-white flex flex-col max-h-full relative overflow-hidden">
6
+ <div data-infinite-scroll-target="container" data-controller="selectable" class="p-6 h-full w-full overflow-scroll ">
7
+
8
+ <!-- Images are loaded using nested turbo-frame-tags -->
9
+ <!-- Only load images in multiples of 4 so that this grid -->
10
+ <!-- will not show any gaps. -->
11
+ <turbo-frame id="images-<%= @images.current_page %>">
12
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-6 auto-rows-min">
13
+ <%= render Spina::MediaPicker::ImageComponent.with_collection(@images) %>
14
+ </div>
15
+
16
+ <% if @images.next_page %>
17
+ <turbo-frame id="images-<%= @images.next_page %>">
18
+ <%= link_to "...", helpers.path_to_next_page(@images), data: {infinite_scroll_target: "button"} %>
19
+ </turbo-frame>
20
+ <% end %>
21
+
22
+ </turbo-frame>
23
+
24
+ </div>
25
+ </div>
26
+
27
+ <div class="md:w-72 p-4 border-t rounded-b-lg md:rounded-none md:border-t-0 border-gray-200 flex flex-col justify-between bg-gray-100 md:bg-opacity-50 md:rounded-l-lg">
28
+ <div class="hidden md:block md:mb-6 overflow-scroll">
29
+ <%= link_to helpers.spina.admin_media_picker_path, class: "font-medium w-full text-sm px-3 py-2 rounded-lg flex items-center justify-between #{media_folder_classes(nil)}", data: {turbo_frame: "media_picker"} do %>
30
+ <div class="flex items-center">
31
+ <%= helpers.heroicon("collection", style: :solid, class: "w-5 h-5 mr-2 text-spina-light") %>
32
+ <%=t 'spina.images.all_images' %>
33
+ </div>
34
+
35
+ <div class="text-gray-400 text-sm font-semibold">
36
+ <%= image_count %>
37
+ </div>
38
+ <% end %>
39
+
40
+ <% media_folders.each do |media_folder| %>
41
+ <%= link_to helpers.spina.admin_media_picker_path(media_folder_id: media_folder.id), class: "font-medium w-full text-gray-600 text-sm px-3 py-2 cursor-pointer rounded-lg flex items-center justify-between #{media_folder_classes(media_folder)}", data: {turbo_frame: "media_picker"} do %>
42
+ <div class="flex items-center">
43
+ <%= helpers.heroicon('folder', style: :solid, class: 'w-5 h-5 mr-2 text-spina-light') %>
44
+ <%= media_folder.name %>
45
+ </div>
46
+
47
+ <div class="text-gray-400 text-sm font-semibold">
48
+ <%= media_folder.images.count %>
49
+ </div>
50
+ <% end %>
51
+ <% end %>
52
+
53
+ <%= form_with model: [:admin, Spina::Image.new], url: helpers.spina.admin_images_path, data: {controller: "form loading-button", loading_message: t('spina.media_library.uploading'), action: "turbo:submit-end->loading-button#doneLoading", turbo_frame: "media_picker"} do |f| %>
54
+ <%= hidden_field_tag :modal, true %>
55
+ <%= f.hidden_field :media_folder_id, value: @media_folder&.id %>
56
+
57
+ <%= f.file_field :files, multiple: true, accept: "image/*", id: "new_image_file_field", class: 'hidden', data: {action: "loading-button#loading form#requestSubmit"} %>
58
+
59
+ <button type="button" class="font-medium w-full text-gray-600 text-sm hover:bg-gray-200 px-3 py-2 cursor-pointer rounded-lg flex items-center w-full" data-controller="delegate-click" data-action="delegate-click#click" data-loading-button-target="button" data-delegate-click-target="#new_image_file_field">
60
+ <%= helpers.heroicon("upload", style: :solid, class: "w-5 h-5 text-spina mr-2") %>
61
+ <%=t 'spina.media_library.upload_from_device' %>
62
+ </button>
63
+ <% end %>
64
+ </div>
65
+
66
+ <button type="button" class="btn btn-primary w-full mt-3" data-action="media-picker-modal#confirm modal#close">
67
+ <%= helpers.heroicon("plus", style: :solid, class: "text-white w-6 h-6") %>
68
+ <%=t 'spina.media_library.insert' %>
69
+ </button>
70
+ </div>
71
+ </div>
72
+ </turbo-frame>
73
+ </div>
74
+ <% end %>
@@ -0,0 +1,29 @@
1
+ module Spina
2
+ module MediaPicker
3
+ class ModalComponent < ApplicationComponent
4
+
5
+ def initialize(target, images:, media_folder: nil)
6
+ @target = target
7
+ @images = images
8
+ @media_folder = media_folder
9
+ end
10
+
11
+ def media_folders
12
+ @media_folders ||= Spina::MediaFolder.order(:name)
13
+ end
14
+
15
+ def image_count
16
+ @image_count ||= Spina::Image.count
17
+ end
18
+
19
+ def media_folder_classes(media_folder)
20
+ if media_folder == @media_folder
21
+ "text-gray-900 bg-spina-dark bg-opacity-20"
22
+ else
23
+ "text-gray-600 hover:bg-gray-200 bg-opacity-100 hover:bg-gray-200"
24
+ end
25
+ end
26
+
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,65 @@
1
+ <% if helpers.asset_available?("spina/view_template_previews/#{@page.view_template}.png") %>
2
+ <div class="relative" data-controller="reveal" data-reveal-away-value>
3
+ <button type="button" class="btn text-gray-400 border-none hover:text-gray-700" data-action="reveal#toggle">
4
+ <%= helpers.heroicon('eye', style: :solid, class: 'w-4 h-4 mr-2') %>
5
+ <%=t 'spina.pages.preview' %>
6
+ </button>
7
+
8
+ <div class="absolute left-1/2 transform -translate-x-1/2">
9
+ <div hidden data-reveal data-transition class="w-60 bg-white shadow-lg rounded-md">
10
+ <%= image_tag "spina/view_template_previews/#{@page.view_template}.png", class: "block w-full rounded-md" %>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ <% end %>
15
+
16
+ <!-- Advanced actions -->
17
+ <div class="relative w-1/2 md:w-auto" data-controller="reveal" data-reveal-away-value>
18
+ <button type="button" class="btn btn-default px-3 w-full" data-action="reveal#toggle">
19
+ <svg class="w-5 h-5 text-gray-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
20
+ <path d="M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z" />
21
+ </svg>
22
+ </button>
23
+
24
+ <div hidden data-reveal data-transition class="origin-top-left md:origin-top-right absolute md:right-0 mt-2 w-56 rounded-md shadow-lg border border-gray-200">
25
+ <div class="rounded-md bg-white shadow-xs">
26
+ <div class="py-1">
27
+
28
+ <% unless @page.homepage? %>
29
+ <%= link_to t('spina.pages.move_page') + "...", helpers.spina.new_admin_page_move_path(@page), class: "block px-4 py-2 text-sm font-medium leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900", data: {turbo_frame: "modal", action: "reveal#hide"} %>
30
+ <% end %>
31
+
32
+ <% if !@page.custom_page? %>
33
+ <%= link_to t('spina.pages.change_view_template') + "...", helpers.spina.edit_template_admin_page_path(@page), class: "block px-4 py-2 text-sm font-medium leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900", data: {turbo_frame: "modal", action: "reveal#hide"} %>
34
+ <% end %>
35
+ <% if @page.deletable? %>
36
+ <%= button_to t('spina.pages.delete'), helpers.spina.admin_page_path(@page), method: :delete, class: "block w-full text-left px-4 py-2 text-sm leading-5 font-medium text-red-500 cursor-pointer bg-white hover:bg-red-100 hover:bg-opacity-50 hover:text-red-500 focus:outline-none focus:bg-gray-100 focus:text-gray-900", form: {data: {controller: "confirm", confirm_message: t('spina.pages.delete_confirmation', subject: @page.title)}} %>
37
+ <% else %>
38
+ <span class="block px-4 py-2 text-sm leading-5 text-gray-400"><%=t 'spina.pages.cannot_be_deleted' %></span>
39
+ <% end %>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+
45
+ <!-- Translations -->
46
+ <%= render Spina::Pages::TranslationsComponent.new(@page, label: @locale.upcase) %>
47
+
48
+ <button type="submit" form="<%= dom_id(@page) %>" class="btn btn-primary w-1/2 md:w-auto" data-controller="button hotkeys" data-hotkeys="command+s, ctrl+s" data-hotkeys-target="button" data-action="button#loading" data-loading-message="Saving...">
49
+ <%= helpers.heroicon('check', style: :solid, class: 'w-5 h-5 mr-1 -ml-2') %>
50
+ <% if @page.draft? %>
51
+ <%=t 'spina.pages.save_draft' %>
52
+ <% else %>
53
+ <%=t 'spina.pages.save_changes' %>
54
+ <% end %>
55
+ </button>
56
+
57
+ <!-- Saving -->
58
+ <% if @page.persisted? && @page.draft? %>
59
+ <button type="submit" form="<%= dom_id(@page) %>" name="page[draft]" value="false" class="btn btn-primary flex items-center" data-controller="hotkeys" data-hotkeys="control+command+s" data-hotkeys-target="button">
60
+ <svg class="w-4 h-4 -ml-1 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
61
+ <path fill-rule="evenodd" d="M6.672 1.911a1 1 0 10-1.932.518l.259.966a1 1 0 001.932-.518l-.26-.966zM2.429 4.74a1 1 0 10-.517 1.932l.966.259a1 1 0 00.517-1.932l-.966-.26zm8.814-.569a1 1 0 00-1.415-1.414l-.707.707a1 1 0 101.415 1.415l.707-.708zm-7.071 7.072l.707-.707A1 1 0 003.465 9.12l-.708.707a1 1 0 001.415 1.415zm3.2-5.171a1 1 0 00-1.3 1.3l4 10a1 1 0 001.823.075l1.38-2.759 3.018 3.02a1 1 0 001.414-1.415l-3.019-3.02 2.76-1.379a1 1 0 00-.076-1.822l-10-4z" clip-rule="evenodd" />
62
+ </svg>
63
+ <%=t 'spina.pages.publish' %>
64
+ </button>
65
+ <% end %>
@@ -0,0 +1,12 @@
1
+ module Spina
2
+ module Pages
3
+ class ActionsComponent < ApplicationComponent
4
+
5
+ def initialize(page:, locale: I18n.locale)
6
+ @page = page
7
+ @locale = locale
8
+ end
9
+
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,8 @@
1
+ <div data-controller="sortable">
2
+ <%= form_with url: helpers.spina.sort_admin_pages_path, data: {sortable_target: "form"} do |f| %>
3
+ <% end %>
4
+
5
+ <ul data-sortable-target="list">
6
+ <%= render Spina::Pages::PageComponent.with_collection(@pages, sortable: sortable) %>
7
+ </ul>
8
+ </div>
@@ -0,0 +1,13 @@
1
+ module Spina
2
+ module Pages
3
+ class ListComponent < ApplicationComponent
4
+ attr_reader :depth, :sortable
5
+
6
+ def initialize(pages:, sortable: true)
7
+ @pages = pages
8
+ @sortable = sortable
9
+ end
10
+
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ <div class="flex items-center border border-gray-300 rounded-md bg-white p-1 relative shadow-sm" data-controller="parent-pages">
2
+
3
+ <%= helpers.heroicon("collection", style: :solid, class: 'w-5 h-5 ml-2 text-gray-400 absolute') %>
4
+
5
+ <%= f.select :resource_id, resources, {}, class: "form-select hover:bg-gray-100 bg-none shadow-none w-auto bg-transparent border-none focus:ring-0 cursor-pointer pr-2 pl-8 flex-none truncate", data: {controller: "select-placeholder", action: "select-placeholder#update parent-pages#update"} %>
6
+
7
+ <%= helpers.heroicon('chevron-right', style: :solid, class: 'w-5 h-5 text-gray-600 flex-none') %>
8
+
9
+ <%= helpers.turbo_frame_tag "parent_pages", src: default_parent_pages_path, class: 'flex-auto', data: {parent_pages_target: "frame"} %>
10
+ </div>
@@ -0,0 +1,29 @@
1
+ module Spina::Pages
2
+ class LocationComponent < Spina::ApplicationComponent
3
+ attr_accessor :f
4
+
5
+ def initialize(f, page = nil)
6
+ @f = f
7
+ @page = page
8
+ end
9
+
10
+ def resources
11
+ [main_collection_option] + Spina::Resource.order(:label).map do |resource|
12
+ [ resource.label, resource.id, data: {
13
+ parent_pages_url: helpers.spina.admin_parent_pages_path(resource_id: resource.id)
14
+ }]
15
+ end
16
+ end
17
+
18
+ def main_collection_option
19
+ [t('spina.pages.main_collection'), nil, data: {
20
+ parent_pages_url: helpers.spina.admin_parent_pages_path
21
+ }]
22
+ end
23
+
24
+ def default_parent_pages_path
25
+ helpers.spina.admin_parent_pages_path(resource_id: @page&.resource_id, parent_id: @page&.parent_id, page_id: @page&.id)
26
+ end
27
+
28
+ end
29
+ end
@@ -0,0 +1,25 @@
1
+ <li data-id="<%= @page.id %>">
2
+ <div class="flex items-center border-gray-200 border-b <%= css_class %> bg-opacity-50">
3
+ <% if sortable? %>
4
+ <div data-sortable-handle class="p-4 text-gray-300 hover:text-gray-600 cursor-move">
5
+ <%= helpers.heroicon("menu-alt-4", style: :solid, class: "w-4 h-4 -mr-4") %>
6
+ </div>
7
+ <% end %>
8
+
9
+ <%= link_to helpers.spina.edit_admin_page_path(@page), class: "block text-spina font-medium text-sm p-4 hover:text-spina-dark" do %>
10
+ <%= @page.menu_title %>
11
+
12
+ <small class="font-normal"><%= label %></small>
13
+ <% end %>
14
+
15
+ <div class='flex-1'></div>
16
+ <div class="mr-3 flex space-x-2">
17
+ <%= render Spina::Pages::TranslationsComponent.new(@page) %>
18
+ </div>
19
+
20
+ </div>
21
+
22
+ <% if children.any? %>
23
+ <%= render Spina::Pages::ListComponent.new(pages: children, sortable: sortable) %>
24
+ <% end %>
25
+ </li>