decidim-admin 0.21.0 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-admin might be problematic. Click here for more details.

Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/admin/application.js.es6 +7 -0
  3. data/app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6 +52 -0
  4. data/app/assets/javascripts/decidim/admin/bundle.js +26 -32
  5. data/app/assets/javascripts/decidim/admin/bundle.js.map +1 -1
  6. data/app/assets/javascripts/decidim/admin/choose_language.js +12 -0
  7. data/app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6 +24 -5
  8. data/app/assets/javascripts/decidim/admin/form.js.es6 +24 -10
  9. data/app/assets/javascripts/decidim/admin/gallery.js.es6 +5 -0
  10. data/app/assets/javascripts/decidim/admin/newsletters.js.es6 +4 -0
  11. data/app/assets/javascripts/decidim/admin/officializations.js.es6 +20 -0
  12. data/app/assets/javascripts/decidim/admin/scope_picker_enabler.component.js.es6 +14 -0
  13. data/app/assets/stylesheets/decidim/admin/_decidim.scss +2 -0
  14. data/app/assets/stylesheets/decidim/admin/_variables.scss +1 -1
  15. data/app/assets/stylesheets/decidim/admin/extra/_newsletter-templates-gallery.scss +3 -0
  16. data/app/assets/stylesheets/decidim/admin/extra/_organization-appearance.scss +141 -0
  17. data/app/assets/stylesheets/decidim/admin/extra/_show_email.scss +31 -0
  18. data/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +4 -0
  19. data/app/assets/stylesheets/decidim/admin/modules/_buttons.scss +11 -1
  20. data/app/assets/stylesheets/decidim/admin/modules/_callouts.scss +11 -0
  21. data/app/assets/stylesheets/decidim/admin/modules/_cards.scss +2 -2
  22. data/app/assets/stylesheets/decidim/admin/modules/_filters.scss +2 -2
  23. data/app/assets/stylesheets/decidim/admin/modules/_forms.scss +16 -2
  24. data/app/assets/stylesheets/decidim/admin/modules/_import_result.scss +10 -0
  25. data/app/assets/stylesheets/decidim/admin/modules/_loading-spinner.scss +19 -0
  26. data/app/assets/stylesheets/decidim/admin/modules/_main-nav.scss +0 -1
  27. data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +5 -1
  28. data/app/assets/stylesheets/decidim/admin/modules/_process-header.scss +0 -1
  29. data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +0 -1
  30. data/app/assets/stylesheets/decidim/admin/modules/_table-list.scss +0 -5
  31. data/app/assets/stylesheets/decidim/admin/modules/_tabs.scss +7 -0
  32. data/app/assets/stylesheets/decidim/admin/modules/_users_statistics.scss +18 -0
  33. data/app/assets/stylesheets/decidim/admin/utils/_mixins.scss +42 -0
  34. data/app/assets/stylesheets/decidim/admin/utils/_settings.scss +4 -1
  35. data/app/cells/decidim/admin/content_block/show.erb +2 -2
  36. data/app/commands/decidim/admin/create_attachment.rb +2 -2
  37. data/app/commands/decidim/admin/create_newsletter.rb +34 -9
  38. data/app/commands/decidim/admin/destroy_share_token.rb +46 -0
  39. data/app/commands/decidim/admin/reorder_content_blocks.rb +1 -1
  40. data/app/commands/decidim/admin/update_component.rb +27 -3
  41. data/app/commands/decidim/admin/update_content_block.rb +25 -1
  42. data/app/commands/decidim/admin/update_newsletter.rb +31 -9
  43. data/app/commands/decidim/admin/update_organization.rb +11 -0
  44. data/app/commands/decidim/admin/update_organization_appearance.rb +3 -1
  45. data/app/controllers/concerns/decidim/admin/participatory_space_export.rb +8 -2
  46. data/app/controllers/decidim/admin/application_controller.rb +1 -0
  47. data/app/controllers/decidim/admin/authorization_workflows_controller.rb +6 -0
  48. data/app/controllers/decidim/admin/components_controller.rb +17 -6
  49. data/app/controllers/decidim/admin/dashboard_controller.rb +33 -1
  50. data/app/controllers/decidim/admin/metrics_controller.rb +22 -0
  51. data/app/controllers/decidim/admin/newsletter_templates_controller.rb +41 -0
  52. data/app/controllers/decidim/admin/newsletters_controller.rb +32 -4
  53. data/app/controllers/decidim/admin/officializations_controller.rb +8 -0
  54. data/app/controllers/decidim/admin/organization_appearance_controller.rb +1 -0
  55. data/app/controllers/decidim/admin/organization_controller.rb +4 -3
  56. data/app/controllers/decidim/admin/organization_homepage_content_blocks_controller.rb +2 -1
  57. data/app/controllers/decidim/admin/share_tokens_controller.rb +30 -0
  58. data/app/forms/decidim/admin/attachment_form.rb +3 -0
  59. data/app/forms/decidim/admin/component_form.rb +5 -22
  60. data/app/forms/decidim/admin/newsletter_form.rb +15 -3
  61. data/app/forms/decidim/admin/organization_appearance_form.rb +7 -4
  62. data/app/forms/decidim/admin/organization_form.rb +20 -0
  63. data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +13 -0
  64. data/app/forms/decidim/admin/participatory_space_private_user_form.rb +3 -2
  65. data/app/forms/decidim/admin/selective_newsletter_form.rb +6 -0
  66. data/app/frontend/components/autocomplete.component.test.tsx +2 -1
  67. data/app/frontend/components/autocomplete.component.tsx +29 -0
  68. data/app/helpers/decidim/admin/application_helper.rb +1 -0
  69. data/app/helpers/decidim/admin/filterable_helper.rb +35 -27
  70. data/app/helpers/decidim/admin/icon_link_helper.rb +1 -1
  71. data/app/helpers/decidim/admin/newsletters_helper.rb +3 -1
  72. data/app/helpers/decidim/admin/resource_scope_helper.rb +43 -0
  73. data/app/helpers/decidim/admin/settings_helper.rb +52 -59
  74. data/app/helpers/decidim/admin/uploader_image_dimensions_helper.rb +30 -0
  75. data/app/models/decidim/admin/fake_newsletter.rb +49 -0
  76. data/app/permissions/decidim/admin/permissions.rb +7 -1
  77. data/app/presenters/decidim/admin/dashboard_metric_charts_presenter.rb +57 -0
  78. data/app/queries/decidim/admin/active_users_counter.rb +35 -0
  79. data/app/queries/decidim/admin/newsletter_recipients.rb +5 -8
  80. data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
  81. data/app/views/decidim/admin/authorization_workflows/index.html.erb +1 -0
  82. data/app/views/decidim/admin/categories/index.html.erb +1 -1
  83. data/app/views/decidim/admin/components/_component.html.erb +5 -0
  84. data/app/views/decidim/admin/components/_form.html.erb +4 -0
  85. data/app/views/decidim/admin/components/_settings_fields.html.erb +2 -2
  86. data/app/views/decidim/admin/components/index.html.erb +1 -0
  87. data/app/views/decidim/admin/dashboard/show.html.erb +35 -10
  88. data/app/views/decidim/admin/exports/_dropdown.html.erb +6 -2
  89. data/app/views/decidim/admin/impersonatable_users/index.html.erb +2 -2
  90. data/app/views/decidim/admin/metrics/_metrics.html.erb +21 -0
  91. data/app/views/decidim/admin/metrics/index.html.erb +7 -0
  92. data/app/views/decidim/admin/newsletter_templates/index.html.erb +28 -0
  93. data/app/views/decidim/admin/newsletter_templates/show.html.erb +12 -0
  94. data/app/views/decidim/admin/newsletters/_form.html.erb +1 -7
  95. data/app/views/decidim/admin/newsletters/edit.html.erb +1 -1
  96. data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
  97. data/app/views/decidim/admin/newsletters/new.html.erb +1 -1
  98. data/app/views/decidim/admin/officializations/_show_email_modal.html.erb +31 -0
  99. data/app/views/decidim/admin/officializations/index.html.erb +7 -3
  100. data/app/views/decidim/admin/officializations/show_email.html.erb +2 -0
  101. data/app/views/decidim/admin/organization/_form.html.erb +21 -0
  102. data/app/views/decidim/admin/organization_appearance/_form.html.erb +2 -72
  103. data/app/views/decidim/admin/organization_appearance/form/_colors.html.erb +23 -0
  104. data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +38 -0
  105. data/app/views/decidim/admin/organization_appearance/form/_minimap.html.erb +46 -0
  106. data/app/views/decidim/admin/resource_permissions/_options_form.html.erb +1 -1
  107. data/app/views/decidim/admin/share_tokens/_share_tokens.html.erb +57 -0
  108. data/app/views/decidim/admin/shared/_filters.html.erb +3 -3
  109. data/app/views/decidim/admin/shared/_gallery.html.erb +21 -0
  110. data/app/views/decidim/admin/static_pages/_form.html.erb +1 -1
  111. data/app/views/decidim/admin/user_groups/index.html.erb +4 -4
  112. data/app/views/decidim/admin/users_statistics/_users_count.html.erb +39 -0
  113. data/app/views/layouts/decidim/admin/_application.html.erb +1 -0
  114. data/app/views/layouts/decidim/admin/_header.html.erb +3 -0
  115. data/app/views/layouts/decidim/admin/_title_bar.html.erb +20 -10
  116. data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
  117. data/config/locales/am-ET.yml +1 -0
  118. data/config/locales/ar.yml +12 -45
  119. data/config/locales/bg-BG.yml +16 -0
  120. data/config/locales/bg.yml +131 -0
  121. data/config/locales/ca.yml +84 -46
  122. data/config/locales/cs.yml +175 -137
  123. data/config/locales/da-DK.yml +1 -0
  124. data/config/locales/da.yml +1 -0
  125. data/config/locales/de.yml +150 -56
  126. data/config/locales/el.yml +814 -0
  127. data/config/locales/en.yml +84 -46
  128. data/config/locales/eo-UY.yml +0 -1
  129. data/config/locales/eo.yml +51 -0
  130. data/config/locales/es-MX.yml +84 -46
  131. data/config/locales/es-PY.yml +84 -46
  132. data/config/locales/es.yml +84 -46
  133. data/config/locales/et-EE.yml +1 -0
  134. data/config/locales/et.yml +1 -0
  135. data/config/locales/eu.yml +30 -59
  136. data/config/locales/fi-plain.yml +84 -46
  137. data/config/locales/fi.yml +98 -60
  138. data/config/locales/fr-CA.yml +847 -0
  139. data/config/locales/fr.yml +126 -51
  140. data/config/locales/ga-IE.yml +1 -0
  141. data/config/locales/gl.yml +156 -42
  142. data/config/locales/hr-HR.yml +1 -0
  143. data/config/locales/hr.yml +1 -0
  144. data/config/locales/hu.yml +55 -46
  145. data/config/locales/id-ID.yml +12 -41
  146. data/config/locales/is-IS.yml +10 -42
  147. data/config/locales/is.yml +568 -0
  148. data/config/locales/it.yml +106 -85
  149. data/config/locales/ja-JP.yml +855 -0
  150. data/config/locales/ja.yml +847 -0
  151. data/config/locales/ko-KR.yml +1 -0
  152. data/config/locales/ko.yml +1 -0
  153. data/config/locales/lt-LT.yml +1 -0
  154. data/config/locales/lt.yml +1 -0
  155. data/config/locales/lv.yml +795 -0
  156. data/config/locales/mt-MT.yml +1 -0
  157. data/config/locales/mt.yml +1 -0
  158. data/config/locales/nl.yml +74 -46
  159. data/config/locales/no.yml +108 -83
  160. data/config/locales/om-ET.yml +1 -0
  161. data/config/locales/pl.yml +354 -233
  162. data/config/locales/pt-BR.yml +13 -42
  163. data/config/locales/pt.yml +321 -231
  164. data/config/locales/ro-RO.yml +810 -0
  165. data/config/locales/ru.yml +11 -44
  166. data/config/locales/si-LK.yml +1 -0
  167. data/config/locales/sk-SK.yml +823 -0
  168. data/config/locales/sk.yml +802 -0
  169. data/config/locales/sl.yml +162 -0
  170. data/config/locales/so-SO.yml +1 -0
  171. data/config/locales/sr-CS.yml +586 -0
  172. data/config/locales/sv.yml +134 -54
  173. data/config/locales/sw-KE.yml +1 -0
  174. data/config/locales/ti-ER.yml +1 -0
  175. data/config/locales/tr-TR.yml +139 -50
  176. data/config/locales/uk.yml +10 -42
  177. data/config/locales/vi-VN.yml +1 -0
  178. data/config/locales/vi.yml +1 -0
  179. data/config/locales/zh-CN.yml +845 -0
  180. data/config/locales/zh-TW.yml +1 -0
  181. data/config/routes.rb +14 -3
  182. data/lib/decidim/admin/engine.rb +12 -9
  183. data/lib/decidim/admin/form_builder.rb +2 -2
  184. data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +1 -1
  185. data/lib/decidim/admin/test/manage_component_permissions_examples.rb +15 -15
  186. data/lib/decidim/admin/version.rb +1 -1
  187. metadata +85 -33
  188. data/app/commands/decidim/admin/create_oauth_application.rb +0 -36
  189. data/app/commands/decidim/admin/destroy_oauth_application.rb +0 -39
  190. data/app/commands/decidim/admin/update_oauth_application.rb +0 -39
  191. data/app/controllers/decidim/admin/oauth_applications_controller.rb +0 -90
  192. data/app/forms/decidim/admin/oauth_application_form.rb +0 -32
  193. data/app/views/decidim/admin/oauth_applications/_form.html.erb +0 -19
  194. data/app/views/decidim/admin/oauth_applications/edit.html.erb +0 -13
  195. data/app/views/decidim/admin/oauth_applications/index.html.erb +0 -40
  196. data/app/views/decidim/admin/oauth_applications/new.html.erb +0 -13
  197. data/app/views/decidim/admin/oauth_applications/show.html.erb +0 -27
