decidim-system 0.26.0 → 0.27.0.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-system might be problematic. Click here for more details.

Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -9
  3. data/app/commands/decidim/system/create_admin.rb +1 -1
  4. data/app/commands/decidim/system/create_default_content_blocks.rb +1 -1
  5. data/app/commands/decidim/system/create_default_pages.rb +1 -1
  6. data/app/commands/decidim/system/create_oauth_application.rb +1 -1
  7. data/app/commands/decidim/system/destroy_oauth_application.rb +1 -1
  8. data/app/commands/decidim/system/populate_help.rb +3 -3
  9. data/app/commands/decidim/system/register_organization.rb +5 -2
  10. data/app/commands/decidim/system/update_admin.rb +1 -1
  11. data/app/commands/decidim/system/update_oauth_application.rb +1 -1
  12. data/app/commands/decidim/system/update_organization.rb +1 -1
  13. data/app/forms/decidim/system/admin_form.rb +2 -0
  14. data/app/forms/decidim/system/file_upload_settings_form.rb +19 -19
  15. data/app/models/decidim/system/admin.rb +2 -0
  16. data/app/packs/entrypoints/decidim_system.js +1 -0
  17. data/app/packs/stylesheets/decidim/system/application.scss +1 -0
  18. data/config/locales/am-ET.yml +1 -0
  19. data/config/locales/ar.yml +16 -0
  20. data/config/locales/bg.yml +1 -0
  21. data/config/locales/ca.yml +1 -0
  22. data/config/locales/cs.yml +1 -0
  23. data/config/locales/da.yml +1 -0
  24. data/config/locales/de.yml +7 -0
  25. data/config/locales/el.yml +1 -0
  26. data/config/locales/eo.yml +1 -0
  27. data/config/locales/es-MX.yml +1 -0
  28. data/config/locales/es-PY.yml +1 -0
  29. data/config/locales/es.yml +1 -0
  30. data/config/locales/et.yml +1 -0
  31. data/config/locales/eu.yml +1 -0
  32. data/config/locales/fi-plain.yml +1 -0
  33. data/config/locales/fi.yml +1 -0
  34. data/config/locales/fr-CA.yml +1 -0
  35. data/config/locales/fr.yml +1 -0
  36. data/config/locales/ga-IE.yml +1 -0
  37. data/config/locales/gl.yml +1 -0
  38. data/config/locales/hr.yml +1 -0
  39. data/config/locales/hu.yml +1 -0
  40. data/config/locales/id-ID.yml +1 -0
  41. data/config/locales/is-IS.yml +2 -1
  42. data/config/locales/it.yml +1 -0
  43. data/config/locales/ja.yml +1 -0
  44. data/config/locales/ko.yml +1 -0
  45. data/config/locales/lb.yml +1 -0
  46. data/config/locales/lt.yml +1 -0
  47. data/config/locales/lv.yml +1 -0
  48. data/config/locales/mt.yml +1 -0
  49. data/config/locales/nl.yml +1 -0
  50. data/config/locales/no.yml +1 -0
  51. data/config/locales/om-ET.yml +1 -0
  52. data/config/locales/pl.yml +1 -0
  53. data/config/locales/pt-BR.yml +2 -1
  54. data/config/locales/pt.yml +1 -0
  55. data/config/locales/ro-RO.yml +1 -0
  56. data/config/locales/ru.yml +1 -0
  57. data/config/locales/si-LK.yml +1 -0
  58. data/config/locales/sk.yml +1 -0
  59. data/config/locales/sl.yml +1 -0
  60. data/config/locales/so-SO.yml +1 -0
  61. data/config/locales/sr-CS.yml +1 -0
  62. data/config/locales/sv.yml +4 -3
  63. data/config/locales/sw-KE.yml +1 -0
  64. data/config/locales/ti-ER.yml +1 -0
  65. data/config/locales/tr-TR.yml +1 -0
  66. data/config/locales/uk.yml +1 -0
  67. data/config/locales/val-ES.yml +1 -0
  68. data/config/locales/vi.yml +1 -0
  69. data/config/locales/zh-CN.yml +1 -0
  70. data/config/locales/zh-TW.yml +1 -0
  71. data/db/seeds.rb +2 -2
  72. data/lib/decidim/system/engine.rb +0 -1
  73. data/lib/decidim/system/test/factories.rb +3 -3
  74. data/lib/decidim/system/version.rb +1 -1
  75. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a7dfcd6e16bc1926175c0a8984d57f20765998e3756201065f079b4abb4eec8
