decidim-system 0.22.0 → 0.23.0

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 (64) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/system/application.js.es6 +1 -0
  3. data/app/assets/stylesheets/decidim/system/_forms.scss +36 -0
  4. data/app/assets/stylesheets/decidim/system/application.scss +1 -0
  5. data/app/commands/decidim/system/create_oauth_application.rb +37 -0
  6. data/app/commands/decidim/system/destroy_oauth_application.rb +39 -0
  7. data/app/commands/decidim/system/register_organization.rb +2 -1
  8. data/app/commands/decidim/system/update_oauth_application.rb +39 -0
  9. data/app/commands/decidim/system/update_organization.rb +4 -0
  10. data/app/controllers/decidim/system/oauth_applications_controller.rb +84 -0
  11. data/app/controllers/decidim/system/organizations_controller.rb +1 -0
  12. data/app/forms/decidim/system/file_upload_settings_form.rb +70 -0
  13. data/app/forms/decidim/system/oauth_application_form.rb +35 -0
  14. data/app/forms/decidim/system/update_organization_form.rb +3 -1
  15. data/app/views/decidim/system/oauth_applications/_form.html.erb +26 -0
  16. data/app/views/decidim/system/oauth_applications/edit.html.erb +13 -0
  17. data/app/views/decidim/system/oauth_applications/index.html.erb +41 -0
  18. data/app/views/decidim/system/oauth_applications/new.html.erb +13 -0
  19. data/app/views/decidim/system/oauth_applications/show.html.erb +27 -0
  20. data/app/views/decidim/system/organizations/_file_upload_settings.erb +56 -0
  21. data/app/views/decidim/system/organizations/edit.html.erb +1 -0
  22. data/app/views/decidim/system/organizations/new.html.erb +1 -0
  23. data/config/locales/am-ET.yml +1 -0
  24. data/config/locales/bg.yml +8 -0
  25. data/config/locales/ca.yml +74 -2
  26. data/config/locales/cs.yml +74 -2
  27. data/config/locales/da.yml +1 -0
  28. data/config/locales/de.yml +28 -2
  29. data/config/locales/el.yml +0 -3
  30. data/config/locales/en.yml +74 -2
  31. data/config/locales/eo.yml +1 -0
  32. data/config/locales/es-MX.yml +74 -2
  33. data/config/locales/es-PY.yml +74 -2
  34. data/config/locales/es.yml +74 -2
  35. data/config/locales/et.yml +1 -0
  36. data/config/locales/fi-plain.yml +74 -2
  37. data/config/locales/fi.yml +74 -2
  38. data/config/locales/fr-CA.yml +74 -2
  39. data/config/locales/fr.yml +74 -2
  40. data/config/locales/hr.yml +1 -0
  41. data/config/locales/is.yml +55 -0
  42. data/config/locales/it.yml +0 -3
  43. data/config/locales/ja.yml +173 -0
  44. data/config/locales/ko-KR.yml +1 -0
  45. data/config/locales/ko.yml +1 -0
  46. data/config/locales/lt.yml +1 -0
  47. data/config/locales/{lv-LV.yml → lv.yml} +0 -3
  48. data/config/locales/mt.yml +1 -0
  49. data/config/locales/nl.yml +0 -3
  50. data/config/locales/om-ET.yml +1 -0
  51. data/config/locales/pl.yml +62 -23
  52. data/config/locales/pt.yml +0 -3
  53. data/config/locales/ro-RO.yml +0 -3
  54. data/config/locales/so-SO.yml +1 -0
  55. data/config/locales/sv.yml +42 -3
  56. data/config/locales/ti-ER.yml +1 -0
  57. data/config/locales/vi-VN.yml +1 -0
  58. data/config/locales/vi.yml +1 -0
  59. data/config/locales/zh-CN.yml +173 -0
  60. data/config/locales/zh-TW.yml +1 -0
  61. data/config/routes.rb +2 -0
  62. data/lib/decidim/system/engine.rb +5 -0
  63. data/lib/decidim/system/version.rb +1 -1
  64. metadata +41 -9
@@ -0,0 +1 @@
1
+ so:
@@ -1,4 +1,18 @@
1
1
  sv:
2
+ activemodel:
3
+ attributes:
4
+ oauth_application:
5
+ name: OAuth app namn
6
+ organization_logo: Organisationslogo (kvadrat)
7
+ organization_name: Organisation
8
+ organization_url: Organisationens hemsida
9
+ redirect_uri: Omdirigerings-URI
10
+ errors:
11
+ models:
12
+ oauth_application:
13
+ attributes:
14
+ redirect_uri:
15
+ must_be_ssl: Omdirigerings-URI måste vara en SSL URI
2
16
  decidim:
3
17
  system:
4
18
  actions:
@@ -32,6 +46,7 @@ sv:
32
46
  menu:
33
47
  admins: Administratörer
34
48
  dashboard: Kontrollpanel
49
+ oauth_applications: OAuth appar
35
50
  organizations: Organisationer
36
51
  models:
37
52
  admin:
@@ -41,6 +56,12 @@ sv:
41
56
  name: Administratör
42
57
  validations:
43
58
  email_uniqueness: det finns redan en administratör med samma e-postadress
59
+ oauth_application:
60
+ fields:
61
+ created_at: Skapad den
62
+ name: OAuth app namn
63
+ organization_name: Organisation
64
+ name: OAuth app
44
65
  organization:
45
66
  actions:
46
67
  save_and_invite: Skapa organisation och bjud in administratör
@@ -50,6 +71,27 @@ sv:
50
71
  omniauth_settings: Omniauth-inställningar
51
72
  smtp_settings: SMTP-inställningar
52
73
  name: Organisation
74
+ oauth_applications:
75
+ create:
76
+ error: Det gick inte att skapa appen.
77
+ success: Appen har skapats.
78
+ destroy:
79
+ error: Det gick inte att ta bort appen.
80
+ success: Appen har tagits bort.
81
+ edit:
82
+ save: Spara
83
+ title: Redigera appen
84
+ form:
85
+ select_organization: Välj en organisation
86
+ index:
87
+ confirm_delete: Vill du ta bort appen?
88
+ title: OAuth appar
89
+ new:
90
+ save: Spara
91
+ title: Ny app
92
+ update:
93
+ error: Det gick inte att uppdatera appen.
94
+ success: Appen har uppdaterats.
53
95
  organizations:
54
96
  create:
55
97
  error: Det gick inte att skapa en ny organisation.
@@ -81,10 +123,7 @@ sv:
81
123
  api_key: API-nyckel
82
124
  api_secret: API-hemlighet
83
125
  smtp_settings:
84
- instructions:
85
- from_label: 'E-postavsändare kommer att vara: "din-organisation-namn <your-organization@your-provider.org>". Lämna tomt för att använda ''from_email'' som etikett'
86
126
  placeholder:
87
- from_email: ditt-organisation@ditt-leverantör.org
88
127
  from_label: din-organisation-namn
89
128
  update:
90
129
  error: Det gick inte att uppdatera organisationen.
