decidim-admin 0.24.0 → 0.25.0.rc1

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

Potentially problematic release.


This version of decidim-admin might be problematic. Click here for more details.

Files changed (283) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/admin/content_block/show.erb +2 -2
  3. data/app/commands/decidim/admin/block_user.rb +6 -0
  4. data/app/commands/decidim/admin/create_attachment.rb +2 -1
  5. data/app/commands/decidim/admin/hide_resource.rb +1 -0
  6. data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +1 -1
  7. data/app/commands/decidim/admin/update_attachment.rb +5 -1
  8. data/app/commands/decidim/admin/update_content_block.rb +1 -1
  9. data/app/commands/decidim/admin/update_external_domain_whitelist.rb +32 -0
  10. data/app/commands/decidim/admin/update_organization.rb +2 -1
  11. data/app/commands/decidim/admin/update_organization_appearance.rb +4 -14
  12. data/app/controllers/concerns/decidim/admin/filterable.rb +1 -3
  13. data/app/controllers/concerns/decidim/participatory_space_private_users/admin/filterable.rb +34 -0
  14. data/app/controllers/decidim/admin/concerns/has_attachments.rb +1 -4
  15. data/app/controllers/decidim/admin/concerns/has_private_users.rb +6 -3
  16. data/app/controllers/decidim/admin/imports_controller.rb +1 -0
  17. data/app/controllers/decidim/admin/moderated_users_controller.rb +6 -2
  18. data/app/controllers/decidim/admin/organization_controller.rb +11 -1
  19. data/app/controllers/decidim/admin/organization_external_domain_whitelist_controller.rb +38 -0
  20. data/app/controllers/decidim/admin/users_controller.rb +7 -1
  21. data/app/forms/decidim/admin/external_domain_form.rb +19 -0
  22. data/app/forms/decidim/admin/import_form.rb +1 -0
  23. data/app/forms/decidim/admin/organization_appearance_form.rb +7 -7
  24. data/app/forms/decidim/admin/organization_external_domain_whitelist_form.rb +23 -0
  25. data/app/forms/decidim/admin/organization_form.rb +1 -0
  26. data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +2 -0
  27. data/app/forms/decidim/admin/user_group_csv_verification_form.rb +2 -0
  28. data/app/helpers/decidim/admin/filterable_helper.rb +1 -1
  29. data/app/helpers/decidim/admin/menu_helper.rb +7 -7
  30. data/app/helpers/decidim/admin/uploader_image_dimensions_helper.rb +2 -1
  31. data/app/jobs/decidim/admin/expire_impersonation_job.rb +1 -2
  32. data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +1 -1
  33. data/app/packs/entrypoints/decidim_admin.js +43 -0
  34. data/app/packs/entrypoints/decidim_admin.scss +1 -0
  35. data/app/packs/src/decidim/admin/application.js +68 -0
  36. data/app/packs/src/decidim/admin/auto_buttons_by_position.component.js +37 -0
  37. data/app/packs/src/decidim/admin/auto_label_by_position.component.js +28 -0
  38. data/app/packs/src/decidim/admin/autocomplete.component.js +146 -0
  39. data/app/{frontend/components/autocomplete.component.test.tsx → packs/src/decidim/admin/autocomplete.component.test.js} +1 -2
  40. data/app/packs/src/decidim/admin/budget_rule_toggler.component.js +50 -0
  41. data/app/{assets/javascripts → packs/src}/decidim/admin/choose_language.js +0 -0
  42. data/app/packs/src/decidim/admin/draggable-list.js +30 -0
  43. data/app/packs/src/decidim/admin/dynamic_fields.component.js +230 -0
  44. data/app/packs/src/decidim/admin/external_domain_whitelist.js +100 -0
  45. data/app/packs/src/decidim/admin/field_dependent_inputs.component.js +37 -0
  46. data/app/{assets/javascripts/decidim/admin/form.js.es6 → packs/src/decidim/admin/form.js} +6 -9
  47. data/app/{assets/javascripts/decidim/admin/import_guidance.js.es6 → packs/src/decidim/admin/import_guidance.js} +2 -3
  48. data/app/{assets/javascripts/decidim/admin/managed_users.js.es6 → packs/src/decidim/admin/managed_users.js} +4 -4
  49. data/app/packs/src/decidim/admin/moderations.js +20 -0
  50. data/app/{assets/javascripts/decidim/admin/newsletters.js.es6 → packs/src/decidim/admin/newsletters.js} +0 -0
  51. data/app/{assets/javascripts/decidim/admin/officializations.js.es6 → packs/src/decidim/admin/officializations.js} +0 -0
  52. data/app/{assets/javascripts/decidim/admin/proposal_infinite_edit.js.es6 → packs/src/decidim/admin/proposal_infinite_edit.js} +0 -0
  53. data/app/{assets/javascripts/decidim/admin/resources_permissions.js.es6 → packs/src/decidim/admin/resources_permissions.js} +3 -5
  54. data/app/packs/src/decidim/admin/scope_picker_enabler.component.js +12 -0
  55. data/app/packs/src/decidim/admin/sort_list.component.js +31 -0
  56. data/app/packs/src/decidim/admin/sortable.js +21 -0
  57. data/app/packs/src/decidim/admin/subform_multi_toggler.component.js +38 -0
  58. data/app/packs/src/decidim/admin/subform_toggler.component.js +38 -0
  59. data/app/{assets/javascripts/decidim/admin/tab_focus.js.es6 → packs/src/decidim/admin/tab_focus.js} +0 -2
  60. data/app/packs/src/decidim/admin/toggle_nav.js +14 -0
  61. data/app/{assets/javascripts/decidim/admin/welcome_notification.js.es6 → packs/src/decidim/admin/welcome_notification.js} +2 -2
  62. data/app/packs/stylesheets/decidim/admin/_decidim.scss +24 -0
  63. data/app/{assets → packs}/stylesheets/decidim/admin/_variables.scss +0 -0
  64. data/app/packs/stylesheets/decidim/admin/application.scss +22 -0
  65. data/app/{assets → packs}/stylesheets/decidim/admin/bundle.scss +0 -0
  66. data/app/{assets → packs}/stylesheets/decidim/admin/components/_accordion.scss +0 -0
  67. data/app/{assets → packs}/stylesheets/decidim/admin/components/_autocomplete_select.component.scss +0 -0
  68. data/app/{assets → packs}/stylesheets/decidim/admin/components/_dropdown-menu.scss +0 -0
  69. data/app/{assets → packs}/stylesheets/decidim/admin/components/_sortable.scss +0 -0
  70. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_action-icon.scss +0 -0
  71. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_block_user.scss +0 -0
  72. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_cards.scss +0 -0
  73. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_categories.scss +0 -0
  74. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_dropdown_inverted.scss +0 -0
  75. data/app/packs/stylesheets/decidim/admin/extra/_editor.scss +1 -0
  76. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_email_preview.scss +0 -0
  77. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_label-required.scss +0 -0
  78. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_login.scss +0 -0
  79. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_logs.scss +0 -0
  80. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_newsletter-templates-gallery.scss +0 -0
  81. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_organization-appearance.scss +0 -0
  82. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_quill.scss +0 -0
  83. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_select_multiple.scss +0 -0
  84. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_show_email.scss +0 -0
  85. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_sort.scss +0 -0
  86. data/app/{assets → packs}/stylesheets/decidim/admin/extra/_title_bar.scss +0 -0
  87. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_action-icon.scss +1 -1
  88. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_agenda.scss +0 -0
  89. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_buttons.scss +0 -0
  90. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_callouts.scss +0 -0
  91. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_card-grid.scss +0 -0
  92. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_cards.scss +1 -1
  93. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_char-counter.scss +0 -0
  94. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_component-counter.scss +0 -0
  95. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_draggable-list.scss +2 -2
  96. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_dropdown.scss +0 -0
  97. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_filters.scss +0 -0
  98. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_forms.scss +0 -0
  99. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_icons.scss +0 -0
  100. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_import_result.scss +0 -0
  101. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_layout.scss +0 -0
  102. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_loading-spinner.scss +0 -0
  103. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_main-nav.scss +0 -0
  104. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_moderations.scss +0 -0
  105. data/app/packs/stylesheets/decidim/admin/modules/_modules.scss +43 -0
  106. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_pics.scss +0 -0
  107. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_process-header.scss +0 -0
  108. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_reveal.scss +0 -0
  109. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_secondary-nav.scss +0 -0
  110. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_table-list.scss +13 -0
  111. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_tabs.scss +0 -0
  112. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_title-bar.scss +0 -0
  113. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_typography.scss +0 -0
  114. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_user-login.scss +0 -0
  115. data/app/{assets → packs}/stylesheets/decidim/admin/modules/_users_statistics.scss +0 -0
  116. data/app/{assets → packs}/stylesheets/decidim/admin/plugins/_foundation-datepicker.scss +0 -0
  117. data/{vendor/assets/stylesheets → app/packs/stylesheets/decidim/admin}/plugins/jquery.auto-complete.css +0 -0
  118. data/app/{assets → packs}/stylesheets/decidim/admin/user_moderations.scss +0 -0
  119. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_flex.scss +2 -2
  120. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_helpers.scss +0 -0
  121. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_keyframes.scss +0 -0
  122. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_mixins.scss +30 -3
  123. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_settings.scss +11 -3
  124. data/app/{assets → packs}/stylesheets/decidim/admin/utils/_toggle-expand.scss +0 -0
  125. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/_constants.scss +1 -1
  126. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/_math.scss +0 -0
  127. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +14 -0
  128. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +16 -0
  129. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +36 -0
  130. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +46 -0
  131. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +17 -0
  132. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_cot.scss +6 -3
  133. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_csc.scss +6 -3
  134. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_exp.scss +10 -6
  135. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +21 -0
  136. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +25 -0
  137. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +20 -0
  138. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +39 -0
  139. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +34 -0
  140. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_sec.scss +6 -3
  141. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_sin.scss +4 -3
  142. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +21 -0
  143. data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss +6 -3
  144. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +6 -0
  145. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +6 -0
  146. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +11 -0
  147. data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +19 -0
  148. data/app/presenters/decidim/admin/simple_menu_presenter.rb +11 -0
  149. data/app/queries/decidim/admin/newsletter_recipients.rb +3 -1
  150. data/app/views/decidim/admin/area_types/index.html.erb +2 -2
  151. data/app/views/decidim/admin/areas/index.html.erb +1 -1
  152. data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
  153. data/app/views/decidim/admin/categories/index.html.erb +1 -1
  154. data/app/views/decidim/admin/components/_form.html.erb +0 -2
  155. data/app/views/decidim/admin/impersonations/_form.html.erb +3 -1
  156. data/app/views/decidim/admin/imports/new.html.erb +1 -9
  157. data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
  158. data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +1 -3
  159. data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
  160. data/app/views/decidim/admin/officializations/index.html.erb +3 -3
  161. data/app/views/decidim/admin/organization/_form.html.erb +6 -2
  162. data/app/views/decidim/admin/organization_appearance/_form.html.erb +0 -2
  163. data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +20 -4
  164. data/app/views/decidim/admin/organization_appearance/form/_minimap.html.erb +7 -7
  165. data/app/views/decidim/admin/organization_external_domain_whitelist/_external_domain.html.erb +31 -0
  166. data/app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb +37 -0
  167. data/app/views/decidim/admin/organization_external_domain_whitelist/edit.html.erb +6 -0
  168. data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +4 -4
  169. data/app/views/decidim/admin/resource_permissions/edit.html.erb +0 -2
  170. data/app/views/decidim/admin/scope_types/index.html.erb +3 -3
  171. data/app/views/decidim/admin/scopes/index.html.erb +1 -1
  172. data/app/views/decidim/admin/shared/_gallery.html.erb +1 -1
  173. data/app/views/decidim/admin/static_pages/_form.html.erb +0 -1
  174. data/app/views/decidim/admin/static_pages/_topic.html.erb +3 -3
  175. data/app/views/decidim/admin/user_groups/index.html.erb +2 -2
  176. data/app/views/decidim/admin/users/index.html.erb +10 -9
  177. data/app/views/layouts/decidim/admin/_application.html.erb +2 -1
  178. data/app/views/layouts/decidim/admin/_header.html.erb +2 -3
  179. data/app/views/layouts/decidim/admin/_js_configuration.html.erb +27 -0
  180. data/app/views/layouts/decidim/admin/_title_bar.html.erb +1 -1
  181. data/app/views/layouts/decidim/admin/global_moderations.html.erb +1 -1
  182. data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
  183. data/app/views/layouts/decidim/admin/pages.html.erb +2 -2
  184. data/app/views/layouts/decidim/admin/settings.html.erb +1 -1
  185. data/app/views/layouts/decidim/admin/users.html.erb +2 -52
  186. data/config/assets.rb +8 -0
  187. data/config/locales/ar.yml +0 -4
  188. data/config/locales/bg.yml +0 -3
  189. data/config/locales/ca.yml +37 -6
  190. data/config/locales/cs.yml +52 -9
  191. data/config/locales/de.yml +18 -6
  192. data/config/locales/el.yml +0 -4
  193. data/config/locales/en.yml +59 -16
  194. data/config/locales/eo.yml +0 -1
  195. data/config/locales/es-MX.yml +19 -6
  196. data/config/locales/es-PY.yml +19 -6
  197. data/config/locales/es.yml +19 -6
  198. data/config/locales/eu.yml +0 -4
  199. data/config/locales/fi-plain.yml +49 -6
  200. data/config/locales/fi.yml +49 -6
  201. data/config/locales/fr-CA.yml +53 -6
  202. data/config/locales/fr-LU.yml +1029 -0
  203. data/config/locales/fr.yml +53 -6
  204. data/config/locales/gl.yml +77 -6
  205. data/config/locales/hu.yml +70 -4
  206. data/config/locales/id-ID.yml +0 -4
  207. data/config/locales/is-IS.yml +0 -4
  208. data/config/locales/it.yml +161 -10
  209. data/config/locales/ja.yml +160 -5
  210. data/config/locales/lb-LU.yml +1 -0
  211. data/config/locales/lv.yml +0 -4
  212. data/config/locales/nl.yml +20 -6
  213. data/config/locales/no.yml +8 -6
  214. data/config/locales/pl.yml +45 -24
  215. data/config/locales/pt-BR.yml +346 -4
  216. data/config/locales/pt.yml +6 -4
  217. data/config/locales/ro-RO.yml +325 -121
  218. data/config/locales/ru.yml +0 -4
  219. data/config/locales/sk.yml +0 -4
  220. data/config/locales/sl.yml +0 -4
  221. data/config/locales/sr-CS.yml +0 -4
  222. data/config/locales/sv.yml +144 -2
  223. data/config/locales/tr-TR.yml +0 -4
  224. data/config/locales/uk.yml +0 -2
  225. data/config/locales/zh-CN.yml +0 -4
  226. data/config/routes.rb +2 -0
  227. data/lib/decidim/admin/engine.rb +210 -137
  228. data/lib/decidim/admin/import/readers.rb +3 -3
  229. data/lib/decidim/admin/import/readers/xlsx.rb +25 -0
  230. data/lib/decidim/admin/test.rb +1 -0
  231. data/lib/decidim/admin/test/filters_participatory_space_users_examples.rb +73 -0
  232. data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +1 -1
  233. data/lib/decidim/admin/test/manage_attachments_examples.rb +1 -1
  234. data/lib/decidim/admin/version.rb +1 -1
  235. metadata +143 -181
  236. data/app/assets/config/decidim_admin_manifest.js +0 -8
  237. data/app/assets/javascripts/decidim/admin/application.js.es6 +0 -77
  238. data/app/assets/javascripts/decidim/admin/auto_buttons_by_position.component.js.es6 +0 -42
  239. data/app/assets/javascripts/decidim/admin/auto_label_by_position.component.js.es6 +0 -33
  240. data/app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6 +0 -55
  241. data/app/assets/javascripts/decidim/admin/bundle.js +0 -34
  242. data/app/assets/javascripts/decidim/admin/bundle.js.map +0 -1
  243. data/app/assets/javascripts/decidim/admin/draggable-list.js.es6 +0 -30
  244. data/app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6 +0 -233
  245. data/app/assets/javascripts/decidim/admin/field_dependent_inputs.component.js.es6 +0 -39
  246. data/app/assets/javascripts/decidim/admin/moderations.js.es6 +0 -24
  247. data/app/assets/javascripts/decidim/admin/scope_picker_enabler.component.js.es6 +0 -14
  248. data/app/assets/javascripts/decidim/admin/sort_list.component.js.es6 +0 -35
  249. data/app/assets/javascripts/decidim/admin/sortable.js.es6 +0 -22
  250. data/app/assets/javascripts/decidim/admin/subform_multi_toggler.component.js.es6 +0 -43
  251. data/app/assets/javascripts/decidim/admin/subform_toggler.component.js.es6 +0 -42
  252. data/app/assets/javascripts/decidim/admin/toggle_nav.js.es6 +0 -17
  253. data/app/assets/javascripts/decidim/admin/user_moderations.js +0 -2
  254. data/app/assets/stylesheets/decidim/admin/_decidim.scss +0 -20
  255. data/app/assets/stylesheets/decidim/admin/application.scss.erb +0 -6
  256. data/app/assets/stylesheets/decidim/admin/extra/_editor.scss +0 -1
  257. data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +0 -43
  258. data/app/assets/stylesheets/decidim/admin/utils/_fontface.scss +0 -29
  259. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +0 -12
  260. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +0 -12
  261. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +0 -28
  262. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +0 -37
  263. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +0 -13
  264. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +0 -18
  265. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +0 -21
  266. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +0 -17
  267. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +0 -34
  268. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +0 -28
  269. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +0 -16
  270. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +0 -4
  271. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +0 -4
  272. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +0 -8
  273. data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +0 -13
  274. data/app/frontend/components/autocomplete.component.tsx +0 -198
  275. data/app/frontend/entry.ts +0 -17
  276. data/app/frontend/entry_test.ts +0 -4
  277. data/app/helpers/decidim/admin/sidebar_menu_helper.rb +0 -13
  278. data/config/locales/ja-JP.yml +0 -855
  279. data/lib/decidim/admin/import/readers/xls.rb +0 -25
  280. data/vendor/assets/javascripts/html.sortable.js +0 -691
  281. data/vendor/assets/javascripts/jquery.auto-complete.js +0 -171
  282. data/vendor/assets/javascripts/jquery.serializejson.js +0 -344
  283. data/vendor/assets/javascripts/moment.min.js +0 -1