4
- data.tar.gz: 71ebfe9db5aa560a844bd23e773d1d3b5dca20decf775c16ee2fb0f7b43d1135
3
+ metadata.gz: 9a13e278028184766cd3a5a7a2f3c225a42a231e4d1ea790fdd3e2a7049b2446
4
+ data.tar.gz: 16990b3fb9011f5296039152d4017d689b4fa924f7f5877a7fcbba39a2aaa526
5
5
  SHA512:
6
- metadata.gz: ec5d77a8da664af12298253509b6674e127af5c0c9a2d9bedd7f2be453691ec827d5060df53d3020e60bb47e767a3fac647ef96bda334144254b2bf39c0e9085
7
- data.tar.gz: 7b20e019799d86f83568de5d0a5c5d7533a7f1f61fd141a9216e93fee5e9db5d29eeb12761beefa344b8eab9b06b127c14a484508622b9a92fe231b9ec57ef0d
6
+ metadata.gz: ccf6a125d14b87455c6d37eea06cb1bb65d8b6bb81c9f205c6ecd671d89a7f7538970684406689eddbf7fa16be0c8fb501c5ec0f7a740ebb1de676d1bde66a5e
7
+ data.tar.gz: 0d15b289d10046b71e486af2f553f909c6dd7edaba01e4f0666146207b725f3866c6818d002efb2211284936a68ea0f1d331b6eaa75d597f1db7c68c67c46c73
data/README.md CHANGED
@@ -40,22 +40,34 @@ When using Decidim as multi-tenant, you should keep these in mind:
40
40
 
41
41
  ## Managing System admins
42
42
 
43
- Currently Decidim doesn't provide a way to create the first System Admin in a new deployment. To do it, you should open a Rails console in your application and
44
- create it:
43
+ For logging in to this dashboard, you'll need to create a system admin account from your terminal:
45
44
 
46
- ```ruby
47
- Decidim::System::Admin.create!(
48
- email: "your-email@example.org",
49
- password: "your-safe-password",
50
- password_confirmation: "your-safe-password"
51
- )
45
+ ```bash
46
+ bin/rails decidim_system:create_admin
52
47
  ```
53
48
 
54
- Once you have created your first admin you can access the system dashboard at `https://your-decidim-deployment-host/system` and login with your newly created user.
49
+ You'll be asked for an email and a password. For security, the password will not get displayed back at you and you'll need to confirm it.
50
+
51
+ Once you have created your first admin you can access the system dashboard at `/system`. For instance, if you have Decidim running at `https://example.org`, this URL would be `https://example.org/system`.
52
+ You'll be able to login with your newly created user.
53
+
55
54
  From the system dashboard you can add new admins.
56
55
 
57
56
  ⚠️ If you need to reset your administrator password you'll need to do it by entering the Rails console and changing it manually. ⚠️
58
57
 
58
+ . Open the rails console:
59
+ ```bash
60
+ bin/rails console
61
+ ```
62
+ . Run the following instructions, changing them accordingly:
63
+ ```ruby
64
+ system_admin = Decidim::System::Admin.order(:id).first # for the first system admin
65
+ system_admin = Decidim::System::Admin.find_by_email "system@example.org" # if you already know the email
66
+ system_admin.password = "decidim123456789" # change for something secure
67
+ system_admin.password_confirmation = "decidim123456789"
68
+ system_admin.save
69
+ ```
70
+
59
71
  ## Managing organizations
60
72
 
61
73
  Once you have your system admin setup you can also start managing the organizations in your deploy. To do it, login at the system dashboard and create a new organization
@@ -4,7 +4,7 @@ module Decidim
4
4
  module System
5
5
  # A command with all the business logic when creating a new admin in
6
6
  # the system.
7
- class CreateAdmin < Rectify::Command
7
+ class CreateAdmin < Decidim::Command
8
8
  # Public: Initializes the command.
9
9
  #
