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
@@ -24,7 +24,6 @@ tr:
24
24
  component:
25
25
  name: isim
26
26
  published_at: Yayınlandı
27
- weight: Ağırlık
28
27
  id: İD
29
28
  newsletter:
30
29
  body: Vücut
@@ -100,12 +99,10 @@ tr:
100
99
  show_in_footer: Altbilgiyi göster
101
100
  slug: URL sümüklü böcek
102
101
  title: Başlık
103
- weight: Ağırlık
104
102
  static_page_topic:
105
103
  description: Açıklama
106
104
  show_in_footer: Altbilgiyi göster
107
105
  title: Başlık
108
- weight: Ağırlık
109
106
  user_group_csv_verification:
110
107
  file: Dosya
111
108
  errors:
@@ -135,7 +132,6 @@ tr:
135
132
  actions:
136
133
  add: Eklemek
137
134
  browse: Araştır
138
- export: ihracat
139
135
  manage: yönetme
140
136
  new: Yeni %{name}
141
137
  per_page: Sayfa başına
@@ -23,7 +23,6 @@ uk:
23
23
  component:
24
24
  name: Ім'я
25
25
  published_at: 'Оприлюднено:'
26
- weight: Вага
27
26
  id: Псевдонім
28
27
  newsletter:
29
28
  body: Основний текст
@@ -94,7 +93,6 @@ uk:
94
93
  actions:
95
94
  add: Додати
96
95
  browse: Переглянути
97
- export: Зберегти у вигляді файлу
98
96
  manage: Керувати
99
97
  new: Додати %{name}
100
98
  permissions: Права
@@ -24,7 +24,6 @@ zh-CN:
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 @@ zh-CN:
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:
@@ -132,7 +129,6 @@ zh-CN:
132
129
  actions:
133
130
  add: 添加
134
131
  browse: 浏览
135
- export: 导出
136
132
  manage: 管理
137
133
  new: 新建 %{name}
138
134
  per_page: 每页
data/config/routes.rb CHANGED
@@ -7,9 +7,11 @@ Decidim::Admin::Engine.routes.draw do
7
7
  resource :homepage, only: [:edit, :update], controller: "organization_homepage" do
8
8
  resources :content_blocks, only: [:edit, :update], controller: "organization_homepage_content_blocks"
9
9
  end
10
+ resource :external_domain_whitelist, only: [:edit, :update], controller: "organization_external_domain_whitelist"
10
11
 
11
12
  member do
12
13
  get :users
14
+ get :user_entities
13
15
  end
14
16
  end
15
17
 
@@ -6,11 +6,7 @@ require "active_support/all"
6
6
  require "devise"
7
7
  require "devise-i18n"
8
8
  require "decidim/core"
9
- require "jquery-rails"
10
- require "sassc-rails"
11
- require "foundation-rails"
12
9
  require "foundation_rails_helper"
13
- require "autoprefixer-rails"
14
10
  require "rectify"
15
11
  require "doorkeeper"
16
12
  require "doorkeeper-i18n"
@@ -28,151 +24,228 @@ module Decidim
28
24
  end
29
25
  end
30
26
 
31
- initializer "decidim_admin.assets" do |app|
32
- app.config.assets.precompile += %w(decidim_admin_manifest.js)
33
- end
34
-
35
27
  initializer "decidim_admin.global_moderation_menu" do
36
28
  Decidim.menu :admin_global_moderation_menu do |menu|