@@ -1,55 +1,5 @@
1
- <% content_for :secondary_nav do %>
2
- <div class="secondary-nav">
3
- <div class="secondary-nav__title">
4
- <%= t ".title" %>
5
- </div>
6
- <ul>
7
- <% if allowed_to? :read, :admin_user %>
8
- <li <% if is_active_link?(decidim_admin.users_path) %> class="is-active" <% end %>>
9
- <%= link_to t("menu.admins", scope: "decidim.admin"), decidim_admin.users_path %>
10
- </li>
11
- <% end %>
12
- <% if current_organization.user_groups_enabled? && allowed_to?(:index, :user_group) %>
13
- <li <% if is_active_link?(decidim_admin.user_groups_path) %> class="is-active" <% end %>>
14
- <%= link_to t("menu.user_groups", scope: "decidim.admin"), decidim_admin.user_groups_path %>
15
- </li>
16
- <% end %>
17
- <% if allowed_to? :index, :officialization %>
18
- <li <% if is_active_link?(decidim_admin.officializations_path) %> class="is-active" <% end %>>
19
- <%= link_to t("menu.participants", scope: "decidim.admin"), decidim_admin.officializations_path %>
20
- </li>
21
- <% end %>
22
- <% if allowed_to? :index, :impersonatable_user %>
23
- <li <% if is_active_link?(decidim_admin.impersonatable_users_path) %> class="is-active" <% end %>>
24
- <%= link_to t("menu.impersonations", scope: "decidim.admin"), decidim_admin.impersonatable_users_path %>
25
- <ul>
26
- <li <% if is_active_link?(decidim_admin.conflicts_path) %> class="is-active" <% end %>>
27
- <%= %>
28
- <%= link_to link_to t("title", scope: "decidim.admin.conflicts"), decidim_admin.conflicts_path %>
29
- </li>
30
- </ul>
31
- </li>
32
- <% end %>
33
- <% if allowed_to? :index, :moderate_users %>
34
- <li <% if is_active_link?(decidim_admin.moderated_users_path) %> class="is-active" <% end %>>
35
- <%= link_to t("menu.reported_users", scope: "decidim.admin"), decidim_admin.moderated_users_path %>
36
- </li>
37
- <% end %>
38
- <li <% if is_active_link?(decidim_admin.authorization_workflows_path) %> class="is-active" <% end %>>
39
- <%= link_to t("menu.authorization_workflows", scope: "decidim.admin"), decidim_admin.authorization_workflows_path %>
40
- <ul>
41
- <% Decidim::Verifications.admin_workflows.each do |manifest| %>
42
- <% next unless current_organization.available_authorizations.include?(manifest.name.to_s) %>
43
- <% workflow = Decidim::Verifications::Adapter.new(manifest) %>
44
-
45
- <li <% if is_active_link?(workflow.admin_root_path) %> class="is-active" <% end %>>
46
- <%= link_to workflow.fullname, workflow.admin_root_path %>
47
- </li>
48
- <% end %>
49
- </ul>
50
- </li>
51
- </ul>
52
- </div>
1
+ <% content_for :sidebar_menu_nav do %>
2
+ <%= sidebar_menu(:admin_user_menu).render(title: t(".title") ) %>
53
3
  <% end %>
