decidim-system 0.27.6 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -7
- data/app/commands/decidim/system/create_admin.rb +1 -1
- data/app/commands/decidim/system/create_default_content_blocks.rb +1 -14
- data/app/commands/decidim/system/create_default_pages.rb +23 -4
- data/app/commands/decidim/system/populate_help.rb +2 -2
- data/app/commands/decidim/system/register_organization.rb +15 -2
- data/app/commands/decidim/system/update_admin.rb +1 -1
- data/app/commands/decidim/system/update_organization.rb +2 -1
- data/app/controllers/decidim/system/application_controller.rb +1 -1
- data/app/controllers/decidim/system/dashboard_controller.rb +1 -0
- data/app/controllers/decidim/system/organizations_controller.rb +30 -4
- data/app/forms/decidim/system/admin_form.rb +1 -1
- data/app/forms/decidim/system/update_organization_form.rb +14 -2
- data/app/jobs/decidim/system/application_job.rb +1 -1
- data/app/packs/entrypoints/decidim_system.js +5 -3
- data/app/packs/stylesheets/decidim/system/application.scss +108 -21
- data/app/views/decidim/system/admins/_form.html.erb +1 -7
- data/app/views/decidim/system/admins/edit.html.erb +3 -3
- data/app/views/decidim/system/admins/index.html.erb +3 -31
- data/app/views/decidim/system/admins/new.html.erb +3 -3
- data/app/views/decidim/system/dashboard/show.html.erb +13 -3
- data/app/views/decidim/system/devise/mailers/password_change.html.erb +1 -1
- data/app/views/decidim/system/devise/mailers/reset_password_instructions.html.erb +2 -2
- data/app/views/decidim/system/devise/passwords/edit.html.erb +5 -8
- data/app/views/decidim/system/devise/passwords/new.html.erb +5 -5
- data/app/views/decidim/system/devise/sessions/new.html.erb +10 -12
- data/app/views/decidim/system/oauth_applications/_form.html.erb +5 -20
- data/app/views/decidim/system/oauth_applications/edit.html.erb +9 -11
- data/app/views/decidim/system/oauth_applications/index.html.erb +6 -8
- data/app/views/decidim/system/oauth_applications/new.html.erb +9 -11
- data/app/views/decidim/system/oauth_applications/show.html.erb +20 -23
- data/app/views/decidim/system/organizations/_advanced_settings.html.erb +10 -8
- data/app/views/decidim/system/organizations/_csp_settings.html.erb +12 -0
- data/app/views/decidim/system/organizations/_file_upload_settings.erb +23 -46
- data/app/views/decidim/system/organizations/_omniauth_provider.html.erb +13 -16
- data/app/views/decidim/system/organizations/_omniauth_settings.html.erb +6 -8
- data/app/views/decidim/system/organizations/_smtp_settings.html.erb +12 -22
- data/app/views/decidim/system/organizations/edit.html.erb +29 -26
- data/app/views/decidim/system/organizations/index.html.erb +3 -4
- data/app/views/decidim/system/organizations/new.html.erb +29 -42
- data/app/views/decidim/system/shared/_admins_list.html.erb +27 -0
- data/app/views/decidim/system/shared/_notices.html.erb +4 -6
- data/app/views/decidim/system/shared/_organizations_list.html.erb +10 -3
- data/app/views/layouts/decidim/system/_header.html.erb +2 -2
- data/app/views/layouts/decidim/system/_login_items.html.erb +3 -7
- data/app/views/layouts/decidim/system/_sidebar.html.erb +3 -7
- data/app/views/layouts/decidim/system/application.html.erb +24 -28
- data/app/views/layouts/decidim/system/login.html.erb +10 -9
- data/config/locales/ar.yml +0 -14
- data/config/locales/bg.yml +0 -203
- data/config/locales/ca.yml +69 -13
- data/config/locales/cs.yml +70 -13
- data/config/locales/de.yml +62 -13
- data/config/locales/el.yml +7 -12
- data/config/locales/en.yml +70 -13
- data/config/locales/eo.yml +0 -7
- data/config/locales/es-MX.yml +70 -13
- data/config/locales/es-PY.yml +70 -13
- data/config/locales/es.yml +70 -13
- data/config/locales/eu.yml +69 -12
- data/config/locales/fa-IR.yml +0 -5
- data/config/locales/fi-plain.yml +69 -13
- data/config/locales/fi.yml +71 -15
- data/config/locales/fr-CA.yml +44 -19
- data/config/locales/fr.yml +54 -13
- data/config/locales/ga-IE.yml +0 -4
- data/config/locales/gl.yml +0 -14
- data/config/locales/hu.yml +0 -38
- data/config/locales/id-ID.yml +0 -10
- data/config/locales/is-IS.yml +0 -10
- data/config/locales/it.yml +0 -14
- data/config/locales/ja.yml +43 -19
- data/config/locales/lb.yml +0 -5
- data/config/locales/lt.yml +17 -12
- data/config/locales/lv.yml +0 -27
- data/config/locales/nl.yml +0 -22
- data/config/locales/no.yml +0 -14
- data/config/locales/pl.yml +0 -14
- data/config/locales/pt-BR.yml +0 -40
- data/config/locales/pt.yml +0 -14
- data/config/locales/ro-RO.yml +3 -21
- data/config/locales/ru.yml +0 -27
- data/config/locales/sk.yml +0 -27
- data/config/locales/sl.yml +0 -26
- data/config/locales/sr-CS.yml +0 -17
- data/config/locales/sv.yml +0 -14
- data/config/locales/tr-TR.yml +3 -14
- data/config/locales/uk.yml +0 -21
- data/config/locales/zh-CN.yml +0 -12
- data/config/locales/zh-TW.yml +6 -11
- data/config/routes.rb +6 -2
- data/db/seeds.rb +1 -1
- data/lib/decidim/system/engine.rb +2 -25
- data/lib/decidim/system/menu.rb +35 -0
- data/lib/decidim/system/version.rb +1 -1
- data/lib/tasks/decidim_system.rake +1 -1
- metadata +24 -31
- data/app/packs/entrypoints/decidim_system.scss +0 -1
- data/app/packs/images/decidim/system/.keep +0 -0
- data/app/packs/src/decidim/system/application.js +0 -41
- data/app/packs/stylesheets/decidim/system/_actions.scss +0 -8
- data/app/packs/stylesheets/decidim/system/_forms.scss +0 -36
- data/app/packs/stylesheets/decidim/system/_foundation_and_overrides.scss +0 -53
- data/app/packs/stylesheets/decidim/system/_layout.scss +0 -18
- data/app/packs/stylesheets/decidim/system/_login.scss +0 -37
- data/app/packs/stylesheets/decidim/system/_settings.scss +0 -569
- data/app/packs/stylesheets/decidim/system/_sidebar.scss +0 -83
- data/app/packs/stylesheets/decidim/system/_tables.scss +0 -6
- data/app/views/decidim/system/admins/show.html.erb +0 -9
- data/app/views/decidim/system/organizations/show.html.erb +0 -10
- data/config/locales/he-IL.yml +0 -1
- data/decidim-system.gemspec +0 -35
data/config/locales/tr-TR.yml
CHANGED
@@ -38,15 +38,14 @@ tr:
|
|
38
38
|
confirm_destroy: Bunu silmek istediğinizden emin misiniz?
|
39
39
|
destroy: Sil
|
40
40
|
edit: Düzenle
|
41
|
-
|
41
|
+
new_admin: Yeni Yönetici
|
42
|
+
new_oauth_application: Yetkilendirilmiş Uygulama
|
43
|
+
new_organization: Yeni organizasyon
|
42
44
|
save: Kaydet
|
43
45
|
title: Eylemler
|
44
46
|
admins:
|
45
47
|
create:
|
46
48
|
error: Yeni bir yönetici oluşturulurken bir sorun oluştu.
|
47
|
-
success: Yönetici başarıyla oluşturuldu
|
48
|
-
destroy:
|
49
|
-
success: Yönetici başarıyla silindi
|
50
49
|
edit:
|
51
50
|
title: Yönetici düzenle
|
52
51
|
update: Güncelle
|
@@ -55,11 +54,8 @@ tr:
|
|
55
54
|
new:
|
56
55
|
create: Oluştur
|
57
56
|
title: Yeni yönetici
|
58
|
-
show:
|
59
|
-
edit: Düzenle
|
60
57
|
update:
|
61
58
|
error: Bu yönetici güncellenirken bir sorun oluştu.
|
62
|
-
success: Yönetici başarıyla güncellendi
|
63
59
|
default_pages:
|
64
60
|
placeholders:
|
65
61
|
content: Lütfen yönetici panosundaki %{page} statik sayfasına anlamlı içerik ekleyin.
|
@@ -74,7 +70,6 @@ tr:
|
|
74
70
|
fields:
|
75
71
|
created_at: Adresinde düzenlendi
|
76
72
|
email: E-posta
|
77
|
-
name: yönetim
|
78
73
|
validations:
|
79
74
|
email_uniqueness: aynı e-postaya sahip başka bir yönetici zaten var
|
80
75
|
oauth_application:
|
@@ -82,7 +77,6 @@ tr:
|
|
82
77
|
created_at: Oluşturuldu
|
83
78
|
name: OAuth Uygulama Adı
|
84
79
|
organization_name: Kuruluş
|
85
|
-
name: OAuth uygulaması
|
86
80
|
organization:
|
87
81
|
actions:
|
88
82
|
save_and_invite: Kuruluş oluşturun ve yöneticiyi davet edin
|
@@ -92,7 +86,6 @@ tr:
|
|
92
86
|
name: Adı
|
93
87
|
omniauth_settings: Omniauth ayarları
|
94
88
|
smtp_settings: SMTP ayarları
|
95
|
-
name: Kuruluş
|
96
89
|
oauth_applications:
|
97
90
|
create:
|
98
91
|
error: Bu uygulama oluşturulurken bir hata oluştu.
|
@@ -117,7 +110,6 @@ tr:
|
|
117
110
|
organizations:
|
118
111
|
create:
|
119
112
|
error: Yeni bir organizasyon oluştururken bir sorun oluştu.
|
120
|
-
success: Kuruluş başarıyla oluşturuldu.
|
121
113
|
edit:
|
122
114
|
secondary_hosts_hint: Her birini yeni bir satıra girin
|
123
115
|
file_upload_settings:
|
@@ -163,8 +155,6 @@ tr:
|
|
163
155
|
smtp_settings:
|
164
156
|
fieldsets:
|
165
157
|
sender: Gönderen
|
166
|
-
instructions:
|
167
|
-
from_label: 'E-posta göndereni: "your-organization-name <your-organization@example.org>" olacaktır. ''E-posta adresini'' etiket olarak kullanmak için boş bırakın'
|
168
158
|
placeholder:
|
169
159
|
from_email: your-organization@example.org
|
170
160
|
from_label: your-organization-name
|
@@ -174,7 +164,6 @@ tr:
|
|
174
164
|
users_registration_mode:
|
175
165
|
disabled: Erişim yalnızca harici hesaplarla yapılabilir
|
176
166
|
enabled: Katılımcıların kaydolmasına ve giriş yapmasına izin ver
|
177
|
-
existing: Katılımcıların kaydolmasına izin verme, ancak mevcut katılımcıların giriş yapmasına izin ver
|
178
167
|
shared:
|
179
168
|
notices:
|
180
169
|
no_organization_warning_html: Başlamak için bir organizasyon oluşturmanız gerekir. Devam etmeden önce %{guide} okuduğunuzdan emin olun.
|
data/config/locales/uk.yml
CHANGED
@@ -1,32 +1,16 @@
|
|
1
1
|
---
|
2
2
|
uk:
|
3
|
-
activemodel:
|
4
|
-
attributes:
|
5
|
-
oauth_application:
|
6
|
-
organization_logo: Логотип організації (квадрат)
|
7
|
-
organization_url: Адреса сайту організації
|
8
|
-
redirect_uri: URI перенаправлення
|
9
|
-
errors:
|
10
|
-
models:
|
11
|
-
oauth_application:
|
12
|
-
attributes:
|
13
|
-
redirect_uri:
|
14
|
-
must_be_ssl: URI перенаправлення має бути SSL URI
|
15
3
|
decidim:
|
16
4
|
system:
|
17
5
|
actions:
|
18
6
|
confirm_destroy: Ви впевнені, що хочете видалити це?
|
19
7
|
destroy: Видалити
|
20
8
|
edit: Редагувати
|
21
|
-
new: Додати
|
22
9
|
save: Зберегти
|
23
10
|
title: Дії
|
24
11
|
admins:
|
25
12
|
create:
|
26
13
|
error: При спробі додати нового адміністратора сталася помилка.
|
27
|
-
success: Адміністратора успішно додано
|
28
|
-
destroy:
|
29
|
-
success: Адміністратора успішно видалено
|
30
14
|
edit:
|
31
15
|
title: Редагувати адміністратора
|
32
16
|
update: Оновити
|
@@ -35,11 +19,8 @@ uk:
|
|
35
19
|
new:
|
36
20
|
create: Додати
|
37
21
|
title: Додати адміністратора
|
38
|
-
show:
|
39
|
-
edit: Редагувати
|
40
22
|
update:
|
41
23
|
error: При спробі оновити цього адміністратора сталася помилка.
|
42
|
-
success: Адміністратора успішно оновлено
|
43
24
|
default_pages:
|
44
25
|
placeholders:
|
45
26
|
content: Будь ласка, додайте змістовний вміст на статичну сторінку %{page} на приладній дошці адміністратора.
|
@@ -53,7 +34,6 @@ uk:
|
|
53
34
|
fields:
|
54
35
|
created_at: 'Додано:'
|
55
36
|
email: Адреса електронної пошти
|
56
|
-
name: Адміністратор
|
57
37
|
validations:
|
58
38
|
email_uniqueness: вже є інший адміністратор з такою ж адресою електронної пошти
|
59
39
|
organization:
|
@@ -65,7 +45,6 @@ uk:
|
|
65
45
|
organizations:
|
66
46
|
create:
|
67
47
|
error: При спробі додати нову організацію сталася помилка.
|
68
|
-
success: Організацію успішно додано.
|
69
48
|
edit:
|
70
49
|
secondary_hosts_hint: Введіть кожен з них в новому рядку
|
71
50
|
index:
|
data/config/locales/zh-CN.yml
CHANGED
@@ -31,15 +31,11 @@ zh-CN:
|
|
31
31
|
confirm_destroy: 您确定要删除这个吗?
|
32
32
|
destroy: 删除
|
33
33
|
edit: 编辑
|
34
|
-
new: 新的
|
35
34
|
save: 保存
|
36
35
|
title: 行动
|
37
36
|
admins:
|
38
37
|
create:
|
39
38
|
error: 创建新管理员时出错。
|
40
|
-
success: 管理员创建成功
|
41
|
-
destroy:
|
42
|
-
success: 管理员删除成功
|
43
39
|
edit:
|
44
40
|
title: 编辑管理员
|
45
41
|
update: 更新
|
@@ -48,11 +44,8 @@ zh-CN:
|
|
48
44
|
new:
|
49
45
|
create: 创建
|
50
46
|
title: 新管理员
|
51
|
-
show:
|
52
|
-
edit: 编辑
|
53
47
|
update:
|
54
48
|
error: 更新此管理员时出错。
|
55
|
-
success: 管理员更新成功
|
56
49
|
default_pages:
|
57
50
|
placeholders:
|
58
51
|
content: 请添加有意义的内容到管理仪表盘上的 %{page} 静态页面。
|
@@ -67,7 +60,6 @@ zh-CN:
|
|
67
60
|
fields:
|
68
61
|
created_at: 创建于
|
69
62
|
email: 电子邮件地址
|
70
|
-
name: 管理员
|
71
63
|
validations:
|
72
64
|
email_uniqueness: 已存在具有相同电子邮件的其他管理员
|
73
65
|
oauth_application:
|
@@ -75,7 +67,6 @@ zh-CN:
|
|
75
67
|
created_at: 创建于
|
76
68
|
name: OAuth 应用程序名称
|
77
69
|
organization_name: 组织
|
78
|
-
name: OAuth 应用程序
|
79
70
|
organization:
|
80
71
|
actions:
|
81
72
|
save_and_invite: 创建机构并邀请管理员
|
@@ -85,7 +76,6 @@ zh-CN:
|
|
85
76
|
name: 名称
|
86
77
|
omniauth_settings: Omniauth 设置
|
87
78
|
smtp_settings: SMTP 设置
|
88
|
-
name: 组织
|
89
79
|
oauth_applications:
|
90
80
|
create:
|
91
81
|
error: 创建此应用程序时出现问题。
|
@@ -110,7 +100,6 @@ zh-CN:
|
|
110
100
|
organizations:
|
111
101
|
create:
|
112
102
|
error: 创建一个新组织时出现问题。
|
113
|
-
success: 组织成功创建。
|
114
103
|
edit:
|
115
104
|
secondary_hosts_hint: 在新行中输入其中每一个
|
116
105
|
file_upload_settings:
|
@@ -163,7 +152,6 @@ zh-CN:
|
|
163
152
|
users_registration_mode:
|
164
153
|
disabled: 只能通过外部帐户访问
|
165
154
|
enabled: 允许参与者注册并登录
|
166
|
-
existing: 不允许参与者注册,但允许现有参与者登录
|
167
155
|
shared:
|
168
156
|
notices:
|
169
157
|
no_organization_warning_html: 您必须创建一个组织才能启动。请确保您在继续之前阅读 %{guide}。
|
data/config/locales/zh-TW.yml
CHANGED
@@ -38,15 +38,14 @@ zh-TW:
|
|
38
38
|
confirm_destroy: 是否確定要刪除這個?
|
39
39
|
destroy: 刪除
|
40
40
|
edit: 編輯
|
41
|
-
new: 新的
|
42
41
|
save: 儲存
|
43
42
|
title: 操作
|
44
43
|
admins:
|
45
44
|
create:
|
46
45
|
error: 新增管理員時發生問題
|
47
|
-
success:
|
46
|
+
success: 管理員創建成功.
|
48
47
|
destroy:
|
49
|
-
success:
|
48
|
+
success: 管理員成功刪除.
|
50
49
|
edit:
|
51
50
|
title: 編輯管理貝
|
52
51
|
update: 更新
|
@@ -55,18 +54,18 @@ zh-TW:
|
|
55
54
|
new:
|
56
55
|
create: 建立
|
57
56
|
title: 新增管理員
|
58
|
-
show:
|
59
|
-
edit: 編輯
|
60
57
|
update:
|
61
58
|
error: 更新此管理員時發生問題。
|
62
|
-
success:
|
59
|
+
success: 管理員已成功更新.
|
63
60
|
dashboard:
|
64
61
|
show:
|
65
62
|
current_organizations: 目前組織
|
66
63
|
default_pages:
|
67
64
|
placeholders:
|
68
65
|
content: 請在管理員儀表板的 %{page} 靜態頁面上新增有意義的內容。
|
66
|
+
summary: 請在管理員儀表板的 %{page} 靜態頁面上新增有意義的摘要
|
69
67
|
title: 預設的 %{page} 標題
|
68
|
+
terms-of-service: 服務條款
|
70
69
|
menu:
|
71
70
|
admins: 管理員
|
72
71
|
dashboard: 儀表板
|
@@ -77,7 +76,6 @@ zh-TW:
|
|
77
76
|
fields:
|
78
77
|
created_at: 建立於
|
79
78
|
email: 電子郵件
|
80
|
-
name: 管理員
|
81
79
|
validations:
|
82
80
|
email_uniqueness: 已有相同電子郵件的其他管理員存在
|
83
81
|
oauth_application:
|
@@ -85,7 +83,6 @@ zh-TW:
|
|
85
83
|
created_at: 建立於
|
86
84
|
name: OAuth 應用程式名稱
|
87
85
|
organization_name: 組織
|
88
|
-
name: Oauth 應用程式
|
89
86
|
organization:
|
90
87
|
actions:
|
91
88
|
save_and_invite: 建立組織並邀請管理員
|
@@ -95,7 +92,6 @@ zh-TW:
|
|
95
92
|
name: 姓名
|
96
93
|
omniauth_settings: Omniauth 設置
|
97
94
|
smtp_settings: SMTP設定
|
98
|
-
name: 組織
|
99
95
|
oauth_applications:
|
100
96
|
create:
|
101
97
|
error: 創建應用程序時出現問題。
|
@@ -123,7 +119,6 @@ zh-TW:
|
|
123
119
|
show: 顯示進階設定
|
124
120
|
create:
|
125
121
|
error: 創建新組織時發生問題。
|
126
|
-
success: 組織創建成功。
|
127
122
|
edit:
|
128
123
|
secondary_hosts_hint: 請在新的一行輸入每一個
|
129
124
|
file_upload_settings:
|
@@ -172,7 +167,7 @@ zh-TW:
|
|
172
167
|
fieldsets:
|
173
168
|
sender: 寄件者
|
174
169
|
instructions:
|
175
|
-
from_label: '郵件發送者將會是:"您的組織名稱 <your-organization@example.org>"
|
170
|
+
from_label: '郵件發送者將會是:"您的組織名稱 <your-organization@example.org>"。若要使用「電子郵件地址」作為標籤,請留空.'
|
176
171
|
placeholder:
|
177
172
|
from_email: your-organization@example.org
|
178
173
|
from_label: 你的組織名稱
|
data/config/routes.rb
CHANGED
@@ -11,8 +11,12 @@ Decidim::System::Engine.routes.draw do
|
|
11
11
|
}
|
12
12
|
|
13
13
|
authenticate(:admin) do
|
14
|
-
resources :organizations, except: [:destroy]
|
15
|
-
|
14
|
+
resources :organizations, except: [:show, :destroy] do
|
15
|
+
member do
|
16
|
+
post :resend_invitation
|
17
|
+
end
|
18
|
+
end
|
19
|
+
resources :admins, except: [:show]
|
16
20
|
resources :oauth_applications
|
17
21
|
|
18
22
|
root to: "dashboard#show"
|
data/db/seeds.rb
CHANGED
@@ -6,7 +6,7 @@ if !Rails.env.production? || ENV.fetch("SEED", nil)
|
|
6
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
|
-
password
|
9
|
+
password:,
|
10
10
|
password_confirmation: password
|
11
11
|
)
|
12
12
|
|
@@ -6,6 +6,7 @@ require "active_support/all"
|
|
6
6
|
require "devise"
|
7
7
|
require "devise-i18n"
|
8
8
|
require "decidim/core"
|
9
|
+
require "decidim/system/menu"
|
9
10
|
require "foundation_rails_helper"
|
10
11
|
|
11
12
|
module Decidim
|
@@ -21,31 +22,7 @@ module Decidim
|
|
21
22
|
end
|
22
23
|
|
23
24
|
initializer "decidim_system.menu" do
|
24
|
-
Decidim.
|
25
|
-
menu.add_item :root,
|
26
|
-
I18n.t("menu.dashboard", scope: "decidim.system"),
|
27
|
-
decidim_system.root_path,
|
28
|
-
position: 1,
|
29
|
-
active: ["decidim/system/dashboard" => :show]
|
30
|
-
|
31
|
-
menu.add_item :organizations,
|
32
|
-
I18n.t("menu.organizations", scope: "decidim.system"),
|
33
|
-
decidim_system.organizations_path,
|
34
|
-
position: 2,
|
35
|
-
active: :inclusive
|
36
|
-
|
37
|
-
menu.add_item :admins,
|
38
|
-
I18n.t("menu.admins", scope: "decidim.system"),
|
39
|
-
decidim_system.admins_path,
|
40
|
-
position: 3,
|
41
|
-
active: :inclusive
|
42
|
-
|
43
|
-
menu.add_item :oauth_applications,
|
44
|
-
I18n.t("menu.oauth_applications", scope: "decidim.system"),
|
45
|
-
decidim_system.oauth_applications_path,
|
46
|
-
position: 4,
|
47
|
-
active: [%w(decidim/system/oauth_applications), []]
|
48
|
-
end
|
25
|
+
Decidim::System::Menu.register_system_menu!
|
49
26
|
end
|
50
27
|
|
51
28
|
initializer "decidim_system.webpacker.assets_path" do
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module System
|
5
|
+
class Menu
|
6
|
+
def self.register_system_menu!
|
7
|
+
Decidim.menu :system_menu do |menu|
|
8
|
+
menu.add_item :root,
|
9
|
+
I18n.t("menu.dashboard", scope: "decidim.system"),
|
10
|
+
decidim_system.root_path,
|
11
|
+
position: 1,
|
12
|
+
active: ["decidim/system/dashboard" => :show]
|
13
|
+
|
14
|
+
menu.add_item :organizations,
|
15
|
+
I18n.t("menu.organizations", scope: "decidim.system"),
|
16
|
+
decidim_system.organizations_path,
|
17
|
+
position: 2,
|
18
|
+
active: :inclusive
|
19
|
+
|
20
|
+
menu.add_item :admins,
|
21
|
+
I18n.t("menu.admins", scope: "decidim.system"),
|
22
|
+
decidim_system.admins_path,
|
23
|
+
position: 3,
|
24
|
+
active: :inclusive
|
25
|
+
|
26
|
+
menu.add_item :oauth_applications,
|
27
|
+
I18n.t("menu.oauth_applications", scope: "decidim.system"),
|
28
|
+
decidim_system.oauth_applications_path,
|
29
|
+
position: 4,
|
30
|
+
active: [%w(decidim/system/oauth_applications), []]
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -8,7 +8,7 @@ namespace :decidim_system do
|
|
8
8
|
password = prompt("Password")
|
9
9
|
password_confirmation = prompt("Password confirmation")
|
10
10
|
|
11
|
-
admin = Decidim::System::Admin.new(email
|
11
|
+
admin = Decidim::System::Admin.new(email:, password:, password_confirmation:)
|
12
12
|
|
13
13
|
if admin.valid?
|
14
14
|
admin.save!
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-12-11 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.28.0.rc4
|
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.28.0.rc4
|
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.
|
97
|
+
version: 0.28.0.rc4
|
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.
|
104
|
+
version: 0.28.0.rc4
|
105
105
|
description: System administration to create new organization in an installation.
|
106
106
|
email:
|
107
107
|
- josepjaume@gmail.com
|
@@ -142,24 +142,12 @@ files:
|
|
142
142
|
- app/models/decidim/system/admin.rb
|
143
143
|
- app/models/decidim/system/application_record.rb
|
144
144
|
- app/packs/entrypoints/decidim_system.js
|
145
|
-
- app/packs/entrypoints/decidim_system.scss
|
146
|
-
- app/packs/images/decidim/system/.keep
|
147
145
|
- app/packs/images/icons.svg
|
148
|
-
- app/packs/src/decidim/system/application.js
|
149
|
-
- app/packs/stylesheets/decidim/system/_actions.scss
|
150
|
-
- app/packs/stylesheets/decidim/system/_forms.scss
|
151
|
-
- app/packs/stylesheets/decidim/system/_foundation_and_overrides.scss
|
152
|
-
- app/packs/stylesheets/decidim/system/_layout.scss
|
153
|
-
- app/packs/stylesheets/decidim/system/_login.scss
|
154
|
-
- app/packs/stylesheets/decidim/system/_settings.scss
|
155
|
-
- app/packs/stylesheets/decidim/system/_sidebar.scss
|
156
|
-
- app/packs/stylesheets/decidim/system/_tables.scss
|
157
146
|
- app/packs/stylesheets/decidim/system/application.scss
|
158
147
|
- app/views/decidim/system/admins/_form.html.erb
|
159
148
|
- app/views/decidim/system/admins/edit.html.erb
|
160
149
|
- app/views/decidim/system/admins/index.html.erb
|
161
150
|
- app/views/decidim/system/admins/new.html.erb
|
162
|
-
- app/views/decidim/system/admins/show.html.erb
|
163
151
|
- app/views/decidim/system/dashboard/show.html.erb
|
164
152
|
- app/views/decidim/system/devise/mailers/password_change.html.erb
|
165
153
|
- app/views/decidim/system/devise/mailers/reset_password_instructions.html.erb
|
@@ -173,6 +161,7 @@ files:
|
|
173
161
|
- app/views/decidim/system/oauth_applications/new.html.erb
|
174
162
|
- app/views/decidim/system/oauth_applications/show.html.erb
|
175
163
|
- app/views/decidim/system/organizations/_advanced_settings.html.erb
|
164
|
+
- app/views/decidim/system/organizations/_csp_settings.html.erb
|
176
165
|
- app/views/decidim/system/organizations/_file_upload_settings.erb
|
177
166
|
- app/views/decidim/system/organizations/_omniauth_provider.html.erb
|
178
167
|
- app/views/decidim/system/organizations/_omniauth_settings.html.erb
|
@@ -180,7 +169,7 @@ files:
|
|
180
169
|
- app/views/decidim/system/organizations/edit.html.erb
|
181
170
|
- app/views/decidim/system/organizations/index.html.erb
|
182
171
|
- app/views/decidim/system/organizations/new.html.erb
|
183
|
-
- app/views/decidim/system/
|
172
|
+
- app/views/decidim/system/shared/_admins_list.html.erb
|
184
173
|
- app/views/decidim/system/shared/_notices.html.erb
|
185
174
|
- app/views/decidim/system/shared/_organizations_list.html.erb
|
186
175
|
- app/views/layouts/decidim/system/_header.html.erb
|
@@ -223,7 +212,6 @@ files:
|
|
223
212
|
- config/locales/ga-IE.yml
|
224
213
|
- config/locales/gl.yml
|
225
214
|
- config/locales/gn-PY.yml
|
226
|
-
- config/locales/he-IL.yml
|
227
215
|
- config/locales/hr-HR.yml
|
228
216
|
- config/locales/hr.yml
|
229
217
|
- config/locales/hu.yml
|
@@ -274,33 +262,38 @@ files:
|
|
274
262
|
- config/routes.rb
|
275
263
|
- db/migrate/20160919105637_devise_create_decidim_admins.rb
|
276
264
|
- db/seeds.rb
|
277
|
-
- decidim-system.gemspec
|
278
265
|
- lib/decidim/system.rb
|
279
266
|
- lib/decidim/system/engine.rb
|
267
|
+
- lib/decidim/system/menu.rb
|
280
268
|
- lib/decidim/system/test/factories.rb
|
281
269
|
- lib/decidim/system/version.rb
|
282
270
|
- lib/tasks/decidim_system.rake
|
283
|
-
homepage: https://
|
271
|
+
homepage: https://decidim.org
|
284
272
|
licenses:
|
285
273
|
- AGPL-3.0
|
286
|
-
metadata:
|
287
|
-
|
274
|
+
metadata:
|
275
|
+
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
276
|
+
documentation_uri: https://docs.decidim.org/
|
277
|
+
funding_uri: https://opencollective.com/decidim
|
278
|
+
homepage_uri: https://decidim.org
|
279
|
+
source_code_uri: https://github.com/decidim/decidim
|
280
|
+
post_install_message:
|
288
281
|
rdoc_options: []
|
289
282
|
require_paths:
|
290
283
|
- lib
|
291
284
|
required_ruby_version: !ruby/object:Gem::Requirement
|
292
285
|
requirements:
|
293
|
-
- - "
|
286
|
+
- - ">="
|
294
287
|
- !ruby/object:Gem::Version
|
295
|
-
version: 3.
|
288
|
+
version: '3.1'
|
296
289
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
297
290
|
requirements:
|
298
|
-
- - "
|
291
|
+
- - ">"
|
299
292
|
- !ruby/object:Gem::Version
|
300
|
-
version:
|
293
|
+
version: 1.3.1
|
301
294
|
requirements: []
|
302
|
-
rubygems_version: 3.
|
303
|
-
signing_key:
|
295
|
+
rubygems_version: 3.4.20
|
296
|
+
signing_key:
|
304
297
|
specification_version: 4
|
305
298
|
summary: Decidim system administration
|
306
299
|
test_files: []
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "stylesheets/decidim/system/application.scss";
|
File without changes
|
@@ -1,41 +0,0 @@
|
|
1
|
-
/* eslint no-unused-vars: 0 */
|
2
|
-
/* eslint id-length: ["error", { "exceptions": ["$"] }] */
|
3
|
-
|
4
|
-
import "core-js/stable";
|
5
|
-
import "regenerator-runtime/runtime";
|
6
|
-
import $ from "jquery"
|
7
|
-
import Quill from "quill"
|
8
|
-
import Rails from "@rails/ujs"
|
9
|
-
import "foundation-sites"
|
10
|
-
|
11
|
-
import createQuillEditor from "src/decidim/editor"
|
12
|
-
import Configuration from "src/decidim/configuration"
|
13
|
-
|
14
|
-
window.Decidim = window.Decidim || {};
|
15
|
-
window.Decidim.config = new Configuration()
|
16
|
-
|
17
|
-
import "src/decidim/input_tags"
|
18
|
-
import "src/decidim/confirm"
|
19
|
-
|
20
|
-
$(() => {
|
21
|
-
$(document).foundation();
|
22
|
-
|
23
|
-
$(".editor-container").each((_idx, container) => {
|
24
|
-
createQuillEditor(container);
|
25
|
-
});
|
26
|
-
|
27
|
-
$("button.collapse").on("click", () => {
|
28
|
-
$(".collapsible").addClass("hide");
|
29
|
-
$("button.expand").removeClass("hide");
|
30
|
-
$("button.collapse").addClass("hide");
|
31
|
-
});
|
32
|
-
|
33
|
-
$("button.expand").on("click", () => {
|
34
|
-
$(".collapsible").removeClass("hide");
|
35
|
-
$("button.collapse").removeClass("hide");
|
36
|
-
$("button.expand").addClass("hide");
|
37
|
-
});
|
38
|
-
});
|
39
|
-
|
40
|
-
// This needs to be loaded after confirm dialog to bind properly
|
41
|
-
Rails.start()
|
@@ -1,36 +0,0 @@
|
|
1
|
-
@import "bootstrap-tagsinput/src/bootstrap-tagsinput";
|
2
|
-
|
3
|
-
$tag-padding: .25rem;
|
4
|
-
$tag-margin: .2rem;
|
5
|
-
|
6
|
-
.input__tag{
|
7
|
-
background-color: rgba($medium-gray, .5);
|
8
|
-
border-radius: $input-radius;
|
9
|
-
padding: $tag-padding;
|
10
|
-
display: inline-block;
|
11
|
-
cursor: pointer;
|
12
|
-
-webkit-user-select: none;
|
13
|
-
-moz-user-select: none;
|
14
|
-
-ms-user-select: none;
|
15
|
-
user-select: none;
|
16
|
-
}
|
17
|
-
|
18
|
-
// Override defaults
|
19
|
-
.bootstrap-tagsinput{
|
20
|
-
margin-bottom: $form-spacing;
|
21
|
-
|
22
|
-
// Use foundation precalculated methods to get accurate form css properties
|
23
|
-
$height: ($input-font-size * unitless-calc($input-line-height)) + (get-side($input-padding, 'top') + get-side($input-padding, 'bottom'));
|
24
|
-
$tag-line-height: rem-calc(22);
|
25
|
-
$span-height: ($input-font-size * unitless-calc($tag-line-height)) + (get-side($tag-padding, 'top') + get-side($tag-padding, 'bottom')) - rem-calc(1);
|
26
|
-
|
27
|
-
width: 100%;
|
28
|
-
min-height: $height;
|
29
|
-
padding-bottom: $tag-margin * .25;
|
30
|
-
|
31
|
-
.tag{
|
32
|
-
color: inherit;
|
33
|
-
margin-right: 0; // fix whitespace
|
34
|
-
margin-bottom: $tag-margin;
|
35
|
-
}
|
36
|
-
}
|