@@ -0,0 +1 @@
1
+ zh-TW:
data/config/routes.rb CHANGED
@@ -23,6 +23,7 @@ Decidim::Admin::Engine.routes.draw do
23
23
  resources :scopes, except: [:show] do
24
24
  resources :scopes, except: [:show]
25
25
  end
26
+ resources :metrics, only: [:index]
26
27
  resources :logs, only: [:index]
27
28
  resources :area_types, except: [:show]
28
29
  resources :areas, except: [:show]
@@ -39,7 +40,9 @@ Decidim::Admin::Engine.routes.draw do
39
40
  end
40
41
  end
41
42
 
42
- resources :officializations, only: [:new, :create, :index, :destroy], param: :user_id
43
+ resources :officializations, only: [:new, :create, :index, :destroy], param: :user_id do
44
+ get :show_email, on: :member
45
+ end
43
46
 
44
47
  resources :impersonatable_users, only: [:index] do
45
48
  resources :promotions, controller: "managed_users/promotions", only: [:new, :create]
@@ -51,7 +54,15 @@ Decidim::Admin::Engine.routes.draw do
51
54
  end
52
55
  end
53
56
 
54
- resources :newsletters do
57
+ resources :newsletter_templates, only: [:index, :show] do
58
+ resources :newsletters, only: [:new, :create]
59
+
60
+ member do
61
+ get :preview
62
+ end
63
+ end
64
+
65
+ resources :newsletters, except: [:new, :create] do
55
66
  member do
