decidim-comments 0.24.1 → 0.25.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -20
  3. data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
  4. data/app/cells/decidim/comments/comment/actions.erb +1 -1
  5. data/app/cells/decidim/comments/comment/deletion_data.erb +1 -0
  6. data/app/cells/decidim/comments/comment/show.erb +30 -21
  7. data/app/cells/decidim/comments/comment/utilities.erb +40 -12
  8. data/app/cells/decidim/comments/comment/votes.erb +6 -6
  9. data/app/cells/decidim/comments/comment_cell.rb +29 -0
  10. data/app/cells/decidim/comments/comment_form/show.erb +1 -1
  11. data/app/cells/decidim/comments/comments/add_comment.erb +10 -6
  12. data/app/cells/decidim/comments/comments/order_control.erb +4 -5
  13. data/app/cells/decidim/comments/comments/show.erb +2 -4
  14. data/app/cells/decidim/comments/comments/user_comments_blocked_warning.erb +5 -1
  15. data/app/cells/decidim/comments/comments_cell.rb +24 -2
  16. data/app/cells/decidim/comments/edit_comment_modal_form/show.erb +29 -0
  17. data/app/cells/decidim/comments/edit_comment_modal_form_cell.rb +53 -0
  18. data/app/commands/decidim/comments/create_comment.rb +2 -1
  19. data/app/commands/decidim/comments/delete_comment.rb +46 -0
  20. data/app/commands/decidim/comments/update_comment.rb +62 -0
  21. data/app/controllers/decidim/comments/comments_controller.rb +63 -6
  22. data/app/events/decidim/comments/comment_voted_event.rb +9 -0
  23. data/app/forms/decidim/comments/comment_form.rb +1 -1
  24. data/app/models/decidim/comments/comment.rb +26 -1
  25. data/app/packs/src/decidim/comments/comments.component.js +299 -0
  26. data/app/{assets/javascripts → packs/src}/decidim/comments/comments.component.test.js +49 -24
  27. data/app/packs/src/decidim/comments/comments.component_for_testing.js +8 -0
  28. data/app/packs/src/decidim/comments/comments.js +1 -0
  29. data/app/permissions/decidim/comments/permissions.rb +10 -1
  30. data/app/queries/decidim/comments/metrics/comment_participants_metric_measure.rb +1 -1
  31. data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +1 -1
  32. data/app/views/decidim/comments/comments/_delete.html.erb +5 -0
  33. data/app/views/decidim/comments/comments/_edited_comment.html.erb +1 -0
  34. data/app/views/decidim/comments/comments/create.js.erb +2 -0
  35. data/app/views/decidim/comments/comments/delete.js.erb +17 -0
  36. data/app/views/decidim/comments/comments/deletion_error.js.erb +1 -0
  37. data/app/views/decidim/comments/comments/reload.js.erb +2 -0
  38. data/app/views/decidim/comments/comments/update.js.erb +8 -0
  39. data/app/views/decidim/comments/comments/update_error.js.erb +1 -0
  40. data/config/assets.rb +5 -0
  41. data/config/locales/ar.yml +0 -1
  42. data/config/locales/ca.yml +7 -1
  43. data/config/locales/cs.yml +25 -1
  44. data/config/locales/de.yml +7 -1
  45. data/config/locales/el.yml +0 -1
  46. data/config/locales/en.yml +25 -1
  47. data/config/locales/es-MX.yml +7 -1
  48. data/config/locales/es-PY.yml +7 -1
  49. data/config/locales/es.yml +7 -1
  50. data/config/locales/fi-plain.yml +25 -1
  51. data/config/locales/fi.yml +25 -1
  52. data/config/locales/fr-CA.yml +25 -1
  53. data/config/locales/fr-LU.yml +162 -0
  54. data/config/locales/fr.yml +25 -1
  55. data/config/locales/gl.yml +25 -1
  56. data/config/locales/hu.yml +0 -1
  57. data/config/locales/it.yml +38 -1
  58. data/config/locales/ja.yml +35 -1
  59. data/config/locales/lb-LU.yml +1 -0
  60. data/config/locales/lv.yml +0 -1
  61. data/config/locales/nl.yml +27 -2
  62. data/config/locales/no.yml +0 -1
  63. data/config/locales/pl.yml +7 -1
  64. data/config/locales/pt-BR.yml +61 -0
  65. data/config/locales/pt.yml +0 -1
  66. data/config/locales/ro-RO.yml +25 -1
  67. data/config/locales/sk.yml +0 -1
  68. data/config/locales/sr-CS.yml +0 -1
  69. data/config/locales/sv.yml +25 -1
  70. data/config/locales/tr-TR.yml +0 -1
  71. data/config/locales/zh-CN.yml +0 -1
  72. data/db/migrate/20200706123136_make_comments_handle_i18n.rb +1 -1
  73. data/db/migrate/20210402124534_add_participatory_process_to_comments.rb +12 -0
  74. data/db/migrate/20210529095942_add_deleted_at_column_to_comments.rb +7 -0
  75. data/lib/decidim/comments/commentable.rb +6 -1
  76. data/lib/decidim/comments/commentable_with_component.rb +33 -0
  77. data/lib/decidim/comments/engine.rb +1 -9
  78. data/lib/decidim/comments/test/factories.rb +1 -0
  79. data/lib/decidim/comments/version.rb +1 -1
  80. data/lib/decidim/comments.rb +1 -0
  81. data/lib/tasks/decidim_comments.rake +15 -0
  82. metadata +32 -29
  83. data/app/assets/config/decidim_comments_manifest.js +0 -1
  84. data/app/assets/javascripts/decidim/comments/comments.component.js.es6 +0 -292
  85. data/app/assets/javascripts/decidim/comments/comments.js.erb +0 -10
  86. data/config/locales/ja-JP.yml +0 -120