37
- menu.item I18n.t("actions.not_hidden", scope: "decidim.moderations"),
38
- decidim_admin.moderations_path,
39
- position: 1,
40
- active: params[:hidden].blank?
41
-
42
- menu.item I18n.t("actions.hidden", scope: "decidim.moderations"),
43
- decidim_admin.moderations_path(hidden: true),
44
- position: 2,
45
- active: params[:hidden].present?
29
+ menu.add_item :moderations,
30
+ I18n.t("actions.not_hidden", scope: "decidim.moderations"),
31
+ decidim_admin.moderations_path,
32
+ position: 1,
33
+ active: params[:hidden].blank?
34
+
35
+ menu.add_item :hidden_moderations,
36
+ I18n.t("actions.hidden", scope: "decidim.moderations"),
37
+ decidim_admin.moderations_path(hidden: true),
38
+ position: 2,
39
+ active: params[:hidden].present?
40
+ end
41
+ end
42
+
43
+ initializer "decidim_admin.workflows_menu" do
44
+ Decidim.menu :workflows_menu do |menu|
45
+ Decidim::Verifications.admin_workflows.each do |manifest|
46
+ next unless current_organization.available_authorizations.include?(manifest.name.to_s)
47
+
48
+ workflow = Decidim::Verifications::Adapter.new(manifest)
49
+
50
+ menu.add_item manifest.name.to_s,
51
+ workflow.fullname,
52
+ workflow.admin_root_path,
53
+ active: is_active_link?(workflow.admin_root_path)
54
+ end
55
+ end
56
+ end
57
+
58
+ initializer "decidim_admin.impersonate_menu" do
59
+ Decidim.menu :impersonate_menu do |menu|
60
+ menu.add_item :conflicts,
61
+ I18n.t("title", scope: "decidim.admin.conflicts"),
62
+ decidim_admin.conflicts_path,
63
+ active: is_active_link?(decidim_admin.conflicts_path),
64
+ if: allowed_to?(:index, :impersonatable_user)
65
+ end
66
+ end
67
+
68
+ initializer "decidim_admin.admin_user_menu" do
69
+ Decidim.menu :admin_user_menu do |menu|
70
+ menu.add_item :users,
71
+ I18n.t("menu.admins", scope: "decidim.admin"), decidim_admin.users_path,
72
+ active: is_active_link?(decidim_admin.users_path),
73
+ if: allowed_to?(:read, :admin_user)
74
+ menu.add_item :user_groups,
75
+ I18n.t("menu.user_groups", scope: "decidim.admin"), decidim_admin.user_groups_path,
76
+ active: is_active_link?(decidim_admin.user_groups_path),
77
+ if: current_organization.user_groups_enabled? && allowed_to?(:index, :user_group)
78
+ menu.add_item :officializations,
79
+ I18n.t("menu.participants", scope: "decidim.admin"), decidim_admin.officializations_path,
80
+ active: is_active_link?(decidim_admin.officializations_path),
81
+ if: allowed_to?(:index, :officialization)
82
+ menu.add_item :impersonatable_users,
83
+ I18n.t("menu.impersonations", scope: "decidim.admin"), decidim_admin.impersonatable_users_path,
84
+ active: is_active_link?(decidim_admin.impersonatable_users_path),
85
+ if: allowed_to?(:index, :impersonatable_user),
86
+ submenu: { target_menu: :impersonate_menu }
87
+
88
+ menu.add_item :moderated_users,
89
+ I18n.t("menu.reported_users", scope: "decidim.admin"), decidim_admin.moderated_users_path,
90
+ active: is_active_link?(decidim_admin.moderated_users_path),
91
+ if: allowed_to?(:index, :moderate_users)
92
+ menu.add_item :authorization_workflows,
93
+ I18n.t("menu.authorization_workflows", scope: "decidim.admin"), decidim_admin.authorization_workflows_path,
94
+ active: is_active_link?(decidim_admin.authorization_workflows_path),
95
+ if: allowed_to?(:index, :authorization),
96
+ submenu: { target_menu: :workflows_menu }
46
97
  end
47
98
  end
48
99
 
49
100
  initializer "decidim_admin.admin_settings_menu" do
50
101
  Decidim.menu :admin_settings_menu do |menu|
