decidim-decidim_awesome 0.10.2 → 0.11.1

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

Potentially problematic release.


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

Files changed (261) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +177 -60
  4. data/app/cells/concerns/decidim/decidim_awesome/global_menu_cell_override.rb +20 -0
  5. data/app/cells/concerns/decidim/decidim_awesome/{proposal_m_cell_override.rb → proposal_l_cell_override.rb} +10 -4
  6. data/app/cells/decidim/decidim_awesome/content_blocks/map/show.erb +5 -12
  7. data/app/cells/decidim/decidim_awesome/content_blocks/map_cell.rb +9 -5
  8. data/app/cells/decidim/decidim_awesome/voting/proposal_metadata_cell.rb +54 -0
  9. data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal/modal.erb +18 -0
  10. data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal/show.erb +37 -32
  11. data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_cell.rb +9 -4
  12. data/app/commands/concerns/decidim/decidim_awesome/admin/needs_constraint_helpers.rb +2 -2
  13. data/app/commands/concerns/decidim/decidim_awesome/proposals/admin/update_proposal_override.rb +31 -0
  14. data/app/commands/concerns/decidim/decidim_awesome/proposals/create_collaborative_draft_override.rb +27 -0
  15. data/app/commands/concerns/decidim/decidim_awesome/proposals/create_proposal_override.rb +27 -0
  16. data/app/commands/concerns/decidim/decidim_awesome/proposals/update_collaborative_draft_override.rb +27 -0
  17. data/app/commands/concerns/decidim/decidim_awesome/proposals/update_proposal_override.rb +26 -0
  18. data/app/commands/decidim/decidim_awesome/admin/create_constraint.rb +1 -1
  19. data/app/commands/decidim/decidim_awesome/admin/create_proposal_custom_field.rb +4 -3
  20. data/app/commands/decidim/decidim_awesome/admin/destroy_custom_redirect.rb +1 -1
  21. data/app/commands/decidim/decidim_awesome/admin/destroy_menu_hack.rb +1 -1
  22. data/app/commands/decidim/decidim_awesome/admin/destroy_proposal_custom_field.rb +6 -3
  23. data/app/commands/decidim/decidim_awesome/admin/rename_scope_label.rb +1 -1
  24. data/app/commands/decidim/decidim_awesome/admin/update_constraint.rb +1 -1
  25. data/app/commands/decidim/decidim_awesome/admin/update_custom_redirect.rb +2 -2
  26. data/app/commands/decidim/decidim_awesome/command.rb +1 -7
  27. data/app/controllers/concerns/decidim/decidim_awesome/admin/maintenance_context.rb +43 -0
  28. data/app/controllers/concerns/decidim/decidim_awesome/admin_accountability/admin/filterable_helper.rb +1 -1
  29. data/app/controllers/concerns/decidim/decidim_awesome/content_security_policy.rb +34 -0
  30. data/app/controllers/concerns/decidim/decidim_awesome/limit_pending_amendments.rb +35 -0
  31. data/app/controllers/concerns/decidim/decidim_awesome/not_found_redirect.rb +1 -1
  32. data/app/controllers/concerns/decidim/decidim_awesome/proposals/proposal_votes_controller_override.rb +3 -3
  33. data/app/controllers/decidim/decidim_awesome/admin/application_controller.rb +2 -0
  34. data/app/controllers/decidim/decidim_awesome/admin/checks_controller.rb +14 -10
  35. data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +10 -9
  36. data/app/controllers/decidim/decidim_awesome/admin/constraints_controller.rb +23 -20
  37. data/app/controllers/decidim/decidim_awesome/admin/custom_redirects_controller.rb +6 -10
  38. data/app/controllers/decidim/decidim_awesome/admin/maintenance_controller.rb +76 -0
  39. data/app/controllers/decidim/decidim_awesome/admin/menu_hacks_controller.rb +6 -10
  40. data/app/controllers/decidim/decidim_awesome/admin/proposal_custom_fields_controller.rb +14 -6
  41. data/app/controllers/decidim/decidim_awesome/admin/scoped_admins_controller.rb +2 -2
  42. data/app/controllers/decidim/decidim_awesome/admin/scoped_styles_controller.rb +2 -2
  43. data/app/controllers/decidim/decidim_awesome/blank_component_controller.rb +8 -3
  44. data/app/controllers/decidim/decidim_awesome/editor_images_controller.rb +3 -3
  45. data/app/controllers/decidim/decidim_awesome/iframe_component/iframe_controller.rb +18 -5
  46. data/app/forms/concerns/decidim/decidim_awesome/proposals/proposal_form_override.rb +21 -0
  47. data/app/forms/{decidim → concerns/decidim}/decidim_awesome/proposals/proposal_wizard_create_step_form_override.rb +2 -1
  48. data/app/forms/decidim/decidim_awesome/admin/config_form.rb +28 -14
  49. data/app/forms/decidim/decidim_awesome/admin/custom_redirect_form.rb +2 -2
  50. data/app/forms/decidim/decidim_awesome/admin/intergram_form.rb +4 -0
  51. data/app/forms/decidim/decidim_awesome/admin/menu_form.rb +4 -4
  52. data/app/helpers/concerns/decidim/decidim_awesome/amendments_helper_override.rb +65 -0
  53. data/app/helpers/concerns/decidim/decidim_awesome/breadcrumb_helper_override.rb +23 -0
  54. data/app/helpers/concerns/decidim/decidim_awesome/proposals/application_helper_override.rb +110 -0
  55. data/app/helpers/decidim/decidim_awesome/admin/config_constraints_helpers.rb +6 -27
  56. data/app/helpers/decidim/decidim_awesome/map_helper.rb +8 -27
  57. data/app/jobs/decidim/decidim_awesome/destroy_private_data_job.rb +22 -0
  58. data/app/jobs/decidim/decidim_awesome/migrate_legacy_images_job.rb +5 -4
  59. data/app/middleware/decidim/decidim_awesome/current_config.rb +3 -5
  60. data/app/models/concerns/decidim/decidim_awesome/has_proposal_extra_fields.rb +39 -10
  61. data/app/models/decidim/decidim_awesome/awesome_config.rb +1 -1
  62. data/app/models/decidim/decidim_awesome/paper_trail_version.rb +3 -3
  63. data/app/models/decidim/decidim_awesome/proposal_extra_field.rb +35 -1
  64. data/app/models/decidim/decidim_awesome/vote_weight.rb +2 -2
  65. data/app/overrides/decidim/proposals/admin/proposals/show/add_private_body.html.erb.deface +7 -0
  66. data/app/overrides/decidim/proposals/admin/proposals/show/replace_body.html.erb.deface +5 -0
  67. data/app/overrides/decidim/proposals/proposals/_proposal_aside/limit_amendments_modal.html.erb.deface +5 -0
  68. data/app/overrides/decidim/proposals/proposals/_vote_button/replace_vote_button.html.erb.deface +1 -1
  69. data/app/overrides/layouts/decidim/_decidim_javascript/add_awesome_tags.html.erb.deface +6 -0
  70. data/app/overrides/layouts/decidim/_head/add_awesome_tags.html.erb.deface +4 -11
  71. data/app/overrides/layouts/decidim/admin/_header/{replace_scripts.html.erb.deface → add_awesome_tags.html.erb.deface} +4 -4
  72. data/app/packs/entrypoints/decidim_admin_decidim_awesome.js +1 -2
  73. data/app/packs/entrypoints/decidim_admin_decidim_awesome_global.js +4 -0
  74. data/app/packs/entrypoints/decidim_admin_decidim_awesome_global.scss +1 -0
  75. data/app/packs/entrypoints/decidim_decidim_awesome.js +2 -2
  76. data/app/packs/entrypoints/decidim_decidim_awesome_map.scss +1 -1
  77. data/app/packs/entrypoints/decidim_editor.js +14 -0
  78. data/app/packs/src/decidim/decidim_awesome/admin/auto_edit.js +96 -69
  79. data/app/packs/src/decidim/decidim_awesome/admin/check_redirections.js +46 -41
  80. data/app/packs/src/decidim/decidim_awesome/admin/codemirror.js +3 -3
  81. data/app/packs/src/decidim/decidim_awesome/admin/constraint_form_events.js +115 -0
  82. data/app/packs/src/decidim/decidim_awesome/admin/custom_fields_builder.js +9 -5
  83. data/app/packs/src/decidim/decidim_awesome/admin/form_exit_warn.js +22 -11
  84. data/app/packs/src/decidim/decidim_awesome/admin/proposal_sortings.js +26 -8
  85. data/app/packs/src/decidim/decidim_awesome/admin/tabs_change.js +31 -0
  86. data/app/packs/src/decidim/decidim_awesome/admin/user_picker.js +34 -21
  87. data/app/packs/src/decidim/decidim_awesome/amendments/show_modal_on_limits.js +28 -0
  88. data/app/packs/src/decidim/decidim_awesome/awesome_admin.js +5 -16
  89. data/app/packs/src/decidim/decidim_awesome/awesome_admin_global.js +1 -0
  90. data/app/packs/src/decidim/decidim_awesome/awesome_application.js +1 -15
  91. data/app/packs/src/decidim/decidim_awesome/awesome_map/api/fetcher.js +33 -11
  92. data/app/packs/src/decidim/decidim_awesome/awesome_map/api/meetings_fetcher.js +9 -12
  93. data/app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js +28 -0
  94. data/app/packs/src/decidim/decidim_awesome/awesome_map/awesome_map.js +3 -4
  95. data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/controller.js +12 -12
  96. data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/meetings_controller.js +11 -7
  97. data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/proposals_controller.js +6 -13
  98. data/app/packs/src/decidim/decidim_awesome/awesome_map/controls_ui.js +51 -20
  99. data/app/packs/src/decidim/decidim_awesome/awesome_map/load_map.js +27 -18
  100. data/app/packs/src/decidim/decidim_awesome/editor/index.js +94 -0
  101. data/app/packs/src/decidim/decidim_awesome/forms/autosave.js +28 -23
  102. data/app/packs/src/decidim/decidim_awesome/forms/custom_fields_renderer.js +29 -25
  103. data/app/packs/src/decidim/decidim_awesome/forms/rich_text_plugin.js +27 -32
  104. data/app/packs/src/decidim/decidim_awesome/proposals/custom_fields.js +31 -15
  105. data/app/packs/src/decidim/decidim_awesome/proposals/images.js +16 -10
  106. data/app/packs/src/decidim/decidim_awesome/voting/voting_cards.js +47 -38
  107. data/app/packs/stylesheets/decidim/decidim_awesome/admin/auto_edits.scss +11 -12
  108. data/app/packs/stylesheets/decidim/decidim_awesome/admin/check_redirections.scss +15 -0
  109. data/app/packs/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +24 -12
  110. data/app/packs/stylesheets/decidim/decidim_awesome/admin/constraints.scss +49 -29
  111. data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_fields.scss +28 -71
  112. data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_styles.scss +48 -0
  113. data/app/packs/stylesheets/decidim/decidim_awesome/admin/intergram_fixes.scss +11 -0
  114. data/app/packs/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +17 -26
  115. data/app/packs/stylesheets/decidim/decidim_awesome/amendments/modal.scss +5 -0
  116. data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin.scss +11 -49
  117. data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin_global.scss +19 -0
  118. data/app/packs/stylesheets/decidim/decidim_awesome/awesome_application.scss +4 -19
  119. data/app/packs/stylesheets/decidim/decidim_awesome/awesome_iframe/iframe.scss +1 -1
  120. data/app/packs/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +41 -35
  121. data/app/packs/stylesheets/decidim/decidim_awesome/forms/autosave.scss +6 -6
  122. data/app/packs/stylesheets/decidim/decidim_awesome/forms/custom_fields.scss +118 -0
  123. data/app/packs/stylesheets/decidim/decidim_awesome/shared/spinner.scss +26 -0
  124. data/app/packs/stylesheets/decidim/decidim_awesome/voting/voting_cards.scss +41 -59
  125. data/app/permissions/decidim/decidim_awesome/admin/permissions.rb +14 -3
  126. data/app/permissions/decidim/decidim_awesome/permissions.rb +3 -4
  127. data/app/presenters/concerns/decidim/decidim_awesome/breadcrumb_root_menu_item_presenter_override.rb +23 -0
  128. data/app/presenters/{decidim → concerns/decidim}/decidim_awesome/menu_item_presenter_override.rb +10 -2
  129. data/app/presenters/{decidim → concerns/decidim}/decidim_awesome/menu_presenter_override.rb +8 -0
  130. data/app/presenters/concerns/decidim/decidim_awesome/proposals/proposal_presenter_override.rb +20 -0
  131. data/app/presenters/decidim/decidim_awesome/admin_log/component_presenter_override.rb +30 -0
  132. data/app/presenters/decidim/decidim_awesome/participatory_space_role_presenter.rb +1 -1
  133. data/app/presenters/decidim/decidim_awesome/private_data_presenter.rb +70 -0
  134. data/app/presenters/decidim/decidim_awesome/user_entity_presenter.rb +1 -1
  135. data/app/queries/decidim/decidim_awesome/private_data_finder.rb +19 -0
  136. data/app/serializers/concerns/decidim/decidim_awesome/proposals/proposal_serializer_methods.rb +72 -0
  137. data/app/serializers/concerns/decidim/decidim_awesome/proposals/proposal_serializer_override.rb +38 -0
  138. data/app/serializers/decidim/decidim_awesome/proposals/private_proposal_serializer.rb +34 -0
  139. data/app/types/concerns/decidim/decidim_awesome/add_proposal_type_custom_fields.rb +59 -0
  140. data/app/types/concerns/decidim/decidim_awesome/{proposal_type_override.rb → add_proposal_type_vote_weights.rb} +3 -1
  141. data/app/views/decidim/decidim_awesome/admin/admin_accountability/index.html.erb +23 -17
  142. data/app/views/decidim/decidim_awesome/admin/checks/index.html.erb +50 -48
  143. data/app/views/decidim/decidim_awesome/admin/config/_autoedit_box_label.html.erb +7 -2
  144. data/app/views/decidim/decidim_awesome/admin/config/_constraints.html.erb +25 -18
  145. data/app/views/decidim/decidim_awesome/admin/config/_form_admins.html.erb +7 -6
  146. data/app/views/decidim/decidim_awesome/admin/config/_form_editors.html.erb +12 -16
  147. data/app/views/decidim/decidim_awesome/admin/config/_form_livechat.html.erb +39 -23
  148. data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_custom_fields.html.erb +35 -17
  149. data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_private_custom_fields.html.erb +1 -0
  150. data/app/views/decidim/decidim_awesome/admin/config/_form_proposals.html.erb +68 -80
  151. data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +16 -12
  152. data/app/views/decidim/decidim_awesome/admin/config/_form_surveys.html.erb +8 -6
  153. data/app/views/decidim/decidim_awesome/admin/config/show.html.erb +22 -12
  154. data/app/views/decidim/decidim_awesome/admin/constraints/_form.html.erb +1 -49
  155. data/app/views/decidim/decidim_awesome/admin/constraints/new.html.erb +14 -9
  156. data/app/views/decidim/decidim_awesome/admin/constraints/show.html.erb +14 -9
  157. data/app/views/decidim/decidim_awesome/admin/custom_redirects/_form.html.erb +20 -5
  158. data/app/views/decidim/decidim_awesome/admin/custom_redirects/edit.html.erb +5 -5
  159. data/app/views/decidim/decidim_awesome/admin/custom_redirects/index.html.erb +14 -13
  160. data/app/views/decidim/decidim_awesome/admin/custom_redirects/new.html.erb +5 -5
  161. data/app/views/decidim/decidim_awesome/admin/maintenance/_private_data.html.erb +44 -0
  162. data/app/views/decidim/decidim_awesome/admin/maintenance/show.html.erb +44 -0
  163. data/app/views/decidim/decidim_awesome/admin/menu_hacks/_form.html.erb +6 -6
  164. data/app/views/decidim/decidim_awesome/admin/menu_hacks/edit.html.erb +21 -12
  165. data/app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb +39 -42
  166. data/app/views/decidim/decidim_awesome/admin/menu_hacks/new.html.erb +21 -12
  167. data/app/views/decidim/decidim_awesome/admin/proposals/_editor.html.erb +8 -5
  168. data/app/views/decidim/decidim_awesome/admin/proposals/_private_body.html.erb +20 -0
  169. data/app/views/decidim/decidim_awesome/admin/shared/_filters_with_date.html.erb +14 -18
  170. data/app/views/decidim/decidim_awesome/amendments/_modal.html.erb +23 -0
  171. data/app/views/decidim/decidim_awesome/custom_fields/_form_render.html.erb +8 -2
  172. data/app/views/decidim/decidim_awesome/iframe_component/iframe/show.html.erb +7 -12
  173. data/app/views/decidim/decidim_awesome/map_component/map/_map_template.html.erb +53 -37
  174. data/app/views/decidim/decidim_awesome/map_component/map/show.html.erb +14 -5
  175. data/app/views/decidim/decidim_awesome/voting/voting_cards/_show_vote_button.html.erb +0 -3
  176. data/app/views/layouts/decidim/decidim_awesome/_awesome_config.html.erb +9 -7
  177. data/app/views/layouts/decidim/decidim_awesome/_intergram_widget.html.erb +9 -6
  178. data/app/views/layouts/decidim/decidim_awesome/admin/_base.html.erb +12 -0
  179. data/app/views/layouts/decidim/decidim_awesome/admin/application.html.erb +1 -73
  180. data/app/views/layouts/decidim/decidim_awesome/admin/maintenance.html.erb +19 -0
  181. data/config/assets.rb +3 -33
  182. data/config/i18n-tasks.yml +23 -3
  183. data/config/locales/ca.yml +28 -17
  184. data/config/locales/cs.yml +39 -14
  185. data/config/locales/de.yml +25 -15
  186. data/config/locales/en.yml +125 -35
  187. data/config/locales/es.yml +26 -16
  188. data/config/locales/eu.yml +7 -3
  189. data/config/locales/fr.yml +25 -16
  190. data/config/locales/hu.yml +43 -8
  191. data/config/locales/it.yml +8 -15
  192. data/config/locales/ja.yml +26 -15
  193. data/config/locales/lt.yml +0 -4
  194. data/config/locales/nl.yml +9 -14
  195. data/config/locales/pt-BR.yml +9 -14
  196. data/config/locales/ro-RO.yml +0 -3
  197. data/config/locales/sv.yml +9 -9
  198. data/config/rubocop/disabled.yml +11 -0
  199. data/config/rubocop/faker.yml +480 -0
  200. data/config/rubocop/rails.yml +88 -0
  201. data/config/rubocop/rspec.yml +65 -0
  202. data/config/rubocop/ruby.yml +1210 -0
  203. data/db/migrate/20240306175331_rename_editor_images_awesome_config.rb +18 -0
  204. data/db/migrate/20240531224204_add_decidim_awesome_proposal_private_fields.rb +29 -0
  205. data/db/migrate/20240729164227_add_decidim_awesome_proposal_private_fields_date.rb +20 -0
  206. data/db/seeds.rb +3 -3
  207. data/lib/decidim/decidim_awesome/admin_engine.rb +26 -7
  208. data/lib/decidim/decidim_awesome/api/types/localized_custom_fields_type.rb +22 -0
  209. data/lib/decidim/decidim_awesome/api/types/translated_custom_fields_type.rb +51 -0
  210. data/lib/decidim/decidim_awesome/awesome.rb +70 -19
  211. data/lib/decidim/decidim_awesome/awesome_helpers.rb +6 -2
  212. data/lib/decidim/decidim_awesome/checksums.yml +46 -44
  213. data/lib/decidim/decidim_awesome/config.rb +1 -1
  214. data/lib/decidim/decidim_awesome/custom_fields.rb +13 -5
  215. data/lib/decidim/decidim_awesome/engine.rb +165 -56
  216. data/lib/decidim/decidim_awesome/iframe_component/component.rb +1 -2
  217. data/lib/decidim/decidim_awesome/lock.rb +47 -0
  218. data/lib/decidim/decidim_awesome/map_component/component.rb +1 -1
  219. data/lib/decidim/decidim_awesome/menu.rb +165 -0
  220. data/lib/decidim/decidim_awesome/menu_hacker.rb +4 -8
  221. data/lib/decidim/decidim_awesome/system_checker.rb +2 -4
  222. data/lib/decidim/decidim_awesome/test/factories.rb +10 -10
  223. data/lib/decidim/decidim_awesome/test/initializer.rb +7 -12
  224. data/lib/decidim/decidim_awesome/test/layouts/decidim/_head.html.erb +2 -2
  225. data/lib/decidim/decidim_awesome/test/layouts/decidim/admin/_header.html.erb +2 -2
  226. data/lib/decidim/decidim_awesome/test/shared_examples/{box_label_editor.rb → box_label_editor_examples.rb} +17 -17
  227. data/lib/decidim/decidim_awesome/test/shared_examples/config_examples.rb +23 -5
  228. data/lib/decidim/decidim_awesome/test/shared_examples/custom_fields_examples.rb +155 -0
  229. data/lib/decidim/decidim_awesome/test/shared_examples/custom_redirects_contexts.rb +7 -7
  230. data/lib/decidim/decidim_awesome/test/shared_examples/editor_examples.rb +42 -58
  231. data/lib/decidim/decidim_awesome/test/shared_examples/menu_hack_contexts.rb +9 -8
  232. data/lib/decidim/decidim_awesome/test/shared_examples/scoped_admins_examples.rb +32 -24
  233. data/lib/decidim/decidim_awesome/test/shared_examples/summary_examples.rb +97 -22
  234. data/lib/decidim/decidim_awesome/version.rb +2 -2
  235. data/lib/decidim/decidim_awesome/voting_manifest.rb +5 -10
  236. data/lib/decidim/decidim_awesome.rb +1 -2
  237. data/lib/tasks/decidim_awesome_active_storage_migrations_tasks.rake +1 -1
  238. data/lib/tasks/decidim_awesome_upgrade_tasks.rake +4 -0
  239. data/package.json +21 -30
  240. metadata +83 -60
  241. data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter/show.erb +0 -15
  242. data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter/vote_button.erb +0 -15
  243. data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter_cell.rb +0 -21
  244. data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal/show.erb +0 -16
  245. data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb +0 -20
  246. data/app/cells/decidim/proposals/proposal_m/footer.erb +0 -13
  247. data/app/helpers/decidim/decidim_awesome/amendments_helper_override.rb +0 -48
  248. data/app/helpers/decidim/decidim_awesome/proposals/application_helper_override.rb +0 -78
  249. data/app/overrides/layouts/decidim/_head/add_awesome_legacy_scripts.rb +0 -14
  250. data/app/overrides/layouts/decidim/admin/_header/replace_styles.html.erb.deface +0 -3
  251. data/app/packs/entrypoints/decidim_admin_decidim_awesome_custom_fields.js +0 -2
  252. data/app/packs/entrypoints/decidim_decidim_awesome_admin_form_exit_warn.js +0 -1
  253. data/app/packs/src/decidim/decidim_awesome/admin/constraints.js +0 -55
  254. data/app/packs/src/decidim/decidim_awesome/editors/editor.js +0 -218
  255. data/app/packs/src/decidim/decidim_awesome/editors/tabs_focus.js +0 -22
  256. data/app/packs/stylesheets/decidim/decidim_awesome/editors/markdown_editor.scss +0 -19
  257. data/app/packs/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +0 -58
  258. data/app/packs/stylesheets/vendor/select2-foundation-theme.scss +0 -348
  259. data/app/serializers/concerns/decidim/decidim_awesome/proposal_serializer_override.rb +0 -64
  260. data/app/views/decidim/decidim_awesome/admin/config/_modal.html.erb +0 -11
  261. data/app/views/decidim/decidim_awesome/voting/voting_cards/_proposal_m_cell_footer.erb +0 -15