56
67
  get :recipients_count
57
68
  get :preview
@@ -77,7 +88,7 @@ Decidim::Admin::Engine.routes.draw do
77
88
  put :accept
78
89
  end
79
90
 
80
- resources :oauth_applications
91
+ resources :share_tokens, only: :destroy
81
92
 
82
93
  root to: "dashboard#show"
83
94
  end
@@ -54,14 +54,24 @@ module Decidim
54
54
  allowed_to?(:read, :admin_user) ? decidim_admin.users_path : decidim_admin.impersonatable_users_path,
55
55
  icon_name: "person",
56
56
  position: 5,
57
- active: [%w(user_groups users managed_users impersonatable_users authorization_workflows).map { |segment| "/decidim/admin/#{segment}" }, []],
57
+ active: [%w(
58
+ decidim/admin/users
59
+ decidim/admin/user_groups
60
+ decidim/admin/user_groups_csv_verifications
61
+ decidim/admin/officializations
62
+ decidim/admin/impersonatable_users
63
+ decidim/admin/managed_users/impersonation_logs
64
+ decidim/admin/managed_users/promotions
65
+ decidim/admin/authorization_workflows
66
+ ), []],
58
67
  if: allowed_to?(:read, :admin_user) || allowed_to?(:read, :managed_user)
59
68
 
60
69
  menu.item I18n.t("menu.newsletters", scope: "decidim.admin"),
61
70
  decidim_admin.newsletters_path,
62
71
  icon_name: "envelope-closed",
63
72
  position: 6,