10
10
  # form - A form object with the params.
@@ -4,7 +4,7 @@ module Decidim
4
4
  module System
5
5
  # A command with all the business logic to create the default content blocks
6
6
  # for a newly-created organization.
7
- class CreateDefaultContentBlocks < Rectify::Command
7
+ class CreateDefaultContentBlocks < Decidim::Command
8
8
  DEFAULT_CONTENT_BLOCKS =
9
9
  [:hero, :sub_hero, :highlighted_content_banner, :how_to_participate, :stats, :metrics, :footer_sub_hero].freeze
10
10
 
@@ -5,7 +5,7 @@ module Decidim
5
5
  # A command with all the business logic when creating a new organization in
6
6
  # the system. It creates the organization and invites the admin to the
7
7
  # system.
8
- class CreateDefaultPages < Rectify::Command
8
+ class CreateDefaultPages < Decidim::Command
9
9
  # Public: Initializes the command.
10
10
  #
11
11
  # form - A form object with the params.
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module System
5
5
  # Creates an OAuthApplication.
6
- class CreateOAuthApplication < Rectify::Command
6
+ class CreateOAuthApplication < Decidim::Command
7
7
  # Initializes the command.
8
8
  #
9
9
  # form - The source fo data for this OAuthApplication.
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module System
5
5
  # This command deals with destroying an application from the admin panel.
6
- class DestroyOAuthApplication < Rectify::Command
6
+ class DestroyOAuthApplication < Decidim::Command
7
7
  # Public: Initializes the command.
8
8
  #
9
9
  # application - The OAuthApplication to be destroyed.
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module System
5
5
  # A command that will create default help pages for an organization.
6
- class PopulateHelp < Rectify::Command
6
+ class PopulateHelp < Decidim::Command
7
7
  # Public: Initializes the command.
8
8
  #
9
9
  # organization - An organization
@@ -49,8 +49,8 @@ module Decidim
49
49
  end
50
50
  end
51
51
 
52
- def multi_translation(key, *arguments)
53
- Decidim::TranslationsHelper.multi_translation(key, @organization.available_locales, *arguments)
52
+ def multi_translation(key, **arguments)
53
+ Decidim::TranslationsHelper.multi_translation(key, @organization.available_locales, **arguments)
54
54
  end
55
55
  end
56
56
  end
@@ -5,7 +5,7 @@ module Decidim
5
5
  # A command with all the business logic when creating a new organization in
6
6
  # the system. It creates the organization and invites the admin to the
7
7
  # system.
8
- class RegisterOrganization < Rectify::Command
8
+ class RegisterOrganization < Decidim::Command
9
9
  # Public: Initializes the command.
10
10
  #
11
11
  # form - A form object with the params.
@@ -24,6 +24,7 @@ module Decidim
24
24
 
25
25
  @organization = nil
26
26
  invite_form = nil
27
+ invitation_failed = false
27
28
 
28
29
  transaction do
29
30
  @organization = create_organization
@@ -31,8 +32,10 @@ module Decidim
31
32
  PopulateHelp.call(@organization)
32
33
  CreateDefaultContentBlocks.call(@organization)
33
34
  invite_form = invite_user_form(@organization)
34
- return broadcast(:invalid) if invite_form.invalid?
35
+ invitation_failed = invite_form.invalid?
35
36
  end
37
+ return broadcast(:invalid) if invitation_failed
38
+
36
39
  Decidim::InviteUser.call(invite_form) if @organization && invite_form
37
40
 
38
41
  broadcast(:ok)
@@ -4,7 +4,7 @@ module Decidim
4
4
  module System
5
5
  # A command with all the business logic when updating an admin in
6
6
  # the system.
7
- class UpdateAdmin < Rectify::Command
7
+ class UpdateAdmin < Decidim::Command
8
8
  # Public: Initializes the command.
9
9
  #
10
10
  # form - A form object with the params.
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module System
5
5
  # Updates the OAuth application given form data.
6
- class UpdateOAuthApplication < Rectify::Command
6
+ class UpdateOAuthApplication < Decidim::Command
7
7
  # Initializes the command.
8
8
  #
9
9
  # application - The OAuthApplication to update.