@@ -3,10 +3,7 @@ lt:
3
3
  activemodel:
4
4
  attributes:
5
5
  config:
6
- allow_images_in_full_editor: Leisti paveikslėlius pilname HTML redaktoriuje
7
- allow_images_in_markdown_editor: Leisti paveikslėlius markdown redaktoriuje
8
6
  allow_images_in_proposals: Leisti paveikslėlius pasiūlymų redaktoriuje
9
- allow_images_in_small_editor: Leisti paveikslėlius minimaliame HTML redaktoriuje
10
7
  auto_save_forms: Automatiškai išsaugoti formas vietinėje atmintyje
11
8
  intergram_auto_no_response: Žinutė, kuri išsiunčiama vieną minutę po to, kai vartotojas išsiunčia savo pirmąją žinutę ir negauna atsakymo
12
9
  intergram_auto_response: Žinutė, kuri išsiunčiama iš karto po to, kai vartotojas išsiunčia savo pirmąją žinutę
@@ -21,7 +18,6 @@ lt:
21
18
  proposal_custom_fields: Personalizuotų laukų %{id}
22
19
  scoped_admins: Erdvei priskirtos administratorių grupės %{id}
23
20
  scoped_styles: Personalizuotų stilių %{id}
24
- use_markdown_editor: Naudoti Markdown redaktorių vietoj HTML redaktoriaus
25
21
  validate_body_max_caps_percent: Maksimali leidžiama didžiųjų raidžių dalis teksto turinyje