64
- active: :inclusive,
73
+ active: is_active_link?(decidim_admin.newsletters_path, :inclusive) ||
74
+ is_active_link?(decidim_admin.newsletter_templates_path, :inclusive),
65
75
  if: allowed_to?(:index, :newsletter)
66
76
 
67
77
  menu.item I18n.t("menu.settings", scope: "decidim.admin"),
@@ -88,13 +98,6 @@ module Decidim
88
98
  position: 10,
89
99
  active: [%w(decidim/admin/logs), []],
90
100
  if: allowed_to?(:read, :admin_log)
91
-
92
- menu.item I18n.t("menu.oauth_applications", scope: "decidim.admin"),
93
- decidim_admin.oauth_applications_path,
94
- icon_name: "dashboard",
95
- position: 11,
96
- active: [%w(decidim/admin/oauth_applications), []],
97
- if: allowed_to?(:read, :oauth_application)
98
101
  end
99
102
  end
100
103
 
@@ -41,15 +41,15 @@ module Decidim
41
41
  #
42
42
  def autocomplete_select(attribute, selected = nil, options = {}, prompt_options = {})
43
43
  selected = yield(selected) if selected
44
-
45
44
  template = ""
46
45
  template += label(attribute, (options[:label] || label_for(attribute)) + required_for_attribute(attribute)) unless options[:label] == false