54
4
 
55
5
  <%= render "layouts/decidim/admin/application" do %>
data/config/assets.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ base_path = File.expand_path("..", __dir__)
4
+
5
+ Decidim::Webpacker.register_path("#{base_path}/app/packs")
6
+ Decidim::Webpacker.register_entrypoints(
7
+ decidim_admin: "#{base_path}/app/packs/entrypoints/decidim_admin.js"
8
+ )
@@ -23,7 +23,6 @@ ar:
23
23
  component:
24
24
  name: اسم
25
25
  published_at: نشرت في
26
- weight: وزن
27
26
  id: هوية شخصية
28
27
  newsletter:
29
28
  body: المحتوى
@@ -90,12 +89,10 @@ ar:
90
89
  show_in_footer: تظهر في تذييل الصفحة
91
90
  slug: سبيكة العنوان الشبكي
92
91
  title: العنوان
93
- weight: وزن
94
92
  static_page_topic:
95
93
  description: وصف
96
94
  show_in_footer: تظهر في تذييل الصفحة
97
95
  title: العنوان
98
- weight: وزن
99
96
  user_group_csv_verification:
100
97
  file: ملف
101
98
  errors:
@@ -125,7 +122,6 @@ ar:
125
122
  actions:
126
123
  add: إضافة
