decidim-comments 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/comments/bundle.js +28 -28
- data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
- data/app/commands/decidim/comments/create_comment.rb +9 -1
- data/app/frontend/application/icon.component.jsx +1 -1
- data/app/frontend/comments/add_comment_form.component.jsx +11 -10
- data/app/frontend/comments/add_comment_form.component.test.jsx +5 -5
- data/app/frontend/comments/comment.component.jsx +91 -1
- data/app/frontend/comments/comment.component.test.jsx +18 -0
- data/app/frontend/comments/comment_data.fragment.graphql +2 -0
- data/app/frontend/comments/comment_order_selector.component.jsx +4 -5
- data/app/frontend/comments/comments.query.graphql +1 -0
- data/app/mailers/decidim/comments/comment_notification_mailer.rb +8 -0
- data/app/models/decidim/comments/abilities/admin_user.rb +25 -0
- data/app/models/decidim/comments/abilities/process_admin_user.rb +33 -0
- data/app/models/decidim/comments/comment.rb +7 -1
- data/app/models/decidim/comments/comment_vote.rb +3 -1
- data/app/queries/decidim/comments/sorted_comments.rb +1 -0
- data/app/views/decidim/comments/comment_notification_mailer/comment_created.html.erb +1 -1
- data/app/views/decidim/comments/comment_notification_mailer/reply_created.html.erb +1 -1
- data/config/locales/ca.yml +11 -0
- data/config/locales/en.yml +12 -2
- data/config/locales/es.yml +11 -0
- data/config/locales/eu.yml +38 -1
- data/config/locales/fi.yml +66 -0
- data/lib/decidim/comments.rb +2 -0
- data/lib/decidim/comments/admin.rb +9 -0
- data/lib/decidim/comments/admin_engine.rb +22 -0
- data/lib/decidim/comments/api/comment_type.rb +12 -0
- data/lib/decidim/comments/commentable.rb +0 -2
- data/lib/decidim/comments/engine.rb +1 -0
- data/lib/decidim/comments/test/factories.rb +3 -0
- metadata +13 -14
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.0.
|
4
|
+
version: 0.0.6
|
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: 2017-
|
13
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,34 +18,28 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.0.
|
21
|
+
version: 0.0.6
|
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.0.
|
28
|
+
version: 0.0.6
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rails
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 5.0.
|
36
|
-
- - ">="
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: 5.0.0.1
|
35
|
+
version: 5.0.2
|
39
36
|
type: :runtime
|
40
37
|
prerelease: false
|
41
38
|
version_requirements: !ruby/object:Gem::Requirement
|
42
39
|
requirements:
|
43
40
|
- - "~>"
|
44
41
|
- !ruby/object:Gem::Version
|
45
|
-
version: 5.0.
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 5.0.0.1
|
42
|
+
version: 5.0.2
|
49
43
|
- !ruby/object:Gem::Dependency
|
50
44
|
name: jquery-rails
|
51
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,14 +60,14 @@ dependencies:
|
|
66
60
|
requirements:
|
67
61
|
- - '='
|
68
62
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.0.
|
63
|
+
version: 0.0.6
|
70
64
|
type: :development
|
71
65
|
prerelease: false
|
72
66
|
version_requirements: !ruby/object:Gem::Requirement
|
73
67
|
requirements:
|
74
68
|
- - '='
|
75
69
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.0.
|
70
|
+
version: 0.0.6
|
77
71
|
description: Pluggable comments system for some components.
|
78
72
|
email:
|
79
73
|
- josepjaume@gmail.com
|
@@ -137,6 +131,8 @@ files:
|
|
137
131
|
- app/frontend/support/resolve_graphql_query.js
|
138
132
|
- app/frontend/support/stub_component.js
|
139
133
|
- app/mailers/decidim/comments/comment_notification_mailer.rb
|
134
|
+
- app/models/decidim/comments/abilities/admin_user.rb
|
135
|
+
- app/models/decidim/comments/abilities/process_admin_user.rb
|
140
136
|
- app/models/decidim/comments/application_record.rb
|
141
137
|
- app/models/decidim/comments/comment.rb
|
142
138
|
- app/models/decidim/comments/comment_vote.rb
|
@@ -153,6 +149,7 @@ files:
|
|
153
149
|
- config/locales/en.yml
|
154
150
|
- config/locales/es.yml
|
155
151
|
- config/locales/eu.yml
|
152
|
+
- config/locales/fi.yml
|
156
153
|
- db/migrate/20161130143508_create_comments.rb
|
157
154
|
- db/migrate/20161214082645_add_depth_to_comments.rb
|
158
155
|
- db/migrate/20161216102820_add_alignment_to_comments.rb
|
@@ -160,6 +157,8 @@ files:
|
|
160
157
|
- db/migrate/20170123102043_add_user_group_id_to_comments.rb
|
161
158
|
- db/seeds.rb
|
162
159
|
- lib/decidim/comments.rb
|
160
|
+
- lib/decidim/comments/admin.rb
|
161
|
+
- lib/decidim/comments/admin_engine.rb
|
163
162
|
- lib/decidim/comments/api/add_comment_type.rb
|
164
163
|
- lib/decidim/comments/api/comment_mutation_type.rb
|
165
164
|
- lib/decidim/comments/api/comment_type.rb
|