decidim-system 0.26.5 → 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.
- checksums.yaml +4 -4
- data/README.md +21 -9
- data/app/commands/decidim/system/create_admin.rb +1 -1
- data/app/commands/decidim/system/create_default_content_blocks.rb +1 -1
- data/app/commands/decidim/system/create_default_pages.rb +1 -1
- data/app/commands/decidim/system/create_oauth_application.rb +1 -1
- data/app/commands/decidim/system/destroy_oauth_application.rb +1 -1
- data/app/commands/decidim/system/populate_help.rb +3 -3
- data/app/commands/decidim/system/register_organization.rb +5 -2
- data/app/commands/decidim/system/update_admin.rb +1 -1
- data/app/commands/decidim/system/update_oauth_application.rb +1 -1
- data/app/commands/decidim/system/update_organization.rb +1 -1
- data/app/forms/decidim/system/file_upload_settings_form.rb +19 -19
- data/app/forms/decidim/system/update_organization_form.rb +4 -3
- data/app/packs/entrypoints/decidim_system.js +1 -0
- data/app/packs/stylesheets/decidim/system/application.scss +1 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +1 -0
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +2 -1
- data/config/locales/cs.yml +2 -1
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/el.yml +1 -0
- 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 +1 -0
- 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 -0
- 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 -187
- 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 -1
- data/config/locales/pt.yml +1 -0
- data/config/locales/ro-RO.yml +1 -0
- 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 -0
- data/db/seeds.rb +2 -2
- data/lib/decidim/system/engine.rb +0 -1
- data/lib/decidim/system/test/factories.rb +3 -3
- data/lib/decidim/system/version.rb +1 -1
- metadata +10 -14
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.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: 9a13e278028184766cd3a5a7a2f3c225a42a231e4d1ea790fdd3e2a7049b2446
|
4
|
+
data.tar.gz: 16990b3fb9011f5296039152d4017d689b4fa924f7f5877a7fcbba39a2aaa526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
```
|
47
|
-
|
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
|
-
|
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 <
|
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 <
|
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 <
|
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
|
# This command deals with destroying an application from the admin panel.
|
6
|
-
class DestroyOAuthApplication <
|
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 <
|
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,
|
53
|
-
Decidim::TranslationsHelper.multi_translation(key, @organization.available_locales,
|
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 <
|
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
|
-
|
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 <
|
7
|
+
class UpdateAdmin < Decidim::Command
|
8
8
|
# Public: Initializes the command.
|
9
9
|
#
|
10
10
|
# form - A form object with the params.
|
@@ -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 <
|
8
|
+
class UpdateOrganization < Decidim::Command
|
9
9
|
# Public: Initializes the command.
|
10
10
|
#
|
11
11
|
# form - A form object with the params.
|
@@ -10,34 +10,31 @@ module Decidim
|
|
10
10
|
|
11
11
|
mimic :organization_file_uploads
|
12
12
|
|
13
|
-
attribute
|
14
|
-
attribute
|
15
|
-
attribute
|
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 =
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
27
|
-
|
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 =
|
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
|
-
|
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
|
-
|
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(",")
|
@@ -29,7 +29,6 @@ module Decidim
|
|
29
29
|
[:authentication, String],
|
30
30
|
[:enable_starttls_auto, Boolean]
|
31
31
|
]
|
32
|
-
attribute :password, String
|
33
32
|
attribute :file_upload_settings, FileUploadSettingsForm
|
34
33
|
|
35
34
|
OMNIATH_PROVIDERS_ATTRIBUTES = Decidim::OmniauthProvider.available.keys.map do |provider|
|
@@ -44,6 +43,8 @@ module Decidim
|
|
44
43
|
|
45
44
|
jsonb_attribute :omniauth_settings, OMNIATH_PROVIDERS_ATTRIBUTES
|
46
45
|
|
46
|
+
attr_writer :password
|
47
|
+
|
47
48
|
validates :name, :host, :users_registration_mode, presence: true
|
48
49
|
validate :validate_organization_uniqueness
|
49
50
|
validates :users_registration_mode, inclusion: { in: Decidim::Organization.users_registration_modes }
|
@@ -69,13 +70,13 @@ module Decidim
|
|
69
70
|
end
|
70
71
|
|
71
72
|
def password
|
72
|
-
|
73
|
+
Decidim::AttributeEncryptor.decrypt(encrypted_password) unless encrypted_password.nil?
|
73
74
|
end
|
74
75
|
|
75
76
|
def encrypted_smtp_settings
|
76
77
|
smtp_settings["from"] = set_from
|
77
78
|
|
78
|
-
smtp_settings.merge(encrypted_password: Decidim::AttributeEncryptor.encrypt(password))
|
79
|
+
smtp_settings.merge(encrypted_password: Decidim::AttributeEncryptor.encrypt(@password))
|
79
80
|
end
|
80
81
|
|
81
82
|
def set_from
|
@@ -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;
|
data/config/locales/am-ET.yml
CHANGED
data/config/locales/ar.yml
CHANGED
data/config/locales/bg.yml
CHANGED
data/config/locales/ca.yml
CHANGED
data/config/locales/cs.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
cs:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -89,7 +90,7 @@ cs:
|
|
89
90
|
fields:
|
90
91
|
created_at: Vytvořeno v
|
91
92
|
file_upload_settings: Nastavení nahrávání souborů
|
92
|
-
name:
|
93
|
+
name: název
|
93
94
|
omniauth_settings: Nastavení Omniauth
|
94
95
|
smtp_settings: SMTP nastavení
|
95
96
|
name: Organizace
|
data/config/locales/da.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/el.yml
CHANGED
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
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
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,188 +1,2 @@
|
|
1
|
+
---
|
1
2
|
lt:
|
2
|
-
activemodel:
|
3
|
-
attributes:
|
4
|
-
oauth_application:
|
5
|
-
name: '„OAuth“ programos pavadinimas'
|
6
|
-
organization_logo: Organizacijos logotipas (keturkampis)
|
7
|
-
organization_name: Organizacija
|
8
|
-
organization_url: Organizacijos URL
|
9
|
-
redirect_uri: Peradresavimo URI
|
10
|
-
organization:
|
11
|
-
address: SMTP pagrindinio kompiuterio vardas
|
12
|
-
from_email: El. pašto adresas
|
13
|
-
from_label: Etiketė
|
14
|
-
password: Slaptažodis
|
15
|
-
port: Portas
|
16
|
-
user_name: Naudotojo vardas
|
17
|
-
organization_file_uploads:
|
18
|
-
allowed_content_types:
|
19
|
-
admin: Administratoriaus MIME tipai
|
20
|
-
default: Numatytieji MIME tipai
|
21
|
-
allowed_file_extensions:
|
22
|
-
admin: Administratoriaus failų plėtiniai
|
23
|
-
default: Numatytieji failų plėtiniai
|
24
|
-
image: Vaizdo failų plėtiniai
|
25
|
-
maximum_file_size:
|
26
|
-
avatar: Avataro failo dydis
|
27
|
-
default: Numatytasis failo dydis
|
28
|
-
errors:
|
29
|
-
models:
|
30
|
-
oauth_application:
|
31
|
-
attributes:
|
32
|
-
redirect_uri:
|
33
|
-
must_be_ssl: Peradresavimo URI turi būti SSL URI
|
34
|
-
decidim:
|
35
|
-
system:
|
36
|
-
actions:
|
37
|
-
confirm_destroy: Ar tikrai norite tai ištrinti?
|
38
|
-
destroy: Ištrinti
|
39
|
-
edit: Redaguoti
|
40
|
-
new: Naujas
|
41
|
-
save: Išsaugoti
|
42
|
-
title: Veiksmai
|
43
|
-
admins:
|
44
|
-
create:
|
45
|
-
error: Kuriant naują administratorių iškilo problema.
|
46
|
-
success: Administratorius sukurtas
|
47
|
-
destroy:
|
48
|
-
success: Administratorius pašalintas
|
49
|
-
edit:
|
50
|
-
title: Redaguoti administratorių
|
51
|
-
update: Atnaujinti
|
52
|
-
index:
|
53
|
-
title: Administratoriai
|
54
|
-
new:
|
55
|
-
create: Sukurti
|
56
|
-
title: Naujas administratorius
|
57
|
-
update:
|
58
|
-
error: Atnaujinant šį administratorių iškilo problema.
|
59
|
-
success: Administratorius atnaujintas
|
60
|
-
dashboard:
|
61
|
-
show:
|
62
|
-
current_organizations: Dabartinės organizacijos
|
63
|
-
default_pages:
|
64
|
-
placeholders:
|
65
|
-
content: Administratoriaus suvestinės statiniame puslapyje %{page} įrašykite prasmingą turinį.
|
66
|
-
title: '%{page} numatytasis pavadinimas'
|
67
|
-
menu:
|
68
|
-
admins: Administratoriai
|
69
|
-
dashboard: Švieslentė
|
70
|
-
oauth_applications: OAuth aplikacijos
|
71
|
-
organizations: Organizacijos
|
72
|
-
models:
|
73
|
-
admin:
|
74
|
-
fields:
|
75
|
-
created_at: Sukurta
|
76
|
-
email: El. paštas
|
77
|
-
name: Administratorius
|
78
|
-
validations:
|
79
|
-
email_uniqueness: jau yra kitas administratorius su tokiu pačiu el. pašto adresu
|
80
|
-
oauth_application:
|
81
|
-
fields:
|
82
|
-
created_at: Sukurta
|
83
|
-
name: '„OAuth“ programos pavadinimas'
|
84
|
-
organization_name: Organizacija
|
85
|
-
name: OAuth aplikacija
|
86
|
-
organization:
|
87
|
-
actions:
|
88
|
-
save_and_invite: Sukurti organizaciją ir pakviesti administratorių
|
89
|
-
fields:
|
90
|
-
created_at: Sukurta
|
91
|
-
file_upload_settings: Failų įkėlimo nustatymai
|
92
|
-
name: Vardas
|
93
|
-
omniauth_settings: '„Omniauth“ nuostatos'
|
94
|
-
smtp_settings: SMTP nustatymai
|
95
|
-
name: Organizacija
|
96
|
-
oauth_applications:
|
97
|
-
create:
|
98
|
-
error: Kuriant šią aplikaciją iškilo problema.
|
99
|
-
success: Programa sukurta.
|
100
|
-
destroy:
|
101
|
-
error: Naikinant šią programą iškilo problema.
|
102
|
-
success: Programa panaikinta.
|
103
|
-
edit:
|
104
|
-
save: Išsaugoti
|
105
|
-
title: Redaguoti programą
|
106
|
-
form:
|
107
|
-
select_organization: Pasirinkti organizaciją
|
108
|
-
index:
|
109
|
-
confirm_delete: Ar tikrai norite ištrinti šią programą?
|
110
|
-
title: OAuth aplikacijos
|
111
|
-
new:
|
112
|
-
save: Išsaugoti
|
113
|
-
title: Nauja aplikacija
|
114
|
-
update:
|
115
|
-
error: Atnaujinant šią programą iškilo problema.
|
116
|
-
success: Programa atnaujinta.
|
117
|
-
organizations:
|
118
|
-
advanced_settings:
|
119
|
-
hide: Slėpti išplėstinius nustatymus
|
120
|
-
show: Rodyti išplėstinius nustatymus
|
121
|
-
create:
|
122
|
-
error: Kuriant naują organizaciją iškilo problema.
|
123
|
-
success: Organizacija sėkmingai sukurta.
|
124
|
-
edit:
|
125
|
-
secondary_hosts_hint: Kiekvieną iš jų įrašykite į naują eilutę
|
126
|
-
file_upload_settings:
|
127
|
-
content_types:
|
128
|
-
admin_hint: Šie MIME tipai leidžiami administratorių dalies įkėlimams. Administratoriai turėtų suprasti tokių dokumentų formatų rizikas.
|
129
|
-
default_hint: Pagal numatytuosius nustatymus šie MIME tipai leidžiami visiems vartotojams.
|
130
|
-
intro_html: Pridedate "wildcards" su asterisku MIME tipams (pvz. <code>paveikslelis/*</code>.
|
131
|
-
title: Leidžiami MIME tipai
|
132
|
-
file_extensions:
|
133
|
-
admin_hint: Šie Mime tipai leidžiami administratorių dalies įkėlimams. Administratoriai turėtų suprasti tokių dokumentų formatų rizikas.
|
134
|
-
default_hint: Šie rinkmenų tipai leidžiami visiems naudotojams.
|
135
|
-
image_hint: Šie rinkmenų tipai tinkami paveikslėlių įkėlimui.
|
136
|
-
title: Leidžiami failų plėtiniai
|
137
|
-
file_sizes:
|
138
|
-
avatar_hint: Megabaitai (MB). Šis failo dydžio apribojimas naudojamas avataro paveiksliukams įkelti.
|
139
|
-
default_hint: Megabaitai (MB). Šis failo dydžio apribojimas yra numatytasis, jei nenurodyta kitaip.
|
140
|
-
title: Didžiausi failų dydžiai
|
141
|
-
intro: |
|
142
|
-
Būkite ypač atsargūs, kai ketinate pakeisti šiuos nustatymus. Kuo mažiau leisite, tuo geriau.
|
143
|
-
Leidžiant konkrečius failų plėtinius arba MIME tipus, sistemos naudotojai gali susidurti su saugumo rizika, taip pat gali turėti įtakos svetainės pasiekiamumui.
|
144
|
-
index:
|
145
|
-
title: Organizacijos
|
146
|
-
new:
|
147
|
-
reference_prefix_hint: Nuorodos priešdėlis naudojamas unikaliai identifikuoti išteklius visoje organizacijoje
|
148
|
-
secondary_hosts_hint: Kiekvieną iš jų įrašykite į naują eilutę
|
149
|
-
title: Nauja organizacija
|
150
|
-
omniauth_settings:
|
151
|
-
decidim:
|
152
|
-
client_id: Kliento ID
|
153
|
-
client_secret: Kliento paslaptis
|
154
|
-
site_url: Svetainės URL
|
155
|
-
enabled: Įjungta
|
156
|
-
enabled_by_default: Šis teikėjas įjungtas pagal numatytuosius nustatymus. Jį galima redaguoti, bet ne išjungti.
|
157
|
-
facebook:
|
158
|
-
app_id: Programos ID
|
159
|
-
app_secret: Programos paslaptis
|
160
|
-
google_oauth2:
|
161
|
-
client_id: Kliento ID
|
162
|
-
client_secret: Kliento paslaptis
|
163
|
-
icon: Piktograma
|
164
|
-
icon_path: Piktogramos kelias
|
165
|
-
twitter:
|
166
|
-
api_key: API raktas
|
167
|
-
api_secret: API paslaptis
|
168
|
-
smtp_settings:
|
169
|
-
fieldsets:
|
170
|
-
sender: Siuntėjas
|
171
|
-
instructions:
|
172
|
-
from_label: 'El. pašto siuntėjas bus: "jūsų-organizacijos-pavadinimas <your-organization@example.org>". Palikite tuščią, jei norite naudoti „El. pašto adresas“ kaip etiketę'
|
173
|
-
placeholder:
|
174
|
-
from_email: jūsų-organizacija@example.org
|
175
|
-
from_label: jūsų-organizacijos-pavadinimas
|
176
|
-
update:
|
177
|
-
error: Atnaujinant šią organizaciją iškilo problema.
|
178
|
-
success: Organizacija atnaujinta.
|
179
|
-
users_registration_mode:
|
180
|
-
disabled: Prieiga galima tik iš išorės paskyrų
|
181
|
-
enabled: Leisti dalyviams registruotis ir prisijungti
|
182
|
-
existing: Neleiskite dalyviams registruotis, bet leiskite esamiems dalyviams prisijungti
|
183
|
-
shared:
|
184
|
-
notices:
|
185
|
-
no_organization_warning_html: Norėdami pradėti, turite sukurti organizaciją. Prieš tęsdami būtinai perskaitykite %{guide}.
|
186
|
-
our_getting_started_guide: mūsų veiklos pradžios vadovas
|
187
|
-
titles:
|
188
|
-
dashboard: Švieslentė
|
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
data/config/locales/pt.yml
CHANGED
data/config/locales/ro-RO.yml
CHANGED
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
data/db/seeds.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
if !Rails.env.production? || ENV
|
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
|
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,
|
@@ -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}@
|
8
|
-
password { "
|
9
|
-
password_confirmation { "
|
7
|
+
sequence(:email) { |n| "admin#{n}@example.org" }
|
8
|
+
password { "decidim123456789" }
|
9
|
+
password_confirmation { "decidim123456789" }
|
10
10
|
end
|
11
11
|
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.
|
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: active_link_to
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 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.
|
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.
|
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.
|
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
|
@@ -214,7 +214,6 @@ files:
|
|
214
214
|
- config/locales/fr.yml
|
215
215
|
- config/locales/ga-IE.yml
|
216
216
|
- config/locales/gl.yml
|
217
|
-
- config/locales/gn-PY.yml
|
218
217
|
- config/locales/hr-HR.yml
|
219
218
|
- config/locales/hr.yml
|
220
219
|
- config/locales/hu.yml
|
@@ -223,12 +222,10 @@ files:
|
|
223
222
|
- config/locales/is.yml
|
224
223
|
- config/locales/it.yml
|
225
224
|
- config/locales/ja.yml
|
226
|
-
- config/locales/ka-GE.yml
|
227
225
|
- config/locales/ko-KR.yml
|
228
226
|
- config/locales/ko.yml
|
229
227
|
- config/locales/lb-LU.yml
|
230
228
|
- config/locales/lb.yml
|
231
|
-
- config/locales/lo-LA.yml
|
232
229
|
- config/locales/lt-LT.yml
|
233
230
|
- config/locales/lt.yml
|
234
231
|
- config/locales/lv.yml
|
@@ -236,7 +233,6 @@ files:
|
|
236
233
|
- config/locales/mt.yml
|
237
234
|
- config/locales/nl.yml
|
238
235
|
- config/locales/no.yml
|
239
|
-
- config/locales/oc-FR.yml
|
240
236
|
- config/locales/om-ET.yml
|
241
237
|
- config/locales/pl.yml
|
242
238
|
- config/locales/pt-BR.yml
|
@@ -279,14 +275,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
279
275
|
requirements:
|
280
276
|
- - ">="
|
281
277
|
- !ruby/object:Gem::Version
|
282
|
-
version: '
|
278
|
+
version: '3.0'
|
283
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
280
|
requirements:
|
285
|
-
- - "
|
281
|
+
- - ">"
|
286
282
|
- !ruby/object:Gem::Version
|
287
|
-
version:
|
283
|
+
version: 1.3.1
|
288
284
|
requirements: []
|
289
|
-
rubygems_version: 3.
|
285
|
+
rubygems_version: 3.2.22
|
290
286
|
signing_key:
|
291
287
|
specification_version: 4
|
292
288
|
summary: Decidim system administration
|
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/lo-LA.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lo:
|
data/config/locales/oc-FR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
oc:
|