decidim-system 0.28.6 → 0.29.0.rc1

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/app/cells/decidim/system/system_checks/show.erb +13 -0
  4. data/app/cells/decidim/system/system_checks_cell.rb +48 -0
  5. data/app/commands/decidim/system/create_default_content_blocks.rb +0 -3
  6. data/app/commands/decidim/system/{populate_help.rb → create_default_help_pages.rb} +14 -7
  7. data/app/commands/decidim/system/create_default_pages.rb +0 -1
  8. data/app/commands/decidim/system/{register_organization.rb → create_organization.rb} +5 -7
  9. data/app/controllers/decidim/system/application_controller.rb +0 -1
  10. data/app/controllers/decidim/system/dashboard_controller.rb +2 -0
  11. data/app/controllers/decidim/system/organizations_controller.rb +2 -1
  12. data/app/forms/decidim/system/base_organization_form.rb +127 -0
  13. data/app/forms/decidim/system/register_organization_form.rb +23 -3
  14. data/app/forms/decidim/system/update_organization_form.rb +18 -103
  15. data/app/models/decidim/system/admin.rb +2 -2
  16. data/app/packs/stylesheets/decidim/system/application.scss +57 -0
  17. data/app/views/decidim/system/dashboard/show.html.erb +4 -0
  18. data/app/views/decidim/system/oauth_applications/_form.html.erb +1 -1
  19. data/app/views/decidim/system/oauth_applications/index.html.erb +3 -3
  20. data/app/views/decidim/system/organizations/edit.html.erb +4 -2
  21. data/app/views/decidim/system/shared/_admins_list.html.erb +2 -2
  22. data/app/views/decidim/system/shared/_organizations_list.html.erb +3 -3
  23. data/app/views/layouts/decidim/system/_js_configuration.html.erb +1 -1
  24. data/app/views/layouts/decidim/system/login.html.erb +1 -1
  25. data/config/locales/ar.yml +0 -1
  26. data/config/locales/bg.yml +9 -3
  27. data/config/locales/ca.yml +12 -3
  28. data/config/locales/cs.yml +5 -8
  29. data/config/locales/de.yml +10 -3
  30. data/config/locales/el.yml +0 -2
  31. data/config/locales/en.yml +12 -3
  32. data/config/locales/es-MX.yml +16 -7
  33. data/config/locales/es-PY.yml +16 -7
  34. data/config/locales/es.yml +16 -7
  35. data/config/locales/eu.yml +31 -22
  36. data/config/locales/fi-plain.yml +16 -7
  37. data/config/locales/fi.yml +17 -8
  38. data/config/locales/fr-CA.yml +12 -3
  39. data/config/locales/fr.yml +12 -3
  40. data/config/locales/gl.yml +0 -1
  41. data/config/locales/hu.yml +0 -2
  42. data/config/locales/id-ID.yml +0 -1
  43. data/config/locales/it.yml +0 -5
  44. data/config/locales/ja.yml +12 -3
  45. data/config/locales/lt.yml +0 -2
  46. data/config/locales/lv.yml +0 -1
  47. data/config/locales/nl.yml +0 -1
  48. data/config/locales/no.yml +0 -1
  49. data/config/locales/pl.yml +11 -2
  50. data/config/locales/pt-BR.yml +0 -11
  51. data/config/locales/pt.yml +0 -1
  52. data/config/locales/ro-RO.yml +0 -1
  53. data/config/locales/ru.yml +0 -1
  54. data/config/locales/sk.yml +0 -1
  55. data/config/locales/sv.yml +13 -75
  56. data/config/locales/tr-TR.yml +0 -1
  57. data/config/locales/zh-CN.yml +0 -1
  58. data/config/locales/zh-TW.yml +0 -2
  59. data/db/seeds.rb +1 -1
  60. data/decidim-system.gemspec +2 -2
  61. data/lib/decidim/system/engine.rb +4 -0
  62. data/lib/decidim/system/version.rb +1 -1
  63. data/lib/tasks/decidim_system.rake +1 -1
  64. metadata +16 -16
  65. data/config/locales/bn-BD.yml +0 -1
  66. data/config/locales/bs-BA.yml +0 -44
  67. data/config/locales/ca-IT.yml +0 -278