127
124
  browse: تصفح
128
- export: تصدير
129
125
  manage: تدبير
130
126
  new: جديد %{name}
131
127
  per_page: في كل صفحة
@@ -24,7 +24,6 @@ bg:
24
24
  component:
25
25
  name: Име
26
26
  published_at: Публикувано на
27
- weight: Тегло
28
27
  id: ID
29
28
  newsletter:
30
29
  body: Тяло
@@ -97,12 +96,10 @@ bg:
97
96
  show_in_footer: Покажи в долния колонтитул
98
97
  slug: Съкратен URL
99
98
  title: Заглавие
100
- weight: Тегло
101
99
  static_page_topic:
102
100
  description: Описание
103
101
  show_in_footer: Покажи в долния колонтитул
104
102
  title: Заглавие
105
- weight: Тегло
106
103
  user_group_csv_verification:
107
104
  file: Файл
108
105
  errors:
@@ -24,7 +24,7 @@ ca:
24
24
  component:
25
25
  name: Nom
26
26
  published_at: Publicat el
27
- weight: Pes
27
+ weight: Ordre de posició
28
28
  id: ID
29
29
  import:
30
30
  user_group_id: Importar com
@@ -32,6 +32,7 @@ ca:
32
32
  body: Cos
33
33
  subject: Assumpte
