decidim-comments 0.6.8 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/comments/bundle.js +25 -25
- data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
- data/app/events/decidim/comments/comment_created_event.rb +1 -1
- data/app/frontend/comments/add_comment_form.component.test.tsx +2 -2
- data/app/frontend/comments/comment.component.test.tsx +1 -1
- data/app/frontend/comments/comment_order_selector.component.test.tsx +8 -0
- data/app/frontend/comments/comment_thread.component.test.tsx +1 -1
- data/app/frontend/comments/comments.component.test.tsx +1 -1
- data/app/frontend/comments/down_vote_button.component.test.tsx +1 -1
- data/app/frontend/comments/up_vote_button.component.test.tsx +1 -1
- data/app/frontend/entry_test.ts +4 -0
- data/app/models/decidim/comments/comment.rb +1 -3
- data/app/models/decidim/comments/seed.rb +1 -1
- data/config/locales/ca.yml +2 -2
- data/config/locales/en.yml +2 -2
- data/config/locales/es.yml +2 -2
- data/config/locales/eu.yml +3 -3
- data/config/locales/fi.yml +10 -10
- data/config/locales/fr.yml +2 -2
- data/config/locales/it.yml +2 -2
- data/config/locales/nl.yml +2 -2
- data/config/locales/pl.yml +2 -2
- data/config/locales/ru.yml +70 -0
- data/config/locales/uk.yml +10 -10
- data/db/migrate/20170510091348_update_root_commentable_for_comments.rb +2 -0
- data/lib/decidim/comments/version.rb +10 -0
- metadata +13 -24
data/config/locales/nl.yml
CHANGED
|
@@ -4,9 +4,9 @@ nl:
|
|
|
4
4
|
events:
|
|
5
5
|
comment_created:
|
|
6
6
|
comment:
|
|
7
|
-
email_intro:
|
|
7
|
+
email_intro: '"%{resource_title}" is becommentarieerd. U kunt de reactie op deze pagina lezen:'
|
|
8
8
|
email_outro: U heeft deze melding ontvangen omdat u "%{resource_title}" volgt. U kunt het niet volgen vanaf de vorige link.
|
|
9
|
-
email_subject: Er is een nieuwe reactie van %{author_name} in
|
|
9
|
+
email_subject: Er is een nieuwe reactie van %{author_name} in %{resource_title}
|
|
10
10
|
notification_title: Er is een nieuwe reactie van %{author_name} in <a href="%{resource_path}">%{resource_title}</a>
|
|
11
11
|
reply:
|
|
12
12
|
email_intro: De "%{resource_title}" is opgemerkt
|
data/config/locales/pl.yml
CHANGED
|
@@ -4,9 +4,9 @@ pl:
|
|
|
4
4
|
events:
|
|
5
5
|
comment_created:
|
|
6
6
|
comment:
|
|
7
|
-
email_intro: '"Skomentował" %{resource_title} "'
|
|
7
|
+
email_intro: '"Skomentował" %{resource_title} ". Możesz przeczytać komentarz na tej stronie:'
|
|
8
8
|
email_outro: Otrzymujesz to powiadomienie, ponieważ śledzisz "%{resource_title}". Możesz cofnąć ją od poprzedniego linku.
|
|
9
|
-
email_subject: Istnieje nowy komentarz z %{author_name} w
|
|
9
|
+
email_subject: Istnieje nowy komentarz z %{author_name} w %{resource_title}
|
|
10
10
|
notification_title: W %{author_name} w <a href="%{resource_path}">%{resource_title}</a> nowy komentarz
|
|
11
11
|
reply:
|
|
12
12
|
email_intro: '"Skomentował" %{resource_title} "'
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
ru:
|
|
2
|
+
decidim:
|
|
3
|
+
comments:
|
|
4
|
+
events:
|
|
5
|
+
comment_created:
|
|
6
|
+
comment:
|
|
7
|
+
email_intro: '«%{resource_title}» прокомментировали. Вы можете прочитать комментарий на странице:'
|
|
8
|
+
email_outro: Вы получили это уведомление, потому что вы следите за «%{resource_title}». Вы можете перестать за ним следить, перейдя по приведенной выше ссылке.
|
|
9
|
+
email_subject: Появился новый комментарий от %{author_name} в %{resource_title}
|
|
10
|
+
notification_title: Появился новый комментарий от %{author_name} в <a href="%{resource_path}">%{resource_title}</a>
|
|
11
|
+
reply:
|
|
12
|
+
email_intro: '«%{resource_title}» прокомментировано'
|
|
13
|
+
email_outro: Вы получили это уведомление, потому что вы следите за «%{resource_title}». Вы можете перестать за ним следить, перейдя по приведенной выше ссылке.
|
|
14
|
+
email_subject: На ваш комментарий появился новый ответ от %{author_name} в <a href="%{resource_url}">%{resource_title}</a>
|
|
15
|
+
notification_title: На ваш комментарий появился новый ответ от %{author_name} в <a href="%{resource_path}">%{resource_title}</a>
|
|
16
|
+
votes:
|
|
17
|
+
create:
|
|
18
|
+
error: При голосовании за комментарий произошли ошибки.
|
|
19
|
+
components:
|
|
20
|
+
add_comment_form:
|
|
21
|
+
account_message: <a href="%{sign_in_url}">Войдите в систему через свою учетную запись</a> или <a href="%{sign_up_url}">зарегистрируйтесь</a>, чтобы добавить свой комментарий.
|
|
22
|
+
form:
|
|
23
|
+
body:
|
|
24
|
+
label: Комментарий
|
|
25
|
+
placeholder: Что вы думаете об этом?
|
|
26
|
+
form_error: Тут обязательно нужно ввести текст, но не больше %{length} символов.
|
|
27
|
+
submit: Отправить
|
|
28
|
+
user_group_id:
|
|
29
|
+
label: Комментировать как
|
|
30
|
+
opinion:
|
|
31
|
+
neutral: Безучастно
|
|
32
|
+
remaining_characters: "Осталось %{count} символов"
|
|
33
|
+
remaining_characters_1: "Остался %{count} символ"
|
|
34
|
+
title: Добавьте свой комментарий
|
|
35
|
+
comment:
|
|
36
|
+
alignment:
|
|
37
|
+
against: Против
|
|
38
|
+
in_favor: В поддержку
|
|
39
|
+
deleted_user: Удаленный пользователь
|
|
40
|
+
reply: Ответить
|
|
41
|
+
report:
|
|
42
|
+
action: Пожаловаться
|
|
43
|
+
already_reported: На это содержимое уже пожаловались, и жалобу рассмотрит администратор.
|
|
44
|
+
close: Закрыть
|
|
45
|
+
description: Это сообщение неприемлемо?
|
|
46
|
+
details: Дополнительные комментарии
|
|
47
|
+
reasons:
|
|
48
|
+
does_not_belong: Содержит незаконную деятельность, угрозы самоубийства, личную информацию или что-то еще, недопустимое, на ваш взгляд, для %{organization_name}.
|
|
49
|
+
offensive: Содержит расизм, сексизм, оскорбления, личные нападки, угрозы убийства, заявления о самоубийстве, или любую форму разжигания ненависти.
|
|
50
|
+
spam: Содержит кликоловки (манипулятивно-сенсационные заголовки), рекламу, мошенничество или лохотроны.
|
|
51
|
+
title: Пожаловаться на проблему
|
|
52
|
+
verified_user_group: Проверенная организация
|
|
53
|
+
comment_order_selector:
|
|
54
|
+
order:
|
|
55
|
+
best_rated: С наивысшим рейтингом
|
|
56
|
+
most_discussed: Самые обсуждаемые
|
|
57
|
+
older: Старые
|
|
58
|
+
recent: Недавние
|
|
59
|
+
title: 'Упорядочить по:'
|
|
60
|
+
comment_thread:
|
|
61
|
+
title: Беседа с %{authorName}
|
|
62
|
+
comments:
|
|
63
|
+
blocked_comments_warning: На текущем шаге комментарии отключены, но вы можете прочитать комментарии предыдущих шагов.
|
|
64
|
+
loading: Загрузка комментариев ...
|
|
65
|
+
title: "%{count} комментариев"
|
|
66
|
+
featured_comment:
|
|
67
|
+
title: Избранный комментарий
|
|
68
|
+
errors:
|
|
69
|
+
messages:
|
|
70
|
+
cannot_have_comments: не подлежит комментированию
|
data/config/locales/uk.yml
CHANGED
|
@@ -4,9 +4,9 @@ uk:
|
|
|
4
4
|
events:
|
|
5
5
|
comment_created:
|
|
6
6
|
comment:
|
|
7
|
-
email_intro: '"%{resource_title}"
|
|
7
|
+
email_intro: '"%{resource_title}" прокоментували. Ви можете прочитати коментар на цій сторінці:'
|
|
8
8
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за "%{resource_title}". Ви можете припинити стежити за ним, перейшовши за наведеним вище посиланням.
|
|
9
|
-
email_subject: Надійшов новий коментар від %{author_name} на
|
|
9
|
+
email_subject: Надійшов новий коментар від %{author_name} на %{resource_title}
|
|
10
10
|
notification_title: Надійшов новий коментар від %{author_name} на <a href="%{resource_path}">%{resource_title}</a>
|
|
11
11
|
reply:
|
|
12
12
|
email_intro: '"%{resource_title}" прокоментували'
|
|
@@ -35,20 +35,20 @@ uk:
|
|
|
35
35
|
comment:
|
|
36
36
|
alignment:
|
|
37
37
|
against: Проти
|
|
38
|
-
in_favor:
|
|
38
|
+
in_favor: На підтримку
|
|
39
39
|
deleted_user: Видалений учасник
|
|
40
40
|
reply: Відповісти
|
|
41
41
|
report:
|
|
42
|
-
action:
|
|
43
|
-
already_reported: Про цей вміст вже
|
|
42
|
+
action: Поскаржитись
|
|
43
|
+
already_reported: Про цей вміст вже передано скаргу, і її перегляне адміністратор.
|
|
44
44
|
close: Закрити
|
|
45
|
-
description: Чи цей вміст
|
|
45
|
+
description: Чи цей вміст неприпустимий?
|
|
46
46
|
details: Додаткові коментарі
|
|
47
47
|
reasons:
|
|
48
|
-
does_not_belong: Містить незаконну діяльність, загрози самогубства, особисту інформацію чи ще щось,
|
|
49
|
-
offensive: Містить расизм, сексизм, образи, особисті напади,
|
|
50
|
-
spam: Містить клацоловки (маніпулятивно-сенсаційні заголовки), рекламу, афери або
|
|
51
|
-
title:
|
|
48
|
+
does_not_belong: Містить незаконну діяльність, загрози самогубства, особисту інформацію чи ще щось, неприпустиме, на вашу думку, для %{organization_name}.
|
|
49
|
+
offensive: Містить расизм, сексизм, образи, особисті напади, погрози вбивства, заяви про самогубство або будь-які ненависницькі висловлювання.
|
|
50
|
+
spam: Містить клацоловки (маніпулятивно-сенсаційні заголовки), рекламу, афери або лохотрони.
|
|
51
|
+
title: Поскаржитись на проблему
|
|
52
52
|
verified_user_group: Перевірена організація
|
|
53
53
|
comment_order_selector:
|
|
54
54
|
order:
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
class UpdateRootCommentableForComments < ActiveRecord::Migration[5.0]
|
|
4
4
|
def up
|
|
5
|
+
# rubocop:disable Rails/SkipsModelValidations
|
|
5
6
|
Decidim::Comments::Comment.where(depth: 0).update_all(
|
|
6
7
|
"decidim_root_commentable_id = decidim_commentable_id, decidim_root_commentable_type = decidim_commentable_type"
|
|
7
8
|
)
|
|
9
|
+
# rubocop:enable Rails/SkipsModelValidations
|
|
8
10
|
|
|
9
11
|
Decidim::Comments::Comment.where("depth > 0").find_each do |comment|
|
|
10
12
|
comment.root_commentable = root_commentable(comment)
|
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.
|
|
4
|
+
version: 0.7.0
|
|
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-10-
|
|
13
|
+
date: 2017-10-25 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.
|
|
21
|
+
version: 0.7.0
|
|
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.
|
|
29
|
-
- !ruby/object:Gem::Dependency
|
|
30
|
-
name: rails
|
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
|
32
|
-
requirements:
|
|
33
|
-
- - "~>"
|
|
34
|
-
- !ruby/object:Gem::Version
|
|
35
|
-
version: 5.1.3
|
|
36
|
-
type: :runtime
|
|
37
|
-
prerelease: false
|
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
-
requirements:
|
|
40
|
-
- - "~>"
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: 5.1.3
|
|
28
|
+
version: 0.7.0
|
|
43
29
|
- !ruby/object:Gem::Dependency
|
|
44
30
|
name: jquery-rails
|
|
45
31
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -60,28 +46,28 @@ dependencies:
|
|
|
60
46
|
requirements:
|
|
61
47
|
- - '='
|
|
62
48
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 0.
|
|
49
|
+
version: 0.7.0
|
|
64
50
|
type: :development
|
|
65
51
|
prerelease: false
|
|
66
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
53
|
requirements:
|
|
68
54
|
- - '='
|
|
69
55
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: 0.
|
|
56
|
+
version: 0.7.0
|
|
71
57
|
- !ruby/object:Gem::Dependency
|
|
72
58
|
name: decidim-admin
|
|
73
59
|
requirement: !ruby/object:Gem::Requirement
|
|
74
60
|
requirements:
|
|
75
61
|
- - '='
|
|
76
62
|
- !ruby/object:Gem::Version
|
|
77
|
-
version: 0.
|
|
63
|
+
version: 0.7.0
|
|
78
64
|
type: :development
|
|
79
65
|
prerelease: false
|
|
80
66
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
67
|
requirements:
|
|
82
68
|
- - '='
|
|
83
69
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: 0.
|
|
70
|
+
version: 0.7.0
|
|
85
71
|
description: Pluggable comments system for some components.
|
|
86
72
|
email:
|
|
87
73
|
- josepjaume@gmail.com
|
|
@@ -123,6 +109,7 @@ files:
|
|
|
123
109
|
- app/frontend/comments/vote_button.component.tsx
|
|
124
110
|
- app/frontend/comments/vote_button_component.test.tsx
|
|
125
111
|
- app/frontend/entry.ts
|
|
112
|
+
- app/frontend/entry_test.ts
|
|
126
113
|
- app/frontend/fragments/add_comment_form_commentable.fragment.graphql
|
|
127
114
|
- app/frontend/fragments/add_comment_form_session.fragment.graphql
|
|
128
115
|
- app/frontend/fragments/comment.fragment.graphql
|
|
@@ -165,6 +152,7 @@ files:
|
|
|
165
152
|
- config/locales/it.yml
|
|
166
153
|
- config/locales/nl.yml
|
|
167
154
|
- config/locales/pl.yml
|
|
155
|
+
- config/locales/ru.yml
|
|
168
156
|
- config/locales/uk.yml
|
|
169
157
|
- db/migrate/20161130143508_create_comments.rb
|
|
170
158
|
- db/migrate/20161214082645_add_depth_to_comments.rb
|
|
@@ -189,9 +177,10 @@ files:
|
|
|
189
177
|
- lib/decidim/comments/mutation_extensions.rb
|
|
190
178
|
- lib/decidim/comments/query_extensions.rb
|
|
191
179
|
- lib/decidim/comments/test/factories.rb
|
|
180
|
+
- lib/decidim/comments/version.rb
|
|
192
181
|
homepage: https://github.com/decidim/decidim
|
|
193
182
|
licenses:
|
|
194
|
-
-
|
|
183
|
+
- AGPL-3.0
|
|
195
184
|
metadata: {}
|
|
196
185
|
post_install_message:
|
|
197
186
|
rdoc_options: []
|
|
@@ -209,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
209
198
|
version: '0'
|
|
210
199
|
requirements: []
|
|
211
200
|
rubyforge_project:
|
|
212
|
-
rubygems_version: 2.6.
|
|
201
|
+
rubygems_version: 2.6.13
|
|
213
202
|
signing_key:
|
|
214
203
|
specification_version: 4
|
|
215
204
|
summary: Pluggable comments system for some components.
|