@@ -4,13 +4,13 @@ sv:
4
4
  attributes:
5
5
  oauth_application:
6
6
  name: OAuth app namn
7
- organization_logo: Organisationens logotyp (kvadratisk)
7
+ organization_logo: Organisationslogo (kvadrat)
8
8
  organization_name: Organisation
9
9
  organization_url: Organisationens hemsida
10
10
  redirect_uri: Omdirigerings-URI
11
11
  organization:
12
12
  address: SMTP-värdnamn
13
- from_email: E-postadress
13
+ from_email: Från (e-postadress)
14
14
  from_label: Från (namn)
15
15
  password: Lösenord
16
16
  port: Port
@@ -22,9 +22,9 @@ sv:
22
22
  allowed_file_extensions:
23
23
  admin: Admin filändelser
24
24
  default: Förvalda filändelser
25
- image: Filformat för bilder
25
+ image: Bild filändelser
26
26
  maximum_file_size:
27
- avatar: Filstorlek för profilbild
27
+ avatar: Avatarens filstorlek
28
28
  default: Standardstorlek för filer
29
29
  errors:
30
30
  models:
@@ -32,27 +32,17 @@ sv:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: Omdirigerings-URI måste vara en SSL URI
35
- organization:
36
- attributes:
37
- password:
38
- secret_key: Du behöver definiera variabeln SECRET_KEY_BASE för att kunna spara detta fält
39
35
  decidim:
40
36
  system:
41
37
  actions:
42
38
  confirm_destroy: Vill du radera detta?
43
39
  destroy: Radera
44
40
  edit: Redigera
45
- new_admin: Ny administratör
46
- new_oauth_application: Ny OAUTH-applikation
47
- new_organization: Ny organisation
48
41
  save: Spara
49
42
  title: Åtgärder
50
43
  admins:
51
44
  create:
52
45
  error: Det gick inte att skapa en ny administratör.
53
- success: Administratören har skapats.
54
- destroy:
55
- success: Administratören har raderats.
56
46
  edit:
57
47
  title: Redigera administratören
58
48
  update: Uppdatera
@@ -63,35 +53,17 @@ sv:
63
53
  title: Ny administratör
64
54
  update:
65
55
  error: Det gick inte att uppdatera administratören.
66
- success: Administratören har uppdaterats.
67
56
  dashboard:
68
57
  show:
69
- admins: Administratörer
70
58
  current_organizations: Nuvarande organisationer
71
59
  default_pages:
72
60
  placeholders:
73
61
  content: Lägg till relevant innehåll på den statiska sidan %{page} på adminpanelen.
74
- summary: Lägg till en relevant sammanfattning på den statiska sidan %{page} i adminpanelen.
75
62
  title: Standardtitel för %{page}
76
- terms-of-service: Användarvillkor
77
- devise:
78
- passwords:
79
- edit:
80
- change_your_password: Ändra ditt lösenord
81
- minimum_characters: "(minst %{minimum} tecken)"
82
- new:
83
- forgot_your_password: Glömt ditt lösenord
84
- send_me_reset_password_instructions: Skicka instruktioner för återställning av lösenord
85
- shared:
86
- links:
87
- did_not_receive_confirmation_instructions?: Fick du inga bekräftelseinstruktioner?
88
- did_not_receive_unlock_instructions?: Fick du inga instruktioner om hur du låser upp ditt konto?
89
- forgot_your_password?: Glömt ditt lösenord?
90
- log_in: Logga in
91
63
  menu:
92
64
  admins: Administratörer
93
65
  dashboard: Adminpanel
94
- oauth_applications: OAuth-applikationer
66
+ oauth_applications: OAuth appar
95
67
  organizations: Organisationer
96
68
  models:
97
69
  admin:
@@ -102,14 +74,13 @@ sv:
102
74
  email_uniqueness: det finns redan en administratör med samma e-postadress
103
75
  oauth_application:
104
76
  fields:
105
- created_at: Skapad
106
- name: Namn OAuth-app
77
+ created_at: Skapad den
78
+ name: OAuth app namn
107
79
  organization_name: Organisation
108
80
  organization:
109
81
  actions:
110
82
  save_and_invite: Skapa organisation och bjud in administratör
111
83
  fields:
112
- content_security_policy: Säkerhetspolicy för innehåll
113
84
  created_at: Skapad