26
22
  validate_body_max_marks_together: Maksimalus iš eilės einančių žymėjimo simbolių skaičius leidžiamas teksto turinyje
27
23
  validate_body_min_length: Minimalus reikalingų simbolių skaičius teksto turiniui
@@ -3,10 +3,7 @@ nl:
3
3
  activemodel:
4
4
  attributes:
5
5
  config:
6
- allow_images_in_full_editor: Afbeeldingen in de volledige HTML editor toestaan
7
- allow_images_in_markdown_editor: Afbeeldingen in de markdown editor toestaan
8
6
  allow_images_in_proposals: Afbeeldingen in de voorstellen editor toestaan
9
- allow_images_in_small_editor: Afbeeldingen in de minimale HTML editor toestaan
10
7
  auto_save_forms: Formulieren automatisch opslaan in lokale opslag
11
8
  intergram_auto_no_response: Een bericht dat wordt verzonden één minuut nadat de gebruiker zijn eerste bericht heeft verzonden en er geen antwoord is ontvangen
12
9
  intergram_auto_response: Een bericht dat direct wordt verzonden nadat de gebruiker zijn eerste bericht heeft verzonden
@@ -18,7 +15,6 @@ nl:
18
15
  intergram_title_closed: Gesloten chat titel
19
16
  intergram_title_open: Geopende chat titel