51
- menu.item I18n.t("menu.configuration", scope: "decidim.admin"),
52
- decidim_admin.edit_organization_path,
53
- position: 1.0,
54
- if: allowed_to?(:update, :organization, organization: current_organization),
55
- active: is_active_link?(decidim_admin.edit_organization_path)
56
-
57
- menu.item I18n.t("menu.appearance", scope: "decidim.admin"),
58
- decidim_admin.edit_organization_appearance_path,
59
- position: 1.1,
60
- if: allowed_to?(:update, :organization, organization: current_organization),
61
- active: is_active_link?(decidim_admin.edit_organization_appearance_path)
62
-
63
- menu.item I18n.t("menu.homepage", scope: "decidim.admin"),
64
- decidim_admin.edit_organization_homepage_path,
65
- position: 1.2,
66
- if: allowed_to?(:update, :organization, organization: current_organization),
67
- active: is_active_link?(decidim_admin.edit_organization_homepage_path, %r{^/admin/organization/homepage})
68
-
69
- menu.item I18n.t("menu.scopes", scope: "decidim.admin"),
70
- decidim_admin.scopes_path,
71
- position: 1.3,
72
- if: allowed_to?(:read, :scope),
73
- active: is_active_link?(decidim_admin.scopes_path)
74
- menu.item I18n.t("menu.scope_types", scope: "decidim.admin"),
75
- decidim_admin.scope_types_path,
76
- position: 1.4,
77
- if: allowed_to?(:read, :scope_type),
78
- active: is_active_link?(decidim_admin.scope_types_path)
79
- menu.item I18n.t("menu.areas", scope: "decidim.admin"),
80
- decidim_admin.areas_path,
81
- position: 1.5,
82
- if: allowed_to?(:read, :area),
83
- active: is_active_link?(decidim_admin.areas_path)
84
-
85
- menu.item I18n.t("menu.area_types", scope: "decidim.admin"),
86
- decidim_admin.area_types_path,
87
- position: 1.6,
88
- if: allowed_to?(:read, :area_type),
89
- active: is_active_link?(decidim_admin.area_types_path)
90
-
91
- menu.item I18n.t("menu.help_sections", scope: "decidim.admin"),
92
- decidim_admin.help_sections_path,
93
- position: 1.6,
94
- if: allowed_to?(:update, :help_sections),
95
- active: is_active_link?(decidim_admin.help_sections_path)
102
+ menu.add_item :edit_organization,
103
+ I18n.t("menu.configuration", scope: "decidim.admin"),
104
+ decidim_admin.edit_organization_path,
105
+ position: 1.0,
106
+ if: allowed_to?(:update, :organization, organization: current_organization),
107
+ active: is_active_link?(decidim_admin.edit_organization_path)
108
+
109
+ menu.add_item :edit_organization_appearance,
110
+ I18n.t("menu.appearance", scope: "decidim.admin"),
111
+ decidim_admin.edit_organization_appearance_path,
112
+ position: 1.1,
113
+ if: allowed_to?(:update, :organization, organization: current_organization),
114
+ active: is_active_link?(decidim_admin.edit_organization_appearance_path)
115
+
116
+ menu.add_item :edit_organization_homepage,
117
+ I18n.t("menu.homepage", scope: "decidim.admin"),
118
+ decidim_admin.edit_organization_homepage_path,
119
+ position: 1.2,
120
+ if: allowed_to?(:update, :organization, organization: current_organization),
121
+ active: is_active_link?(decidim_admin.edit_organization_homepage_path, %r{^/admin/organization/homepage})
122
+
123
+ menu.add_item :scopes,
124
+ I18n.t("menu.scopes", scope: "decidim.admin"),
125
+ decidim_admin.scopes_path,
126
+ position: 1.3,
127
+ if: allowed_to?(:read, :scope),
128
+ active: is_active_link?(decidim_admin.scopes_path)
129
+ menu.add_item :scope_types,
130
+ I18n.t("menu.scope_types", scope: "decidim.admin"),
131
+ decidim_admin.scope_types_path,
132
+ position: 1.4,
133
+ if: allowed_to?(:read, :scope_type),
134
+ active: is_active_link?(decidim_admin.scope_types_path)
135
+ menu.add_item :areas,
136
+ I18n.t("menu.areas", scope: "decidim.admin"),
137
+ decidim_admin.areas_path,
138
+ position: 1.5,
139
+ if: allowed_to?(:read, :area),
140
+ active: is_active_link?(decidim_admin.areas_path)
141
+
142
+ menu.add_item :area_types,
143
+ I18n.t("menu.area_types", scope: "decidim.admin"),
144
+ decidim_admin.area_types_path,
145
+ position: 1.6,
146
+ if: allowed_to?(:read, :area_type),
147
+ active: is_active_link?(decidim_admin.area_types_path)
148
+
149
+ menu.add_item :help_sections,
150
+ I18n.t("menu.help_sections", scope: "decidim.admin"),
151
+ decidim_admin.help_sections_path,
152
+ position: 1.6,
153
+ if: allowed_to?(:update, :help_sections),
154
+ active: is_active_link?(decidim_admin.help_sections_path)
155
+
156
+ menu.add_item :external_domain_whitelist,
157
+ I18n.t("menu.external_domain_whitelist", scope: "decidim.admin"),
158
+ decidim_admin.edit_organization_external_domain_whitelist_path,
159
+ position: 1.7,
160
+ if: allowed_to?(:update, :organization, organization: current_organization),
161
+ active: is_active_link?(decidim_admin.edit_organization_external_domain_whitelist_path)
96
162
  end