@@ -0,0 +1 @@
1
+ ti:
@@ -0,0 +1 @@
1
+ vi:
@@ -0,0 +1 @@
1
+ vi:
@@ -0,0 +1,173 @@
1
+ zh-CN:
2
+ activemodel:
3
+ attributes:
4
+ oauth_application:
5
+ name: OAuth 应用程序名称
6
+ organization_logo: 组织徽标(正方形)
7
+ organization_name: 组织
8
+ organization_url: 组织网址
9
+ redirect_uri: 重定向 URI
10
+ organization_file_uploads:
11
+ allowed_content_types:
12
+ admin: 管理 MIME 类型
13
+ default: 默认 MIME 类型
14
+ allowed_file_extensions:
15
+ admin: 管理文件扩展名
16
+ default: 默认文件扩展名
17
+ image: 图像文件扩展名
18
+ maximum_file_size:
19
+ avatar: 头像文件大小
20
+ default: 默认文件大小
21
+ errors:
22
+ models:
23
+ oauth_application:
24
+ attributes:
25
+ redirect_uri:
26
+ must_be_ssl: 重定向URI必须是一个 SSL URI
27
+ decidim:
28
+ system:
29
+ actions:
30
+ confirm_destroy: 您确定要删除这个吗?
31
+ destroy: 删除
32
+ edit: 编辑
33
+ new: 新的
34
+ save: 保存
35
+ title: 行动
36
+ admins:
37
+ create:
38
+ error: 创建新管理员时出错。
39
+ success: 管理员创建成功
40
+ destroy:
41
+ success: 管理员删除成功
42
+ edit:
43
+ title: 编辑管理员
44
+ update: 更新
45
+ index:
46
+ title: 管理员
47
+ new:
48
+ create: 创建
49
+ title: 新管理员
50
+ update:
51
+ error: 更新此管理员时出错。
52
+ success: 管理员更新成功
53
+ default_pages:
54
+ placeholders:
55
+ content: 请添加有意义的内容到管理仪表盘上的 %{page} 静态页面。
56
+ title: '%{page} 的默认标题'
57
+ menu:
58
+ admins: 管理员
59
+ dashboard: 仪表板
60
+ oauth_applications: OAuth 应用程序
61
+ organizations: 组织
62
+ models:
63
+ admin:
64
+ fields:
65
+ created_at: 创建于
66
+ email: 电子邮件地址
67
+ name: 管理员
68
+ validations:
69
+ email_uniqueness: 已存在具有相同电子邮件的其他管理员
70
+ oauth_application:
71
+ fields:
72
+ created_at: 创建于
73
+ name: OAuth 应用程序名称
74
+ organization_name: 组织
75
+ name: OAuth 应用程序
76
+ organization:
77
+ actions:
78
+ save_and_invite: 创建机构并邀请管理员
79
+ fields:
80
+ created_at: 创建于
81
+ file_upload_settings: 文件上传设置
82
+ name: 名称
83
+ omniauth_settings: Omniauth 设置
84
+ smtp_settings: SMTP 设置
85
+ name: 组织
86
+ oauth_applications:
87
+ create:
88
+ error: 创建此应用程序时出现问题。
89
+ success: 应用程序创建成功。
90
+ destroy:
91
+ error: 销毁此应用程序时出现问题。
92
+ success: 应用程序已成功销毁。
93
+ edit:
94
+ save: 保存
95
+ title: 编辑应用程序
96
+ form:
97
+ select_organization: 选择一个组织
98
+ index:
99
+ confirm_delete: 您确定要删除此应用程序?
100
+ title: OAuth 应用程序
101
+ new:
102
+ save: 保存
103
+ title: 新的应用程序
104
+ update:
105
+ error: 更新此应用程序时出现问题。
106
+ success: 应用程序更新成功。
107
+ organizations:
108
+ create:
109
+ error: 创建一个新组织时出现问题。
110
+ success: 组织成功创建。
111
+ edit:
112
+ secondary_hosts_hint: 在新行中输入其中每一个
113
+ file_upload_settings:
114
+ content_types:
115
+ admin_hint: 管理员版块上传允许这些MIME类型。 管理员用户应该知道上传某些文件格式的风险, 这样您可以期望他们对文件上传更加谨慎。
116
+ default_hint: 默认允许所有用户使用MIME类型。
117
+ intro_html: 您为 MIME 类型添加了带有星号字符的通配符,例如 <code>图像/*</code>。
118
+ title: 允许的 MIME 类型
119
+ file_extensions:
120
+ admin_hint: 这些文件扩展名允许管理员上传。 管理员用户应该知道上传某些文件格式的风险, 这样您可以期望他们对文件上传更加谨慎。
121
+ default_hint: 默认允许所有用户使用这些文件扩展名。
122
+ image_hint: 这些文件扩展名允许任何类型的图像上传。
123
+ title: 允许的文件扩展
124
+ file_sizes:
125
+ avatar_hint: Megabytes (MB). 此文件大小限制用于头像图像上传。
126
+ default_hint: Megabytes (MB). 此文件大小限制是所有文件上传的默认值,除非另有指定。
127
+ title: 最大文件大小
128
+ intro: |
129
+ 在考虑更改这些设置时,请特别谨慎。您允许的越少越好。
130
+ 允许特定文件扩展名或 MIME 类型会使系统用户面临安全风险,并且还会影响网站的访问权限。
131
+ index:
132
+ title: 组织
133
+ new:
134
+ reference_prefix_hint: 引用前缀被用来独特地识别所有组织的资源
135
+ secondary_hosts_hint: 在新行中输入其中每一个
136
+ title: 新建组织
137
+ omniauth_settings:
138
+ decidim:
139
+ client_id: 客户端ID
140
+ client_secret: 客户端密钥
141
+ site_url: 站点网址
142
+ enabled: 已启用
143
+ enabled_by_default: 此提供商默认启用。它可以被编辑但不禁用。
144
+ facebook:
145
+ app_id: 应用程序 ID
146
+ app_secret: 应用密钥
147
+ google_oauth2:
148
+ client_id: 客户端ID
149
+ client_secret: 客户端密钥
150
+ icon: 图标
151
+ icon_path: 图标路径
152
+ twitter:
153
+ api_key: API 密钥
154
+ api_secret: API 密钥
155
+ smtp_settings:
156
+ instructions:
157
+ from_label: '电子邮件发件人将是:"您的组织名称 <your-organization@example.org>"。留空则使用“from_email”作为标签'
158
+ placeholder:
159
+ from_email: Your-organization@example.org
160
+ from_label: 您的组织名称
161
+ update:
162
+ error: 更新这个组织时出现问题。
163
+ success: 组织已成功更新。
164
+ users_registration_mode:
165
+ disabled: 只能通过外部帐户访问
166
+ enabled: 允许参与者注册并登录
167
+ existing: 不允许参与者注册,但允许现有参与者登录
168
+ shared:
169
+ notices:
170
+ no_organization_warning_html: 您必须创建一个组织才能启动。请确保您在继续之前阅读 %{guide}。
171
+ our_getting_started_guide: 我们开始的指南
172
+ titles:
173
+ dashboard: 仪表板
@@ -0,0 +1 @@
1
+ zh-TW:
@@ -13,6 +13,8 @@ Decidim::System::Engine.routes.draw do
13
13
  authenticate(:admin) do
14
14
  resources :organizations, except: [:destroy]
15
15
  resources :admins
16
+ resources :oauth_applications
17
+
16
18
  root to: "dashboard#show"
17
19
  end
18
20
  end
@@ -45,6 +45,11 @@ module Decidim
45
45
  decidim_system.admins_path,
46
46
  position: 3,
47
47
  active: :inclusive
48
+
49
+ menu.item I18n.t("menu.oauth_applications", scope: "decidim.system"),
50
+ decidim_system.oauth_applications_path,
51
+ position: 4,
52
+ active: [%w(decidim/system/oauth_applications), []]
48
53
  end
49
54
  end
50
55
  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.22.0"
7
+ "0.23.0"
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.22.0
4
+ version: 0.23.0
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: 2020-09-01 00:00:00.000000000 Z
13
+ date: 2020-11-05 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.22.0
35
+ version: 0.23.0
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.22.0
42
+ version: 0.23.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -130,14 +130,14 @@ dependencies:
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.22.0
133
+ version: 0.23.0
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.22.0
140
+ version: 0.23.0
141
141
  description: System administration to create new organization in an installation.
142
142
  email:
143
143
  - josepjaume@gmail.com
@@ -152,6 +152,7 @@ files:
152
152
  - app/assets/config/decidim_system_manifest.js
153
153
  - app/assets/javascripts/decidim/system/application.js.es6
154
154
  - app/assets/stylesheets/decidim/system/_actions.scss
155
+ - app/assets/stylesheets/decidim/system/_forms.scss
155
156
  - app/assets/stylesheets/decidim/system/_foundation_and_overrides.scss
156
157
  - app/assets/stylesheets/decidim/system/_layout.scss
157
158
  - app/assets/stylesheets/decidim/system/_login.scss
@@ -162,17 +163,23 @@ files:
162
163
  - app/commands/decidim/system/create_admin.rb
163
164
  - app/commands/decidim/system/create_default_content_blocks.rb
164
165
  - app/commands/decidim/system/create_default_pages.rb
166
+ - app/commands/decidim/system/create_oauth_application.rb
167
+ - app/commands/decidim/system/destroy_oauth_application.rb
165
168
  - app/commands/decidim/system/populate_help.rb
166
169
  - app/commands/decidim/system/register_organization.rb
167
170
  - app/commands/decidim/system/update_admin.rb
171
+ - app/commands/decidim/system/update_oauth_application.rb
168
172
  - app/commands/decidim/system/update_organization.rb
169
173
  - app/controllers/decidim/system/admins_controller.rb
170
174
  - app/controllers/decidim/system/application_controller.rb
171
175
  - app/controllers/decidim/system/dashboard_controller.rb
172
176
  - app/controllers/decidim/system/devise/passwords_controller.rb
173
177
  - app/controllers/decidim/system/devise/sessions_controller.rb
178
+ - app/controllers/decidim/system/oauth_applications_controller.rb
174
179
  - app/controllers/decidim/system/organizations_controller.rb
175
180
  - app/forms/decidim/system/admin_form.rb
181
+ - app/forms/decidim/system/file_upload_settings_form.rb
182
+ - app/forms/decidim/system/oauth_application_form.rb
176
183
  - app/forms/decidim/system/register_organization_form.rb
177
184
  - app/forms/decidim/system/update_organization_form.rb
178
185
  - app/helpers/decidim/system/application_helper.rb
@@ -193,6 +200,12 @@ files:
193
200
  - app/views/decidim/system/devise/passwords/new.html.erb
194
201
  - app/views/decidim/system/devise/sessions/new.html.erb
195
202
  - app/views/decidim/system/devise/shared/_links.html.erb
203
+ - app/views/decidim/system/oauth_applications/_form.html.erb
204
+ - app/views/decidim/system/oauth_applications/edit.html.erb
205
+ - app/views/decidim/system/oauth_applications/index.html.erb
206
+ - app/views/decidim/system/oauth_applications/new.html.erb
207
+ - app/views/decidim/system/oauth_applications/show.html.erb
208
+ - app/views/decidim/system/organizations/_file_upload_settings.erb
196
209
  - app/views/decidim/system/organizations/_omniauth_provider.html.erb
197
210
  - app/views/decidim/system/organizations/_omniauth_settings.html.erb
198
211
  - app/views/decidim/system/organizations/_smtp_settings.html.erb
@@ -207,22 +220,27 @@ files:
207
220
  - app/views/layouts/decidim/system/_sidebar.html.erb
208
221
  - app/views/layouts/decidim/system/application.html.erb
209
222
  - app/views/layouts/decidim/system/login.html.erb
223
+ - config/locales/am-ET.yml
210
224
  - config/locales/ar-SA.yml
211
225
  - config/locales/ar.yml
212
226
  - config/locales/bg-BG.yml
227
+ - config/locales/bg.yml
213
228
  - config/locales/ca.yml
214
229
  - config/locales/cs-CZ.yml
215
230
  - config/locales/cs.yml
216
231
  - config/locales/da-DK.yml
232
+ - config/locales/da.yml
217
233
  - config/locales/de.yml
218
234
  - config/locales/el-GR.yml
219
235
  - config/locales/el.yml
220
236
  - config/locales/en.yml
221
237
  - config/locales/eo-UY.yml
238
+ - config/locales/eo.yml
222
239
  - config/locales/es-MX.yml
223
240
  - config/locales/es-PY.yml
224
241
  - config/locales/es.yml
225
242
  - config/locales/et-EE.yml
243
+ - config/locales/et.yml
226
244
  - config/locales/eu.yml
227
245
  - config/locales/fi-pl.yml
228
246
  - config/locales/fi-plain.yml
@@ -232,16 +250,24 @@ files:
232
250
  - config/locales/ga-IE.yml
233
251
  - config/locales/gl.yml
234
252
  - config/locales/hr-HR.yml
253
+ - config/locales/hr.yml
235
254
  - config/locales/hu.yml
236
255
  - config/locales/id-ID.yml
237
256
  - config/locales/is-IS.yml
257
+ - config/locales/is.yml
238
258
  - config/locales/it.yml
239
259
  - config/locales/ja-JP.yml
260
+ - config/locales/ja.yml
261
+ - config/locales/ko-KR.yml
262
+ - config/locales/ko.yml
240
263
  - config/locales/lt-LT.yml
241
- - config/locales/lv-LV.yml
264
+ - config/locales/lt.yml
265
+ - config/locales/lv.yml
242
266
  - config/locales/mt-MT.yml
267
+ - config/locales/mt.yml
243
268
  - config/locales/nl.yml
244
269
  - config/locales/no.yml
270
+ - config/locales/om-ET.yml
245
271
  - config/locales/pl.yml
246
272
  - config/locales/pt-BR.yml
247
273
  - config/locales/pt.yml
@@ -250,10 +276,16 @@ files:
250
276
  - config/locales/sk-SK.yml
251
277
  - config/locales/sk.yml
252
278
  - config/locales/sl.yml
279
+ - config/locales/so-SO.yml
253
280
  - config/locales/sr-CS.yml
254
281
  - config/locales/sv.yml
282
+ - config/locales/ti-ER.yml
255
283
  - config/locales/tr-TR.yml
256
284
  - config/locales/uk.yml
285
+ - config/locales/vi-VN.yml
286
+ - config/locales/vi.yml
287
+ - config/locales/zh-CN.yml
288
+ - config/locales/zh-TW.yml
257
289
  - config/routes.rb
258
290
  - db/migrate/20160919105637_devise_create_decidim_admins.rb
259
291
  - db/seeds.rb
@@ -273,14 +305,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
273
305
  requirements:
274
306
  - - ">="
275
307
  - !ruby/object:Gem::Version
276
- version: '2.5'
308
+ version: '2.6'
277
309
  required_rubygems_version: !ruby/object:Gem::Requirement
278
310
  requirements:
279
311
  - - ">="
280
312
  - !ruby/object:Gem::Version
281
313
  version: '0'
282
314
  requirements: []
283
- rubygems_version: 3.1.2
315
+ rubygems_version: 3.0.3
284
316
  signing_key:
285
317
  specification_version: 4
286
318
  summary: Decidim system administration