20
17
  intergram_use_floating_button: Indien aangevinkt, is de gesloten chat altijd een knop in plaats van een tekst
21
- use_markdown_editor: Gebruik een Markdown editor in plaats van de HTML editor
22
18
  constraint:
23
19
  component_id: of specifiek in
24
20
  component_manifest: Alleen in componenten van het type
@@ -42,7 +38,6 @@ nl:
42
38
  announcement: Aankondiging
43
39
  iframe: Iframe code
44
40
  iframe_help: 'Zet je code als html: <iframe width="100%" height="700" frameBorder="0" allowFullscreen src="..."></iframe>. Inhoud wordt verwijderd uit andere HTML-tags. Zorg ervoor dat je 100% als breedte gebruikt om het scherm te vullen.'
45
- no_margins: Geen marges tussen het iframe en de rest van de pagina
46
41
  viewport_width: Maximale breedte beperken tot applicatie viewport
47
42
  step:
48
43
  announcement: Aankondiging
@@ -97,22 +92,17 @@ nl:
97
92
  success: CSS box %{key} succesvol verwijderd
98
93
  form:
99
94
  help:
100
- allow_images_in_full_editor: Dit zal een afbeelding uploader pictogram toevoegen in alle editors WYSIWYG met de volledige werkbalk ingeschakeld.
101
- allow_images_in_markdown_editor: Hiermee kan de markdown editor afbeeldingen uploaden door ze te kopiëren en plakken of slepen & neerzetten.
102
95
  allow_images_in_proposals: Hiermee kunnen afbeeldingen geüpload worden in de voorstellen editor, beschikbaar voor elke gebruiker
