decidim-comments 0.24.3 → 0.25.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -20
  3. data/app/cells/decidim/comments/comment/actions.erb +1 -1
  4. data/app/cells/decidim/comments/comment/deletion_data.erb +1 -0
  5. data/app/cells/decidim/comments/comment/show.erb +30 -21
  6. data/app/cells/decidim/comments/comment/utilities.erb +40 -12
  7. data/app/cells/decidim/comments/comment/votes.erb +6 -6
  8. data/app/cells/decidim/comments/comment_cell.rb +29 -0
  9. data/app/cells/decidim/comments/comment_form/show.erb +1 -1
  10. data/app/cells/decidim/comments/comments/add_comment.erb +10 -6
  11. data/app/cells/decidim/comments/comments/order_control.erb +4 -5
  12. data/app/cells/decidim/comments/comments/show.erb +2 -4
  13. data/app/cells/decidim/comments/comments/user_comments_blocked_warning.erb +5 -1
  14. data/app/cells/decidim/comments/comments_cell.rb +24 -2
  15. data/app/cells/decidim/comments/edit_comment_modal_form/show.erb +29 -0
  16. data/app/cells/decidim/comments/edit_comment_modal_form_cell.rb +53 -0
  17. data/app/commands/decidim/comments/delete_comment.rb +46 -0
  18. data/app/commands/decidim/comments/update_comment.rb +62 -0
  19. data/app/controllers/decidim/comments/comments_controller.rb +63 -6
  20. data/app/events/decidim/comments/comment_voted_event.rb +9 -0
  21. data/app/models/decidim/comments/comment.rb +21 -1
  22. data/app/packs/src/decidim/comments/comments.component.js +299 -0
  23. data/app/{assets/javascripts → packs/src}/decidim/comments/comments.component.test.js +49 -24
  24. data/app/packs/src/decidim/comments/comments.component_for_testing.js +8 -0
  25. data/app/packs/src/decidim/comments/comments.js +1 -0
  26. data/app/permissions/decidim/comments/permissions.rb +10 -1
  27. data/app/queries/decidim/comments/metrics/comment_participants_metric_measure.rb +1 -1
  28. data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +1 -1
  29. data/app/views/decidim/comments/comments/_delete.html.erb +5 -0
  30. data/app/views/decidim/comments/comments/_edited_comment.html.erb +1 -0
  31. data/app/views/decidim/comments/comments/create.js.erb +2 -0
  32. data/app/views/decidim/comments/comments/delete.js.erb +17 -0
  33. data/app/views/decidim/comments/comments/deletion_error.js.erb +1 -0
  34. data/app/views/decidim/comments/comments/reload.js.erb +2 -0
  35. data/app/views/decidim/comments/comments/update.js.erb +8 -0
  36. data/app/views/decidim/comments/comments/update_error.js.erb +1 -0
  37. data/config/assets.rb +5 -0
  38. data/config/locales/ar.yml +0 -1
  39. data/config/locales/ca.yml +7 -1
  40. data/config/locales/cs.yml +25 -1
  41. data/config/locales/de.yml +7 -1
  42. data/config/locales/el.yml +0 -1
  43. data/config/locales/en.yml +25 -1
  44. data/config/locales/es-MX.yml +7 -1
  45. data/config/locales/es-PY.yml +7 -1
  46. data/config/locales/es.yml +7 -1
  47. data/config/locales/fi-plain.yml +25 -1
  48. data/config/locales/fi.yml +25 -1
  49. data/config/locales/fr-CA.yml +25 -1
  50. data/config/locales/fr-LU.yml +162 -0
  51. data/config/locales/fr.yml +25 -1
  52. data/config/locales/gl.yml +25 -1
  53. data/config/locales/hu.yml +0 -1
  54. data/config/locales/it.yml +38 -1
  55. data/config/locales/ja.yml +35 -1
  56. data/config/locales/lb-LU.yml +1 -0
  57. data/config/locales/lv.yml +0 -1
  58. data/config/locales/nl.yml +27 -2
  59. data/config/locales/no.yml +0 -1
  60. data/config/locales/pl.yml +7 -1
  61. data/config/locales/pt-BR.yml +61 -0
  62. data/config/locales/pt.yml +0 -1
  63. data/config/locales/ro-RO.yml +25 -1
  64. data/config/locales/sk.yml +0 -1
  65. data/config/locales/sr-CS.yml +0 -1
  66. data/config/locales/sv.yml +25 -1
  67. data/config/locales/tr-TR.yml +0 -1
  68. data/config/locales/zh-CN.yml +0 -1
  69. data/db/migrate/20200706123136_make_comments_handle_i18n.rb +1 -1
  70. data/db/migrate/20210529095942_add_deleted_at_column_to_comments.rb +7 -0
  71. data/lib/decidim/comments.rb +1 -0
  72. data/lib/decidim/comments/commentable.rb +6 -1
  73. data/lib/decidim/comments/commentable_with_component.rb +33 -0
  74. data/lib/decidim/comments/engine.rb +1 -9
  75. data/lib/decidim/comments/version.rb +1 -1
  76. metadata +31 -31
  77. data/app/assets/config/decidim_comments_manifest.js +0 -1
  78. data/app/assets/javascripts/decidim/comments/bundle.js.map +0 -1
  79. data/app/assets/javascripts/decidim/comments/comments.component.js.es6 +0 -292
  80. data/app/assets/javascripts/decidim/comments/comments.js.erb +0 -10
  81. data/config/locales/ja-JP.yml +0 -120

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.