97
163
  end
98
164
 
99
165
  initializer "decidim_admin.menu" do
100
166
  Decidim.menu :admin_menu do |menu|
101
- menu.item I18n.t("menu.dashboard", scope: "decidim.admin"),
102
- decidim_admin.root_path,
103
- icon_name: "dashboard",
104
- position: 1,
105
- active: ["decidim/admin/dashboard" => :show]
106
-
107
- menu.item I18n.t("menu.moderation", scope: "decidim.admin"),
108
- decidim_admin.moderations_path,
109
- icon_name: "flag",
110
- position: 4,
111
- active: [%w(
112
- decidim/admin/global_moderations
113
- decidim/admin/global_moderations/reports
114
- ), []],
115
- if: allowed_to?(:read, :global_moderation)
116
-
117
- menu.item I18n.t("menu.static_pages", scope: "decidim.admin"),
118
- decidim_admin.static_pages_path,
119
- icon_name: "book",
120
- position: 4.5,
121
- active: [%w(
122
- decidim/admin/static_pages
123
- decidim/admin/static_page_topics
124
- ), []],
125
- if: allowed_to?(:read, :static_page)
126
-
127
- menu.item I18n.t("menu.users", scope: "decidim.admin"),
128
- allowed_to?(:read, :admin_user) ? decidim_admin.users_path : decidim_admin.impersonatable_users_path,
129
- icon_name: "person",
130
- position: 5,
131
- active: [%w(
132
- decidim/admin/users
133
- decidim/admin/user_groups
134
- decidim/admin/user_groups_csv_verifications
135
- decidim/admin/officializations
136
- decidim/admin/impersonatable_users
137
- decidim/admin/moderated_users
138
- decidim/admin/managed_users/impersonation_logs
139
- decidim/admin/managed_users/promotions
140
- decidim/admin/authorization_workflows
141
- ), []],
142
- if: allowed_to?(:read, :admin_user) || allowed_to?(:read, :managed_user)
143
-
144
- menu.item I18n.t("menu.newsletters", scope: "decidim.admin"),
145
- decidim_admin.newsletters_path,
146
- icon_name: "envelope-closed",
147
- position: 6,
148
- active: is_active_link?(decidim_admin.newsletters_path, :inclusive) ||
149
- is_active_link?(decidim_admin.newsletter_templates_path, :inclusive),
150
- if: allowed_to?(:index, :newsletter)
151
-
152
- menu.item I18n.t("menu.settings", scope: "decidim.admin"),
153
- decidim_admin.edit_organization_path,
154
- icon_name: "wrench",
155
- position: 7,
156
- active: [
157
- %w(
158
- decidim/admin/organization
159
- decidim/admin/organization_appearance
160
- decidim/admin/organization_homepage
161
- decidim/admin/organization_homepage_content_blocks
162
- decidim/admin/scopes
163
- decidim/admin/scope_types
164
- decidim/admin/areas decidim/admin/area_types
165
- ),
166
- []
167
- ],
168
- if: allowed_to?(:update, :organization, organization: current_organization)
169
-
170
- menu.item I18n.t("menu.admin_log", scope: "decidim.admin"),
171
- decidim_admin.logs_path,
172
- icon_name: "dashboard",
173
- position: 10,
174
- active: [%w(decidim/admin/logs), []],
175
- if: allowed_to?(:read, :admin_log)
167
+ menu.add_item :dashboard,
168
+ I18n.t("menu.dashboard", scope: "decidim.admin"),
169
+ decidim_admin.root_path,
170
+ icon_name: "dashboard",
171
+ position: 1,
172
+ active: ["decidim/admin/dashboard" => :show]
173
+
174
+ menu.add_item :moderations,
175
+ I18n.t("menu.moderation", scope: "decidim.admin"),
176
+ decidim_admin.moderations_path,
177
+ icon_name: "flag",
178
+ position: 4,
179
+ active: [%w(
180
+ decidim/admin/global_moderations
181
+ decidim/admin/global_moderations/reports
182
+ ), []],
183
+ if: allowed_to?(:read, :global_moderation)
184
+
185
+ menu.add_item :static_pages,
186
+ I18n.t("menu.static_pages", scope: "decidim.admin"),
187
+ decidim_admin.static_pages_path,
188
+ icon_name: "book",
189
+ position: 4.5,
190
+ active: [%w(
191
+ decidim/admin/static_pages
192
+ decidim/admin/static_page_topics
193
+ ), []],
194
+ if: allowed_to?(:read, :static_page)
195
+
196
+ menu.add_item :impersonatable_users,
197
+ I18n.t("menu.users", scope: "decidim.admin"),
198
+ allowed_to?(:read, :admin_user) ? decidim_admin.users_path : decidim_admin.impersonatable_users_path,
199
+ icon_name: "person",
200
+ position: 5,
201
+ active: [%w(
202
+ decidim/admin/users
203
+ decidim/admin/user_groups
204
+ decidim/admin/user_groups_csv_verifications
205
+ decidim/admin/officializations
206
+ decidim/admin/impersonatable_users
207
+ decidim/admin/moderated_users
208
+ decidim/admin/managed_users/impersonation_logs
209
+ decidim/admin/managed_users/promotions
210
+ decidim/admin/authorization_workflows
211
+ ), []],
212
+ if: allowed_to?(:read, :admin_user) || allowed_to?(:read, :managed_user)
213
+
214
+ menu.add_item :newsletters,
215
+ I18n.t("menu.newsletters", scope: "decidim.admin"),
216
+ decidim_admin.newsletters_path,
217
+ icon_name: "envelope-closed",
218
+ position: 6,
219
+ active: is_active_link?(decidim_admin.newsletters_path, :inclusive) ||
220
+ is_active_link?(decidim_admin.newsletter_templates_path, :inclusive),
221
+ if: allowed_to?(:index, :newsletter)
222
+
223
+ menu.add_item :edit_organization,
224
+ I18n.t("menu.settings", scope: "decidim.admin"),
225
+ decidim_admin.edit_organization_path,
226
+ icon_name: "wrench",
227
+ position: 7,
228
+ active: [
229
+ %w(
230
+ decidim/admin/organization
231
+ decidim/admin/organization_appearance
232
+ decidim/admin/organization_homepage
233
+ decidim/admin/organization_homepage_content_blocks
234
+ decidim/admin/scopes
235
+ decidim/admin/scope_types
236
+ decidim/admin/areas decidim/admin/area_types
237
+ ),
238
+ []
239
+ ],
240
+ if: allowed_to?(:update, :organization, organization: current_organization)
241
+
242
+ menu.add_item :logs,
243
+ I18n.t("menu.admin_log", scope: "decidim.admin"),
244
+ decidim_admin.logs_path,
245
+ icon_name: "dashboard",
246
+ position: 10,
247
+ active: [%w(decidim/admin/logs), []],
248
+ if: allowed_to?(:read, :admin_log)
176
249
  end
177
250
  end
178
251