103
- allow_images_in_small_editor: Dit zal een afbeelding uploader pictogram toevoegen in alle WYSIWYG editors met de minimale werkbalk ingeschakeld.
104
96
  auto_save_forms: Dit zal LocalStorage gebruiken om automatisch gegevens op te slaan die zijn ingevoerd door gebruikers in enquêtes en andere formulieren terwijl ze deze invullen. De gegevens worden hersteld in een toekomstig bezoek met dezelfde browser voor het geval het formulier nog niet is ingediend. Als het formulier is ingediend, worden de gegevens verwijderd. Als gebruikers hun LocalStorage gegevens verwijderen, worden de gegevens ook niet hersteld.
105
97
  drag_and_drop_supported: Bij het uploaden van afbeeldingen wordt wordt slepen en neerzetten ondersteund. Afbeeldingen worden naar de server geüpload en ingevoegd als externe bronnen (er wordt geen base64 inline codering gebruikt).
106
98
  intergram_about: Intergram gebruikt Telegram messenger voor het verwerken van een live-support chat widget ingebed aan de onderkant van de pagina.
107
99
  intergram_config: 'Nodig de <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> uit voor je groep of begin direct met een chat. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
108
100
  scoped_styles: Maak aangepaste CSS aan die alleen van toepassing is in bepaalde delen van het openbare web (gebruik hiervoor de restrictie-editor)
