decidim-pages 0.26.10 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/commands/decidim/pages/admin/update_page.rb +1 -1
- data/app/commands/decidim/pages/copy_page.rb +1 -1
- data/app/commands/decidim/pages/create_page.rb +1 -1
- data/app/commands/decidim/pages/destroy_page.rb +1 -1
- data/app/views/decidim/pages/admin/pages/_form.html.erb +1 -1
- data/app/views/decidim/pages/admin/pages/edit.html.erb +0 -1
- data/app/views/decidim/pages/application/show.html.erb +1 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +1 -5
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +1 -0
- data/config/locales/cs.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -2
- data/config/locales/el.yml +1 -5
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +1 -0
- data/config/locales/es-PY.yml +1 -0
- data/config/locales/es.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +6 -7
- data/config/locales/fi-plain.yml +1 -0
- data/config/locales/fi.yml +1 -0
- data/config/locales/fr-CA.yml +1 -0
- data/config/locales/fr.yml +1 -0
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +1 -5
- data/config/locales/id-ID.yml +1 -0
- data/config/locales/is-IS.yml +2 -1
- data/config/locales/it.yml +1 -0
- data/config/locales/ja.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +1 -0
- data/config/locales/lt.yml +1 -36
- data/config/locales/lv.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +1 -0
- data/config/locales/no.yml +1 -0
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +1 -0
- data/config/locales/pt-BR.yml +2 -3
- data/config/locales/pt.yml +1 -0
- data/config/locales/ro-RO.yml +1 -2
- data/config/locales/ru.yml +1 -0
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +1 -0
- data/config/locales/sl.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +1 -0
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +1 -0
- data/config/locales/uk.yml +1 -0
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +1 -0
- data/config/locales/zh-TW.yml +1 -33
- data/lib/decidim/pages/component.rb +0 -3
- data/lib/decidim/pages/version.rb +1 -1
- metadata +12 -23
- data/app/serializers/decidim/pages/data_importer.rb +0 -27
- data/app/serializers/decidim/pages/data_serializer.rb +0 -22
- data/config/environment.rb +0 -3
- data/config/locales/fa-IR.yml +0 -1
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/kaa.yml +0 -7
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
- data/config/locales/sq-AL.yml +0 -1
- data/config/locales/th-TH.yml +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30f594258b31fbf7e292ec3f8af2403131fb40d163771ca5074b2e6e21a627d7
|
4
|
+
data.tar.gz: 3a65184f0b078b710d730f515d32e883dbcd55a2aecc96babbbf46beae2752f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154347ec05c32f8a723f2998686717f46c5c75ccc42d618ca9b0f6cd7babacb969842d1c2ae9610ef1cfc1be69e7e72022f748e2f84a311284057123284f3b8a
|
7
|
+
data.tar.gz: 642b14e8daa549018ac3b91e2e3c272ce9467d220a3383a698e253438cf403f6d22ed8e2d7220ef659e902c63cec10b55e2ce6b17e7b9209f20db4dd68907b0c
|
@@ -5,7 +5,7 @@ module Decidim
|
|
5
5
|
module Admin
|
6
6
|
# This command is executed when the user changes a Page from the admin
|
7
7
|
# panel.
|
8
|
-
class UpdatePage <
|
8
|
+
class UpdatePage < Decidim::Command
|
9
9
|
# Initializes a UpdatePage Command.
|
10
10
|
#
|
11
11
|
# form - The form from which to get the data.
|
@@ -5,7 +5,7 @@ module Decidim
|
|
5
5
|
# Command that gets called whenever a component's page has to be duplicated.
|
6
6
|
# It's need a context with the old component that
|
7
7
|
# is going to be duplicated on the new one
|
8
|
-
class CopyPage <
|
8
|
+
class CopyPage < Decidim::Command
|
9
9
|
def initialize(context)
|
10
10
|
@context = context
|
11
11
|
end
|
@@ -4,7 +4,7 @@ module Decidim
|
|
4
4
|
module Pages
|
5
5
|
# Command that gets called whenever a component's page has to be created. It
|
6
6
|
# usually happens as a callback when the component itself is created.
|
7
|
-
class CreatePage <
|
7
|
+
class CreatePage < Decidim::Command
|
8
8
|
def initialize(component)
|
9
9
|
@component = component
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module Decidim
|
|
4
4
|
module Pages
|
5
5
|
# Command that gets called when the page of this component needs to be
|
6
6
|
# destroyed. It usually happens as a callback when the component is removed.
|
7
|
-
class DestroyPage <
|
7
|
+
class DestroyPage < Decidim::Command
|
8
8
|
def initialize(component)
|
9
9
|
@component = component
|
10
10
|
end
|
@@ -4,7 +4,7 @@
|
|
4
4
|
</div>
|
5
5
|
<div class="card-section">
|
6
6
|
<div class="row column">
|
7
|
-
<%= form.translated :editor, :body, lines: 30, label: t("models.components.body", scope: "decidim.pages.admin") %>
|
7
|
+
<%= form.translated :editor, :body, toolbar: :full, lines: 30, label: t("models.components.body", scope: "decidim.pages.admin") %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
</div>
|
data/config/locales/am-ET.yml
CHANGED
data/config/locales/ar.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ar:
|
2
3
|
activerecord:
|
3
4
|
models:
|
@@ -32,8 +33,3 @@ ar:
|
|
32
33
|
update:
|
33
34
|
invalid: حدثت مشكلة أثناء حفظ الصفحة.
|
34
35
|
success: تم حفظ الصفحة بنجاح.
|
35
|
-
home:
|
36
|
-
hero:
|
37
|
-
participate_title: المشاركة في مسارات المنصة
|
38
|
-
sub_hero:
|
39
|
-
register_title: قم بالتسجيل لإنشاء حساب
|
data/config/locales/bg.yml
CHANGED
data/config/locales/ca.yml
CHANGED
data/config/locales/cs.yml
CHANGED
data/config/locales/da.yml
CHANGED
data/config/locales/de.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
de:
|
2
3
|
activerecord:
|
3
4
|
models:
|
@@ -29,7 +30,5 @@ de:
|
|
29
30
|
invalid: Beim Speichern der Seite sind Fehler aufgetreten.
|
30
31
|
success: Seite erfolgreich gespeichert
|
31
32
|
home:
|
32
|
-
hero:
|
33
|
-
participate_title: Beteiligen Sie sich an den Prozessen auf dieser Plattform
|
34
33
|
sub_hero:
|
35
34
|
register_title: Registrieren
|
data/config/locales/el.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
el:
|
2
3
|
activerecord:
|
3
4
|
models:
|
@@ -28,8 +29,3 @@ el:
|
|
28
29
|
update:
|
29
30
|
invalid: Υπήρξε ένα πρόβλημα κατά την αποθήκευση της σελίδας.
|
30
31
|
success: Η σελίδα αποθηκεύτηκε με επιτυχία.
|
31
|
-
home:
|
32
|
-
hero:
|
33
|
-
participate_title: Συμμετάσχετε στις διαδικασίες της πλατφόρμας
|
34
|
-
sub_hero:
|
35
|
-
register_title: Εγγραφείτε για να δημιουργήσετε ένα λογαριασμό
|
data/config/locales/eo.yml
CHANGED
data/config/locales/es-MX.yml
CHANGED
data/config/locales/es-PY.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/et.yml
CHANGED
data/config/locales/eu.yml
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
+
---
|
1
2
|
eu:
|
2
3
|
activerecord:
|
3
4
|
models:
|
4
5
|
decidim/pages/page:
|
5
|
-
one:
|
6
|
-
other:
|
6
|
+
one: page
|
7
|
+
other: orrialdeak
|
7
8
|
decidim:
|
8
9
|
admin_log:
|
9
10
|
page:
|
10
|
-
update: "%{user_name}
|
11
|
+
update: "%{user_name} %{resource_name} orrialdea %{space_name} eguneratu du"
|
11
12
|
components:
|
12
13
|
pages:
|
13
14
|
name: Orria
|
@@ -20,16 +21,14 @@ eu:
|
|
20
21
|
admin:
|
21
22
|
models:
|
22
23
|
components:
|
23
|
-
body:
|
24
|
+
body: Testua
|
24
25
|
pages:
|
25
26
|
edit:
|
26
27
|
save: Eguneratu
|
27
28
|
title: Editatu orria
|
28
29
|
update:
|
29
|
-
invalid:
|
30
|
+
invalid: Erroreak gertatu dira orria gordetzean.
|
30
31
|
success: Orria zuzen gorde da.
|
31
32
|
home:
|
32
|
-
hero:
|
33
|
-
participate_title: Hartu parte plataformako prozesuetan
|
34
33
|
sub_hero:
|
35
34
|
register_title: Erregistratu kontu bat edukitzeko
|
data/config/locales/fi-plain.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/fr-CA.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/ga-IE.yml
CHANGED
data/config/locales/gl.yml
CHANGED
data/config/locales/hr.yml
CHANGED
data/config/locales/hu.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
hu:
|
2
3
|
activerecord:
|
3
4
|
models:
|
@@ -28,8 +29,3 @@ hu:
|
|
28
29
|
update:
|
29
30
|
invalid: Hiba történt az oldal mentése során.
|
30
31
|
success: Oldal mentése sikeres.
|
31
|
-
home:
|
32
|
-
hero:
|
33
|
-
participate_title: Részvétel a platform folyamataiban
|
34
|
-
sub_hero:
|
35
|
-
register_title: A fiók létrehozásához iratkozz fel
|
data/config/locales/id-ID.yml
CHANGED
data/config/locales/is-IS.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/ko.yml
CHANGED
data/config/locales/lb.yml
CHANGED
data/config/locales/lt.yml
CHANGED
@@ -1,37 +1,2 @@
|
|
1
|
+
---
|
1
2
|
lt:
|
2
|
-
activerecord:
|
3
|
-
models:
|
4
|
-
decidim/pages/page:
|
5
|
-
one: Puslapis
|
6
|
-
few: Puslapiai
|
7
|
-
many: Puslapiai
|
8
|
-
other: Puslapiai
|
9
|
-
decidim:
|
10
|
-
admin_log:
|
11
|
-
page:
|
12
|
-
update: "%{user_name} atnaujino %{resource_name} puslapį %{space_name}"
|
13
|
-
components:
|
14
|
-
pages:
|
15
|
-
name: Puslapis
|
16
|
-
settings:
|
17
|
-
global:
|
18
|
-
announcement: Pranešimas
|
19
|
-
step:
|
20
|
-
announcement: Pranešimas
|
21
|
-
pages:
|
22
|
-
admin:
|
23
|
-
models:
|
24
|
-
components:
|
25
|
-
body: Pagrindinė dalis
|
26
|
-
pages:
|
27
|
-
edit:
|
28
|
-
save: Atnaujinimas
|
29
|
-
title: Redaguoti puslapį
|
30
|
-
update:
|
31
|
-
invalid: Išsaugant šį puslapį iškilo problema.
|
32
|
-
success: Puslapis išsaugotas.
|
33
|
-
home:
|
34
|
-
hero:
|
35
|
-
participate_title: Dalyvauti platformos procesuose
|
36
|
-
sub_hero:
|
37
|
-
register_title: Užsiregistruokite norėdami susikurti paskyrą
|
data/config/locales/lv.yml
CHANGED
data/config/locales/mt.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/no.yml
CHANGED
data/config/locales/om-ET.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
pt:
|
2
3
|
activerecord:
|
3
4
|
models:
|
4
5
|
decidim/pages/page:
|
@@ -29,7 +30,5 @@ pt-BR:
|
|
29
30
|
invalid: Ocorreu erros ao salvar a página.
|
30
31
|
success: Página salva com sucesso.
|
31
32
|
home:
|
32
|
-
hero:
|
33
|
-
participate_title: Participe dos processos da plataforma
|
34
33
|
sub_hero:
|
35
34
|
register_title: Cadastre-se para criar uma conta
|
data/config/locales/pt.yml
CHANGED
data/config/locales/ro-RO.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ro:
|
2
3
|
activerecord:
|
3
4
|
models:
|
@@ -30,7 +31,5 @@ ro:
|
|
30
31
|
invalid: A apărut o eroare la salvarea paginii.
|
31
32
|
success: Pagina a fost salvată cu succes.
|
32
33
|
home:
|
33
|
-
hero:
|
34
|
-
participate_title: Participă la procesele platformei
|
35
34
|
sub_hero:
|
36
35
|
register_title: Înregistrează-te pentru a crea un cont
|
data/config/locales/ru.yml
CHANGED
data/config/locales/si-LK.yml
CHANGED
data/config/locales/sk.yml
CHANGED
data/config/locales/sl.yml
CHANGED
data/config/locales/so-SO.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
data/config/locales/sw-KE.yml
CHANGED
data/config/locales/ti-ER.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/uk.yml
CHANGED
data/config/locales/val-ES.yml
CHANGED
data/config/locales/vi.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -1,34 +1,2 @@
|
|
1
|
+
---
|
1
2
|
zh-TW:
|
2
|
-
activerecord:
|
3
|
-
models:
|
4
|
-
decidim/pages/page:
|
5
|
-
other: 頁面
|
6
|
-
decidim:
|
7
|
-
admin_log:
|
8
|
-
page:
|
9
|
-
update: "%{user_name} 在%{space_name} 中更新了%{resource_name} 頁面"
|
10
|
-
components:
|
11
|
-
pages:
|
12
|
-
name: 頁面
|
13
|
-
settings:
|
14
|
-
global:
|
15
|
-
announcement: 公告
|
16
|
-
step:
|
17
|
-
announcement: 公告
|
18
|
-
pages:
|
19
|
-
admin:
|
20
|
-
models:
|
21
|
-
components:
|
22
|
-
body: 內容
|
23
|
-
pages:
|
24
|
-
edit:
|
25
|
-
save: 更新
|
26
|
-
title: 編輯頁面
|
27
|
-
update:
|
28
|
-
invalid: 保存頁面時出現問題
|
29
|
-
success: 頁面保存成功
|
30
|
-
home:
|
31
|
-
hero:
|
32
|
-
participate_title: 參與平台的流程
|
33
|
-
sub_hero:
|
34
|
-
register_title: 註冊以創建帳戶
|
@@ -6,9 +6,6 @@ Decidim.register_component(:pages) do |component|
|
|
6
6
|
component.engine = Decidim::Pages::Engine
|
7
7
|
component.admin_engine = Decidim::Pages::AdminEngine
|
8
8
|
component.icon = "media/images/decidim_pages.svg"
|
9
|
-
component.serializes_specific_data = true
|
10
|
-
component.specific_data_serializer_class_name = "Decidim::Pages::DataSerializer"
|
11
|
-
component.specific_data_importer_class_name = "Decidim::Pages::DataImporter"
|
12
9
|
component.permissions_class_name = "Decidim::Pages::Permissions"
|
13
10
|
|
14
11
|
component.query_type = "Decidim::Pages::PagesType"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0.rc1
|
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:
|
13
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.27.0.rc1
|
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.
|
28
|
+
version: 0.27.0.rc1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-dev
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.27.0.rc1
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.27.0.rc1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-participatory_processes
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.27.0.rc1
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
56
|
+
version: 0.27.0.rc1
|
57
57
|
description: A pages component for decidim's participatory processes.
|
58
58
|
email:
|
59
59
|
- josepjaume@gmail.com
|
@@ -80,13 +80,10 @@ files:
|
|
80
80
|
- app/packs/images/decidim/pages/decidim_pages.svg
|
81
81
|
- app/permissions/decidim/pages/permissions.rb
|
82
82
|
- app/presenters/decidim/pages/admin_log/page_presenter.rb
|
83
|
-
- app/serializers/decidim/pages/data_importer.rb
|
84
|
-
- app/serializers/decidim/pages/data_serializer.rb
|
85
83
|
- app/views/decidim/pages/admin/pages/_form.html.erb
|
86
84
|
- app/views/decidim/pages/admin/pages/edit.html.erb
|
87
85
|
- app/views/decidim/pages/application/show.html.erb
|
88
86
|
- config/assets.rb
|
89
|
-
- config/environment.rb
|
90
87
|
- config/locales/am-ET.yml
|
91
88
|
- config/locales/ar-SA.yml
|
92
89
|
- config/locales/ar.yml
|
@@ -109,7 +106,6 @@ files:
|
|
109
106
|
- config/locales/et-EE.yml
|
110
107
|
- config/locales/et.yml
|
111
108
|
- config/locales/eu.yml
|
112
|
-
- config/locales/fa-IR.yml
|
113
109
|
- config/locales/fi-pl.yml
|
114
110
|
- config/locales/fi-plain.yml
|
115
111
|
- config/locales/fi.yml
|
@@ -118,7 +114,6 @@ files:
|
|
118
114
|
- config/locales/fr.yml
|
119
115
|
- config/locales/ga-IE.yml
|
120
116
|
- config/locales/gl.yml
|
121
|
-
- config/locales/gn-PY.yml
|
122
117
|
- config/locales/hr-HR.yml
|
123
118
|
- config/locales/hr.yml
|
124
119
|
- config/locales/hu.yml
|
@@ -127,13 +122,10 @@ files:
|
|
127
122
|
- config/locales/is.yml
|
128
123
|
- config/locales/it.yml
|
129
124
|
- config/locales/ja.yml
|
130
|
-
- config/locales/ka-GE.yml
|
131
|
-
- config/locales/kaa.yml
|
132
125
|
- config/locales/ko-KR.yml
|
133
126
|
- config/locales/ko.yml
|
134
127
|
- config/locales/lb-LU.yml
|
135
128
|
- config/locales/lb.yml
|
136
|
-
- config/locales/lo-LA.yml
|
137
129
|
- config/locales/lt-LT.yml
|
138
130
|
- config/locales/lt.yml
|
139
131
|
- config/locales/lv.yml
|
@@ -141,7 +133,6 @@ files:
|
|
141
133
|
- config/locales/mt.yml
|
142
134
|
- config/locales/nl.yml
|
143
135
|
- config/locales/no.yml
|
144
|
-
- config/locales/oc-FR.yml
|
145
136
|
- config/locales/om-ET.yml
|
146
137
|
- config/locales/pl.yml
|
147
138
|
- config/locales/pt-BR.yml
|
@@ -153,11 +144,9 @@ files:
|
|
153
144
|
- config/locales/sk.yml
|
154
145
|
- config/locales/sl.yml
|
155
146
|
- config/locales/so-SO.yml
|
156
|
-
- config/locales/sq-AL.yml
|
157
147
|
- config/locales/sr-CS.yml
|
158
148
|
- config/locales/sv.yml
|
159
149
|
- config/locales/sw-KE.yml
|
160
|
-
- config/locales/th-TH.yml
|
161
150
|
- config/locales/ti-ER.yml
|
162
151
|
- config/locales/tr-TR.yml
|
163
152
|
- config/locales/uk.yml
|
@@ -192,14 +181,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
181
|
requirements:
|
193
182
|
- - ">="
|
194
183
|
- !ruby/object:Gem::Version
|
195
|
-
version: '
|
184
|
+
version: '3.0'
|
196
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
186
|
requirements:
|
198
|
-
- - "
|
187
|
+
- - ">"
|
199
188
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
189
|
+
version: 1.3.1
|
201
190
|
requirements: []
|
202
|
-
rubygems_version: 3.
|
191
|
+
rubygems_version: 3.2.22
|
203
192
|
signing_key:
|
204
193
|
specification_version: 4
|
205
194
|
summary: Decidim pages module
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Pages
|
5
|
-
# Importer for Pages specific data (i.e. its page content).
|
6
|
-
class DataImporter < Decidim::Importers::Importer
|
7
|
-
def initialize(component)
|
8
|
-
@component = component
|
9
|
-
end
|
10
|
-
|
11
|
-
# Creates a new Decidim::Pages::Page associated to the given **component**
|
12
|
-
# for the serialized page object.
|
13
|
-
#
|
14
|
-
# @param serialized [Hash] The serialized data read from the import file.
|
15
|
-
# @param _user [Decidim::User] The user performing the import.
|
16
|
-
# @return [Decidim::Pages::Page] The imported page
|
17
|
-
def import(serialized, _user)
|
18
|
-
return unless serialized
|
19
|
-
|
20
|
-
Page.create!(
|
21
|
-
component: @component,
|
22
|
-
body: serialized["body"]
|
23
|
-
)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Pages
|
5
|
-
# This class serializes the specific data in each Page. This is the page
|
6
|
-
# data outside of the component settings.
|
7
|
-
class DataSerializer < Decidim::Exporters::Serializer
|
8
|
-
include Decidim::TranslationsHelper
|
9
|
-
|
10
|
-
# Serializes the page data for this component.
|
11
|
-
#
|
12
|
-
# @return [Hash] The serialized data
|
13
|
-
def serialize
|
14
|
-
page = Page.find_by(component: resource)
|
15
|
-
|
16
|
-
{
|
17
|
-
body: page&.body || empty_translatable
|
18
|
-
}
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
data/config/environment.rb
DELETED
data/config/locales/fa-IR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
fa:
|
data/config/locales/gn-PY.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gn:
|
data/config/locales/ka-GE.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ka:
|
data/config/locales/kaa.yml
DELETED
data/config/locales/lo-LA.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lo:
|
data/config/locales/oc-FR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
oc:
|
data/config/locales/sq-AL.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sq:
|
data/config/locales/th-TH.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
th:
|