@@ -57,7 +57,6 @@ pt:
57
57
  spam: Contém clickbait, publicidade, fraudes ou robots de scripts.
58
58
  title: Reportar conteúdo impróprio
59
59
  show_replies: Mostrar %{replies_count} respostas
60
- single_comment_link_title: Obter hiperligação para um único comentário
61
60
  comment_order_selector:
62
61
  order:
63
62
  best_rated: Melhores avaliações
@@ -21,6 +21,10 @@ ro:
21
21
  comments:
22
22
  create:
23
23
  error: A apărut o problemă la crearea comentariului.
24
+ delete:
25
+ error: Comentariul nu a putut fi șters.
26
+ update:
27
+ error: A apărut o eroare la actualizarea comentariului.
24
28
  comments_count: Numărul de comentarii
25
29
  comments_title: Comentarii
26
30
  last_activity:
@@ -41,7 +45,13 @@ ro:
41
45
  user_group_id:
42
46
  label: Comentează ca
43
47
  opinion:
48
+ label: Opinia dumneavoastră despre acest subiect
49
+ negative: Negativ
50
+ negative_selected: Opinia ta despre acest subiect este negativă
44
51
  neutral: Neutral
52
+ neutral_selected: Opinia dumneavoastră despre acest subiect este neutră
53
+ positive: Pozitiv
54
+ positive_selected: Opinia dumneavoastră despre acest subiect este pozitivă
45
55
  remaining_characters: "%{count} caractere rămase"
46
56
  remaining_characters_1: "%{count} caracter rămas"
47
57
  title: Adaugă comentariul tău
@@ -49,7 +59,12 @@ ro:
49
59
  alignment:
50
60
  against: Împotriva
51
61
  in_favor: În favoarea
62
+ confirm_destroy: Sunteţi sigur că doriţi să ştergeţi acest comentariu?
63
+ delete: Șterge
64
+ deleted_at: Comentariu șters pe %{date}
52
65
  deleted_user: Participant șters
66
+ edit: Editează
67
+ edited: Editat
53
68
  hide_replies: Ascunde răspunsurile
54
69
  reply: Răspuns
55
70
  report:
@@ -64,7 +79,7 @@ ro:
64
79
  spam: Conține clickbait, publicitate, escrocherii sau roboți script.
65
80
  title: Raportează conținut nepotrivit
66
81
  show_replies: Arată %{replies_count} răspunsuri
67
- single_comment_link_title: Obțineți link-ul către un singur comentariu
82
+ single_comment_link_title: Obţine linkul
68
83
  comment_order_selector:
69
84
  order:
70
85
  best_rated: Cele mai apreciate
@@ -75,6 +90,7 @@ ro:
75
90
  comment_thread:
76
91
  title: Conversație cu %{authorName}
77
92
  comments:
93
+ blocked_comments_for_unauthorized_user_warning: Trebuie să fiți verificat pentru a face comentarii în acest moment, dar le puteți citi pe cele anterioare.
78
94
  blocked_comments_for_user_warning: Nu poți comenta în acest moment, dar le poți citi pe cele anterioare.
79
95
  blocked_comments_warning: Comentariile sunt dezactivate în acest moment, dar le puteți citi pe cele anterioare.
80
96
  comment_details_title: Detalii comentariu
@@ -87,6 +103,14 @@ ro:
87
103
  other: "%{count} comentarii"
88
104
  down_vote_button:
89
105
  text: Nu sunt de acord cu acest comentariu
106
+ edit_comment_modal_form:
107
+ close: Închide
108
+ form:
109
+ body:
110
+ label: Comentariu
111
+ placeholder: Ce părere aveţi despre asta?
112
+ submit: Trimite
113
+ title: Editează comentariul tău
90
114
  up_vote_button:
91
115
  text: Sunt de acord cu acest comentariu
92
116
  events:
@@ -59,7 +59,6 @@ sk:
59
59
  offensive: Obsahuje rasizmus, sexizmus, urážky, osobné útoky, vyhrážky alebo inú podobu nenávistného prejavu.
60
60
  spam: Obsahuje clickbait, reklamy, scam alebo je to skriptovací robot.
61
61
  show_replies: Zobraziť %{replies_count} odpovedí
62
- single_comment_link_title: Odkaz na komentár
63
62
  comment_order_selector:
64
63
  order:
65
64
  best_rated: Najlepšie hodnotené
@@ -4,7 +4,6 @@ sr:
4
4
  comment:
5
5
  hide_replies: Sakrij odgovore
6
6
  show_replies: Prikaži %{replies_count} odgovora
7
- single_comment_link_title: Nabavi vezu ka jednom komentaru
8
7
  comments:
9
8
  comment_details_title: Detalji o komentaru
10
9
  single_comment_warning: Možete videti ostale komentare <a href="%{url}">ovde</a>.
@@ -19,6 +19,10 @@ sv:
19
19
  comments:
20
20
  create:
21
21
  error: Det gick inte att skapa kommentaren.
22
+ delete:
23
+ error: Kommentaren kunde inte tas bort.
24
+ update:
25
+ error: Det gick inte att uppdatera kommentaren.
22
26
  comments_count: Antal kommentarer
23
27
  comments_title: Kommentarer
24
28
  last_activity:
@@ -39,7 +43,13 @@ sv:
39
43
  user_group_id:
40
44
  label: Kommentera som
41
45
  opinion:
46
+ label: Din åsikt om detta ämne
47
+ negative: Negativ
48
+ negative_selected: Din åsikt om detta ämne är negativ
42
49
  neutral: Neutral
50
+ neutral_selected: Din åsikt om detta ämne är neutral
51
+ positive: Positiv
52
+ positive_selected: Din åsikt om detta ämne är positiv
43
53
  remaining_characters: "%{count} tecken kvar"
44
54
  remaining_characters_1: "%{count} tecken kvar"
45
55
  title: Lägg till din kommentar
@@ -47,7 +57,12 @@ sv:
47
57
  alignment:
48
58
  against: Mot
49
59
  in_favor: För
60
+ confirm_destroy: Är du säker på att du vill ta bort denna kommentar?
61
+ delete: Radera
62
+ deleted_at: Kommentar borttagen den %{date}
50
63
  deleted_user: Raderad deltagare
64
+ edit: Redigera
65
+ edited: Redigerad
51
66
  hide_replies: Göm svar
52
67
  reply: Svara
53
68
  report:
@@ -62,7 +77,7 @@ sv:
62
77
  spam: Innehåller clickbait, reklam, bedrägerier eller skriptrobotar.
63
78
  title: Rapportera olämpligt innehåll
64
79
  show_replies: Visa %{replies_count} svar