109
101
  scoped_styles_variables: 'Je kunt de volgende CSS variabelen gebruiken voor de organisatie op maat gemaakte kleuren:'
110
- use_markdown_editor: Dit vervangt de Quill WYSIWYG editor, gebruik in plaats daarvan een Markdown editor. Tekst zal worden weergegeven als HTML in de openbare pagina's (tekst in de database zal worden opgeslagen als markdown tekst)
111
102
  form_scoped_styles:
112
103
  new: Voeg een nieuwe CSS-box toe
113
104
  remove: Verwijder dit CSS-vak
114
105
  sure_to_remove: Weet je zeker dat je dit CSS-vak wilt verwijderen?
115
- rich_text_editor_in_public_views: 'Let op: "rich text editor voor deelnemers" is ingeschakeld, deze optie is niet van toepassing. Gebruik de editors hacks om afbeeldingen in voorstellen in te schakelen.'
116
106
  show:
117
107
  title: Tweaks voor %{setting}
118
108
  update: Configuratie bijwerken
@@ -176,10 +166,11 @@ nl:
176
166
  index:
177
167
  confirm_destroy: Weet u zeker dat u deze aanpassing wilt verwijderen?
178
168
  edit: Bewerken
169
+ menu:
170
+ title: Hoofdmenu
179
171
  new: Nieuw item