34
34
  organization:
35
+ admin_terms_of_use_body: Cos del text de condicions d'ús per als administradors
35
36
  alert_color: Alerta
36
37
  available_authorizations: Autoritzacions disponibles
37
38
  badges_enabled: Habilitar les ensenyes
@@ -42,6 +43,7 @@ ca:
42
43
  default_locale: Idioma per defecte
43
44
  description: Descripció
44
45
  enable_omnipresent_banner: Mostrar el banner omnipresent
46
+ enable_participatory_space_filters: Habilitar els filtres a l'espai de participació
45
47
  facebook_handler: Nom d'usuari de Facebook
46
48
  favicon: Icona
47
49
  force_authentication: Forçar autenticació
@@ -111,12 +113,12 @@ ca:
111
113
  show_in_footer: Mostra al peu de pàgina
112
114
  slug: Nom curt d'URL
113
115
  title: Títol
114
- weight: Pes
116
+ weight: Ordre de posició
115
117
  static_page_topic:
116
118
  description: Descripció
117
119
  show_in_footer: Mostra al peu de pàgina
118
120
  title: Títol
119
- weight: Pes
121
+ weight: Ordre de posició
120
122
  user_group_csv_verification:
121
123
  file: Fitxer
122
124
  errors:
@@ -156,7 +158,6 @@ ca:
156
158
  browse: Explorar
157
159
  category:
158
160
  new: Nova categoria
159
- export: Exporta
160
161
  import: Importar
161
162
  manage: Gestionar
162
163
  new: Nou %{name}
@@ -335,6 +336,12 @@ ca:
335
336
  show:
336
337
  view_more_logs: Veure més registres
