decidim-system 0.22.0 → 0.23.3

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 (70) 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 +5 -3
  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/_smtp_settings.html.erb +6 -6
  22. data/app/views/decidim/system/organizations/edit.html.erb +1 -0
  23. data/app/views/decidim/system/organizations/new.html.erb +1 -0
  24. data/config/locales/am-ET.yml +1 -0
  25. data/config/locales/bg.yml +8 -0
  26. data/config/locales/ca.yml +83 -2
  27. data/config/locales/cs.yml +85 -4
  28. data/config/locales/da.yml +1 -0
  29. data/config/locales/de.yml +88 -7
  30. data/config/locales/el.yml +0 -3
  31. data/config/locales/en.yml +83 -2
  32. data/config/locales/eo.yml +1 -0
  33. data/config/locales/es-MX.yml +83 -2
  34. data/config/locales/es-PY.yml +83 -2
  35. data/config/locales/es.yml +83 -2
  36. data/config/locales/et.yml +1 -0
  37. data/config/locales/fi-plain.yml +83 -2
  38. data/config/locales/fi.yml +83 -2
  39. data/config/locales/fr-CA.yml +83 -2
  40. data/config/locales/fr.yml +83 -2
  41. data/config/locales/gl.yml +118 -11
  42. data/config/locales/hr.yml +1 -0
  43. data/config/locales/is.yml +55 -0
  44. data/config/locales/it.yml +0 -3
  45. data/config/locales/ja.yml +182 -0
  46. data/config/locales/ko-KR.yml +1 -0
  47. data/config/locales/ko.yml +1 -0
  48. data/config/locales/lt.yml +1 -0
  49. data/config/locales/{lv-LV.yml → lv.yml} +0 -3
  50. data/config/locales/mt.yml +1 -0
  51. data/config/locales/nl.yml +12 -2
  52. data/config/locales/no.yml +10 -0
  53. data/config/locales/om-ET.yml +1 -0
  54. data/config/locales/pl.yml +98 -22
  55. data/config/locales/pt.yml +0 -3
  56. data/config/locales/ro-RO.yml +0 -3
  57. data/config/locales/si-LK.yml +1 -0
  58. data/config/locales/so-SO.yml +1 -0
  59. data/config/locales/sv.yml +42 -3
  60. data/config/locales/sw-KE.yml +1 -0
  61. data/config/locales/ti-ER.yml +1 -0
  62. data/config/locales/tr-TR.yml +108 -2
  63. data/config/locales/vi-VN.yml +1 -0
  64. data/config/locales/vi.yml +1 -0
  65. data/config/locales/zh-CN.yml +171 -0
  66. data/config/locales/zh-TW.yml +1 -0
  67. data/config/routes.rb +2 -0
  68. data/lib/decidim/system/engine.rb +5 -0
  69. data/lib/decidim/system/version.rb +1 -1
  70. metadata +46 -12
@@ -0,0 +1 @@
1
+ vi:
@@ -0,0 +1 @@
1
+ vi:
@@ -0,0 +1,171 @@
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
+ placeholder:
157
+ from_email: Your-organization@example.org
158
+ from_label: 您的组织名称
159
+ update:
160
+ error: 更新这个组织时出现问题。
161
+ success: 组织已成功更新。
162
+ users_registration_mode:
163
+ disabled: 只能通过外部帐户访问
164
+ enabled: 允许参与者注册并登录
165
+ existing: 不允许参与者注册,但允许现有参与者登录
166
+ shared:
167
+ notices:
168
+ no_organization_warning_html: 您必须创建一个组织才能启动。请确保您在继续之前阅读 %{guide}。
169
+ our_getting_started_guide: 我们开始的指南
170
+ titles:
171
+ dashboard: 仪表板
@@ -0,0 +1 @@
1
+ zh-TW:
data/config/routes.rb CHANGED
@@ -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.3"
8
8
  end
9
9
  end
10
10
  end
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.22.0
4
+ version: 0.23.3
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: 2020-09-01 00:00:00.000000000 Z
13
+ date: 2021-02-23 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.3
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.3
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.3
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.3
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,28 +250,44 @@ 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
248
274
  - config/locales/ro-RO.yml
249
275
  - config/locales/ru.yml
276
+ - config/locales/si-LK.yml
250
277
  - config/locales/sk-SK.yml
251
278
  - config/locales/sk.yml
252
279
  - config/locales/sl.yml
280
+ - config/locales/so-SO.yml
253
281
  - config/locales/sr-CS.yml
254
282
  - config/locales/sv.yml
283
+ - config/locales/sw-KE.yml
284
+ - config/locales/ti-ER.yml
255
285
  - config/locales/tr-TR.yml
256
286
  - config/locales/uk.yml
287
+ - config/locales/vi-VN.yml
288
+ - config/locales/vi.yml
289
+ - config/locales/zh-CN.yml
290
+ - config/locales/zh-TW.yml
257
291
  - config/routes.rb
258
292
  - db/migrate/20160919105637_devise_create_decidim_admins.rb
259
293
  - db/seeds.rb
@@ -265,7 +299,7 @@ homepage: https://github.com/decidim/decidim
265
299
  licenses:
266
300
  - AGPL-3.0
267
301
  metadata: {}
268
- post_install_message:
302
+ post_install_message:
269
303
  rdoc_options: []
270
304
  require_paths:
271
305
  - lib
@@ -273,15 +307,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
273
307
  requirements:
274
308
  - - ">="
275
309
  - !ruby/object:Gem::Version
276
- version: '2.5'
310
+ version: '2.6'
277
311
  required_rubygems_version: !ruby/object:Gem::Requirement
278
312
  requirements:
279
313
  - - ">="
280
314
  - !ruby/object:Gem::Version
281
315
  version: '0'
282
316
  requirements: []
283
- rubygems_version: 3.1.2
284
- signing_key:
317
+ rubygems_version: 3.0.3
318
+ signing_key:
285
319
  specification_version: 4
286
320
  summary: Decidim system administration
287
321
  test_files: []