decidim-notify 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/stylesheets/decidim/notify/notify.scss +2 -0
- data/app/permissions/decidim/notify/permissions.rb +1 -1
- data/config/locales/ca.yml +1 -2
- data/config/locales/cs.yml +67 -68
- data/config/locales/es.yml +1 -2
- data/lib/decidim/notify/component.rb +3 -3
- data/lib/decidim/notify/test/factories.rb +3 -3
- data/lib/decidim/notify/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cda9fb6f92d4c096fc00bbaa40545217339b862d51770f7be553b3ebef79751
|
4
|
+
data.tar.gz: b2bd1a84e145972173269768322bd013a9593adfb17a27bf71adf4ddfeeda8e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86abc812ea0dc7143a1bbb874855b027ba4625c6b9891664ed8d4b8ff9ac034ff772bbf133c14260be036bb28362ed2ae2134056957202be50a2873c14570f87
|
7
|
+
data.tar.gz: a5ed9d3668593357e2d8ff0d7879caf2420af6e5c66a22f33153ac77d66aa19530870952c446e65dce2a36ed4fdb634ad85a77009b7d382c860a830cb2586922
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Space.
|
|
19
19
|
Add this line to your application's Gemfile:
|
20
20
|
|
21
21
|
```ruby
|
22
|
-
gem "decidim-notify", "~> 0.
|
22
|
+
gem "decidim-notify", "~> 0.4.0"
|
23
23
|
```
|
24
24
|
|
25
25
|
And then execute:
|
@@ -34,7 +34,7 @@ Depending on your Decidim version, choose the corresponding Plugin version to en
|
|
34
34
|
|
35
35
|
| Notify version | Compatible Decidim versions |
|
36
36
|
|---|---|
|
37
|
-
| 0.3.x | 0.21.x - 0.
|
37
|
+
| 0.3.x | 0.21.x - 0.24.x |
|
38
38
|
|
39
39
|
### Configuration
|
40
40
|
|
@@ -9,6 +9,7 @@
|
|
9
9
|
display: none;
|
10
10
|
}
|
11
11
|
.select2-container--foundation {
|
12
|
+
width: 100% !important;
|
12
13
|
.select2-dropdown {
|
13
14
|
border-radius: 4px;
|
14
15
|
}
|
@@ -68,6 +69,7 @@
|
|
68
69
|
textarea {
|
69
70
|
border: 1px solid #cacaca;
|
70
71
|
border-radius: 4px;
|
72
|
+
resize: vertical;
|
71
73
|
}
|
72
74
|
}
|
73
75
|
input, textarea {
|
data/config/locales/ca.yml
CHANGED
@@ -9,7 +9,7 @@ ca:
|
|
9
9
|
chapter: Capítol
|
10
10
|
code: Autor
|
11
11
|
notify_config:
|
12
|
-
note_takers:
|
12
|
+
note_takers: Prenedores de notes
|
13
13
|
users: Participants
|
14
14
|
decidim:
|
15
15
|
components:
|
@@ -91,7 +91,6 @@ ca:
|
|
91
91
|
anonymous_description: Aquesta conversa està restringida als seus participants. Inicieu sessió abans d’intentar accedir aquí.
|
92
92
|
logged_description: Aquesta conversa està restringida als seus participants. Si creieu que hi hauríeu de ser, poseu-vos en contacte amb l’administrador.
|
93
93
|
title: Conversa privada!
|
94
|
-
reset: Restableix
|
95
94
|
tip: 'Truc: utilitzeu CTRL + Retorn per publicar la vostra nota'
|
96
95
|
update:
|
97
96
|
error: S'ha produït un error al actualitzar la nota [%{message}]
|
data/config/locales/cs.yml
CHANGED
@@ -2,109 +2,108 @@ cs:
|
|
2
2
|
activemodel:
|
3
3
|
attributes:
|
4
4
|
chapter:
|
5
|
-
active:
|
6
|
-
title:
|
5
|
+
active: Aktivní
|
6
|
+
title: Název
|
7
7
|
note:
|
8
|
-
body:
|
9
|
-
chapter:
|
10
|
-
code:
|
8
|
+
body: Prohlášení
|
9
|
+
chapter: Kapitola
|
10
|
+
code: Autor
|
11
11
|
notify_config:
|
12
|
-
note_takers:
|
13
|
-
users:
|
12
|
+
note_takers: Přijímající poznámky
|
13
|
+
users: Účastníci
|
14
14
|
decidim:
|
15
15
|
components:
|
16
16
|
notify:
|
17
|
-
name:
|
17
|
+
name: Upozornit
|
18
18
|
settings:
|
19
19
|
global:
|
20
|
-
announcement:
|
21
|
-
private:
|
22
|
-
restricted:
|
20
|
+
announcement: Oznámení
|
21
|
+
private: Soukromé fórum (pouze účastníci k němu mají přístup)
|
22
|
+
restricted: Omezené fórum (k němu mají přístup pouze přihlášení uživatelé, kteří nejsou účastníky)
|
23
23
|
step:
|
24
|
-
announcement:
|
24
|
+
announcement: Oznámení
|
25
25
|
notify:
|
26
26
|
admin:
|
27
27
|
actions:
|
28
|
-
title:
|
28
|
+
title: Akce
|
29
29
|
chapters:
|
30
30
|
actions:
|
31
|
-
new:
|
31
|
+
new: Nová kapitola
|
32
32
|
create:
|
33
|
-
error:
|
34
|
-
success:
|
33
|
+
error: Chyba při vytváření kapitoly
|
34
|
+
success: Kapitola úspěšně vytvořena
|
35
35
|
destroy:
|
36
|
-
error:
|
37
|
-
success:
|
36
|
+
error: Chyba při odstraňování kapitoly
|
37
|
+
success: Kapitola úspěšně smazána
|
38
38
|
edit:
|
39
|
-
title:
|
40
|
-
update:
|
39
|
+
title: Upravit kapitolu
|
40
|
+
update: Aktualizovat
|
41
41
|
form:
|
42
|
-
cancel:
|
42
|
+
cancel: Zrušit a vrátit se ke kapitolám
|
43
43
|
index:
|
44
|
-
conversations:
|
45
|
-
title:
|
44
|
+
conversations: Konfigurace konverzace
|
45
|
+
title: Kapitoly
|
46
46
|
new:
|
47
|
-
create:
|
48
|
-
title:
|
47
|
+
create: Vytvořit
|
48
|
+
title: Nová kapitola
|
49
49
|
update:
|
50
|
-
error:
|
51
|
-
success:
|
50
|
+
error: Chyba při aktualizaci kapitoly
|
51
|
+
success: Kapitola byla úspěšně aktualizována
|
52
52
|
conversations:
|
53
|
-
error:
|
53
|
+
error: Chyba při ukládání konfigurace [%{message}]
|
54
54
|
index:
|
55
|
-
chapters:
|
55
|
+
chapters: Konfigurovat kapitoly
|
56
56
|
help: |-
|
57
|
-
<p>
|
58
|
-
<p>
|
59
|
-
<ul><li>
|
60
|
-
<li>
|
61
|
-
|
62
|
-
<p>
|
63
|
-
save:
|
64
|
-
title:
|
65
|
-
success:
|
57
|
+
<p>Upozornění vám umožní přepsat konverzace mezi více lidmi v reálném čase (není vyžadována žádná obnova stránky).</p>
|
58
|
+
<p>Konfigurujte tento nástroj přidáním účastníků a některých přijímajících poznámek:</p>
|
59
|
+
<ul><li>Každému účastníkovi bude přiděleno číslo (počínaje 1).</li>
|
60
|
+
<li>Přijímající poznámek jsou účastníci, kteří mohou konverzaci přepsat.<br>
|
61
|
+
Každá přijatá poznámka může být připsána účastníkovi napsáním jejich čísla nebo jména.</li></ul>
|
62
|
+
<p>Pro usnadnění procesu jsou všechny avatary účastníků a jejich čísla zobrazeny vedle poznámek.</p>
|
63
|
+
save: Uložit změny
|
64
|
+
title: Účastníci konverzace
|
65
|
+
success: Konfigurace byla úspěšně uložena
|
66
66
|
chapter:
|
67
|
-
active:
|
68
|
-
delete:
|
67
|
+
active: Aktivní
|
68
|
+
delete: Smazat
|
69
69
|
destroy:
|
70
|
-
error:
|
71
|
-
sure:
|
72
|
-
edit:
|
73
|
-
empty:
|
70
|
+
error: Chyba při odstraňování kapitoly
|
71
|
+
sure: Opravdu chcete odstranit tuto kapitolu?
|
72
|
+
edit: Upravit kapitolu
|
73
|
+
empty: K tomuto tématu zatím nebylo nic řečeno.
|
74
74
|
update:
|
75
|
-
error:
|
75
|
+
error: Chyba při aktualizaci kapitoly [%{message}]
|
76
76
|
conversations:
|
77
77
|
create:
|
78
|
-
error:
|
78
|
+
error: Chyba při vytváření poznámky [%{message}]
|
79
79
|
destroy:
|
80
|
-
error:
|
81
|
-
sure:
|
80
|
+
error: Chyba při odstraňování poznámky
|
81
|
+
sure: Opravdu chcete odstranit tuto poznámku?
|
82
82
|
index:
|
83
|
-
note_takers:
|
84
|
-
participants:
|
85
|
-
send:
|
83
|
+
note_takers: Přijímající poznámky
|
84
|
+
participants: Účastníci
|
85
|
+
send: Odeslat
|
86
86
|
placeholders:
|
87
|
-
author:
|
88
|
-
chapter:
|
89
|
-
statement:
|
87
|
+
author: Autor, použijte číslo nebo jméno
|
88
|
+
chapter: Nastavit kapitolu
|
89
|
+
statement: Napište prohlášení...
|
90
90
|
private:
|
91
|
-
anonymous_description:
|
92
|
-
logged_description:
|
93
|
-
title:
|
94
|
-
|
95
|
-
tip: 'Tip: use CTRL + Enter to publish your note'
|
91
|
+
anonymous_description: Tato konverzace je omezena na její účastníky. Před pokusem o přístup se prosím přihlaste.
|
92
|
+
logged_description: Tato konverzace je omezena na její účastníky. Pokud si myslíte, že byste v ní měli být, kontaktujte správce.
|
93
|
+
title: Soukromá konverzace!
|
94
|
+
tip: 'Tip: použijte CTRL + Enter pro publikování vaší poznámky'
|
96
95
|
update:
|
97
|
-
error:
|
96
|
+
error: Chyba při aktualizaci poznámky [%{message}]
|
98
97
|
pages:
|
99
98
|
home:
|
100
99
|
statistics:
|
101
|
-
notify_authors_count:
|
102
|
-
notify_chapters_count:
|
103
|
-
notify_conversations_count:
|
104
|
-
notify_notes_count:
|
100
|
+
notify_authors_count: Účastníci konverzace
|
101
|
+
notify_chapters_count: Témata konverzací
|
102
|
+
notify_conversations_count: Konverzace
|
103
|
+
notify_notes_count: Poznámky ke konverzaci
|
105
104
|
participatory_processes:
|
106
105
|
statistics:
|
107
|
-
notify_authors_count:
|
108
|
-
notify_chapters_count:
|
109
|
-
notify_conversations_count:
|
110
|
-
notify_notes_count:
|
106
|
+
notify_authors_count: Účastníci konverzace
|
107
|
+
notify_chapters_count: Témata konverzací
|
108
|
+
notify_conversations_count: Konverzace
|
109
|
+
notify_notes_count: Poznámky ke konverzaci
|
data/config/locales/es.yml
CHANGED
@@ -9,7 +9,7 @@ es:
|
|
9
9
|
chapter: Capítulo
|
10
10
|
code: Autor
|
11
11
|
notify_config:
|
12
|
-
note_takers:
|
12
|
+
note_takers: Tomadoras de Notas
|
13
13
|
users: Participantes
|
14
14
|
decidim:
|
15
15
|
components:
|
@@ -91,7 +91,6 @@ es:
|
|
91
91
|
anonymous_description: Esta conversación está restringida a sus participantes. Por favor, inicie sesión antes de intentar acceder aquí.
|
92
92
|
logged_description: Esta conversación está restringida a sus participantes. Si crees que deberías estar en ella, por favor contacta al administrador.
|
93
93
|
title: Conversación Privada!
|
94
|
-
reset: Restablecer
|
95
94
|
tip: 'Truco: usa CTRL + Enter para publicar tu nota'
|
96
95
|
update:
|
97
96
|
error: Error al actualizar la nota [%{message}]
|
@@ -78,9 +78,9 @@ Decidim.register_component(:notify) do |component|
|
|
78
78
|
published_at: Time.current,
|
79
79
|
participatory_space: participatory_space,
|
80
80
|
settings: {
|
81
|
-
announcement: { en: Faker::Lorem.paragraphs(2).join("\n") },
|
82
|
-
private: Faker::Boolean.boolean(0.5),
|
83
|
-
restricted: Faker::Boolean.boolean(0.5)
|
81
|
+
announcement: { en: Faker::Lorem.paragraphs(number: 2).join("\n") },
|
82
|
+
private: Faker::Boolean.boolean(true_ratio: 0.5),
|
83
|
+
restricted: Faker::Boolean.boolean(true_ratio: 0.5)
|
84
84
|
}
|
85
85
|
}
|
86
86
|
|
@@ -11,7 +11,7 @@ FactoryBot.define do
|
|
11
11
|
|
12
12
|
factory :notify_note, class: "Decidim::Notify::Note" do
|
13
13
|
component { create(:notify_component) }
|
14
|
-
body { Faker::Lorem.sentences(3).join("\n") }
|
14
|
+
body { Faker::Lorem.sentences(number: 3).join("\n") }
|
15
15
|
creator { create(:user) }
|
16
16
|
|
17
17
|
trait :with_author do
|
@@ -25,7 +25,7 @@ FactoryBot.define do
|
|
25
25
|
|
26
26
|
factory :notify_author, class: "Decidim::Notify::Author" do
|
27
27
|
component { create(:notify_component) }
|
28
|
-
code { Faker::Number.between(1, 20) }
|
28
|
+
code { Faker::Number.between(from: 1, to: 20) }
|
29
29
|
# name { Faker::Name.name }
|
30
30
|
|
31
31
|
trait :with_user do
|
@@ -39,7 +39,7 @@ FactoryBot.define do
|
|
39
39
|
|
40
40
|
factory :notify_chapter, class: "Decidim::Notify::Chapter" do
|
41
41
|
component { create(:notify_component) }
|
42
|
-
title { Faker::Lorem.sentences(3).join("\n") }
|
42
|
+
title { Faker::Lorem.sentences(number: 3).join("\n") }
|
43
43
|
|
44
44
|
trait :with_user do
|
45
45
|
user { create(:user) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-notify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Vergés
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '2.
|
166
|
+
version: '2.7'
|
167
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
169
|
- - ">="
|