180
172
  remove: Verwijder toevoeging
181
173
  remove_hack: Verwijder aanpassing
182
- title: Hoofdmenu
183
174
  new:
184
175
  save: Opslaan
185
176
  title: Nieuw menu-item
@@ -226,11 +217,15 @@ nl:
226
217
  voting_cards:
227
218
  modal:
228
219
  cancel: Annuleren
220
+ meetings:
221
+ meetings_map:
222
+ view_meeting: Vergadering bekijken
223
+ proposals:
224
+ proposals:
225
+ proposal:
226
+ view_proposal: Bekijk voorstel
229
227
  layouts:
230
228
  decidim:
231
- admin:
232
- decidim_awesome:
233
- title: Decidim Tweaks
234
229
  decidim_awesome:
235
230
  awesome_config:
236
231
  amendments: Amendementen
@@ -3,10 +3,7 @@ pt-BR:
3
3
  activemodel:
4
4
  attributes:
5
5
  config:
6
- allow_images_in_full_editor: Permitir imagens no editor completo HTML
7
- allow_images_in_markdown_editor: Permitir imagens no editor de markdown
8
6
  allow_images_in_proposals: Permitir imagens no editor de propostas
9
- allow_images_in_small_editor: Permitir imagens no editor mínimo HTML
10
7
  auto_save_forms: Salvar formulários automaticamente no armazenamento local
11
8
  intergram_auto_no_response: Uma mensagem que é enviada um minuto após o usuário enviar sua primeira mensagem e nenhuma resposta foi recebida
12
9
  intergram_auto_response: Uma mensagem que é enviada imediatamente após o usuário enviar sua primeira mensagem
@@ -21,7 +18,6 @@ pt-BR:
21
18
  proposal_custom_fields: Campos personalizados %{id}
22
19
  scoped_admins: Escopos de grupo de administração %{id}
23
20
  scoped_styles: Estilos personalizados %{id}
24
- use_markdown_editor: Usar um editor Markdown em vez do editor HTML
25
21
  constraint:
26
22
  component_id: ou especificamente em
27
23
  component_manifest: Apenas em componentes do tipo
@@ -53,7 +49,6 @@ pt-BR:
53
49
  announcement: Anúncio
54
50
  iframe: Código do iframe
55
51
  iframe_help: 'Coloque seu código como html: <iframe width="100%" height="700" frameBorder="0" allowFullscreen src="..."></iframe>. O conteúdo será sanitizado de outras tags HTML. Certifique-se de usar 100% como largura para preencher a tela.'
56
- no_margins: Nenhuma margem entre o iframe e o resto da página
57
52
  viewport_width: Limitar a largura máxima à viewport da aplicação
58
53
  step:
59
54
  announcement: Anúncio
@@ -135,10 +130,7 @@ pt-BR:
135
130
  incorrect_css: 'CSS na caixa #%{key} é inválido'
136
131
  incorrect_json: 'Definição JSON na caixa #%{key} é inválida'
137
132
  help:
138
- allow_images_in_full_editor: Isto adicionará um ícone para carregar imagens em todos os editores WYSIWYG com a barra de ferramentas completa habilitada.
139
- allow_images_in_markdown_editor: Isso permitirá que o editor de markdown carregue imagens copiando e colando ou arrastando e soltando.
140
133
  allow_images_in_proposals: Isso permitirá fazer upload de imagens no editor de propostas, disponível para qualquer usuário
141
- allow_images_in_small_editor: Isto adicionará um ícone para carregar imagens em todos os editores WYSIWYG com a barra de ferramentas mínima habilitada.
142
134
  auto_save_forms: Isto usará o LocalStorage para salvar automaticamente dados introduzidos pelos usuários em pesquisas e outros formulários enquanto eles o preenchem. Os dados serão restaurados em uma visita futura com o mesmo navegador, caso o formulário não seja enviado. Se o formulário for enviado, os dados serão removidos. Se os usuários removerem seus dados de LocalStorage os dados também não serão restaurados.
143
135
  drag_and_drop_supported: Ao carregar imagens, arraste e solte é suportado. As imagens serão enviadas para o servidor e inseridas como recursos externos (não usa codificação base64 inline).
144
136
  intergram_about: O Intergram usa o Telegram messenger para lidar com uma widget de chat de suporte embutida no final da página.
@@ -150,7 +142,6 @@ pt-BR:
150
142
  scoped_admins: Promover o usuário regular para administradores que só podem administrar certas partes da web pública (use o editor de restrições para isso). Note que usuários que já possuem permissões de administrador regulares serão ignorados.
151
143
  scoped_styles: Crie CSS personalizado que se aplica somente em certas partes da web pública (use o editor de restrições para isso)
152
144
  scoped_styles_variables: 'Você pode usar as seguintes variáveis CSS para cores personalizadas da organização:'