337
338
  welcome: Benvinguda al tauler d'administració de Decidim.
339
+ domain_whitelist:
340
+ form:
341
+ domain_too_short: El domini és massa curt
342
+ update:
343
+ error: Hi ha hagut un error en incloure el domini en la llista blanca
344
+ success: Hem actualitzat correctament la llista blanca de dominis
338
345
  exports:
339
346
  export_as: "%{name} com a %{export_format}"
340
347
  formats:
@@ -355,6 +362,17 @@ ca:
355
362
  values:
356
363
  'false': Oficialitzada
357
364
  'true': No oficialitzada
365
+ participatory_space_private_users:
366
+ user_invitation_accepted_at_not_null:
367
+ label: Invitació acceptada
368
+ values:
369
+ 'false': No acceptada
370
+ 'true': Acceptada
371
+ user_invitation_sent_at_not_null:
372
+ label: S'ha enviat la invitació
373
+ values:
374
+ 'false': No enviada
375
+ 'true': Enviada
358
376
  private_space_eq:
359
377
  label: Privat
360
378
  values:
@@ -372,13 +390,14 @@ ca:
372
390
  name_or_nickname_or_email_cont: Buscar %{collection} per correu electrònic, nom o àlies.
373
391
  reported_id_string_or_reported_content_cont: Cercar %{collection} per id o contingut reportable.
374
392
  title_cont: Buscar %{collection} per títol.
393
+ user_name_or_user_email_cont: Cerca %{collection} per nom o correu electrònic.
375
394
  state_eq:
376
395
  label: Estat
377
396
  forms:
378
397
  file_help:
379
398
  import:
380
399
  explanation: 'Instruccions per a l''arxiu:'
381
- message_1: Estan suportats els arxius CSV, JSON i Excel (.xls)
400
+ message_1: Estan suportats els arxius CSV, JSON i Excel (.xlsx)
382
401
  message_2: Pels arxius CSV, el separador entre columnes ha de ser un punt i coma (";")
383
402
  help_sections:
384
403
  error: S'ha produït un error en actualitzar les seccions d'ajuda
@@ -430,7 +449,7 @@ ca:
430
449
  accepted_mime_types:
431
450
  csv: csv
432
451
  json: json
433
- xls: xls
452
+ xlsx: xlsx
434
453
  actions:
435
454
  back: Tornar
436
455
  file_legend: Afegir un arxiu d'importació que serà processat.
@@ -456,6 +475,7 @@ ca:
456
475
  areas: Àrees
457
476
  configuration: Configuració
458
477
  dashboard: Tauler de control
478
+ external_domain_whitelist: Llista blanca de dominis externs
459
479
  help_sections: Seccions d'ajuda
460
480
  homepage: Pàgina d'inici
461
481
  impersonations: Impersonacions
@@ -727,6 +747,17 @@ ca:
727
747
  layout_appearance_title: Edita l'aparença del disseny global
728
748
  preview: Previsualitzar
729
749
  omnipresent_banner_appearance_title: Edita banner omnipresent
750
+ organization_external_domain_whitelist:
751
+ edit:
752
+ update: Actualitza
753
+ external_domain:
754
+ down: Avall
755
+ external_domain: Domini extern
756
+ remove: Lleva
757
+ up: Amunt
758
+ form:
759
+ add: Afegeix a llista blanca
760
+ title: Llista blanca de dominis externs
730
761
  organization_homepage:
731
762
  edit:
732
763
  active_content_blocks: Blocs de contingut actiu
@@ -24,7 +24,7 @@ cs:
24
24
  component:
25
25
  name: Název
26
26
  published_at: Publikováno v
27
- weight: Váha
27
+ weight: Pozice v řazení
28
28
  id: ID
29
29
  import:
30
30
  user_group_id: Vytvořit importy jako
@@ -32,6 +32,7 @@ cs:
32
32
  body: Tělo
33
33
  subject: Předmět
34
34
  organization:
35
+ admin_terms_of_use_body: Tělo zprávy správcovských podmínek použití
35
36
  alert_color: Upozornění
36
37
  available_authorizations: Dostupná oprávnění
37
38
  badges_enabled: Povolit odznaky
@@ -42,6 +43,7 @@ cs:
42
43
  default_locale: Výchozí jazyk
43
44
  description: Popis
44
45
  enable_omnipresent_banner: Zobrazit všudypřítomný banner
46
+ enable_participatory_space_filters: Povolit filtry participačního prostoru
45
47
  facebook_handler: Facebook handler
46
48
  favicon: Ikona
47
49
  force_authentication: Vynutit ověření
@@ -111,12 +113,12 @@ cs:
111
113
  show_in_footer: Zobrazit v zápatí
112
114
  slug: URL slug
113
115
  title: Titul
114
- weight: Váha
116
+ weight: Pozice v řazení
115
117
  static_page_topic:
116
118
  description: Popis
117
119
  show_in_footer: Zobrazit v zápatí
118
120
  title: Titul
119
- weight: Váha
121
+ weight: Pozice v řazení
120
122
  user_group_csv_verification:
121
123
  file: Soubor
122
124
  errors:
@@ -156,7 +158,8 @@ cs:
156
158
  browse: Procházet
157
159
  category:
158
160
  new: Nová kategorie
159
- export: Exportovat
161
+ export: Exportovat vše
162
+ export-selection: Exportovat výběr
160
163
  import: Importovat