@@ -5,7 +5,7 @@ module Decidim
5
5
  # A command with all the business logic when creating a new organization in
6
6
  # the system. It creates the organization and invites the admin to the
7
7
  # system.
8
- class UpdateOrganization < Rectify::Command
8
+ class UpdateOrganization < Decidim::Command
9
9
  # Public: Initializes the command.
10
10
  #
11
11
  # form - A form object with the params.
@@ -15,6 +15,8 @@ module Decidim
15
15
  validates :password, presence: true, unless: :admin_exists?
16
16
  validates :password_confirmation, presence: true, unless: :admin_exists?
17
17
 
18
+ validates :password, password: { email: :email }
19
+
18
20
  validate :email, :email_uniqueness
19
21
 
20
22
  private
@@ -10,34 +10,31 @@ module Decidim
10
10
 
11
11
  mimic :organization_file_uploads
12
12
 
13
- attribute :allowed_file_extensions, Hash[Symbol => String]
14
- attribute :allowed_content_types, Hash[Symbol => String]
15
- attribute :maximum_file_size, Hash[Symbol => Float]
13
+ attribute(:allowed_file_extensions, { Symbol => String })
14
+ attribute(:allowed_content_types, { Symbol => String })
15
+ attribute(:maximum_file_size, { Symbol => Float })
16
16
 
17
17
  def map_model(settings_hash)
18
- settings_hash = begin
19
- if settings_hash.is_a?(Hash)
20
- default_settings.deep_merge(settings_hash.deep_stringify_keys)
21
- else
22
- default_settings
23
- end
24
- end
18
+ settings_hash = if settings_hash.is_a?(Hash)
19
+ default_settings.deep_merge(settings_hash.deep_stringify_keys)
20
+ else
21
+ default_settings
22
+ end
25
23
 
26
- attribute_set.each do |attr|
27
- key = attr.name.to_s
28
- next unless settings_hash.has_key?(key)
24
+ csv_attributes.each do |attr|
25
+ next unless settings_hash.has_key?(attr.to_s)
29
26
 
30
27
  # For the view, the array values need to be in comma separated format
31
28
  # in order for them to work correctly with the tags inputs.
32
- value = Rectify::FormAttribute.new(attr).value_from(
33
- settings_hash[key]
34
- )
29
+ value = settings_hash[attr.to_s]
35
30
  value.each do |k, v|
36
31
  value[k] = v.join(",") if v.is_a?(Array)
37
32
  end
38
33
 
39
- self[key] = value
34
+ send("#{attr}=", value)
40
35
  end
36
+
37
+ self.maximum_file_size = settings_hash["maximum_file_size"]
41
38
  end
42
39
 
43
40
  # This turns the attributes passed from the view into the final
@@ -46,8 +43,7 @@ module Decidim
46
43
  # the view layer. Before we save those attributes, they need to be
47
44
  # converted into arrays which is what this method does.
48
45
  def final
49
- csv_attributes = [:allowed_file_extensions, :allowed_content_types]
50
- attributes.tap do |attr|
46
+ to_h.tap do |attr|
51
47
  csv_attributes.each do |key|
52
48
  attr[key] = csv_array_setting(attr[key])
53
49
  end
@@ -60,6 +56,10 @@ module Decidim
60
56
  Decidim::OrganizationSettings.default(:upload)
61
57
  end
62
58
 
59
+ def csv_attributes
60
+ @csv_attributes ||= [:allowed_file_extensions, :allowed_content_types]
61
+ end
62
+
63
63
  def csv_array_setting(original)
64
64
  original.transform_values do |value|
65
65
  value.split(",")
@@ -8,6 +8,8 @@ module Decidim
8
8
 
9
9
  validates :email, uniqueness: true
10
10
 
11
+ validates :password, password: { email: :email }
12
+
11
13
  private
12
14
 
13
15
  # Changes default Devise behaviour to use ActiveJob to send async emails.
@@ -1,2 +1,3 @@
1
1
  import "src/decidim/system/application"
2
2
  import "entrypoints/decidim_system.scss"
3
+ import "src/decidim/direct_uploads/upload_field"
@@ -15,6 +15,7 @@ $-zf-bp-value: null;
15
15
  @import "stylesheets/decidim/system/forms";