114
85
  file_upload_settings: Inställningar för filuppladdning
115
86
  name: Namn
@@ -142,40 +113,23 @@ sv:
142
113
  show: Visa avancerade inställningar
143
114
  create:
144
115
  error: Det gick inte att skapa en ny organisation.
145
- error_invitation: Det gick inte att skapa en ny organisation. Granska organisationens administratörsnamn.
146
- csp_settings:
147
- connect_src: Connect src
148
- default_src: Default src
149
- font_src: Font src
150
- frame_src: Frame src
151
- img_src: Img src
152
- media_src: Media src
153
- script_src: Script src
154
- style_src: Style src
155
116
  edit:
156
- confirm_resend_invitation: Är du säker på att du vill skicka inbjudan igen?
157
- resend_invitation: Skicka inbjudan igen
158
117
  secondary_hosts_hint: Ange var och en av dem på en ny rad
159
- title: Redigera organisation
160
118
  file_upload_settings:
161
119
  content_types:
162
120
  title: Tillåtna MIME-typer
163
121
  file_extensions:
164
122
  title: Tillåtna filändelser
165
123
  file_sizes:
166
- title: Maximal filstorlek
124
+ title: Max filstorlekar
167
125
  index:
168
126
  title: Organisationer
169
127
  new:
170
- default: Standard?
171
- enabled: Aktiverad
172
- locale: Språk
173
- secondary_hosts_hint: Ange var och en på en ny rad.
174
128
  title: Ny organisation
175
129
  omniauth_settings:
176
130
  decidim:
177
- client_id: Client ID
178
- client_secret: Client Secret
131
+ client_id: Klient ID
132
+ client_secret: Klient hemlig
179
133
  site_url: Webbplatsens URL
180
134
  enabled: Aktiverad
181
135
  enabled_by_default: Denna leverantör är aktiverad som standard. Den kan redigeras men inte inaktiveras.
@@ -183,43 +137,27 @@ sv:
183
137
  app_id: App-ID
184
138
  app_secret: App-hemlighet
185
139
  google_oauth2:
186
- client_id: Client ID
187
- client_secret: Client Secret
140
+ client_id: Klient-ID
141
+ client_secret: Klient-hemlighet
188
142
  icon: Symbol
189
143
  icon_path: Sökväg till symbol
190
144
  twitter:
191
145
  api_key: API-nyckel
192
146
  api_secret: API-hemlighet
193
- resend_invitation:
194
- error: Det gick inte att skicka inbjudan.
195
- success: Inbjudan har skickats.
196
147
  smtp_settings:
197
148
  fieldsets:
198
149
  sender: Avsändare
199
- instructions:
200
- from_label: 'E-postavsändare kommer att vara: "din-organisations-namn <your-organization@example.org>". Lämna tomt för att använda samma namn som ställts in för organisationen.'
201
150
  placeholder:
202
151
  from_email: your-organization@example.org
203
- from_label: din-organisations-namn
152
+ from_label: din-organisation-namn
204
153
  update:
205
154
  error: Det gick inte att uppdatera organisationen.
206
155
  success: Organisationen har uppdaterats.
207
156
  users_registration_mode:
208
157
  disabled: Åtkomst kan endast göras med externa konton
209
- enabled: Tillåt deltagare att registrera och logga in
210
- existing: Tillåt inte deltagare att registrera sig, men tillåt befintliga deltagare att logga in
211
158
  shared:
212
159
  notices:
213
160
  no_organization_warning_html: Kom igång genom att skapa en organisation. Läs %{guide} innan du fortsätter.
214
161
  our_getting_started_guide: vår startguide
215
- organizations_list:
216
- confirm_resend_invitation: Är du säker på att du vill skicka inbjudan igen?
217
- resend_invitation: Skicka inbjudan igen
218
162
  titles:
219
163
  dashboard: Adminpanel
220
- decidim: Decidim
221
- layouts:
222
- decidim:
223
- system:
224
- login_items:
225
- logout: Logga ut
@@ -185,7 +185,6 @@ tr:
185
185
  success: Kuruluş başarıyla güncellendi.
186
186
  users_registration_mode:
187
187
  disabled: Erişim yalnızca harici hesaplarla yapılabilir
