decidim-system 0.26.2 → 0.27.0.rc2
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.
- 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/packs/entrypoints/decidim_system.js +1 -0
- data/app/packs/stylesheets/decidim/system/application.scss +1 -0
- data/config/locales/ar.yml +1 -0
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +1 -0
- data/config/locales/cs.yml +1 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/el.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/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/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/lb.yml +1 -0
- data/config/locales/lt.yml +188 -0
- data/config/locales/lv.yml +1 -0
- data/config/locales/nl.yml +1 -0
- data/config/locales/no.yml +1 -0
- data/config/locales/pl.yml +1 -0
- data/config/locales/pt-BR.yml +1 -0
- 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/sk.yml +1 -0
- data/config/locales/sl.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +1 -0
- data/config/locales/tr-TR.yml +1 -0
- data/config/locales/uk.yml +1 -0
- data/config/locales/zh-CN.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 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df6582240ed6f4d0b73f378db308c046516ebb645cd7f4927b759e582dc57e7f
|
|
4
|
+
data.tar.gz: 72466fb64774206a10fdf110909c35d54c6cfab00e85a8517fef0ff2c91591d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 143c191684dc82202cb07f12836234c04f673bb23c85403484a3b66c7e05f3114d29522c207630cac3935c817ad54f4d023c97c87c8677e4d44b4b70094ed965
|
|
7
|
+
data.tar.gz: a1e86bdb65458fd529c5c7699bd3a7a697b19a78601623fa06658ea6db0737bb469b43e3c687f141d2581836ad9610003c8265c26ab7f1448f1bfe400ac2fa05
|
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(",")
|
|
@@ -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/ar.yml
CHANGED
data/config/locales/bg.yml
CHANGED
data/config/locales/ca.yml
CHANGED
data/config/locales/cs.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/el.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/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/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/lb.yml
CHANGED
data/config/locales/lt.yml
CHANGED
|
@@ -1 +1,189 @@
|
|
|
1
|
+
---
|
|
1
2
|
lt:
|
|
3
|
+
activemodel:
|
|
4
|
+
attributes:
|
|
5
|
+
oauth_application:
|
|
6
|
+
name: '„OAuth“ programos pavadinimas'
|
|
7
|
+
organization_logo: Organizacijos logotipas (keturkampis)
|
|
8
|
+
organization_name: Organizacija
|
|
9
|
+
organization_url: Organizacijos URL
|
|
10
|
+
redirect_uri: Peradresavimo URI
|
|
11
|
+
organization:
|
|
12
|
+
address: SMTP pagrindinio kompiuterio vardas
|
|
13
|
+
from_email: El. pašto adresas
|
|
14
|
+
from_label: Etiketė
|
|
15
|
+
password: Slaptažodis
|
|
16
|
+
port: Portas
|
|
17
|
+
user_name: Naudotojo vardas
|
|
18
|
+
organization_file_uploads:
|
|
19
|
+
allowed_content_types:
|
|
20
|
+
admin: Administratoriaus MIME tipai
|
|
21
|
+
default: Numatytieji MIME tipai
|
|
22
|
+
allowed_file_extensions:
|
|
23
|
+
admin: Administratoriaus failų plėtiniai
|
|
24
|
+
default: Numatytieji failų plėtiniai
|
|
25
|
+
image: Vaizdo failų plėtiniai
|
|
26
|
+
maximum_file_size:
|
|
27
|
+
avatar: Avataro failo dydis
|
|
28
|
+
default: Numatytasis failo dydis
|
|
29
|
+
errors:
|
|
30
|
+
models:
|
|
31
|
+
oauth_application:
|
|
32
|
+
attributes:
|
|
33
|
+
redirect_uri:
|
|
34
|
+
must_be_ssl: Peradresavimo URI turi būti SSL URI
|
|
35
|
+
decidim:
|
|
36
|
+
system:
|
|
37
|
+
actions:
|
|
38
|
+
confirm_destroy: Ar tikrai norite tai ištrinti?
|
|
39
|
+
destroy: Ištrinti
|
|
40
|
+
edit: Redaguoti
|
|
41
|
+
new: Naujas
|
|
42
|
+
save: Išsaugoti
|
|
43
|
+
title: Veiksmai
|
|
44
|
+
admins:
|
|
45
|
+
create:
|
|
46
|
+
error: Kuriant naują administratorių iškilo problema.
|
|
47
|
+
success: Administratorius sukurtas
|
|
48
|
+
destroy:
|
|
49
|
+
success: Administratorius pašalintas
|
|
50
|
+
edit:
|
|
51
|
+
title: Redaguoti administratorių
|
|
52
|
+
update: Atnaujinti
|
|
53
|
+
index:
|
|
54
|
+
title: Administratoriai
|
|
55
|
+
new:
|
|
56
|
+
create: Sukurti
|
|
57
|
+
title: Naujas administratorius
|
|
58
|
+
update:
|
|
59
|
+
error: Atnaujinant šį administratorių iškilo problema.
|
|
60
|
+
success: Administratorius atnaujintas
|
|
61
|
+
dashboard:
|
|
62
|
+
show:
|
|
63
|
+
current_organizations: Dabartinės organizacijos
|
|
64
|
+
default_pages:
|
|
65
|
+
placeholders:
|
|
66
|
+
content: Administratoriaus suvestinės statiniame puslapyje %{page} įrašykite prasmingą turinį.
|
|
67
|
+
title: '%{page} numatytasis pavadinimas'
|
|
68
|
+
menu:
|
|
69
|
+
admins: Administratoriai
|
|
70
|
+
dashboard: Švieslentė
|
|
71
|
+
oauth_applications: OAuth aplikacijos
|
|
72
|
+
organizations: Organizacijos
|
|
73
|
+
models:
|
|
74
|
+
admin:
|
|
75
|
+
fields:
|
|
76
|
+
created_at: Sukurta
|
|
77
|
+
email: El. paštas
|
|
78
|
+
name: Administratorius
|
|
79
|
+
validations:
|
|
80
|
+
email_uniqueness: jau yra kitas administratorius su tokiu pačiu el. pašto adresu
|
|
81
|
+
oauth_application:
|
|
82
|
+
fields:
|
|
83
|
+
created_at: Sukurta
|
|
84
|
+
name: '„OAuth“ programos pavadinimas'
|
|
85
|
+
organization_name: Organizacija
|
|
86
|
+
name: OAuth aplikacija
|
|
87
|
+
organization:
|
|
88
|
+
actions:
|
|
89
|
+
save_and_invite: Sukurti organizaciją ir pakviesti administratorių
|
|
90
|
+
fields:
|
|
91
|
+
created_at: Sukurta
|
|
92
|
+
file_upload_settings: Failų įkėlimo nustatymai
|
|
93
|
+
name: Vardas
|
|
94
|
+
omniauth_settings: '„Omniauth“ nuostatos'
|
|
95
|
+
smtp_settings: SMTP nustatymai
|
|
96
|
+
name: Organizacija
|
|
97
|
+
oauth_applications:
|
|
98
|
+
create:
|
|
99
|
+
error: Kuriant šią aplikaciją iškilo problema.
|
|
100
|
+
success: Programa sukurta.
|
|
101
|
+
destroy:
|
|
102
|
+
error: Naikinant šią programą iškilo problema.
|
|
103
|
+
success: Programa panaikinta.
|
|
104
|
+
edit:
|
|
105
|
+
save: Išsaugoti
|
|
106
|
+
title: Redaguoti programą
|
|
107
|
+
form:
|
|
108
|
+
select_organization: Pasirinkti organizaciją
|
|
109
|
+
index:
|
|
110
|
+
confirm_delete: Ar tikrai norite ištrinti šią programą?
|
|
111
|
+
title: OAuth aplikacijos
|
|
112
|
+
new:
|
|
113
|
+
save: Išsaugoti
|
|
114
|
+
title: Nauja aplikacija
|
|
115
|
+
update:
|
|
116
|
+
error: Atnaujinant šią programą iškilo problema.
|
|
117
|
+
success: Programa atnaujinta.
|
|
118
|
+
organizations:
|
|
119
|
+
advanced_settings:
|
|
120
|
+
hide: Slėpti išplėstinius nustatymus
|
|
121
|
+
show: Rodyti išplėstinius nustatymus
|
|
122
|
+
create:
|
|
123
|
+
error: Kuriant naują organizaciją iškilo problema.
|
|
124
|
+
success: Organizacija sėkmingai sukurta.
|
|
125
|
+
edit:
|
|
126
|
+
secondary_hosts_hint: Kiekvieną iš jų įrašykite į naują eilutę
|
|
127
|
+
file_upload_settings:
|
|
128
|
+
content_types:
|
|
129
|
+
admin_hint: Šie MIME tipai leidžiami administratorių dalies įkėlimams. Administratoriai turėtų suprasti tokių dokumentų formatų rizikas.
|
|
130
|
+
default_hint: Pagal numatytuosius nustatymus šie MIME tipai leidžiami visiems vartotojams.
|
|
131
|
+
intro_html: Pridedate "wildcards" su asterisku MIME tipams (pvz. <code>paveikslelis/*</code>.
|
|
132
|
+
title: Leidžiami MIME tipai
|
|
133
|
+
file_extensions:
|
|
134
|
+
admin_hint: Šie Mime tipai leidžiami administratorių dalies įkėlimams. Administratoriai turėtų suprasti tokių dokumentų formatų rizikas.
|
|
135
|
+
default_hint: Šie rinkmenų tipai leidžiami visiems naudotojams.
|
|
136
|
+
image_hint: Šie rinkmenų tipai tinkami paveikslėlių įkėlimui.
|
|
137
|
+
title: Leidžiami failų plėtiniai
|
|
138
|
+
file_sizes:
|
|
139
|
+
avatar_hint: Megabaitai (MB). Šis failo dydžio apribojimas naudojamas avataro paveiksliukams įkelti.
|
|
140
|
+
default_hint: Megabaitai (MB). Šis failo dydžio apribojimas yra numatytasis, jei nenurodyta kitaip.
|
|
141
|
+
title: Didžiausi failų dydžiai
|
|
142
|
+
intro: |
|
|
143
|
+
Būkite ypač atsargūs, kai ketinate pakeisti šiuos nustatymus. Kuo mažiau leisite, tuo geriau.
|
|
144
|
+
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.
|
|
145
|
+
index:
|
|
146
|
+
title: Organizacijos
|
|
147
|
+
new:
|
|
148
|
+
reference_prefix_hint: Nuorodos priešdėlis naudojamas unikaliai identifikuoti išteklius visoje organizacijoje
|
|
149
|
+
secondary_hosts_hint: Kiekvieną iš jų įrašykite į naują eilutę
|
|
150
|
+
title: Nauja organizacija
|
|
151
|
+
omniauth_settings:
|
|
152
|
+
decidim:
|
|
153
|
+
client_id: Kliento ID
|
|
154
|
+
client_secret: Kliento paslaptis
|
|
155
|
+
site_url: Svetainės URL
|
|
156
|
+
enabled: Įjungta
|
|
157
|
+
enabled_by_default: Šis teikėjas įjungtas pagal numatytuosius nustatymus. Jį galima redaguoti, bet ne išjungti.
|
|
158
|
+
facebook:
|
|
159
|
+
app_id: Programos ID
|
|
160
|
+
app_secret: Programos paslaptis
|
|
161
|
+
google_oauth2:
|
|
162
|
+
client_id: Kliento ID
|
|
163
|
+
client_secret: Kliento paslaptis
|
|
164
|
+
icon: Piktograma
|
|
165
|
+
icon_path: Piktogramos kelias
|
|
166
|
+
twitter:
|
|
167
|
+
api_key: API raktas
|
|
168
|
+
api_secret: API paslaptis
|
|
169
|
+
smtp_settings:
|
|
170
|
+
fieldsets:
|
|
171
|
+
sender: Siuntėjas
|
|
172
|
+
instructions:
|
|
173
|
+
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ę'
|
|
174
|
+
placeholder:
|
|
175
|
+
from_email: jūsų-organizacija@example.org
|
|
176
|
+
from_label: jūsų-organizacijos-pavadinimas
|
|
177
|
+
update:
|
|
178
|
+
error: Atnaujinant šią organizaciją iškilo problema.
|
|
179
|
+
success: Organizacija atnaujinta.
|
|
180
|
+
users_registration_mode:
|
|
181
|
+
disabled: Prieiga galima tik iš išorės paskyrų
|
|
182
|
+
enabled: Leisti dalyviams registruotis ir prisijungti
|
|
183
|
+
existing: Neleiskite dalyviams registruotis, bet leiskite esamiems dalyviams prisijungti
|
|
184
|
+
shared:
|
|
185
|
+
notices:
|
|
186
|
+
no_organization_warning_html: Norėdami pradėti, turite sukurti organizaciją. Prieš tęsdami būtinai perskaitykite %{guide}.
|
|
187
|
+
our_getting_started_guide: mūsų veiklos pradžios vadovas
|
|
188
|
+
titles:
|
|
189
|
+
dashboard: Švieslentė
|
data/config/locales/lv.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/no.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/sk.yml
CHANGED
data/config/locales/sl.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/uk.yml
CHANGED
data/config/locales/zh-CN.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.rc2
|
|
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-
|
|
13
|
+
date: 2022-09-19 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.rc2
|
|
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.rc2
|
|
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.rc2
|
|
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.rc2
|
|
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: '
|
|
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:
|
|
283
|
+
version: 1.3.1
|
|
284
284
|
requirements: []
|
|
285
|
-
rubygems_version: 3.
|
|
285
|
+
rubygems_version: 3.2.22
|
|
286
286
|
signing_key:
|
|
287
287
|
specification_version: 4
|
|
288
288
|
summary: Decidim system administration
|