16
16
  @import "stylesheets/decidim/editor";
17
17
  @import "stylesheets/decidim/utils/fontface";
18
+ @import "stylesheets/decidim/modules/upload_modal";
18
19
 
19
20
  body{
20
21
  font-family: 'Source Sans Pro', sans-serif;
@@ -1 +1,2 @@
1
+ ---
1
2
  am:
@@ -1,4 +1,14 @@
1
+ ---
1
2
  ar:
3
+ activemodel:
4
+ attributes:
5
+ oauth_application:
6
+ organization_name: المنظمة
7
+ organization:
8
+ from_email: عنوان البريد الإلكتروني
9
+ password: الكلمة السرية
10
+ port: المنفذ
11
+ user_name: اسم المستخدم
2
12
  decidim:
3
13
  system:
4
14
  actions:
@@ -41,6 +51,9 @@ ar:
41
51
  name: مشرف
42
52
  validations:
43
53
  email_uniqueness: يوجد مشرف آخر بنفس البريد الإلكتروني بالفعل
54
+ oauth_application:
55
+ fields:
56
+ organization_name: المنظمة
44
57
  organization:
45
58
  actions:
46
59
  save_and_invite: إنشاء منظمة ودعوة المشرف
@@ -72,6 +85,9 @@ ar:
72
85
  twitter:
73
86
  api_key: مفتاح API
74
87
  api_secret: سر API
88
+ smtp_settings:
89
+ fieldsets:
90
+ sender: المُرسِل
75
91
  update:
76
92
  error: حدثت مشكلة أثناء تحديث هذه المؤسسة.
77
93
  success: تم تحديث المنظمة بنجاح.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  bg:
2
3
  decidim:
3
4
  system:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ca:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  cs:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  da:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  de:
2
3
  activemodel:
3
4
  attributes:
@@ -57,6 +58,9 @@ de:
57
58
  update:
58
59
  error: Beim Aktualisieren dieses Administrators ist ein Fehler aufgetreten.
59
60
  success: Administrator wurde erfolgreich aktualisiert
61
+ dashboard:
62
+ show:
63
+ current_organizations: Aktuelle Organisationen
60
64
  default_pages:
61
65
  placeholders:
62
66
  content: Fügen Sie der statischen Seite %{page} im Admin-Dashboard sinnvollen Inhalt hinzu.
@@ -112,6 +116,9 @@ de:
112
116
  error: Beim Erstellen dieser Anwendung ist ein Fehler aufgetreten.
113
117
  success: Die Anwendung wurde erfolgreich aktualisiert.
114
118
  organizations:
119
+ advanced_settings:
120
+ hide: Erweiterte Einstellungen ausblenden
121
+ show: Zeige erweiterte Einstellungen
115
122
  create:
116
123
  error: Beim Erstellen einer neuen Organisation ist ein Fehler aufgetreten.
117
124
  success: Organisation erfolgreich erstellt
@@ -1,3 +1,4 @@
1
+ ---
1
2
  el:
2
3
  decidim:
3
4
  system:
@@ -1 +1,2 @@
1
+ ---
1
2
  eo:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es-MX:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es-PY:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  et:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  eu:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fi-pl:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fi:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr-CA:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ga:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  gl:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  hr:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  hu:
2
3
  decidim:
3
4
  system:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  id:
2
3
  decidim:
3
4
  system:
@@ -1,4 +1,5 @@
1
- is-IS:
1
+ ---
2
+ is:
2
3
  decidim:
3
4
  system:
4
5
  actions:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  it:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ja:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  ko:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lb:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  lt:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lv:
2
3
  decidim:
3
4
  system:
@@ -1 +1,2 @@
1
+ ---
1
2
  mt:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  nl:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  "no":
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  om:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pl:
2
3
  activemodel:
3
4
  attributes:
@@ -1,4 +1,5 @@
1
- pt-BR:
1
+ ---
2
+ pt:
2
3
  activemodel:
3
4
  attributes:
4
5
  oauth_application:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ro:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ru:
2
3
  decidim:
3
4
  system:
@@ -1 +1,2 @@
1
+ ---
1
2
  si:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sk:
2
3
  decidim:
3
4
  system:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sl:
2
3
  decidim:
3
4
  system:
@@ -1 +1,2 @@
1
+ ---
1
2
  so:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sr:
2
3
  decidim:
3
4
  system:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sv:
2
3
  activemodel:
3
4
  attributes:
@@ -62,11 +63,11 @@ sv:
62
63
  current_organizations: Nuvarande organisationer
63
64
  default_pages:
64
65
  placeholders:
65
- content: Lägg till relevant innehåll på den statiska sidan %{page} på administratörspanelen.
66
+ content: Lägg till relevant innehåll på den statiska sidan %{page} på adminpanelen.
66
67
  title: Standardtitel för %{page}
67
68
  menu:
68
69
  admins: Administratörer
69
- dashboard: Kontrollpanel
70
+ dashboard: Adminpanel
70
71
  oauth_applications: OAuth appar
71
72
  organizations: Organisationer
72
73
  models:
@@ -174,4 +175,4 @@ sv:
174
175
  no_organization_warning_html: Kom igång genom att skapa en organisation. Läs %{guide} innan du fortsätter.
175
176
  our_getting_started_guide: vår startguide
176
177
  titles:
177
- dashboard: Kontrollpanel
178
+ dashboard: Adminpanel
@@ -1 +1,2 @@
1
+ ---
1
2
  sw:
@@ -1 +1,2 @@
1
+ ---
1
2
  ti:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  tr:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  uk:
2
3
  decidim:
3
4
  system:
@@ -1 +1,2 @@
1
+ ---
1
2
  val:
@@ -1 +1,2 @@
1
+ ---
1
2
  vi:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  zh-CN:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  zh-TW:
data/db/seeds.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- if !Rails.env.production? || ENV["SEED"]
3
+ if !Rails.env.production? || ENV.fetch("SEED", nil)
4
4
  print "Creating seeds for decidim-system...\n" unless Rails.env.test?
5
5
 
6
- password = ENV["DECIDIM_SYSTEM_USER_PASSWORD"] || "decidim123456"
6
+ password = ENV.fetch("DECIDIM_SYSTEM_USER_PASSWORD", "decidim123456789")
7
7
 
8
8
  Decidim::System::Admin.find_or_initialize_by(email: "system@example.org").update!(
9
9
  password: password,
@@ -7,7 +7,6 @@ require "devise"
7
7
  require "devise-i18n"
8
8
  require "decidim/core"
9
9
  require "foundation_rails_helper"
10
- require "rectify"
11
10
 
12
11
  module Decidim
13
12
  module System
@@ -4,8 +4,8 @@ require "decidim/core/test/factories"
4
4
 
5
5
  FactoryBot.define do
6
6
  factory :admin, class: "Decidim::System::Admin" do
7
- sequence(:email) { |n| "admin#{n}@citizen.corp" }
8
- password { "password1234" }
9
- password_confirmation { "password1234" }
7
+ sequence(:email) { |n| "admin#{n}@example.org" }
8
+ password { "decidim123456789" }
9
+ password_confirmation { "decidim123456789" }
10
10
  end
11
11
  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.26.0"
7
+ "0.27.0.rc1"
8
8
  end
9
9
  end
10
10
  end
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.26.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: 2022-02-22 00:00:00.000000000 Z
13
+ date: 2022-06-27 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.26.0
35
+ version: 0.27.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.26.0
42
+ version: 0.27.0.rc1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -88,14 +88,14 @@ dependencies:
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.26.0
91
+ version: 0.27.0.rc1
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.26.0
98
+ version: 0.27.0.rc1
99
99
  description: System administration to create new organization in an installation.
100
100
  email:
101
101
  - josepjaume@gmail.com
@@ -275,14 +275,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
275
  requirements:
276
276
  - - ">="
277
277
  - !ruby/object:Gem::Version
278
- version: '2.7'
278
+ version: '3.0'
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  requirements:
281
- - - ">="
281
+ - - ">"
282
282
  - !ruby/object:Gem::Version
283
- version: '0'
283
+ version: 1.3.1
284
284
  requirements: []
285
- rubygems_version: 3.1.6
285
+ rubygems_version: 3.2.22
286
286
  signing_key:
287
287
  specification_version: 4
288
288
  summary: Decidim system administration