188
- enabled: Katılımcıların kaydolmasına ve giriş yapmasına izin ver
189
188
  shared:
190
189
  notices:
191
190
  no_organization_warning_html: Başlamak için bir organizasyon oluşturmanız gerekir. Devam etmeden önce %{guide} okuduğunuzdan emin olun.
@@ -151,7 +151,6 @@ zh-CN:
151
151
  success: 组织已成功更新。
152
152
  users_registration_mode:
153
153
  disabled: 只能通过外部帐户访问
154
- enabled: 允许参与者注册并登录
155
154
  shared:
156
155
  notices:
157
156
  no_organization_warning_html: 您必须创建一个组织才能启动。请确保您在继续之前阅读 %{guide}。
@@ -174,8 +174,6 @@ zh-TW:
174
174
  success: 組織已成功更新。
175
175
  users_registration_mode:
176
176
  disabled: 只能使用外部帳戶進行存取
177
- enabled: 允許參與者註冊和登錄
178
- existing: 不允許參與者註冊,但允許現有參與者登錄
179
177
  shared:
180
178
  notices:
181
179
  no_organization_warning_html: 你必須先建立一個組織才能開始。請確認在繼續前已閱讀 %{guide}。
data/db/seeds.rb CHANGED
@@ -12,6 +12,6 @@ if !Rails.env.production? || ENV.fetch("SEED", nil)
12
12
 
13
13
  Decidim::Organization.find_each do |organization|
14
14
  Decidim::System::CreateDefaultPages.call(organization)
15
- Decidim::System::PopulateHelp.call(organization)
15
+ Decidim::System::CreateDefaultHelpPages.call(organization)
16
16
  end
17
17
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.version = Decidim::System.version
11
11
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
12
12
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
13
- s.license = "AGPL-3.0-or-later"
13
+ s.license = "AGPL-3.0"
14
14
  s.homepage = "https://decidim.org"
15
15
  s.metadata = {
16
16
  "bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  "homepage_uri" => "https://decidim.org",
20
20
  "source_code_uri" => "https://github.com/decidim/decidim"
21
21
  }
22
- s.required_ruby_version = "~> 3.1.0"
22
+ s.required_ruby_version = "~> 3.2.0"
23
23
 
24
24
  s.name = "decidim-system"
25
25
  s.summary = "Decidim system administration"
@@ -28,6 +28,10 @@ module Decidim
28
28
  initializer "decidim_system.webpacker.assets_path" do
29
29
  Decidim.register_assets_path File.expand_path("app/packs", root)
30
30
  end
31
+
32
+ initializer "decidim_system.add_cells_view_paths" do
33
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::System::Engine.root}/app/cells")
34
+ end
31
35
  end
32
36
  end
33
37
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-system version.
5
5
  module System
6
6
  def self.version
7
- "0.28.6"
7
+ "0.29.0.rc1"
8
8
  end
9
9
  end
10
10
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  namespace :decidim_system do
4
- desc "Create a new system admin"
4
+ desc "Creates a new system admin"
5
5
  task create_admin: :environment do
6
6
  puts "Please, provide the following attributes to create a new system admin#{" (currently there are existing system admins)" if Decidim::System::Admin.exists?}:"
7
7
  email = prompt("email", hidden: false)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.6
4
+ version: 0.29.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: 2025-04-29 00:00:00.000000000 Z
13
+ date: 2024-07-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_link_to
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.28.6
35
+ version: 0.29.0.rc1
36
36
  type: :runtime
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.28.6
42
+ version: 0.29.0.rc1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -94,14 +94,14 @@ dependencies:
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.28.6
97
+ version: 0.29.0.rc1
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 0.28.6
104
+ version: 0.29.0.rc1
105
105
  description: System administration to create new organization in an installation.
106
106
  email:
107
107
  - josepjaume@gmail.com
@@ -113,13 +113,15 @@ extra_rdoc_files: []
113
113
  files:
114
114
  - README.md
115
115
  - Rakefile
116
+ - app/cells/decidim/system/system_checks/show.erb
117
+ - app/cells/decidim/system/system_checks_cell.rb
116
118
  - app/commands/decidim/system/create_admin.rb
117
119
  - app/commands/decidim/system/create_default_content_blocks.rb