47
46
  template += content_tag(:div, nil, class: options[:class], data: {
48
47
  autocomplete: {
49
48
  name: options[:name] || "#{@object_name}[#{attribute}]",
50
- options: [selected].compact,
49
+ options: (options[:default_options].to_a + [selected]).compact,
51
50
  placeholder: prompt_options[:placeholder],
52
51
  searchURL: prompt_options[:url],
52
+ changeURL: prompt_options[:change_url],
53
53
  selected: selected ? selected[:value] : "",
54
54
  searchPromptText: options[:search_prompt] || I18n.t("autocomplete.search_prompt", scope: "decidim.admin"),
55
55
  noResultsText: options[:no_results] || I18n.t("autocomplete.no_results", scope: "decidim.admin")
@@ -82,7 +82,7 @@ shared_examples "manage attachment collections examples" do
82
82
  context "when deleting a attachment collection" do
83
83
  let!(:attachment_collection2) { create(:attachment_collection, collection_for: collection_for) }
84
84
 
85
- context "when the attachment collection has no associated content" do
85
+ context "when the attachment collection has no associated content", :slow do
86
86
  before do
87
87
  visit current_path
88
88
  end
@@ -31,7 +31,7 @@ shared_examples "Managing component permissions" do
31
31
  within "form.new_component_permissions" do
32
32
  within ".foo-permission" do
33
33
  check "Example authorization (Direct)"
34
- fill_in "Postal code", with: "08002"
34
+ fill_in "Allowed postal codes", with: "08002"
35
35
  end
36
36
  find("*[type=submit]").click
37
37
  end
@@ -42,7 +42,7 @@ shared_examples "Managing component permissions" do
42
42
  include(
43
43
  "authorization_handlers" => {
44
44
  "dummy_authorization_handler" => {
45
- "options" => { "postal_code" => "08002" }
45
+ "options" => { "allowed_postal_codes" => "08002" }
46
46
  }
47
47
  }
48
48
  )
@@ -61,7 +61,7 @@ shared_examples "Managing component permissions" do
61
61
  within "form.new_component_permissions" do
62
62
  within ".foo-permission" do
63
63
  check "Example authorization (Direct)"
64
- fill_in "Postal code", with: "08002"
64
+ fill_in "Allowed postal codes", with: "08002"
65
65
  end
66
66
  find("*[type=submit]").click
67
67
  end
@@ -79,7 +79,7 @@ shared_examples "Managing component permissions" do
79
79
  "foo" => {
80
80
  "authorization_handlers" => {
81
81
  "dummy_authorization_handler" => {
82
- "options" => { "postal_code" => "08002" }
82
+ "options" => { "allowed_postal_codes" => "08002" }
83
83
  }
84
84
  }
85
85
  }
@@ -114,7 +114,7 @@ shared_examples "Managing component permissions" do
114
114
  "foo" => {
115
115
  "authorization_handlers" => {
116
116
  "dummy_authorization_handler" => {
117
- "options" => { "postal_code" => "08002" }
117
+ "options" => { "allowed_postal_codes" => "08002" }
118
118
  }
119
119
  }
120
120
  }
@@ -166,7 +166,7 @@ shared_examples "Managing component permissions" do
166
166
  include(
167
167
  "authorization_handlers" => {
168
168
  "dummy_authorization_handler" => {
169
- "options" => { "postal_code" => "08002" }
169
+ "options" => { "allowed_postal_codes" => "08002" }
170
170
  },
171
171
  "another_dummy_authorization_handler" => {
172
172
  "options" => { "passport_number" => "AXXXXXXXX" }
@@ -201,7 +201,7 @@ shared_examples "Managing component permissions" do
201
201
  end
202
202
 
203
203
  it "shows the resource permissions settings" do
204
- expect(page).to have_content(resource.title)
204
+ expect(page).to have_content(translated(resource.title))
205
205
  end
206
206
 
207
207
  context "when resources permissions are disabled" do
@@ -217,7 +217,7 @@ shared_examples "Managing component permissions" do
217
217
  within "form.new_component_permissions" do
218
218
  within ".foo-permission" do
219
219
  check "Example authorization (Direct)"
220
- fill_in "Postal code", with: "08002"
220
+ fill_in "Allowed postal codes", with: "08002"
221
221
  end
222
222
  find("*[type=submit]").click
223
223
  end
@@ -228,7 +228,7 @@ shared_examples "Managing component permissions" do
228
228
  include(
229
229
  "authorization_handlers" => {
230
230
  "dummy_authorization_handler" => {
231
- "options" => { "postal_code" => "08002" }
231
+ "options" => { "allowed_postal_codes" => "08002" }
232
232
  }
233
233
  }
234
234
  )
@@ -244,7 +244,7 @@ shared_examples "Managing component permissions" do
244
244
  "foo" => {
245
245
  "authorization_handlers" => {
246
246
  "dummy_authorization_handler" => {
247
- "options" => { "postal_code" => "08002" }
247
+ "options" => { "allowed_postal_codes" => "08002" }
248
248
  }
249
249
  }
250
250
  }
@@ -277,7 +277,7 @@ shared_examples "Managing component permissions" do
277
277
  "foo" => {
278
278
  "authorization_handlers" => {
279
279
  "dummy_authorization_handler" => {
280
- "options" => { "postal_code" => "08002" }
280
+ "options" => { "allowed_postal_codes" => "08002" }
281
281
  }
282
282
  }
283
283
  }
@@ -327,7 +327,7 @@ shared_examples "Managing component permissions" do
327
327
  include(
328
328
  "authorization_handlers" => {
329
329
  "dummy_authorization_handler" => {
330
- "options" => { "postal_code" => "08002" }
330
+ "options" => { "allowed_postal_codes" => "08002" }
331
331
  },
332
332
  "another_dummy_authorization_handler" => {
333
333
  "options" => { "passport_number" => "AXXXXXXXX" }
@@ -345,7 +345,7 @@ shared_examples "Managing component permissions" do
345
345
  "foo" => {
346
346
  "authorization_handlers" => {
347
347
  "dummy_authorization_handler" => {
348
- "options" => { "postal_code" => "08002" }
348
+ "options" => { "allowed_postal_codes" => "08002" }
349
349
  }
350
350
  }
351
351
  }
@@ -395,7 +395,7 @@ shared_examples "Managing component permissions" do
395
395
  include(
396
396
  "authorization_handlers" => {
397
397
  "dummy_authorization_handler" => {
398
- "options" => { "postal_code" => "08002" }
398
+ "options" => { "allowed_postal_codes" => "08002" }
399
399
  },
400
400
  "another_dummy_authorization_handler" => {
401
401
  "options" => { "passport_number" => "AXXXXXXXX" }
@@ -413,7 +413,7 @@ shared_examples "Managing component permissions" do
413
413
  "foo" => {
414
414
  "authorization_handlers" => {
415
415
  "dummy_authorization_handler" => {
416
- "options" => { "postal_code" => "08002" }
416
+ "options" => { "allowed_postal_codes" => "08002" }
417
417
  }
418
418
  }
419
419
  }
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-admin version.
5
5
  module Admin
6
6
  def self.version
7
- "0.21.0"
7
+ "0.23.2"
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-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.2
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-04-08 00:00:00.000000000 Z
13
+ date: 2021-02-09 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.21.0
35
+ version: 0.23.2
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.21.0
42
+ version: 0.23.2
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -102,62 +102,56 @@ dependencies:
102
102
  requirements:
103
103
  - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: '1.12'
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- version: 1.12.1
105
+ version: 2.3.0
109
106
  type: :runtime
110
107
  prerelease: false
111
108
  version_requirements: !ruby/object:Gem::Requirement
112
109
  requirements:
113
110
  - - "~>"
114
111
  - !ruby/object:Gem::Version
115
- version: '1.12'
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: 1.12.1
112
+ version: 2.3.0
119
113
  - !ruby/object:Gem::Dependency
120
114
  name: sassc-rails
121
115
  requirement: !ruby/object:Gem::Requirement
122
116
  requirements:
123
117
  - - "~>"
124
118
  - !ruby/object:Gem::Version
125
- version: '1.3'
119
+ version: 2.1.2
126
120
  type: :runtime
127
121
  prerelease: false
128
122
  version_requirements: !ruby/object:Gem::Requirement
129
123
  requirements:
130
124
  - - "~>"
131
125
  - !ruby/object:Gem::Version
132
- version: '1.3'
126
+ version: 2.1.2
133
127
  - !ruby/object:Gem::Dependency
134
128
  name: decidim-dev
135
129
  requirement: !ruby/object:Gem::Requirement
136
130
  requirements:
137
131
  - - '='
138
132
  - !ruby/object:Gem::Version
139
- version: 0.21.0
133
+ version: 0.23.2
140
134
  type: :development
141
135
  prerelease: false
142
136
  version_requirements: !ruby/object:Gem::Requirement
143
137
  requirements:
144
138
  - - '='
145
139
  - !ruby/object:Gem::Version
146
- version: 0.21.0
140
+ version: 0.23.2
147
141
  - !ruby/object:Gem::Dependency
148
142
  name: decidim-participatory_processes
149
143
  requirement: !ruby/object:Gem::Requirement
150
144
  requirements:
151
145
  - - '='
152
146
  - !ruby/object:Gem::Version
153
- version: 0.21.0
147
+ version: 0.23.2
154
148
  type: :development
155
149
  prerelease: false
156
150
  version_requirements: !ruby/object:Gem::Requirement
157
151
  requirements:
158
152
  - - '='
159
153
  - !ruby/object:Gem::Version
160
- version: 0.21.0
154
+ version: 0.23.2
161
155
  description: Organization administration to manage a single organization.
162
156
  email:
163
157
  - josepjaume@gmail.com
@@ -173,15 +167,20 @@ files:
173
167
  - app/assets/javascripts/decidim/admin/application.js.es6
174
168
  - app/assets/javascripts/decidim/admin/auto_buttons_by_position.component.js.es6
175
169
  - app/assets/javascripts/decidim/admin/auto_label_by_position.component.js.es6
170
+ - app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6
176
171
  - app/assets/javascripts/decidim/admin/bundle.js
177
172
  - app/assets/javascripts/decidim/admin/bundle.js.map
173
+ - app/assets/javascripts/decidim/admin/choose_language.js
178
174
  - app/assets/javascripts/decidim/admin/draggable-list.js.es6
179
175
  - app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6
180
176
  - app/assets/javascripts/decidim/admin/field_dependent_inputs.component.js.es6
181
177
  - app/assets/javascripts/decidim/admin/form.js.es6
178
+ - app/assets/javascripts/decidim/admin/gallery.js.es6
182
179
  - app/assets/javascripts/decidim/admin/managed_users.js.es6
183
180
  - app/assets/javascripts/decidim/admin/newsletters.js.es6
181
+ - app/assets/javascripts/decidim/admin/officializations.js.es6
184
182
  - app/assets/javascripts/decidim/admin/resources_permissions.js.es6
183
+ - app/assets/javascripts/decidim/admin/scope_picker_enabler.component.js.es6
185
184
  - app/assets/javascripts/decidim/admin/sort_list.component.js.es6
186
185
  - app/assets/javascripts/decidim/admin/sortable.js.es6
187
186
  - app/assets/javascripts/decidim/admin/subform_multi_toggler.component.js.es6
@@ -205,8 +204,11 @@ files:
205
204
  - app/assets/stylesheets/decidim/admin/extra/_label-required.scss
206
205
  - app/assets/stylesheets/decidim/admin/extra/_login.scss
207
206
  - app/assets/stylesheets/decidim/admin/extra/_logs.scss
207
+ - app/assets/stylesheets/decidim/admin/extra/_newsletter-templates-gallery.scss
208
+ - app/assets/stylesheets/decidim/admin/extra/_organization-appearance.scss
208
209
  - app/assets/stylesheets/decidim/admin/extra/_quill.scss
209
210
  - app/assets/stylesheets/decidim/admin/extra/_select_multiple.scss
211
+ - app/assets/stylesheets/decidim/admin/extra/_show_email.scss
210
212
  - app/assets/stylesheets/decidim/admin/extra/_sort.scss
211
213
  - app/assets/stylesheets/decidim/admin/extra/_title_bar.scss
212
214
  - app/assets/stylesheets/decidim/admin/modules/_action-icon.scss
@@ -222,7 +224,9 @@ files:
222
224
  - app/assets/stylesheets/decidim/admin/modules/_filters.scss
223
225
  - app/assets/stylesheets/decidim/admin/modules/_forms.scss
224
226
  - app/assets/stylesheets/decidim/admin/modules/_icons.scss
227
+ - app/assets/stylesheets/decidim/admin/modules/_import_result.scss
225
228
  - app/assets/stylesheets/decidim/admin/modules/_layout.scss
229
+ - app/assets/stylesheets/decidim/admin/modules/_loading-spinner.scss
226
230
  - app/assets/stylesheets/decidim/admin/modules/_main-nav.scss
227
231
  - app/assets/stylesheets/decidim/admin/modules/_modules.scss
228
232
  - app/assets/stylesheets/decidim/admin/modules/_pics.scss
@@ -233,6 +237,7 @@ files:
233
237
  - app/assets/stylesheets/decidim/admin/modules/_title-bar.scss
234
238
  - app/assets/stylesheets/decidim/admin/modules/_typography.scss
235
239
  - app/assets/stylesheets/decidim/admin/modules/_user-login.scss
240
+ - app/assets/stylesheets/decidim/admin/modules/_users_statistics.scss
236
241
  - app/assets/stylesheets/decidim/admin/plugins/_foundation-datepicker.scss
237
242
  - app/assets/stylesheets/decidim/admin/utils/_flex.scss
238
243
  - app/assets/stylesheets/decidim/admin/utils/_fontface.scss
@@ -276,7 +281,6 @@ files:
276
281
  - app/commands/decidim/admin/create_category.rb
277
282
  - app/commands/decidim/admin/create_component.rb
278
283
  - app/commands/decidim/admin/create_newsletter.rb
279
- - app/commands/decidim/admin/create_oauth_application.rb
280
284
  - app/commands/decidim/admin/create_participatory_space_private_user.rb
281
285
  - app/commands/decidim/admin/create_scope.rb
282
286
  - app/commands/decidim/admin/create_scope_type.rb
@@ -287,9 +291,9 @@ files:
287
291
  - app/commands/decidim/admin/destroy_category.rb
288
292
  - app/commands/decidim/admin/destroy_component.rb
289
293
  - app/commands/decidim/admin/destroy_newsletter.rb
290
- - app/commands/decidim/admin/destroy_oauth_application.rb
291
294
  - app/commands/decidim/admin/destroy_participatory_space_private_user.rb
292
295
  - app/commands/decidim/admin/destroy_scope.rb
296
+ - app/commands/decidim/admin/destroy_share_token.rb
293
297
  - app/commands/decidim/admin/destroy_static_page.rb
294
298
  - app/commands/decidim/admin/destroy_static_page_topic.rb
295
299
  - app/commands/decidim/admin/hide_resource.rb
@@ -317,7 +321,6 @@ files:
317
321
  - app/commands/decidim/admin/update_content_block.rb
318
322
  - app/commands/decidim/admin/update_help_sections.rb
319
323
  - app/commands/decidim/admin/update_newsletter.rb
320
- - app/commands/decidim/admin/update_oauth_application.rb
321
324
  - app/commands/decidim/admin/update_organization.rb
322
325
  - app/commands/decidim/admin/update_organization_appearance.rb
323
326
  - app/commands/decidim/admin/update_organization_tos_version.rb
@@ -356,9 +359,10 @@ files:
356
359
  - app/controllers/decidim/admin/logs_controller.rb
357
360
  - app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
358
361
  - app/controllers/decidim/admin/managed_users/promotions_controller.rb
362
+ - app/controllers/decidim/admin/metrics_controller.rb
359
363
  - app/controllers/decidim/admin/moderations_controller.rb
364
+ - app/controllers/decidim/admin/newsletter_templates_controller.rb
360
365
  - app/controllers/decidim/admin/newsletters_controller.rb
361
- - app/controllers/decidim/admin/oauth_applications_controller.rb
362
366
  - app/controllers/decidim/admin/officializations_controller.rb
363
367
  - app/controllers/decidim/admin/organization_appearance_controller.rb
364
368
  - app/controllers/decidim/admin/organization_controller.rb
@@ -367,6 +371,7 @@ files:
367
371
  - app/controllers/decidim/admin/resource_permissions_controller.rb
368
372
  - app/controllers/decidim/admin/scope_types_controller.rb
369
373
  - app/controllers/decidim/admin/scopes_controller.rb
374
+ - app/controllers/decidim/admin/share_tokens_controller.rb
370
375
  - app/controllers/decidim/admin/static_page_topics_controller.rb
371
376
  - app/controllers/decidim/admin/static_pages_controller.rb
372
377
  - app/controllers/decidim/admin/user_groups_controller.rb
@@ -386,7 +391,6 @@ files:
386
391
  - app/forms/decidim/admin/impersonate_user_form.rb
387
392
  - app/forms/decidim/admin/managed_user_promotion_form.rb
388
393
  - app/forms/decidim/admin/newsletter_form.rb
389
- - app/forms/decidim/admin/oauth_application_form.rb
390
394
  - app/forms/decidim/admin/officialization_form.rb
391
395
  - app/forms/decidim/admin/organization_appearance_form.rb
392
396
  - app/forms/decidim/admin/organization_form.rb
@@ -419,8 +423,10 @@ files:
419
423
  - app/helpers/decidim/admin/newsletters_helper.rb
420
424
  - app/helpers/decidim/admin/paginable/per_page_helper.rb
421
425
  - app/helpers/decidim/admin/resource_permissions_helper.rb
426
+ - app/helpers/decidim/admin/resource_scope_helper.rb
422
427
  - app/helpers/decidim/admin/scopes_helper.rb
423
428
  - app/helpers/decidim/admin/settings_helper.rb
429
+ - app/helpers/decidim/admin/uploader_image_dimensions_helper.rb
424
430
  - app/helpers/decidim/admin/user_roles_helper.rb
425
431
  - app/jobs/decidim/admin/application_job.rb
426
432
  - app/jobs/decidim/admin/expire_impersonation_job.rb
@@ -429,8 +435,11 @@ files:
429
435
  - app/jobs/decidim/admin/newsletter_job.rb
430
436
  - app/jobs/decidim/admin/verify_user_group_from_csv_job.rb
431
437
  - app/mailers/decidim/admin/application_mailer.rb
438
+ - app/models/decidim/admin/fake_newsletter.rb
432
439
  - app/permissions/decidim/admin/permissions.rb
433
440
  - app/permissions/decidim/admin/user_manager_permissions.rb
441
+ - app/presenters/decidim/admin/dashboard_metric_charts_presenter.rb
442
+ - app/queries/decidim/admin/active_users_counter.rb
434
443
  - app/queries/decidim/admin/newsletter_recipients.rb
435
444
  - app/queries/decidim/admin/user_filter.rb
436
445
  - app/queries/decidim/admin/user_groups_evaluation.rb
@@ -481,25 +490,29 @@ files:
481
490
  - app/views/decidim/admin/managed_users/impersonation_logs/index.html.erb
482
491
  - app/views/decidim/admin/managed_users/promotions/_form.html.erb
483
492
  - app/views/decidim/admin/managed_users/promotions/new.html.erb
493
+ - app/views/decidim/admin/metrics/_metrics.html.erb
494
+ - app/views/decidim/admin/metrics/index.html.erb
484
495
  - app/views/decidim/admin/moderations/_report.html.erb
485
496
  - app/views/decidim/admin/moderations/index.html.erb
497
+ - app/views/decidim/admin/newsletter_templates/index.html.erb
498
+ - app/views/decidim/admin/newsletter_templates/show.html.erb
486
499
  - app/views/decidim/admin/newsletters/_form.html.erb
487
500
  - app/views/decidim/admin/newsletters/edit.html.erb
488
501
  - app/views/decidim/admin/newsletters/index.html.erb
489
502
  - app/views/decidim/admin/newsletters/new.html.erb
490
503
  - app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb
491
504
  - app/views/decidim/admin/newsletters/show.html.erb
492
- - app/views/decidim/admin/oauth_applications/_form.html.erb
493
- - app/views/decidim/admin/oauth_applications/edit.html.erb
494
- - app/views/decidim/admin/oauth_applications/index.html.erb
495
- - app/views/decidim/admin/oauth_applications/new.html.erb
496
- - app/views/decidim/admin/oauth_applications/show.html.erb
505
+ - app/views/decidim/admin/officializations/_show_email_modal.html.erb
497
506
  - app/views/decidim/admin/officializations/index.html.erb
498
507
  - app/views/decidim/admin/officializations/new.html.erb
508
+ - app/views/decidim/admin/officializations/show_email.html.erb
499
509
  - app/views/decidim/admin/organization/_form.html.erb
500
510
  - app/views/decidim/admin/organization/edit.html.erb
501
511
  - app/views/decidim/admin/organization_appearance/_form.html.erb
502
512
  - app/views/decidim/admin/organization_appearance/edit.html.erb
513
+ - app/views/decidim/admin/organization_appearance/form/_colors.html.erb
514
+ - app/views/decidim/admin/organization_appearance/form/_images.html.erb
515
+ - app/views/decidim/admin/organization_appearance/form/_minimap.html.erb
503
516
  - app/views/decidim/admin/organization_homepage/edit.html.erb
504
517
  - app/views/decidim/admin/organization_homepage_content_blocks/edit.html.erb
505
518
  - app/views/decidim/admin/participatory_space_private_users/_form.html.erb
@@ -516,7 +529,9 @@ files:
516
529
  - app/views/decidim/admin/scopes/edit.html.erb
517
530
  - app/views/decidim/admin/scopes/index.html.erb
518
531
  - app/views/decidim/admin/scopes/new.html.erb
532
+ - app/views/decidim/admin/share_tokens/_share_tokens.html.erb
519
533
  - app/views/decidim/admin/shared/_filters.html.erb
534
+ - app/views/decidim/admin/shared/_gallery.html.erb
520
535
  - app/views/decidim/admin/static_page_topics/_form.html.erb
521
536
  - app/views/decidim/admin/static_page_topics/edit.html.erb
522
537
  - app/views/decidim/admin/static_page_topics/new.html.erb
@@ -532,6 +547,7 @@ files:
532
547
  - app/views/decidim/admin/users/_form.html.erb
533
548
  - app/views/decidim/admin/users/index.html.erb
534
549
  - app/views/decidim/admin/users/new.html.erb
550
+ - app/views/decidim/admin/users_statistics/_users_count.html.erb
535
551
  - app/views/layouts/decidim/admin/_application.html.erb
536
552
  - app/views/layouts/decidim/admin/_callouts_full.html.erb
537
553
  - app/views/layouts/decidim/admin/_header.html.erb
@@ -544,38 +560,74 @@ files:
544
560
  - app/views/layouts/decidim/admin/pages.html.erb
545
561
  - app/views/layouts/decidim/admin/settings.html.erb
546
562
  - app/views/layouts/decidim/admin/users.html.erb
563
+ - config/locales/am-ET.yml
547
564
  - config/locales/ar-SA.yml
548
565
  - config/locales/ar.yml
566
+ - config/locales/bg-BG.yml
567
+ - config/locales/bg.yml
549
568
  - config/locales/ca.yml
550
569
  - config/locales/cs-CZ.yml
551
570
  - config/locales/cs.yml
571
+ - config/locales/da-DK.yml
572
+ - config/locales/da.yml
552
573
  - config/locales/de.yml
553
574
  - config/locales/el-GR.yml
554
575
  - config/locales/el.yml
555
576
  - config/locales/en.yml
556
577
  - config/locales/eo-UY.yml
578
+ - config/locales/eo.yml
557
579
  - config/locales/es-MX.yml
558
580
  - config/locales/es-PY.yml
559
581
  - config/locales/es.yml
582
+ - config/locales/et-EE.yml
583
+ - config/locales/et.yml
560
584
  - config/locales/eu.yml
561
585
  - config/locales/fi-pl.yml
562
586
  - config/locales/fi-plain.yml
563
587
  - config/locales/fi.yml
588
+ - config/locales/fr-CA.yml
564
589
  - config/locales/fr.yml
590
+ - config/locales/ga-IE.yml
565
591
  - config/locales/gl.yml
592
+ - config/locales/hr-HR.yml
593
+ - config/locales/hr.yml
566
594
  - config/locales/hu.yml
567
595
  - config/locales/id-ID.yml
568
596
  - config/locales/is-IS.yml
597
+ - config/locales/is.yml
569
598
  - config/locales/it.yml
599
+ - config/locales/ja-JP.yml
600
+ - config/locales/ja.yml
601
+ - config/locales/ko-KR.yml
602
+ - config/locales/ko.yml
603
+ - config/locales/lt-LT.yml
604
+ - config/locales/lt.yml
605
+ - config/locales/lv.yml
606
+ - config/locales/mt-MT.yml
607
+ - config/locales/mt.yml
570
608
  - config/locales/nl.yml
571
609
  - config/locales/no.yml
610
+ - config/locales/om-ET.yml
572
611
  - config/locales/pl.yml
573
612
  - config/locales/pt-BR.yml
574
613
  - config/locales/pt.yml
614
+ - config/locales/ro-RO.yml
575
615
  - config/locales/ru.yml
616
+ - config/locales/si-LK.yml
617
+ - config/locales/sk-SK.yml
618
+ - config/locales/sk.yml
619
+ - config/locales/sl.yml
620
+ - config/locales/so-SO.yml
621
+ - config/locales/sr-CS.yml
576
622
  - config/locales/sv.yml
623
+ - config/locales/sw-KE.yml
624
+ - config/locales/ti-ER.yml
577
625
  - config/locales/tr-TR.yml
578
626
  - config/locales/uk.yml
627
+ - config/locales/vi-VN.yml
628
+ - config/locales/vi.yml
629
+ - config/locales/zh-CN.yml
630
+ - config/locales/zh-TW.yml
579
631
  - config/routes.rb
580
632
  - db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
581
633
  - db/migrate/20170714083651_rename_participatory_process_user_roles_table.rb
@@ -612,7 +664,7 @@ homepage: https://github.com/decidim/decidim
612
664
  licenses:
613
665
  - AGPL-3.0
614
666
  metadata: {}
615
- post_install_message:
667
+ post_install_message:
616
668
  rdoc_options: []
617
669
  require_paths:
618
670
  - lib
@@ -620,15 +672,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
620
672
  requirements:
621
673
  - - ">="
622
674
  - !ruby/object:Gem::Version
623
- version: '2.5'
675
+ version: '2.6'
624
676
  required_rubygems_version: !ruby/object:Gem::Requirement
625
677
  requirements:
626
678
  - - ">="
627
679
  - !ruby/object:Gem::Version
628
680
  version: '0'
629
681
  requirements: []
630
- rubygems_version: 3.1.2
631
- signing_key:
682
+ rubygems_version: 3.0.3
683
+ signing_key:
632
684
  specification_version: 4
633
685
  summary: Decidim organization administration
634
686
  test_files: []