161
164
  manage: Spravovat
162
165
  new: Nová %{name}
@@ -335,6 +338,12 @@ cs:
335
338
  show:
336
339
  view_more_logs: Zobrazit další protokoly
337
340
  welcome: Vítejte v administrátorském panelu Decidim.
341
+ domain_whitelist:
342
+ form:
343
+ domain_too_short: Doména je příliš krátká
344
+ update:
345
+ error: Nepodařilo se aktualizovat seznam povolených domén
346
+ success: Seznam povolených domén byl úspěšně aktualizován
338
347
  exports:
339
348
  export_as: "%{name} jako %{export_format}"
340
349
  formats:
@@ -347,6 +356,16 @@ cs:
347
356
  category_id_eq:
348
357
  label: Kategorie
349
358
  filter_label: Filtr
359
+ invitation_accepted_at_present:
360
+ label: Pozvánka přijata
361
+ values:
362
+ 'false': 'Ne'
363
+ 'true': 'Ano'
364
+ last_sign_in_at_present:
365
+ label: Vždy přihlášen
366
+ values:
367
+ 'false': 'Ne'
368
+ 'true': 'Ano'
350
369
  moderations:
351
370
  reportable_type_string_eq:
352
371
  label: Typ
@@ -355,6 +374,17 @@ cs:
355
374
  values:
356
375
  'false': Ověřeno
357
376
  'true': Neověřeno
377
+ participatory_space_private_users:
378
+ user_invitation_accepted_at_not_null:
379
+ label: Pozvánka přijata
380
+ values:
381
+ 'false': Nepřijato
382
+ 'true': Přijato
383
+ user_invitation_sent_at_not_null:
384
+ label: Pozvánka odeslána
385
+ values:
386
+ 'false': Neodesláno
387
+ 'true': Odesláno
358
388
  private_space_eq:
359
389
  label: Soukromé
360
390
  values:
@@ -372,13 +402,14 @@ cs:
372
402
  name_or_nickname_or_email_cont: Hledat %{collection} podle e-mailu, jména nebo přezdívky.
373
403
  reported_id_string_or_reported_content_cont: Hledat %{collection} podle nahlášeného Id nebo obsahu.
374
404
  title_cont: Hledat %{collection} podle názvu.
405
+ user_name_or_user_email_cont: Hledat %{collection} podle jména nebo e-mailu.
375
406
  state_eq:
376
407
  label: Stav
377
408
  forms:
378
409
  file_help:
379
410
  import:
380
411
  explanation: 'Pokyny pro soubor:'
381
- message_1: CSV, JSON a Excel (.xls) jsou podporovány
412
+ message_1: CSV, JSON a Excel (.xlsx) jsou podporovány
382
413
  message_2: Pro CSV soubory musí být oddělovač mezi sloupci středníkem (";")
383
414
  help_sections:
384
415
  error: Při aktualizaci sekcí nápovědy došlo k chybě
@@ -430,7 +461,7 @@ cs:
430
461
  accepted_mime_types:
431
462
  csv: csv
432
463
  json: json
433
- xls: xls
464
+ xlsx: xlsx
434
465
  actions:
435
466
  back: Zpět
436
467
  file_legend: Přidat importovaný soubor, který bude analyzován.
@@ -456,6 +487,7 @@ cs:
456
487
  areas: Oblasti
457
488
  configuration: Konfigurace
458
489
  dashboard: Ovládací panel
490
+ external_domain_whitelist: Seznam externích povolených domén
459
491
  help_sections: Sekce nápovědy
460
492
  homepage: Domovská stránka
461
493
  impersonations: V zastoupení
@@ -719,14 +751,25 @@ cs:
719
751
  colors:
720
752
  colors_title: Organizační barvy
721
753
  header_snippets_help: Toto pole použijte k přidání věcí do hlavičky HTML. Nejběžnějším používáním je integrace služeb třetích stran, které vyžadují nějaký extra JavaScript nebo CSS. Můžete také použít k přidání dalších metaznaček do HTML. Všimněte si, že to bude vykresleno pouze na veřejných stránkách, nikoliv v sekci admin.
722
- cta_button_path_help: 'Můžete přepisovat, kde se na domovské stránce odkazuje tlačítko Volat na akci. Použijte zde částečné cesty, ne úplné adresy URL. Přijme písmena, čísla, pomlčky a lomítka a musí začínat písmenem. Tlačítko Volat na akci se na domovské stránce zobrazí mezi vítaným textem a popisem. Příklad: %{url}'
723
- cta_button_text_help: Přepínání textu tlačítka volání na akci můžete na domovské stránce přepisovat pro každý dostupný jazyk ve vaší organizaci. Pokud není nastavena, bude použita výchozí hodnota. Tlačítko Volat na akci se na domovské stránce zobrazí mezi vítaným textem a popisem.
754
+ cta_button_path_help: 'Můžete přepsat, kde se na domovské stránce odkazuje tlačítko Výzvy k akci. Použijte zde částečné cesty, ne úplné adresy URL. Přijme písmena, čísla, pomlčky a lomítka a musí začínat písmenem. Tlačítko Výzvy k akci se na domovské stránce zobrazí mezi uvítacím textem a popisem. Příklad: %{url}'
755
+ cta_button_text_help: Text tlačítka výzvy k akci můžete na domovské stránce přepsat pro každý dostupný jazyk ve vaší organizaci. Pokud není nastaveno, bude použita výchozí hodnota. Tlačítko Výzvy k akci se na domovské stránce zobrazí mezi uvítacím textem a popisem.
724
756
  homepage_appearance_title: Upravit vzhled stránky