65
- single_comment_link_title: länk till enstaka kommentar
80
+ single_comment_link_title: Hämta länk
66
81
  comment_order_selector:
67
82
  order:
68
83
  best_rated: Bästa betyg
@@ -73,6 +88,7 @@ sv:
73
88
  comment_thread:
74
89
  title: Samtal med %{authorName}
75
90
  comments:
91
+ blocked_comments_for_unauthorized_user_warning: Du behöver verifiera dig för att kunna kommentera just nu, men du kan läsa tidigare kommentarer.
76
92
  blocked_comments_for_user_warning: Du kan inte kommentera just nu, men du kan läsa tidigare kommentarer.
77
93
  blocked_comments_warning: Kommentarer är inaktiverade just nu, men du kan läsa de föregående.
78
94
  comment_details_title: Kommentarsdetaljer
@@ -84,6 +100,14 @@ sv:
84
100
  other: "%{count} kommentarer"
85
101
  down_vote_button:
86
102
  text: Jag håller inte med om denna kommentar
103
+ edit_comment_modal_form:
104
+ close: Stäng
105
+ form:
106
+ body:
107
+ label: Kommentar
108
+ placeholder: Vad tycker du om detta?
109
+ submit: Skicka
110
+ title: Redigera din kommentar
87
111
  up_vote_button:
88
112
  text: Jag instämmer i denna kommentar
89
113
  events:
@@ -62,7 +62,6 @@ tr:
62
62
  spam: Clickbait, reklam, dolandırıcılık veya script botları içerir.
63
63
  title: Uygunsuz içerik bildir
64
64
  show_replies: '%{replies_count} yanıtı göster'
65
- single_comment_link_title: Tek yorumun bağlantısını al
66
65
  comment_order_selector:
67
66
  order:
68
67
  best_rated: En çok oy alan
@@ -56,7 +56,6 @@ zh-CN:
56
56
  spam: 包含点击、广告、骗子或脚本机器人。
57
57
  title: 报告不恰当的内容
58
58
  show_replies: 显示 %{replies_count} 个回复
59
- single_comment_link_title: 获取单个评论的链接
60
59
  comment_order_selector:
61
60
  order:
62
61
  best_rated: 最佳评分
@@ -21,7 +21,7 @@ class MakeCommentsHandleI18n < ActiveRecord::Migration[5.2]
21
21
  Organization.reset_column_information
22
22
 
23
23
  Comment.find_each do |comment|
24
- locale, org_id = User.where(id: comment.decidim_author_id).pluck(:locale, :decidim_organization_id).first
24
+ locale, org_id = User.where(id: comment.decidim_author_id).pick(:locale, :decidim_organization_id)
25
25
  locale = locale.presence || Organization.find(org_id).default_locale
26
26
 