120
+ - app/commands/decidim/system/create_default_help_pages.rb
118
121
  - app/commands/decidim/system/create_default_pages.rb
119
122
  - app/commands/decidim/system/create_oauth_application.rb
123
+ - app/commands/decidim/system/create_organization.rb
120
124
  - app/commands/decidim/system/destroy_oauth_application.rb
121
- - app/commands/decidim/system/populate_help.rb
122
- - app/commands/decidim/system/register_organization.rb
123
125
  - app/commands/decidim/system/update_admin.rb
124
126
  - app/commands/decidim/system/update_oauth_application.rb
125
127
  - app/commands/decidim/system/update_organization.rb
@@ -131,6 +133,7 @@ files:
131
133
  - app/controllers/decidim/system/oauth_applications_controller.rb
132
134
  - app/controllers/decidim/system/organizations_controller.rb
133
135
  - app/forms/decidim/system/admin_form.rb
136
+ - app/forms/decidim/system/base_organization_form.rb
134
137
  - app/forms/decidim/system/file_upload_settings_form.rb
135
138
  - app/forms/decidim/system/oauth_application_form.rb
136
139
  - app/forms/decidim/system/register_organization_form.rb
@@ -186,9 +189,6 @@ files:
186
189
  - config/locales/ar.yml
187
190
  - config/locales/bg-BG.yml
188
191
  - config/locales/bg.yml
189
- - config/locales/bn-BD.yml
190
- - config/locales/bs-BA.yml
191
- - config/locales/ca-IT.yml
192
192
  - config/locales/ca.yml
193
193
  - config/locales/cs-CZ.yml
194
194
  - config/locales/cs.yml
@@ -276,7 +276,7 @@ files:
276
276
  - lib/tasks/decidim_system.rake
277
277
  homepage: https://decidim.org
278
278
  licenses:
279
- - AGPL-3.0-or-later
279
+ - AGPL-3.0
280
280
  metadata:
281
281
  bug_tracker_uri: https://github.com/decidim/decidim/issues
282
282
  documentation_uri: https://docs.decidim.org/
@@ -291,14 +291,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
291
291
  requirements:
292
292
  - - "~>"
293
293
  - !ruby/object:Gem::Version
294
- version: 3.1.0
294
+ version: 3.2.0
295
295
  required_rubygems_version: !ruby/object:Gem::Requirement
296
296
  requirements:
297
- - - ">="
297
+ - - ">"
298
298
  - !ruby/object:Gem::Version
299
- version: '0'
299
+ version: 1.3.1
300
300
  requirements: []
301
- rubygems_version: 3.3.7
301
+ rubygems_version: 3.4.10
302
302
  signing_key:
303
303
  specification_version: 4
304
304
  summary: Decidim system administration
@@ -1 +0,0 @@
1
- bn:
@@ -1,44 +0,0 @@
1
- ---
2
- bs:
3
- activemodel:
4
- attributes:
5
- oauth_application:
6
- organization_logo: Logo organizacije (kvadrat)
7
- organization_url: Link organizacije
8
- redirect_uri: Preusmeren URL
9
- organization:
10
- address: SMTP domaćin
11
- password: Šifra
12
- port: Port
13
- user_name: Korisničko ime
14
- errors:
15
- models:
16
- oauth_application:
17
- attributes:
18
- redirect_uri:
19
- must_be_ssl: URI za preusmeravanje mora biti SSL URI
20
- decidim:
21
- system:
22
- models:
23
- organization:
24
- fields:
25
- omniauth_settings: Omniauth podešavanja
26
- organizations:
27
- omniauth_settings:
28
- decidim:
29
- client_id: Identitet klijenta
30
- client_secret: Tajni ključ klijenta
31
- site_url: URL stranice
32
- enabled: Omogućeno
33
- enabled_by_default: Ovaj davalac usluga je automatski omogućen. Možete ga izmeniti, ali ne i isključiti.
34
- facebook:
35
- app_id: Identitet aplikacije
36
- app_secret: Tajni ključ aplikacije
37
- google_oauth2:
38
- client_id: Identitet klijenta
39
- client_secret: Tajni ključ klijenta
40
- icon: Ikona
41
- icon_path: Put ikone
42
- twitter:
43
- api_key: API ključ
44
- api_secret: API tajni ključ