725
757
  homepage_highlighted_content_banner_title: Zvýrazněný obsahový banner
726
758
  images:
727
759
  layout_appearance_title: Upravit vzhled zobrazení
728
760
  preview: Náhled
729
761
  omnipresent_banner_appearance_title: Upravit všudypřítomný banner
762
+ organization_external_domain_whitelist:
763
+ edit:
764
+ update: Aktualizovat
765
+ external_domain:
766
+ down: Dolů
767
+ external_domain: Externí doména
768
+ remove: Odebrat
769
+ up: Nahoru
770
+ form:
771
+ add: Přidat do seznamu povolených
772
+ title: Seznam externích povolených domén
730
773
  organization_homepage:
731
774
  edit:
732
775
  active_content_blocks: Bloky aktivního obsahu
@@ -782,7 +825,7 @@ cs:
782
825
  success: Typ oblasti působnosti byl úspěšně aktualizován
783
826
  scopes:
784
827
  create:
785
- error: Při vytváření nového oboru došlo k chybě.
828
+ error: Při vytváření nové oblasti působnosti došlo k chybě.
786
829
  success: Oblast působnosti byla úspěšně vytvořena.
787
830
  destroy:
788
831
  success: Oblast působnosti úspěšně zničena
@@ -24,7 +24,7 @@ de:
24
24
  component:
25
25
  name: Name
26
26
  published_at: Veröffentlicht unter
27
- weight: Reihenfolge
27
+ weight: Bestellposition
28
28
  id: ID
29
29
  import:
30
30
  user_group_id: Importierte Inhalte erstellen als
@@ -42,6 +42,7 @@ de:
42
42
  default_locale: Standardgebietsschema
43
43
  description: Beschreibung
44
44
  enable_omnipresent_banner: Zeige allgegenwärtiges Banner
45
+ enable_participatory_space_filters: Bereichs- und Gebietsfilter aktivieren
45
46
  facebook_handler: Facebook-Handler
46
47
  favicon: Icon
47
48
  force_authentication: Authentifizierung erzwingen
@@ -111,12 +112,12 @@ de:
111
112
  show_in_footer: In der Fußzeile anzeigen
112
113
  slug: URL-Block
113
114
  title: Titel
114
- weight: Gewicht
115
+ weight: Bestellposition
115
116
  static_page_topic:
116
117
  description: Beschreibung
117
118
  show_in_footer: In der Fußzeile anzeigen
118
119
  title: Titel
119
- weight: Gewicht
120
+ weight: Bestellposition
120
121
  user_group_csv_verification:
121
122
  file: Datei
122
123
  errors:
@@ -156,7 +157,6 @@ de:
156
157
  browse: Durchsuchen
157
158
  category:
158
159
  new: Neue Kategorie
159
- export: Export
160
160
  import: Importieren
161
161
  manage: Verwalten
162
162
  new: Neu %{name}
@@ -355,6 +355,17 @@ de:
355
355
  values:
356
356
  'false': Offizialisiert
357
357
  'true': Nicht offiziell
358
+ participatory_space_private_users:
359
+ user_invitation_accepted_at_not_null:
360
+ label: Einladung akzeptiert
361
+ values:
362
+ 'false': Nicht akzeptiert
363
+ 'true': Akzeptiert
364
+ user_invitation_sent_at_not_null:
365
+ label: Einladung versendet
366
+ values:
367
+ 'false': Nicht versendet
368
+ 'true': Versendet
358
369
  private_space_eq:
359
370
  label: Privat
360
371
  values:
@@ -372,13 +383,14 @@ de:
372
383
  name_or_nickname_or_email_cont: Suche in %{collection} nach E-Mail, Name oder Benutzername.
373
384
  reported_id_string_or_reported_content_cont: Suche %{collection} nach meldbarer Id oder Inhalt.
374
385
  title_cont: In %{collection} nach Titel suchen.
386
+ user_name_or_user_email_cont: In %{collection} nach Name oder E-Mail suchen.
375
387
  state_eq:
376
388
  label: Bundesland
377
389
  forms:
378
390
  file_help:
379
391
  import:
380
392
  explanation: 'Hinweise für die Datei:'
381
- message_1: CSV, JSON und Excel (.xls) Dateien werden unterstützt
393
+ message_1: CSV, JSON und Excel (.xlsx) Dateien werden unterstützt
382
394
  message_2: Bei CSV-Dateien muss das Trennzeichen zwischen den Spalten ein Semikolon sein (";")
383
395
  help_sections:
384
396
  error: Beim Aktualisieren der Hilfeabschnitte ist ein Fehler aufgetreten
@@ -430,7 +442,7 @@ de:
430
442
  accepted_mime_types:
431
443
  csv: CSV
432
444
  json: JSON
433
- xls: XLS
445
+ xlsx: xlsx
434
446
  actions:
435
447
  back: Zurück
436
448
  file_legend: Datei zum Importieren hinzufügen.