27
27
  comment.new_body = {
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddParticipatoryProcessToComments < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_column :decidim_comments_comments, :decidim_participatory_space_type, :string
6
+ add_column :decidim_comments_comments, :decidim_participatory_space_id, :integer
7
+
8
+ add_index :decidim_comments_comments,
9
+ [:decidim_participatory_space_id, :decidim_participatory_space_type],
10
+ name: "index_decidim_comments_on_decidim_participatory_space"
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddDeletedAtColumnToComments < ActiveRecord::Migration[6.0]
4
+ def change
5
+ add_column :decidim_comments_comments, :deleted_at, :datetime
6
+ end
7
+ end
@@ -52,13 +52,18 @@ module Decidim
52
52
  true
53
53
  end
54
54
 
55
+ # Public: Whether the object can have new comment votes or not.
56
+ def user_allowed_to_vote_comment?(_user)
57
+ true
58
+ end
59
+
55
60
  # Public: Updates the comments counter cache. We have to do it these
56
61
  # way in order to properly calculate the coutner with hidden
57
62
  # comments.
58
63
  #
59
64
  # rubocop:disable Rails/SkipsModelValidations
60
65
  def update_comments_count
61
- comments_count = comments.not_hidden.count
66
+ comments_count = comments.not_hidden.not_deleted.count
62
67
  update_columns(comments_count: comments_count, updated_at: Time.current)
63
68
  end
64
69
  # rubocop:enable Rails/SkipsModelValidations
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/concern"
4
+
5
+ module Decidim
6
+ module Comments
7
+ # Commentable overriding some methods to include settings and
8
+ # authorizations given by a component the resource belongs to
9
+ module CommentableWithComponent
10
+ extend ActiveSupport::Concern
11
+ include Decidim::Comments::Commentable
12
+
13
+ included do
14
+ # Public: Overrides the `commentable?` Commentable concern method.
15
+ def commentable?
16
+ component.settings.comments_enabled?
17
+ end
18
+
19
+ # Public: Overrides the `accepts_new_comments?` Commentable concern method.
20
+ def accepts_new_comments?
21
+ commentable? && !component.current_settings.comments_blocked
22
+ end
23
+
24
+ # Public: Whether the object can have new comments or not.
25
+ def user_allowed_to_comment?(user)
26
+ return unless can_participate?(user)
27
+
28
+ ActionAuthorizer.new(user, "comment", component, self).authorize.ok?
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -4,11 +4,7 @@ require "rails"
4
4
  require "active_support/all"
5
5
 
6
6
  require "decidim/core"
7
- require "jquery-rails"
8
- require "sassc-rails"
9
- require "foundation-rails"
10
7
  require "foundation_rails_helper"
11
- require "autoprefixer-rails"
12
8
 
13
9
  require "decidim/comments/query_extensions"
14
10
  require "decidim/comments/mutation_extensions"
@@ -20,15 +16,11 @@ module Decidim
20
16
  isolate_namespace Decidim::Comments
21
17
 
22
18
  routes do
23
- resources :comments, only: [:index, :create] do
19
+ resources :comments, except: [:new, :edit] do
24
20
  resources :votes, only: [:create]
25
21
  end
26
22
  end
27
23
 
28
- initializer "decidim_comments.assets" do |app|
29
- app.config.assets.precompile += %w(decidim_comments_manifest.js)
30
- end
31
-
32
24
  initializer "decidim_comments.query_extensions" do
33
25
  Decidim::Api::QueryType.include QueryExtensions
34
26
  end
@@ -8,6 +8,7 @@ FactoryBot.define do
8
8
  commentable { build(:dummy_resource) }
9
9
  root_commentable { commentable }
10
10
  body { Decidim::Faker::Localized.paragraph }
11
+ participatory_space { commentable.try(:participatory_space) }
11
12
 
12
13
  after(:build) do |comment, evaluator|
13
14
  comment.body = if evaluator.body.is_a?(String)
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-comments version.
5
5
  module Comments
6
6
  def self.version
7
- "0.24.1"
7
+ "0.25.0.rc2"
8
8
  end
9
9
  end
10
10
  end
@@ -12,6 +12,7 @@ module Decidim
12
12
  module Comments
13
13
  autoload :CommentsHelper, "decidim/comments/comments_helper"
14
14
  autoload :Commentable, "decidim/comments/commentable"
15
+ autoload :CommentableWithComponent, "decidim/comments/commentable_with_component"
15
16
  autoload :CommentSerializer, "decidim/comments/comment_serializer"
16
17
  autoload :CommentVoteSerializer, "decidim/comments/comment_vote_serializer"
17
18
  autoload :Export, "decidim/comments/export"
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :decidim_comments do
4
+ desc "Adds participatory_process_id to comments if they are associated with a participatory process"
5
+ task update_participatory_process_in_comments: :environment do
6
+ Decidim::Comments::Comment.find_each do |c|
7
+ c.participatory_space = if c.root_commentable.is_a?(Decidim::Participable)
8
+ c.root_commentable
9
+ else
10
+ c.commentable.try(:participatory_space)
11
+ end
12
+ c.save(validate: false)
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.1
4
+ version: 0.25.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-04-08 00:00:00.000000000 Z
13
+ date: 2021-09-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,28 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.24.1
21
+ version: 0.25.0.rc2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.24.1
29
- - !ruby/object:Gem::Dependency
30
- name: jquery-rails
31
- requirement: !ruby/object:Gem::Requirement
32
- requirements:
33
- - - "~>"
34
- - !ruby/object:Gem::Version
35
- version: '4.4'
36
- type: :runtime
37
- prerelease: false
38
- version_requirements: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - "~>"
41
- - !ruby/object:Gem::Version
42
- version: '4.4'
28
+ version: 0.25.0.rc2
43
29
  - !ruby/object:Gem::Dependency
44
30
  name: redcarpet
45
31
  requirement: !ruby/object:Gem::Requirement
@@ -66,28 +52,28 @@ dependencies:
66
52
  requirements:
67
53
  - - '='
68
54
  - !ruby/object:Gem::Version
69
- version: 0.24.1
55
+ version: 0.25.0.rc2
70
56
  type: :development
71
57
  prerelease: false
72
58
  version_requirements: !ruby/object:Gem::Requirement
73
59
  requirements:
74
60
  - - '='
75
61
  - !ruby/object:Gem::Version
76
- version: 0.24.1
62
+ version: 0.25.0.rc2
77
63
  - !ruby/object:Gem::Dependency
78
64
  name: decidim-dev
79
65
  requirement: !ruby/object:Gem::Requirement
80
66
  requirements:
81
67
  - - '='
82
68
  - !ruby/object:Gem::Version
83
- version: 0.24.1
69
+ version: 0.25.0.rc2
84
70
  type: :development
85
71
  prerelease: false
86
72
  version_requirements: !ruby/object:Gem::Requirement
87
73
  requirements:
88
74
  - - '='
89
75
  - !ruby/object:Gem::Version
90
- version: 0.24.1
76
+ version: 0.25.0.rc2
91
77
  description: Pluggable comments system for some components.
92
78
  email:
93
79
  - josepjaume@gmail.com
@@ -99,14 +85,11 @@ extra_rdoc_files: []
99
85
  files:
100
86
  - README.md
101
87
  - Rakefile
102
- - app/assets/config/decidim_comments_manifest.js
103
88
  - app/assets/javascripts/decidim/comments/bundle.js.map
104
- - app/assets/javascripts/decidim/comments/comments.component.js.es6
105
- - app/assets/javascripts/decidim/comments/comments.component.test.js
106
- - app/assets/javascripts/decidim/comments/comments.js.erb
107
89
  - app/cells/decidim/comments/comment/actions.erb
108
90
  - app/cells/decidim/comments/comment/alignment_badge.erb
109
91
  - app/cells/decidim/comments/comment/author.erb
92
+ - app/cells/decidim/comments/comment/deletion_data.erb
110
93
  - app/cells/decidim/comments/comment/show.erb
111
94
  - app/cells/decidim/comments/comment/utilities.erb
112
95
  - app/cells/decidim/comments/comment/votes.erb
@@ -129,7 +112,11 @@ files:
129
112
  - app/cells/decidim/comments/comments/single_comment_warning.erb
130
113
  - app/cells/decidim/comments/comments/user_comments_blocked_warning.erb
131
114
  - app/cells/decidim/comments/comments_cell.rb
115
+ - app/cells/decidim/comments/edit_comment_modal_form/show.erb
116
+ - app/cells/decidim/comments/edit_comment_modal_form_cell.rb
132
117
  - app/commands/decidim/comments/create_comment.rb
118
+ - app/commands/decidim/comments/delete_comment.rb
119
+ - app/commands/decidim/comments/update_comment.rb
133
120
  - app/commands/decidim/comments/vote_comment.rb
134
121
  - app/controllers/decidim/comments/application_controller.rb
135
122
  - app/controllers/decidim/comments/comments_controller.rb
@@ -150,6 +137,10 @@ files:
150
137
  - app/models/decidim/comments/comment.rb
151
138
  - app/models/decidim/comments/comment_vote.rb
152
139
  - app/models/decidim/comments/seed.rb
140
+ - app/packs/src/decidim/comments/comments.component.js
141
+ - app/packs/src/decidim/comments/comments.component.test.js
142
+ - app/packs/src/decidim/comments/comments.component_for_testing.js
143
+ - app/packs/src/decidim/comments/comments.js
153
144
  - app/permissions/decidim/comments/permissions.rb
154
145
  - app/queries/decidim/comments/metrics/comment_participants_metric_measure.rb
155
146
  - app/queries/decidim/comments/metrics/comments_metric_manage.rb
@@ -160,12 +151,19 @@ files:
160
151
  - app/services/decidim/comments/new_comment_notification_creator.rb
161
152
  - app/views/decidim/comments/comments/_comment.html.erb
162
153
  - app/views/decidim/comments/comments/_comments.html.erb
154
+ - app/views/decidim/comments/comments/_delete.html.erb
155
+ - app/views/decidim/comments/comments/_edited_comment.html.erb
163
156
  - app/views/decidim/comments/comments/create.js.erb
157
+ - app/views/decidim/comments/comments/delete.js.erb
158
+ - app/views/decidim/comments/comments/deletion_error.js.erb
164
159
  - app/views/decidim/comments/comments/error.js.erb
165
160
  - app/views/decidim/comments/comments/index.js.erb
166
161
  - app/views/decidim/comments/comments/reload.js.erb
162
+ - app/views/decidim/comments/comments/update.js.erb
163
+ - app/views/decidim/comments/comments/update_error.js.erb
167
164
  - app/views/decidim/comments/votes/create.js.erb
168
165
  - app/views/decidim/comments/votes/error.js.erb
166
+ - config/assets.rb
169
167
  - config/locales/am-ET.yml
170
168
  - config/locales/ar-SA.yml
171
169
  - config/locales/ar.yml
@@ -192,6 +190,7 @@ files:
192
190
  - config/locales/fi-plain.yml
193
191
  - config/locales/fi.yml
194
192
  - config/locales/fr-CA.yml
193
+ - config/locales/fr-LU.yml
195
194
  - config/locales/fr.yml
196
195
  - config/locales/ga-IE.yml
197
196
  - config/locales/gl.yml
@@ -202,10 +201,10 @@ files:
202
201
  - config/locales/is-IS.yml
203
202
  - config/locales/is.yml
204
203
  - config/locales/it.yml
205
- - config/locales/ja-JP.yml
206
204
  - config/locales/ja.yml
207
205
  - config/locales/ko-KR.yml
208
206
  - config/locales/ko.yml
207
+ - config/locales/lb-LU.yml
209
208
  - config/locales/lt-LT.yml
210
209
  - config/locales/lt.yml
211
210
  - config/locales/lv.yml
@@ -248,6 +247,8 @@ files:
248
247
  - db/migrate/20200320105911_index_foreign_keys_in_decidim_comments_comments.rb
249
248
  - db/migrate/20200706123136_make_comments_handle_i18n.rb
250
249
  - db/migrate/20200828101910_add_commentable_counter_cache_to_comments.rb
250
+ - db/migrate/20210402124534_add_participatory_process_to_comments.rb
251
+ - db/migrate/20210529095942_add_deleted_at_column_to_comments.rb
251
252
  - db/seeds.rb
252
253
  - lib/decidim/api/add_comment_type.rb
253
254
  - lib/decidim/api/comment_mutation_type.rb
@@ -262,6 +263,7 @@ files:
262
263
  - lib/decidim/comments/comment_serializer.rb
263
264
  - lib/decidim/comments/comment_vote_serializer.rb
264
265
  - lib/decidim/comments/commentable.rb
266
+ - lib/decidim/comments/commentable_with_component.rb
265
267
  - lib/decidim/comments/comments_helper.rb
266
268
  - lib/decidim/comments/engine.rb
267
269
  - lib/decidim/comments/export.rb
@@ -274,6 +276,7 @@ files:
274
276
  - lib/decidim/comments/test/shared_examples/comment_voted_event.rb
275
277
  - lib/decidim/comments/test/shared_examples/create_comment_context.rb
276
278
  - lib/decidim/comments/version.rb
279
+ - lib/tasks/decidim_comments.rake
277
280
  homepage: https://github.com/decidim/decidim
278
281
  licenses:
279
282
  - AGPL-3.0
@@ -289,9 +292,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
289
292
  version: '2.7'
290
293
  required_rubygems_version: !ruby/object:Gem::Requirement
291
294
  requirements:
292
- - - ">="
295
+ - - ">"
293
296
  - !ruby/object:Gem::Version
294
- version: '0'
297
+ version: 1.3.1
295
298
  requirements: []
296
299
  rubygems_version: 3.1.2
297
300
  signing_key: