trestle 0.9.9 → 0.10.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yml +31 -3
  3. data/.gitignore +3 -0
  4. data/Gemfile +5 -1
  5. data/README.md +2 -1
  6. data/app/assets/bundle/trestle/admin.css +23 -0
  7. data/app/assets/bundle/trestle/admin.js +83 -0
  8. data/app/assets/bundle/trestle/fa-brands-400.ttf +0 -0
  9. data/app/assets/bundle/trestle/fa-brands-400.woff2 +0 -0
  10. data/app/assets/bundle/trestle/fa-regular-400.ttf +0 -0
  11. data/app/assets/bundle/trestle/fa-regular-400.woff2 +0 -0
  12. data/app/assets/bundle/trestle/fa-solid-900.ttf +0 -0
  13. data/app/assets/bundle/trestle/fa-solid-900.woff2 +0 -0
  14. data/app/assets/bundle/trestle/locale/cs.js +110 -0
  15. data/app/assets/bundle/trestle/locale/de.js +116 -0
  16. data/app/assets/bundle/trestle/locale/en.js +329 -0
  17. data/app/assets/bundle/trestle/locale/es-MX.js +109 -0
  18. data/app/assets/bundle/trestle/locale/es.js +109 -0
  19. data/app/assets/bundle/trestle/locale/fr.js +111 -0
  20. data/app/assets/bundle/trestle/locale/ko.js +111 -0
  21. data/app/assets/bundle/trestle/locale/lv.js +109 -0
  22. data/app/assets/bundle/trestle/locale/nl.js +96 -0
  23. data/app/assets/bundle/trestle/locale/pl.js +99 -0
  24. data/app/assets/bundle/trestle/locale/pt-BR.js +98 -0
  25. data/app/assets/bundle/trestle/locale/vi.js +116 -0
  26. data/app/assets/bundle/trestle/locale/zh-CN.js +109 -0
  27. data/app/assets/bundle/trestle/photoswipe-7aa1aec9c3c1fd65c382.digested.js +6 -0
  28. data/app/assets/sprockets/trestle/custom.css +1 -0
  29. data/app/assets/sprockets/trestle/icons/font-awesome.css.erb +32 -0
  30. data/app/assets/sprockets/trestle/manifest.js +4 -0
  31. data/app/assets/stylesheets/trestle/custom.css +6 -1
  32. data/app/controllers/concerns/trestle/controller/helpers.rb +2 -0
  33. data/app/controllers/concerns/trestle/controller/location.rb +1 -6
  34. data/app/controllers/concerns/trestle/controller/modal.rb +23 -0
  35. data/app/controllers/concerns/trestle/controller/turbo.rb +21 -0
  36. data/app/controllers/concerns/trestle/resource/controller/actions.rb +39 -28
  37. data/app/controllers/concerns/trestle/resource/controller/redirection.rb +5 -5
  38. data/app/controllers/trestle/application_controller.rb +2 -1
  39. data/app/helpers/trestle/flash_helper.rb +10 -0
  40. data/app/helpers/trestle/form_helper.rb +3 -2
  41. data/app/helpers/trestle/format_helper.rb +2 -1
  42. data/app/helpers/trestle/i18n_helper.rb +46 -7
  43. data/app/helpers/trestle/modal_helper.rb +34 -0
  44. data/app/helpers/trestle/tab_helper.rb +1 -1
  45. data/app/helpers/trestle/turbo_frame_helper.rb +34 -0
  46. data/app/helpers/trestle/url_helper.rb +7 -4
  47. data/app/views/layouts/trestle/admin.html.erb +16 -18
  48. data/app/views/layouts/trestle/admin.turbo_stream.erb +11 -0
  49. data/app/views/layouts/trestle/modal.html.erb +5 -0
  50. data/app/views/trestle/_i18n.html.erb +12 -0
  51. data/app/views/trestle/_theme.html.erb +15 -0
  52. data/app/views/trestle/application/_header.html.erb +1 -1
  53. data/app/views/trestle/application/_layout.html.erb +6 -3
  54. data/app/views/trestle/application/_modal.html.erb +36 -0
  55. data/app/views/trestle/application/_tabs.html.erb +4 -4
  56. data/app/views/trestle/flash/_alert.html.erb +1 -1
  57. data/app/views/trestle/flash/_debug.html.erb +1 -1
  58. data/app/views/trestle/resource/_form.html.erb +5 -0
  59. data/app/views/trestle/resource/create.turbo_stream.erb +5 -0
  60. data/app/views/trestle/resource/destroy.turbo_stream.erb +1 -0
  61. data/app/views/trestle/resource/edit.html.erb +4 -2
  62. data/app/views/trestle/resource/index.html.erb +12 -10
  63. data/app/views/trestle/resource/new.html.erb +4 -2
  64. data/app/views/trestle/resource/show.html.erb +4 -2
  65. data/app/views/trestle/resource/update.turbo_stream.erb +5 -0
  66. data/app/views/trestle/shared/_sidebar.html.erb +9 -9
  67. data/frontend/css/components/_alerts.scss +19 -17
  68. data/frontend/css/components/_background.scss +7 -35
  69. data/frontend/css/components/_badges.scss +31 -0
  70. data/frontend/css/components/_breadcrumbs.scss +4 -4
  71. data/frontend/css/components/_buttons.scss +5 -4
  72. data/frontend/css/components/_datepicker.scss +12 -8
  73. data/frontend/css/components/_dropdown.scss +23 -3
  74. data/frontend/css/components/{_fields.scss → _forms.scss} +16 -3
  75. data/frontend/css/components/_media-grid.scss +52 -44
  76. data/frontend/css/components/_modal.scss +33 -4
  77. data/frontend/css/components/_pagination.scss +1 -1
  78. data/frontend/css/components/_photoswipe.scss +8 -0
  79. data/frontend/css/components/_popover.scss +1 -0
  80. data/frontend/css/components/_scopes.scss +1 -1
  81. data/frontend/css/components/_select.scss +161 -31
  82. data/frontend/css/components/_table.scss +60 -65
  83. data/frontend/css/components/_tabs.scss +10 -3
  84. data/frontend/css/components/_tags.scss +71 -16
  85. data/frontend/css/components/_toolbars.scss +16 -11
  86. data/frontend/css/components/_turbo.scss +3 -0
  87. data/frontend/css/core/_bootstrap.scss +46 -0
  88. data/frontend/css/core/_dependencies.scss +4 -3
  89. data/frontend/css/core/_functions.scss +39 -0
  90. data/frontend/css/core/_mixins.scss +2 -36
  91. data/frontend/css/core/_theme.scss +258 -0
  92. data/frontend/css/core/_typography.scss +10 -1
  93. data/frontend/css/icons/_fontawesome.scss +3 -15
  94. data/frontend/css/index.scss +12 -6
  95. data/frontend/css/layout/_base.scss +3 -3
  96. data/frontend/css/layout/_content.scss +10 -6
  97. data/frontend/css/layout/_footer.scss +1 -1
  98. data/frontend/css/layout/_header.scss +5 -3
  99. data/frontend/css/layout/_navigation.scss +2 -2
  100. data/frontend/css/layout/_sidebar.scss +19 -9
  101. data/frontend/css/support/_sprockets.scss +2 -0
  102. data/frontend/css/support/_webpack.scss +2 -0
  103. data/frontend/css/variables/_bootstrap.scss +134 -40
  104. data/frontend/css/variables/_maps.scss +15 -0
  105. data/frontend/css/variables/_trestle.scss +55 -26
  106. data/frontend/js/controllers/application_controller.js +17 -0
  107. data/frontend/js/controllers/checkbox_select_controller.js +43 -0
  108. data/frontend/js/controllers/confirm_controller.js +115 -0
  109. data/frontend/js/controllers/confirm_delete_controller.js +11 -0
  110. data/frontend/js/controllers/datepicker_controller.js +12 -0
  111. data/frontend/js/controllers/datetimepicker_controller.js +13 -0
  112. data/frontend/js/controllers/deprecated/init_controller.js +9 -0
  113. data/frontend/js/controllers/flatpickr_controller.js +50 -0
  114. data/frontend/js/controllers/follow_url_controller.js +36 -0
  115. data/frontend/js/controllers/form_error_controller.js +24 -0
  116. data/frontend/js/controllers/form_loading_controller.js +50 -0
  117. data/frontend/js/controllers/gallery_controller.js +10 -0
  118. data/frontend/js/controllers/index.js +19 -0
  119. data/frontend/js/controllers/keyboard_submit_controller.js +25 -0
  120. data/frontend/js/controllers/lightbox_controller.js +160 -0
  121. data/frontend/js/controllers/mobile_sidebar_controller.js +30 -0
  122. data/frontend/js/controllers/modal_controller.js +36 -0
  123. data/frontend/js/controllers/modal_frame_controller.js +11 -0
  124. data/frontend/js/controllers/modal_trigger_controller.js +74 -0
  125. data/frontend/js/{components/navigation.js → controllers/navigation_controller.js} +14 -10
  126. data/frontend/js/controllers/navigation_tooltip_controller.js +32 -0
  127. data/frontend/js/controllers/popover_controller.js +87 -0
  128. data/frontend/js/controllers/reloadable_controller.js +34 -0
  129. data/frontend/js/controllers/select_controller.js +49 -0
  130. data/frontend/js/controllers/sidebar_controller.js +33 -0
  131. data/frontend/js/controllers/tab_errors_controller.js +45 -0
  132. data/frontend/js/controllers/tabs_controller.js +45 -0
  133. data/frontend/js/controllers/timepicker_controller.js +14 -0
  134. data/frontend/js/controllers/toggle_attr_controller.js +27 -0
  135. data/frontend/js/controllers/toggle_class_controller.js +27 -0
  136. data/frontend/js/controllers/tooltip_controller.js +13 -0
  137. data/frontend/js/controllers/wrapper_controller.js +43 -0
  138. data/frontend/js/core/backdrop.js +100 -0
  139. data/frontend/js/core/error_modal.js +65 -0
  140. data/frontend/js/core/fetch.js +32 -0
  141. data/frontend/js/core/i18n.js +24 -10
  142. data/frontend/js/core/modal.js +52 -0
  143. data/frontend/js/core/stream_actions.js +56 -0
  144. data/frontend/js/core/turbo_errors.js +9 -0
  145. data/frontend/js/{core → deprecated}/events.js +1 -8
  146. data/frontend/js/deprecated/tooltip.js +8 -0
  147. data/frontend/js/index.js +28 -40
  148. data/frontend/js/mixins/index.js +5 -0
  149. data/frontend/js/mixins/photoswipe.js +10 -0
  150. data/frontend/js/util/bootstrap.js +93 -0
  151. data/i18n/config.yml +14 -0
  152. data/i18n/environment.rb +8 -0
  153. data/i18n/export +3 -0
  154. data/i18n/template.erb +1 -0
  155. data/lib/generators/trestle/install/install_generator.rb +3 -8
  156. data/lib/generators/trestle/install/templates/trestle.rb.erb +5 -5
  157. data/lib/trestle/color.rb +113 -0
  158. data/lib/trestle/configuration.rb +16 -8
  159. data/lib/trestle/engine.rb +23 -17
  160. data/lib/trestle/form/fields/check_box_helpers.rb +7 -18
  161. data/lib/trestle/form/fields/collection_select.rb +1 -1
  162. data/lib/trestle/form/fields/color_field.rb +4 -0
  163. data/lib/trestle/form/fields/date_field.rb +4 -0
  164. data/lib/trestle/form/fields/date_picker.rb +10 -4
  165. data/lib/trestle/form/fields/date_select.rb +1 -1
  166. data/lib/trestle/form/fields/datetime_field.rb +4 -0
  167. data/lib/trestle/form/fields/datetime_select.rb +1 -1
  168. data/lib/trestle/form/fields/file_field.rb +3 -28
  169. data/lib/trestle/form/fields/form_control.rb +2 -2
  170. data/lib/trestle/form/fields/form_group.rb +1 -1
  171. data/lib/trestle/form/fields/grouped_collection_select.rb +1 -1
  172. data/lib/trestle/form/fields/radio_button_helpers.rb +5 -17
  173. data/lib/trestle/form/fields/range_field.rb +1 -5
  174. data/lib/trestle/form/fields/select.rb +17 -1
  175. data/lib/trestle/form/fields/time_field.rb +4 -0
  176. data/lib/trestle/form/fields/time_select.rb +1 -1
  177. data/lib/trestle/form/fields/time_zone_select.rb +1 -1
  178. data/lib/trestle/form/renderer.rb +3 -0
  179. data/lib/trestle/form.rb +16 -1
  180. data/lib/trestle/resource/toolbar.rb +2 -2
  181. data/lib/trestle/table/actions_column.rb +2 -2
  182. data/lib/trestle/table/row.rb +2 -1
  183. data/lib/trestle/table/select_column.rb +3 -6
  184. data/lib/trestle/table.rb +6 -1
  185. data/lib/trestle/toolbar/item.rb +1 -1
  186. data/lib/trestle/toolbar/menu.rb +3 -6
  187. data/lib/trestle/version.rb +1 -1
  188. data/lib/trestle.rb +2 -23
  189. data/package.json +31 -27
  190. data/trestle.gemspec +2 -3
  191. data/webpack.config.js +10 -10
  192. data/yarn.lock +1456 -1194
  193. metadata +166 -164
  194. data/app/assets/bundle/trestle/bundle.css +0 -12
  195. data/app/assets/bundle/trestle/bundle.js +0 -89
  196. data/app/assets/bundle/trestle/fa-brands-400.eot +0 -0
  197. data/app/assets/bundle/trestle/fa-brands-400.svg +0 -3717
  198. data/app/assets/bundle/trestle/fa-brands-400.woff +0 -0
  199. data/app/assets/bundle/trestle/fa-regular-400.eot +0 -0
  200. data/app/assets/bundle/trestle/fa-regular-400.svg +0 -801
  201. data/app/assets/bundle/trestle/fa-regular-400.woff +0 -0
  202. data/app/assets/bundle/trestle/fa-solid-900.eot +0 -0
  203. data/app/assets/bundle/trestle/fa-solid-900.svg +0 -5034
  204. data/app/assets/bundle/trestle/fa-solid-900.woff +0 -0
  205. data/app/assets/javascripts/trestle/admin.js +0 -3
  206. data/app/assets/javascripts/trestle/i18n.js.erb +0 -8
  207. data/app/assets/stylesheets/trestle/admin.css +0 -2
  208. data/app/assets/stylesheets/trestle/icons/_font-awesome.css.erb +0 -40
  209. data/app/controllers/concerns/trestle/controller/dialog.rb +0 -16
  210. data/app/views/trestle/application/_dialog.html.erb +0 -34
  211. data/frontend/css/components/_color-vars.scss +0 -10
  212. data/frontend/css/components/_custom-forms.scss +0 -35
  213. data/frontend/css/components/_magnific-popup.scss +0 -36
  214. data/frontend/css/components/_turbolinks.scss +0 -3
  215. data/frontend/js/components/confirmation.js +0 -32
  216. data/frontend/js/components/datepicker.js +0 -69
  217. data/frontend/js/components/dialog.js +0 -149
  218. data/frontend/js/components/file.js +0 -7
  219. data/frontend/js/components/form.js +0 -100
  220. data/frontend/js/components/gallery.js +0 -33
  221. data/frontend/js/components/pagination.js +0 -51
  222. data/frontend/js/components/select.js +0 -18
  223. data/frontend/js/components/sidebar.js +0 -75
  224. data/frontend/js/components/table.js +0 -61
  225. data/frontend/js/components/tabs.js +0 -59
  226. data/frontend/js/components/tooltips.js +0 -25
  227. data/frontend/js/core/contexts.js +0 -17
  228. data/frontend/js/core/turbolinks.js +0 -3
  229. data/frontend/js/core/visit.js +0 -16
  230. data/frontend/theme/trestle/_theme.scss +0 -4
  231. data/frontend/theme/trestle/_variables.scss +0 -4
  232. data/frontend/theme/trestle/theme/_defaults.scss +0 -152
  233. data/frontend/theme/trestle/theme/_functions.scss +0 -44
  234. data/frontend/theme/trestle/theme/_variables.scss +0 -15
  235. data/frontend/theme/trestle/theme/bootstrap/_alert.scss +0 -19
  236. data/frontend/theme/trestle/theme/bootstrap/_badge.scss +0 -25
  237. data/frontend/theme/trestle/theme/bootstrap/_buttons.scss +0 -93
  238. data/frontend/theme/trestle/theme/bootstrap/_color-vars.scss +0 -11
  239. data/frontend/theme/trestle/theme/bootstrap/_custom-forms.scss +0 -93
  240. data/frontend/theme/trestle/theme/bootstrap/_dropdown.scss +0 -6
  241. data/frontend/theme/trestle/theme/bootstrap/_forms.scss +0 -6
  242. data/frontend/theme/trestle/theme/bootstrap/_links.scss +0 -7
  243. data/frontend/theme/trestle/theme/bootstrap/_list-group.scss +0 -31
  244. data/frontend/theme/trestle/theme/bootstrap/_nav.scss +0 -6
  245. data/frontend/theme/trestle/theme/bootstrap/_pagination.scss +0 -18
  246. data/frontend/theme/trestle/theme/bootstrap/_progress.scss +0 -3
  247. data/frontend/theme/trestle/theme/bootstrap/_tables.scss +0 -41
  248. data/frontend/theme/trestle/theme/bootstrap/_utilities.scss +0 -3
  249. data/frontend/theme/trestle/theme/bootstrap/utilities/_background.scss +0 -17
  250. data/frontend/theme/trestle/theme/bootstrap/utilities/_borders.scss +0 -5
  251. data/frontend/theme/trestle/theme/bootstrap/utilities/_text.scss +0 -18
  252. data/frontend/theme/trestle/theme/trestle/_background.scss +0 -61
  253. data/frontend/theme/trestle/theme/trestle/_datepicker.scss +0 -58
  254. data/frontend/theme/trestle/theme/trestle/_headers.scss +0 -4
  255. data/frontend/theme/trestle/theme/trestle/_navbar.scss +0 -15
  256. data/frontend/theme/trestle/theme/trestle/_navigation.scss +0 -5
  257. data/frontend/theme/trestle/theme/trestle/_select2.scss +0 -22
  258. data/frontend/theme/trestle/theme/trestle/_tags.scss +0 -12
  259. data/frontend/theme/trestle/theme/trestle/_turbolinks.scss +0 -3
  260. data/frontend/theme/trestle/theme.scss +0 -29
  261. data/lib/generators/trestle/install/templates/_theme.scss +0 -13
  262. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ar-dz.js +0 -0
  263. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ar.js +0 -0
  264. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/at.js +0 -0
  265. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/az.js +0 -0
  266. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/be.js +0 -0
  267. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/bg.js +0 -0
  268. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/bn.js +0 -0
  269. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/bs.js +0 -0
  270. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/cat.js +0 -0
  271. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ckb.js +0 -0
  272. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/cs.js +0 -0
  273. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/cy.js +0 -0
  274. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/da.js +0 -0
  275. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/de.js +0 -0
  276. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/default.js +0 -0
  277. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/eo.js +0 -0
  278. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/es.js +0 -0
  279. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/et.js +0 -0
  280. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/fa.js +0 -0
  281. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/fi.js +0 -0
  282. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/fo.js +0 -0
  283. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/fr.js +0 -0
  284. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ga.js +0 -0
  285. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/gr.js +0 -0
  286. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/he.js +0 -0
  287. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/hi.js +0 -0
  288. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/hr.js +0 -0
  289. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/hu.js +0 -0
  290. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/hy.js +0 -0
  291. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/id.js +0 -0
  292. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/is.js +0 -0
  293. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/it.js +0 -0
  294. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ja.js +0 -0
  295. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ka.js +0 -0
  296. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/km.js +0 -0
  297. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ko.js +0 -0
  298. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/kz.js +0 -0
  299. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/lt.js +0 -0
  300. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/lv.js +0 -0
  301. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/mk.js +0 -0
  302. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/mn.js +0 -0
  303. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ms.js +0 -0
  304. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/my.js +0 -0
  305. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/nl.js +0 -0
  306. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/nn.js +0 -0
  307. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/no.js +0 -0
  308. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/pa.js +0 -0
  309. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/pl.js +0 -0
  310. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/pt.js +0 -0
  311. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ro.js +0 -0
  312. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ru.js +0 -0
  313. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/si.js +0 -0
  314. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sk.js +0 -0
  315. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sl.js +0 -0
  316. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sq.js +0 -0
  317. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sr-cyr.js +0 -0
  318. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sr.js +0 -0
  319. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sv.js +0 -0
  320. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/th.js +0 -0
  321. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/tr.js +0 -0
  322. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/uk.js +0 -0
  323. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/uz.js +0 -0
  324. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/uz_latn.js +0 -0
  325. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/vn.js +0 -0
  326. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/zh-tw.js +0 -0
  327. /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/zh.js +0 -0
  328. /data/app/assets/{stylesheets → sprockets}/trestle/_custom.css +0 -0
@@ -0,0 +1,110 @@
1
+ Trestle.i18n.store({
2
+ "cs": {
3
+ "admin": {
4
+ "breadcrumbs": {
5
+ "home": "Úvod"
6
+ },
7
+ "buttons": {
8
+ "delete": "Smazat",
9
+ "new": "Přidat",
10
+ "ok": "OK",
11
+ "save": "Uložit"
12
+ },
13
+ "datepicker": {
14
+ "formats": {
15
+ "date": "d/m/Y",
16
+ "datetime": "d/m/Y H:i",
17
+ "time": "H:i"
18
+ }
19
+ },
20
+ "flash": {
21
+ "create": {
22
+ "failure": {
23
+ "message": "Prosím opravte chyby zvýrazněné níže.",
24
+ "title": "Nastala chyba!"
25
+ },
26
+ "success": {
27
+ "message": "Položka byla vytvořena.",
28
+ "title": "Akce úspěšně dokončena!"
29
+ }
30
+ },
31
+ "destroy": {
32
+ "failure": {
33
+ "message": "Položku nebylo možné smazat.",
34
+ "title": "Nastala chyba!"
35
+ },
36
+ "success": {
37
+ "message": "Položka byla smazána.",
38
+ "title": "Akce úspěšně dokončena!"
39
+ }
40
+ },
41
+ "update": {
42
+ "failure": {
43
+ "message": "Prosím opravte chyby zvýrazněné níže.",
44
+ "title": "Nastala chyba!"
45
+ },
46
+ "success": {
47
+ "message": "Položka byla aktualizováná.",
48
+ "title": "Akce úspěšně dokončena!"
49
+ }
50
+ }
51
+ },
52
+ "form": {
53
+ "select": {
54
+ "prompt": "- Prosím vyberte -"
55
+ }
56
+ },
57
+ "format": {
58
+ "blank": "-"
59
+ },
60
+ "table": {
61
+ "headers": {
62
+ "id": "ID"
63
+ }
64
+ },
65
+ "titles": {
66
+ "edit": "Upravit položku",
67
+ "index": "Přehled",
68
+ "new": "Nová položka"
69
+ }
70
+ },
71
+ "trestle": {
72
+ "confirmation": {
73
+ "cancel": "Nemazat",
74
+ "delete": "Ano",
75
+ "title": "Jste si jisti?"
76
+ },
77
+ "dialog": {
78
+ "error": "Požadavek nemohl být dokončen."
79
+ },
80
+ "footer": "Poháněno systémem Trestle",
81
+ "helpers": {
82
+ "page_entries_info": {
83
+ "more_pages": {
84
+ "display_entries": "Zobrazeny položky <strong>%{first}</strong> až <strong>%{last}</strong> z celkem <b>%{total}</b>"
85
+ },
86
+ "one_page": {
87
+ "display_entries": {
88
+ "few": "Zobrazeny <strong>%{count}</strong> položky",
89
+ "one": "Zobrazena <strong>1</strong> položka",
90
+ "other": "Zobrazeno <strong>%{count}</strong> položek",
91
+ "zero": "Nezobrazeny žádné položky"
92
+ }
93
+ }
94
+ }
95
+ },
96
+ "onboarding": {
97
+ "no_admins": "Začněte přidáním souboru do <code>app/admin</code>.",
98
+ "no_form": "Pro přidání formuláře nadefinujte form blok, nebo vytvořte soubor <code>_form.html</code>.",
99
+ "no_template": "Pro přizpůsobení šablony vytvořte <code>%{path}</code>.",
100
+ "welcome": "Vítejte v administraci Trestle"
101
+ },
102
+ "title": "Administrace Trestle",
103
+ "ui": {
104
+ "toggle_navigation": "Přepnout navigaci",
105
+ "toggle_sidebar": "Přepnout boční panel"
106
+ },
107
+ "version": "Verze"
108
+ }
109
+ }
110
+ });
@@ -0,0 +1,116 @@
1
+ Trestle.i18n.store({
2
+ "de": {
3
+ "admin": {
4
+ "breadcrumbs": {
5
+ "home": "Home"
6
+ },
7
+ "buttons": {
8
+ "delete": "Löschen",
9
+ "edit": "Bearbeiten",
10
+ "new": "Neu",
11
+ "ok": "OK",
12
+ "save": "Speichern",
13
+ "show": "Details"
14
+ },
15
+ "datepicker": {
16
+ "formats": {
17
+ "date": "d.m.Y",
18
+ "datetime": "d.m.Y H:i",
19
+ "time": "H:i"
20
+ }
21
+ },
22
+ "flash": {
23
+ "create": {
24
+ "failure": {
25
+ "message": "Bitte korrigieren Sie die unten angezeigten Fehler.",
26
+ "title": "Warnung: %{model_name} nicht erstellt"
27
+ },
28
+ "success": {
29
+ "message": "%{model_name} wurde erfolgreich erstellt.",
30
+ "title": "Erfolgreich erstellt"
31
+ }
32
+ },
33
+ "destroy": {
34
+ "failure": {
35
+ "message": "%{model_name} konnte nicht gelöscht werden.",
36
+ "title": "Warnung: Nicht gelöscht"
37
+ },
38
+ "success": {
39
+ "message": "%{model_name} wurde erfolgreich gelöscht.",
40
+ "title": "Erfolgreich gelöscht"
41
+ }
42
+ },
43
+ "update": {
44
+ "failure": {
45
+ "message": "Bitte korrigieren Sie die unten angezeigten Fehler.",
46
+ "title": "Warnung: %{model_name} nicht gespeichert"
47
+ },
48
+ "success": {
49
+ "message": "%{model_name} wurde erfolgreich gespeichert.",
50
+ "title": "Erfolgreich bearbeitet"
51
+ }
52
+ }
53
+ },
54
+ "form": {
55
+ "select": {
56
+ "prompt": "- %{attribute_name} auswählen -"
57
+ }
58
+ },
59
+ "format": {
60
+ "blank": "n. a."
61
+ },
62
+ "table": {
63
+ "headers": {
64
+ "id": "ID"
65
+ }
66
+ },
67
+ "titles": {
68
+ "edit": "%{model_name} (bearbeiten)",
69
+ "index": "Liste von %{pluralized_model_name}",
70
+ "new": "%{model_name} (neu)"
71
+ }
72
+ },
73
+ "trestle": {
74
+ "confirmation": {
75
+ "cancel": "Abbrechen",
76
+ "delete": "Löschen",
77
+ "title": "Sind Sie sicher?"
78
+ },
79
+ "dialog": {
80
+ "error": "Fehler: Die Aktion konnte nicht erfolgreich ausgeführt werden."
81
+ },
82
+ "file": {
83
+ "browse": "Durchsuchen",
84
+ "choose_file": "Datei wählen..."
85
+ },
86
+ "footer": "Powered by Trestle",
87
+ "helpers": {
88
+ "page_entries_info": {
89
+ "more_pages": {
90
+ "display_entries": "%{entry_name} <strong>%{first}&nbsp;-&nbsp;%{last}</strong> von <b>%{total}</b>"
91
+ },
92
+ "one_page": {
93
+ "display_entries": {
94
+ "one": "<strong>1</strong> %{entry_name}",
95
+ "other": "<strong>%{count}</strong> %{entry_name}",
96
+ "zero": "Kein %{entry_name} vorhanden"
97
+ }
98
+ }
99
+ }
100
+ },
101
+ "onboarding": {
102
+ "no_admins": "Um zu beginnen, erstelle eine Trestle.resource in <code>app/admin</code>.",
103
+ "no_form": "Definiere einen form block oder erstelle ein Partial <code>_form.html</code>.",
104
+ "no_template": "Um dieses Tempalte anzupassen, erstelle <code>%{path}</code>.",
105
+ "welcome": "Willkommen bei Trestle"
106
+ },
107
+ "title": "Trestle Admin",
108
+ "ui": {
109
+ "toggle_dropdown": "Menü ein-/ausblenden",
110
+ "toggle_navigation": "Navigation ein-/ausblenden",
111
+ "toggle_sidebar": "Seitenleiste ein-/ausblenden"
112
+ },
113
+ "version": "Version"
114
+ }
115
+ }
116
+ });
@@ -0,0 +1,329 @@
1
+ Trestle.i18n.store({
2
+ "en": {
3
+ "admin": {
4
+ "breadcrumbs": {
5
+ "home": "Home"
6
+ },
7
+ "buttons": {
8
+ "delete": "Delete %{model_name}",
9
+ "edit": "Edit %{model_name}",
10
+ "new": "New %{model_name}",
11
+ "ok": "OK",
12
+ "save": "Save %{model_name}",
13
+ "show": "Show %{model_name}"
14
+ },
15
+ "datepicker": {
16
+ "formats": {
17
+ "date": "m/d/Y",
18
+ "datetime": "m/d/Y h:i K",
19
+ "time": "h:i K"
20
+ }
21
+ },
22
+ "flash": {
23
+ "create": {
24
+ "failure": {
25
+ "message": "Please correct the errors below.",
26
+ "title": "Warning!"
27
+ },
28
+ "success": {
29
+ "message": "The %{lowercase_model_name} was successfully created.",
30
+ "title": "Success!"
31
+ }
32
+ },
33
+ "destroy": {
34
+ "failure": {
35
+ "message": "Could not delete %{lowercase_model_name}.",
36
+ "title": "Warning!"
37
+ },
38
+ "success": {
39
+ "message": "The %{lowercase_model_name} was successfully deleted.",
40
+ "title": "Success!"
41
+ }
42
+ },
43
+ "update": {
44
+ "failure": {
45
+ "message": "Please correct the errors below.",
46
+ "title": "Warning!"
47
+ },
48
+ "success": {
49
+ "message": "The %{lowercase_model_name} was successfully updated.",
50
+ "title": "Success!"
51
+ }
52
+ }
53
+ },
54
+ "form": {
55
+ "select": {
56
+ "prompt": "- Select %{attribute_name} -"
57
+ }
58
+ },
59
+ "format": {
60
+ "blank": "None"
61
+ },
62
+ "table": {
63
+ "headers": {
64
+ "id": "ID"
65
+ }
66
+ },
67
+ "titles": {
68
+ "edit": "Editing %{model_name}",
69
+ "index": "Listing %{pluralized_model_name}",
70
+ "new": "New %{model_name}"
71
+ }
72
+ },
73
+ "date": {
74
+ "abbr_day_names": [
75
+ "Sun",
76
+ "Mon",
77
+ "Tue",
78
+ "Wed",
79
+ "Thu",
80
+ "Fri",
81
+ "Sat"
82
+ ],
83
+ "abbr_month_names": [
84
+ null,
85
+ "Jan",
86
+ "Feb",
87
+ "Mar",
88
+ "Apr",
89
+ "May",
90
+ "Jun",
91
+ "Jul",
92
+ "Aug",
93
+ "Sep",
94
+ "Oct",
95
+ "Nov",
96
+ "Dec"
97
+ ],
98
+ "day_names": [
99
+ "Sunday",
100
+ "Monday",
101
+ "Tuesday",
102
+ "Wednesday",
103
+ "Thursday",
104
+ "Friday",
105
+ "Saturday"
106
+ ],
107
+ "formats": {
108
+ "default": "%Y-%m-%d",
109
+ "long": "%B %d, %Y",
110
+ "short": "%b %d"
111
+ },
112
+ "month_names": [
113
+ null,
114
+ "January",
115
+ "February",
116
+ "March",
117
+ "April",
118
+ "May",
119
+ "June",
120
+ "July",
121
+ "August",
122
+ "September",
123
+ "October",
124
+ "November",
125
+ "December"
126
+ ],
127
+ "order": [
128
+ "year",
129
+ "month",
130
+ "day"
131
+ ]
132
+ },
133
+ "datetime": {
134
+ "distance_in_words": {
135
+ "about_x_hours": {
136
+ "one": "about 1 hour",
137
+ "other": "about %{count} hours"
138
+ },
139
+ "about_x_months": {
140
+ "one": "about 1 month",
141
+ "other": "about %{count} months"
142
+ },
143
+ "about_x_years": {
144
+ "one": "about 1 year",
145
+ "other": "about %{count} years"
146
+ },
147
+ "almost_x_years": {
148
+ "one": "almost 1 year",
149
+ "other": "almost %{count} years"
150
+ },
151
+ "half_a_minute": "half a minute",
152
+ "less_than_x_minutes": {
153
+ "one": "less than a minute",
154
+ "other": "less than %{count} minutes"
155
+ },
156
+ "less_than_x_seconds": {
157
+ "one": "less than 1 second",
158
+ "other": "less than %{count} seconds"
159
+ },
160
+ "over_x_years": {
161
+ "one": "over 1 year",
162
+ "other": "over %{count} years"
163
+ },
164
+ "x_days": {
165
+ "one": "1 day",
166
+ "other": "%{count} days"
167
+ },
168
+ "x_minutes": {
169
+ "one": "1 minute",
170
+ "other": "%{count} minutes"
171
+ },
172
+ "x_months": {
173
+ "one": "1 month",
174
+ "other": "%{count} months"
175
+ },
176
+ "x_seconds": {
177
+ "one": "1 second",
178
+ "other": "%{count} seconds"
179
+ }
180
+ },
181
+ "prompts": {
182
+ "day": "Day",
183
+ "hour": "Hour",
184
+ "minute": "Minute",
185
+ "month": "Month",
186
+ "second": "Seconds",
187
+ "year": "Year"
188
+ }
189
+ },
190
+ "helpers": {
191
+ "select": {
192
+ "prompt": "Please select"
193
+ },
194
+ "submit": {
195
+ "create": "Create %{model}",
196
+ "submit": "Save %{model}",
197
+ "update": "Update %{model}"
198
+ }
199
+ },
200
+ "number": {
201
+ "currency": {
202
+ "format": {
203
+ "delimiter": ",",
204
+ "format": "%u%n",
205
+ "negative_format": "-%u%n",
206
+ "precision": 2,
207
+ "separator": ".",
208
+ "significant": false,
209
+ "strip_insignificant_zeros": false,
210
+ "unit": "$"
211
+ }
212
+ },
213
+ "format": {
214
+ "delimiter": ",",
215
+ "precision": 3,
216
+ "round_mode": "default",
217
+ "separator": ".",
218
+ "significant": false,
219
+ "strip_insignificant_zeros": false
220
+ },
221
+ "human": {
222
+ "decimal_units": {
223
+ "format": "%n %u",
224
+ "units": {
225
+ "billion": "Billion",
226
+ "million": "Million",
227
+ "quadrillion": "Quadrillion",
228
+ "thousand": "Thousand",
229
+ "trillion": "Trillion",
230
+ "unit": ""
231
+ }
232
+ },
233
+ "format": {
234
+ "delimiter": "",
235
+ "precision": 3,
236
+ "significant": true,
237
+ "strip_insignificant_zeros": true
238
+ },
239
+ "storage_units": {
240
+ "format": "%n %u",
241
+ "units": {
242
+ "byte": {
243
+ "one": "Byte",
244
+ "other": "Bytes"
245
+ },
246
+ "eb": "EB",
247
+ "gb": "GB",
248
+ "kb": "KB",
249
+ "mb": "MB",
250
+ "pb": "PB",
251
+ "tb": "TB",
252
+ "zb": "ZB"
253
+ }
254
+ }
255
+ },
256
+ "nth": {
257
+ },
258
+ "percentage": {
259
+ "format": {
260
+ "delimiter": "",
261
+ "format": "%n%"
262
+ }
263
+ },
264
+ "precision": {
265
+ "format": {
266
+ "delimiter": ""
267
+ }
268
+ }
269
+ },
270
+ "support": {
271
+ "array": {
272
+ "last_word_connector": ", and ",
273
+ "two_words_connector": " and ",
274
+ "words_connector": ", "
275
+ }
276
+ },
277
+ "time": {
278
+ "am": "am",
279
+ "formats": {
280
+ "default": "%a, %d %b %Y %H:%M:%S %z",
281
+ "long": "%B %d, %Y %H:%M",
282
+ "short": "%d %b %H:%M"
283
+ },
284
+ "pm": "pm"
285
+ },
286
+ "trestle": {
287
+ "confirmation": {
288
+ "cancel": "Cancel",
289
+ "delete": "Delete",
290
+ "title": "Are you sure?"
291
+ },
292
+ "dialog": {
293
+ "error": "The request could not be completed."
294
+ },
295
+ "file": {
296
+ "browse": "Browse",
297
+ "choose_file": "Choose file..."
298
+ },
299
+ "footer": "Powered by Trestle",
300
+ "helpers": {
301
+ "page_entries_info": {
302
+ "more_pages": {
303
+ "display_entries": "Displaying %{entry_name} <strong>%{first}&nbsp;-&nbsp;%{last}</strong> of <b>%{total}</b>"
304
+ },
305
+ "one_page": {
306
+ "display_entries": {
307
+ "one": "Displaying <strong>1</strong> %{entry_name}",
308
+ "other": "Displaying <strong>all %{count}</strong> %{entry_name}",
309
+ "zero": "No %{entry_name} found"
310
+ }
311
+ }
312
+ }
313
+ },
314
+ "onboarding": {
315
+ "no_admins": "To begin, please create an admin within <code>app/admin</code>.",
316
+ "no_form": "Please define a form block or create a <code>_form.html</code> partial.",
317
+ "no_template": "To customize this template, please create <code>%{path}</code>.",
318
+ "welcome": "Welcome to Trestle"
319
+ },
320
+ "title": "Trestle Admin",
321
+ "ui": {
322
+ "toggle_dropdown": "Toggle dropdown",
323
+ "toggle_navigation": "Toggle navigation",
324
+ "toggle_sidebar": "Toggle sidebar"
325
+ },
326
+ "version": "Version"
327
+ }
328
+ }
329
+ });
@@ -0,0 +1,109 @@
1
+ Trestle.i18n.store({
2
+ "es-MX": {
3
+ "admin": {
4
+ "breadcrumbs": {
5
+ "home": "Inicio"
6
+ },
7
+ "buttons": {
8
+ "delete": "Borrar %{model_name}",
9
+ "new": "Nuevo %{model_name}",
10
+ "ok": "Aceptar",
11
+ "save": "Guardar %{model_name}"
12
+ },
13
+ "datepicker": {
14
+ "formats": {
15
+ "date": "m/d/Y",
16
+ "datetime": "m/d/Y h:i K",
17
+ "time": "h:i K"
18
+ }
19
+ },
20
+ "flash": {
21
+ "create": {
22
+ "failure": {
23
+ "message": "Por favor corrige los siguientes errores.",
24
+ "title": "¡Advertencia!"
25
+ },
26
+ "success": {
27
+ "message": "El %{lowercase_model_name} fue creado exitosamente.",
28
+ "title": "¡Exitosamente!"
29
+ }
30
+ },
31
+ "destroy": {
32
+ "failure": {
33
+ "message": "%{lowercase_model_name} no pudo ser borrado.",
34
+ "title": "¡Advertencia!"
35
+ },
36
+ "success": {
37
+ "message": "El %{lowercase_model_name} fue borrado exitosamente.",
38
+ "title": "¡Exitosamente!"
39
+ }
40
+ },
41
+ "update": {
42
+ "failure": {
43
+ "message": "Por favor corrige los siguientes errores.",
44
+ "title": "¡Advertencia!"
45
+ },
46
+ "success": {
47
+ "message": "El %{lowercase_model_name} se actualizo exitosamente.",
48
+ "title": "¡Exitosamente!"
49
+ }
50
+ }
51
+ },
52
+ "form": {
53
+ "select": {
54
+ "prompt": "- Selecciona %{attribute_name} -"
55
+ }
56
+ },
57
+ "format": {
58
+ "blank": "Ninguno"
59
+ },
60
+ "table": {
61
+ "headers": {
62
+ "id": "ID"
63
+ }
64
+ },
65
+ "titles": {
66
+ "edit": "Editando %{model_name}",
67
+ "index": "Listado de %{pluralized_model_name}",
68
+ "new": "Nuevo %{model_name}"
69
+ }
70
+ },
71
+ "trestle": {
72
+ "confirmation": {
73
+ "cancel": "Cancelar",
74
+ "delete": "Borrar",
75
+ "title": "¿Estás seguro?"
76
+ },
77
+ "dialog": {
78
+ "error": "La solicitud no pudo ser completada."
79
+ },
80
+ "footer": "Impulsado por Trestle",
81
+ "helpers": {
82
+ "page_entries_info": {
83
+ "more_pages": {
84
+ "display_entries": "Mostrando %{entry_name} <strong>%{first}&nbsp;-&nbsp;%{last}</strong> of <b>%{total}</b>"
85
+ },
86
+ "one_page": {
87
+ "display_entries": {
88
+ "one": "Mostrando <strong>1</strong> %{entry_name}",
89
+ "other": "Mostrando <strong>total %{count}</strong> %{entry_name}",
90
+ "zero": "No %{entry_name} encontrado"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "onboarding": {
96
+ "no_admins": "Para poder ingresar, por favor crea una cuenta de administrador en <code>app/admin</code>.",
97
+ "no_form": "Por favor define una forma de bloque o crea un parcial <code>_form.html</code>.",
98
+ "no_template": "Para personalizar esta plantilla, por favor crea en <code>%{path}</code>.",
99
+ "welcome": "Bienvenido a Trestle"
100
+ },
101
+ "title": "Trestle Administrador",
102
+ "ui": {
103
+ "toggle_navigation": "Cambiar (modo de) navegación",
104
+ "toggle_sidebar": "Alternar la barra lateral"
105
+ },
106
+ "version": "Version"
107
+ }
108
+ }
109
+ });