153
- use_markdown_editor: Isto irá substituir o editor do Quill WYSIWYG, para usar um editor de Markdown. O texto será convertido e salvo como HTML no banco de dados.
154
145
  form_proposal_custom_fields:
155
146
  new: Adicionar uma nova caixa "campos personalizados"
156
147
  remove: Remover esta caixa "campos personalizados"
@@ -165,7 +156,6 @@ pt-BR:
165
156
  sure_to_remove: Deseja mesmo destruir essa caixa de CSS?
166
157
  none: "⛔ Nunca! - Desativar qualquer outra restrição"
167
158
  process_groups: Grupos de processo
168
- rich_text_editor_in_public_views: 'OBSERVAÇÃO: "Editor de texto rico para os participantes" está habilitado, esta opção não será aplicada. Use os hacks dos editores ao invés disso habilite as imagens em propostas.'
169
159
  show:
170
160
  title: Ajustes para %{setting}
171
161
  update: Configuração atualizada
@@ -263,10 +253,11 @@ pt-BR:
263
253
  index:
264
254
  confirm_destroy: Tem certeza que deseja remover esta customização?
265
255
  edit: Editar
256
+ menu:
257
+ title: Menu Principal
266
258
  new: Novo item
267
259
  remove: Remover adição
268
260
  remove_hack: Remover personalização
269
- title: Menu Principal
270
261
  new:
271
262
  save: Salvar
272
263
  title: Novo item de menu
@@ -331,11 +322,15 @@ pt-BR:
331
322
  voting_cards:
332
323
  modal:
333
324
  cancel: Cancelar
325
+ meetings:
326
+ meetings_map:
327
+ view_meeting: Ver reunião
328
+ proposals:
329
+ proposals:
330
+ proposal:
331
+ view_proposal: Ver proposta
334
332
  layouts:
335
333
  decidim:
336
- admin:
337
- decidim_awesome:
338
- title: Ajustes Decidim
339
334
  decidim_awesome:
340
335
  awesome_config:
341
336
  amendments: Emendas
@@ -3,10 +3,7 @@ ro:
3
3
  activemodel:
4
4
  attributes:
5
5
  config:
6
- allow_images_in_full_editor: Permite imagini în editorul HTML complet
7
- allow_images_in_markdown_editor: Permite imagini în editorul markdown
8
6
  allow_images_in_proposals: Permite imaginile în editorul de propuneri
9
- allow_images_in_small_editor: Permite imagini în editorul HTML minimal
10
7
  auto_save_forms: Salvare automată a formularelor în memoria locală
11
8
  intergram_chat_id: ID Conversație
12
9
  intergram_color: Culoarea widget-ului
@@ -3,10 +3,7 @@ sv:
3
3
  activemodel:
4
4
  attributes:
5
5
  config:
6
- allow_images_in_full_editor: Tillåt bilder i den fullständiga HTML-editorn
7
- allow_images_in_markdown_editor: Tillåt bilder i den fullständiga Markdown-editorn
8
6
  allow_images_in_proposals: Tillåt bilder i förslagsfältet
9
- allow_images_in_small_editor: Tillåt bilder i den minimala HTML-editorn
10
7
  auto_save_forms: Spara formulär automatiskt i lokal lagring
11
8
  intergram_chat_id: Chatt ID
12
9
  intergram_color: Huvudfärg för widget
@@ -73,8 +70,6 @@ sv:
73
70
  edit: Redigera
74
71
  form:
75
72
  edit_label: Byt namn på etikett
76
- help:
77
- use_markdown_editor: This will substitute the Quill WYSIWYG editor, use a Markdown editor instead. Text will be rendered as HTML in the public pages (text in database will be saved as markdown text)
78
73
  form_scoped_styles:
79
74
  remove: Ta bort CSS-rutan
80
75
  process_groups: Dialoggrupper
@@ -127,10 +122,11 @@ sv:
127
122
  logged: Endast synlig för inloggade användare
128
123
  index:
129
124
  edit: Redigera
125
+ menu:
126
+ title: Huvudmeny
130
127
  new: Ny menyknapp
131
128
  remove: Ta bort menyknapp
132
129
  remove_hack: Ta bort menyknapp
133
- title: Huvudmeny
134
130
  new:
135
131
  save: Spara
136
132
  title: Ny menyknapp
@@ -158,11 +154,15 @@ sv:
158
154
  voting_cards:
159
155
  modal:
160
156
  cancel: Avbryt
157
+ meetings:
158
+ meetings_map:
159
+ view_meeting: Visa möte
160
+ proposals:
161
+ proposals:
162
+ proposal:
163
+ view_proposal: Visa förslag
161
164
  layouts:
162
165
  decidim:
163
- admin:
164
- decidim_awesome:
165
- title: Decidim Tweaks
166
166
  decidim_awesome:
167
167
  awesome_config:
168
168
  amendments: Ändringsförslag
@@ -0,0 +1,11 @@
1
+ Style/OpenStructUse:
2
+ Enabled: false
3
+
4
+ Gemspec/RequireMFA:
5
+ Enabled: false
6
+
7
+ Naming/MemoizedInstanceVariableName:
8
+ Enabled: false
9
+
10
+ RSpec/VerifiedDoubleReference:
11
+ Enabled: false