decidim-decidim_awesome 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +62 -35
  3. data/Rakefile +11 -12
  4. data/app/cells/decidim/decidim_awesome/content_blocks/map/error.erb +11 -0
  5. data/app/cells/decidim/decidim_awesome/content_blocks/map/show.erb +1 -61
  6. data/app/cells/decidim/decidim_awesome/content_blocks/map_cell.rb +11 -0
  7. data/app/cells/decidim/decidim_awesome/content_blocks/map_form/show.erb +8 -4
  8. data/app/commands/decidim/decidim_awesome/admin/create_custom_redirect.rb +51 -0
  9. data/app/commands/decidim/decidim_awesome/admin/destroy_custom_redirect.rb +47 -0
  10. data/app/commands/decidim/decidim_awesome/admin/update_custom_redirect.rb +49 -0
  11. data/app/commands/decidim/decidim_awesome/create_editor_image.rb +12 -5
  12. data/app/controllers/concerns/decidim/decidim_awesome/not_found_redirect.rb +58 -0
  13. data/app/controllers/decidim/decidim_awesome/admin/checks_controller.rb +15 -22
  14. data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +9 -1
  15. data/app/controllers/decidim/decidim_awesome/admin/custom_redirects_controller.rb +91 -0
  16. data/app/controllers/decidim/decidim_awesome/admin/menu_hacks_controller.rb +5 -8
  17. data/app/controllers/decidim/decidim_awesome/blank_component_controller.rb +19 -0
  18. data/app/controllers/decidim/decidim_awesome/editor_images_controller.rb +2 -3
  19. data/app/controllers/decidim/decidim_awesome/iframe_component/iframe_controller.rb +1 -1
  20. data/app/controllers/decidim/decidim_awesome/map_component/map_controller.rb +2 -6
  21. data/app/forms/decidim/decidim_awesome/admin/config_form.rb +2 -0
  22. data/app/forms/decidim/decidim_awesome/admin/custom_redirect_form.rb +45 -0
  23. data/app/forms/decidim/decidim_awesome/editor_image_form.rb +3 -2
  24. data/app/forms/decidim/decidim_awesome/proposals/proposal_wizard_create_step_form_override.rb +38 -0
  25. data/app/helpers/decidim/decidim_awesome/admin/config_constraints_helpers.rb +22 -9
  26. data/app/helpers/decidim/decidim_awesome/admin/system_checker_helpers.rb +36 -0
  27. data/app/helpers/decidim/decidim_awesome/map_helper.rb +18 -12
  28. data/app/helpers/decidim/decidim_awesome/proposals/application_helper_override.rb +2 -2
  29. data/app/jobs/decidim/decidim_awesome/migrate_legacy_images_job.rb +106 -0
  30. data/app/models/decidim/decidim_awesome/editor_image.rb +4 -9
  31. data/app/packs/entrypoints/decidim_admin_decidim_awesome.js +5 -0
  32. data/app/packs/entrypoints/decidim_admin_decidim_awesome.scss +1 -0
  33. data/app/packs/entrypoints/decidim_admin_decidim_awesome_custom_fields.js +2 -0
  34. data/app/packs/entrypoints/decidim_decidim_awesome.js +9 -0
  35. data/app/packs/entrypoints/decidim_decidim_awesome.scss +1 -0
  36. data/app/packs/entrypoints/decidim_decidim_awesome_admin_form_exit_warn.js +1 -0
  37. data/app/packs/entrypoints/decidim_decidim_awesome_custom_fields.js +1 -0
  38. data/app/packs/entrypoints/decidim_decidim_awesome_iframe.scss +1 -0
  39. data/app/packs/entrypoints/decidim_decidim_awesome_map.js +5 -0
  40. data/app/packs/entrypoints/decidim_decidim_awesome_map.scss +1 -0
  41. data/app/{assets → packs}/images/decidim/decidim_awesome/platoniq-logo.png +0 -0
  42. data/app/{assets/javascripts/decidim/decidim_awesome/admin/auto_edit.js.es6 → packs/src/decidim/decidim_awesome/admin/auto_edit.js} +39 -34
  43. data/app/packs/src/decidim/decidim_awesome/admin/check_redirections.js +48 -0
  44. data/app/{assets/javascripts/decidim/decidim_awesome/admin/codemirror.js.es6 → packs/src/decidim/decidim_awesome/admin/codemirror.js} +4 -4
  45. data/app/packs/src/decidim/decidim_awesome/admin/constraints.js +55 -0
  46. data/app/{assets/javascripts/decidim/decidim_awesome/admin/form_builder.js.es6 → packs/src/decidim/decidim_awesome/admin/custom_fields_builder.js} +23 -26
  47. data/app/{assets/javascripts/decidim/decidim_awesome/admin/form_exit_warn.js.es6 → packs/src/decidim/decidim_awesome/admin/form_exit_warn.js} +0 -2
  48. data/app/{assets/javascripts/decidim/decidim_awesome/admin/user_picker.js.es6 → packs/src/decidim/decidim_awesome/admin/user_picker.js} +3 -3
  49. data/app/packs/src/decidim/decidim_awesome/awesome_admin.js +23 -0
  50. data/app/packs/src/decidim/decidim_awesome/awesome_application.js +17 -0
  51. data/app/{assets/javascripts/decidim/decidim_awesome/awesome_map/api_fetcher.js.es6 → packs/src/decidim/decidim_awesome/awesome_map/api/api_fetcher.js} +1 -15
  52. data/app/packs/src/decidim/decidim_awesome/awesome_map/api/fetcher.js +131 -0
  53. data/app/packs/src/decidim/decidim_awesome/awesome_map/api/meetings_fetcher.js +59 -0
  54. data/app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js +52 -0
  55. data/app/packs/src/decidim/decidim_awesome/awesome_map/awesome_map.js +130 -0
  56. data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/controller.js +112 -0
  57. data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/meetings_controller.js +31 -0
  58. data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/proposals_controller.js +88 -0
  59. data/app/packs/src/decidim/decidim_awesome/awesome_map/controls_ui.js +221 -0
  60. data/app/packs/src/decidim/decidim_awesome/awesome_map/load_map.js +51 -0
  61. data/app/packs/src/decidim/decidim_awesome/editors/editor.js +190 -0
  62. data/app/{assets/javascripts/decidim/decidim_awesome/editors/tabs_focus.js.es6 → packs/src/decidim/decidim_awesome/editors/tabs_focus.js} +4 -6
  63. data/app/{assets/javascripts/decidim/decidim_awesome/forms/autosave.js.es6 → packs/src/decidim/decidim_awesome/forms/autosave.js} +20 -17
  64. data/app/packs/src/decidim/decidim_awesome/forms/custom_fields_renderer.js +207 -0
  65. data/app/{assets/javascripts/decidim/decidim_awesome/forms/rich_text_plugin.js.es6 → packs/src/decidim/decidim_awesome/forms/rich_text_plugin.js} +21 -20
  66. data/app/packs/src/decidim/decidim_awesome/proposals/custom_fields.js +22 -0
  67. data/app/packs/src/decidim/decidim_awesome/proposals/images.js +25 -0
  68. data/{vendor/assets/javascripts → app/packs/src/vendor}/image-resize.min.js +0 -0
  69. data/{vendor/assets/javascripts → app/packs/src/vendor}/image-upload.min.js +0 -0
  70. data/{vendor/assets/javascripts → app/packs/src/vendor}/jquery.truncate.js +0 -0
  71. data/app/packs/src/vendor/leaflet.featuregroup.subgroup.js +184 -0
  72. data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/admin/auto_edits.scss +2 -1
  73. data/app/packs/stylesheets/decidim/decidim_awesome/admin/check_redirections.scss +28 -0
  74. data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +8 -6
  75. data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/admin/constraints.scss +13 -13
  76. data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/admin/custom_fields.scss +37 -10
  77. data/app/packs/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +41 -0
  78. data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin.scss +71 -0
  79. data/app/packs/stylesheets/decidim/decidim_awesome/awesome_application.scss +19 -0
  80. data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/awesome_iframe/iframe.scss +3 -3
  81. data/app/packs/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +176 -0
  82. data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/editors/markdown_editor.scss +6 -4
  83. data/app/packs/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +58 -0
  84. data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/forms/autosave.scss +2 -2
  85. data/app/packs/stylesheets/vendor/select2-foundation-theme.scss +348 -0
  86. data/app/presenters/decidim/decidim_awesome/menu_item_presenter_override.rb +25 -0
  87. data/app/presenters/decidim/decidim_awesome/menu_presenter_override.rb +23 -0
  88. data/app/uploaders/decidim/cw/decidim_awesome/image_uploader.rb +26 -0
  89. data/app/uploaders/decidim/decidim_awesome/image_uploader.rb +4 -16
  90. data/app/views/decidim/decidim_awesome/admin/checks/index.html.erb +28 -22
  91. data/app/views/decidim/decidim_awesome/admin/config/_constraints.html.erb +1 -1
  92. data/app/views/decidim/decidim_awesome/admin/config/_form_admins.html.erb +1 -1
  93. data/app/views/decidim/decidim_awesome/admin/config/_form_editors.html.erb +1 -0
  94. data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_custom_fields.html.erb +1 -1
  95. data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +7 -6
  96. data/app/views/decidim/decidim_awesome/admin/config/_modal.html.erb +1 -1
  97. data/app/views/decidim/decidim_awesome/admin/config/show.html.erb +3 -3
  98. data/app/views/decidim/decidim_awesome/admin/constraints/new.html.erb +1 -1
  99. data/app/views/decidim/decidim_awesome/admin/custom_redirects/_form.html.erb +6 -0
  100. data/app/views/decidim/decidim_awesome/admin/custom_redirects/edit.html.erb +13 -0
  101. data/app/views/decidim/decidim_awesome/admin/custom_redirects/index.html.erb +37 -0
  102. data/app/views/decidim/decidim_awesome/admin/custom_redirects/new.html.erb +13 -0
  103. data/app/views/decidim/decidim_awesome/admin/menu_hacks/edit.html.erb +1 -1
  104. data/app/views/decidim/decidim_awesome/admin/menu_hacks/new.html.erb +1 -1
  105. data/app/views/decidim/decidim_awesome/admin/proposals/_editor.html.erb +5 -3
  106. data/app/views/decidim/decidim_awesome/iframe_component/iframe/show.html.erb +1 -1
  107. data/app/views/decidim/decidim_awesome/map_component/map/_api_ready.html.erb +3 -0
  108. data/app/views/decidim/decidim_awesome/map_component/map/_map_template.html.erb +68 -0
  109. data/app/views/decidim/decidim_awesome/map_component/map/{error.erb → error.html.erb} +2 -0
  110. data/app/views/decidim/decidim_awesome/map_component/map/show.html.erb +3 -67
  111. data/app/views/decidim/proposals/admin/proposals/_form.html.erb +1 -1
  112. data/app/views/layouts/decidim/admin/decidim_awesome.html.erb +13 -9
  113. data/app/views/layouts/decidim/decidim_awesome/_awesome_config.html.erb +0 -2
  114. data/app/views/{v0.24 → v0.25}/decidim/proposals/collaborative_drafts/_show.html.erb +0 -0
  115. data/app/views/{v0.23 → v0.25}/layouts/decidim/_head.html.erb +12 -10
  116. data/app/views/v0.25/layouts/decidim/admin/_header.html.erb +11 -0
  117. data/app/views/{v0.23 → v0.26}/decidim/proposals/collaborative_drafts/_show.html.erb +1 -7
  118. data/app/views/{v0.24 → v0.26}/layouts/decidim/_head.html.erb +16 -10
  119. data/app/views/v0.26/layouts/decidim/admin/_header.html.erb +11 -0
  120. data/config/assets.rb +46 -0
  121. data/config/i18n-tasks.yml +6 -0
  122. data/config/locales/ca.yml +75 -13
  123. data/config/locales/cs.yml +63 -1
  124. data/config/locales/en.yml +67 -1
  125. data/config/locales/es.yml +63 -1
  126. data/config/locales/eu.yml +0 -232
  127. data/config/locales/fr.yml +115 -53
  128. data/config/locales/it.yml +63 -1
  129. data/config/locales/ja.yml +64 -3
  130. data/config/locales/nl.yml +5 -46
  131. data/config/locales/pt-BR.yml +346 -0
  132. data/config/locales/pt-PT.yml +7 -0
  133. data/config/locales/pt.yml +7 -0
  134. data/config/locales/sv.yml +67 -182
  135. data/lib/decidim/decidim_awesome/admin_engine.rb +10 -15
  136. data/lib/decidim/decidim_awesome/awesome.rb +214 -0
  137. data/lib/decidim/decidim_awesome/awesome_helpers.rb +0 -7
  138. data/lib/decidim/decidim_awesome/checksums.yml +13 -16
  139. data/lib/decidim/decidim_awesome/config.rb +1 -0
  140. data/lib/decidim/decidim_awesome/content_parsers/editor_images_parser.rb +39 -0
  141. data/lib/decidim/decidim_awesome/engine.rb +27 -55
  142. data/lib/decidim/decidim_awesome/iframe_component/admin_engine.rb +23 -0
  143. data/lib/decidim/decidim_awesome/iframe_component/component.rb +5 -5
  144. data/lib/decidim/decidim_awesome/map_component/admin_engine.rb +23 -0
  145. data/lib/decidim/decidim_awesome/map_component/component.rb +5 -4
  146. data/lib/decidim/decidim_awesome/map_component/engine.rb +34 -0
  147. data/lib/decidim/decidim_awesome/menu_hacker.rb +1 -0
  148. data/lib/decidim/decidim_awesome/test/factories.rb +2 -2
  149. data/lib/decidim/decidim_awesome/test/initializer.rb +25 -0
  150. data/lib/decidim/decidim_awesome/test/layouts/decidim/_head.html.erb +30 -2
  151. data/lib/decidim/decidim_awesome/test/layouts/decidim/admin/_header.html.erb +7 -2
  152. data/lib/decidim/decidim_awesome/test/shared_examples/config_examples.rb +18 -0
  153. data/lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb +13 -0
  154. data/lib/decidim/decidim_awesome/test/shared_examples/custom_redirects_contexts.rb +47 -0
  155. data/lib/decidim/decidim_awesome/test/shared_examples/menu_hack_contexts.rb +0 -17
  156. data/lib/decidim/decidim_awesome/test/shared_examples/scoped_admins_examples.rb +9 -17
  157. data/lib/decidim/decidim_awesome/test/shared_examples/summary_examples.rb +202 -0
  158. data/lib/decidim/decidim_awesome/version.rb +2 -2
  159. data/lib/decidim/decidim_awesome.rb +4 -152
  160. data/lib/tasks/decidim_awesome_active_storage_migrations_tasks.rake +37 -0
  161. data/lib/tasks/decidim_awesome_webpacker_tasks.rake +62 -0
  162. metadata +111 -113
  163. data/app/assets/config/decidim_admin_decidim_awesome_manifest.css +0 -3
  164. data/app/assets/config/decidim_admin_decidim_awesome_manifest.js +0 -2
  165. data/app/assets/config/decidim_decidim_awesome_manifest.css +0 -5
  166. data/app/assets/config/decidim_decidim_awesome_manifest.js +0 -4
  167. data/app/assets/config/legacy_decidim_admin_decidim_awesome_manifest.js +0 -2
  168. data/app/assets/config/legacy_decidim_decidim_awesome_manifest.js +0 -4
  169. data/app/assets/javascripts/decidim/decidim_awesome/admin/constraints.js.es6 +0 -54
  170. data/app/assets/javascripts/decidim/decidim_awesome/admin/legacy_form_builder.js.es6 +0 -80
  171. data/app/assets/javascripts/decidim/decidim_awesome/awesome_admin.js +0 -7
  172. data/app/assets/javascripts/decidim/decidim_awesome/awesome_application.js +0 -3
  173. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/categories.js.es6 +0 -25
  174. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/hashtags.js.es6 +0 -48
  175. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/layers.js.es6 +0 -107
  176. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/load_map.js.es6 +0 -15
  177. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/map.js.es6 +0 -207
  178. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/markers.js.es6 +0 -56
  179. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/meetings.js.es6 +0 -132
  180. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/proposals.js.es6 +0 -107
  181. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/utilities.js.es6 +0 -57
  182. data/app/assets/javascripts/decidim/decidim_awesome/editors/legacy_quill_editor.js.es6 +0 -172
  183. data/app/assets/javascripts/decidim/decidim_awesome/editors/quill_editor.js.es6 +0 -185
  184. data/app/assets/javascripts/decidim/decidim_awesome/forms/custom_fields_builder.js.es6 +0 -211
  185. data/app/assets/javascripts/decidim/decidim_awesome/legacy_admin.js +0 -7
  186. data/app/assets/javascripts/decidim/decidim_awesome/legacy_application.js +0 -3
  187. data/app/assets/javascripts/decidim/decidim_awesome/proposals/custom_fields.js.es6 +0 -21
  188. data/app/assets/javascripts/decidim/decidim_awesome/proposals/images.js.es6 +0 -25
  189. data/app/assets/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +0 -35
  190. data/app/assets/stylesheets/decidim/decidim_awesome/awesome_admin.scss +0 -64
  191. data/app/assets/stylesheets/decidim/decidim_awesome/awesome_application.scss +0 -22
  192. data/app/assets/stylesheets/decidim/decidim_awesome/awesome_map/leaflet.scss.erb +0 -18
  193. data/app/assets/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +0 -160
  194. data/app/assets/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +0 -22
  195. data/app/awesome_overrides/forms/decidim/proposals/proposal_wizard_create_step_form_override.rb +0 -28
  196. data/app/awesome_overrides/presenters/decidim/menu_presenter_override.rb +0 -39
  197. data/app/controllers/concerns/decidim/decidim_awesome/admin_not_found_redirect.rb +0 -39
  198. data/app/controllers/decidim/decidim_awesome/iframe_component/application_controller.rb +0 -15
  199. data/app/controllers/decidim/decidim_awesome/map_component/application_controller.rb +0 -15
  200. data/app/views/v0.23/layouts/decidim/admin/_header.html.erb +0 -12
  201. data/app/views/v0.24/layouts/decidim/admin/_header.html.erb +0 -12
  202. data/lib/decidim/decidim_awesome/test/themes/css.lvh.me.css +0 -3
  203. data/lib/decidim/decidim_awesome/test/themes/erb.lvh.me.scss.erb +0 -2
  204. data/lib/decidim/decidim_awesome/test/themes/scss.lvh.me.scss +0 -1
  205. data/lib/decidim/decidim_awesome/test/themes/test-theme/body.scss +0 -4
  206. data/vendor/assets/images/layers-2x.png +0 -0
  207. data/vendor/assets/images/layers.png +0 -0
  208. data/vendor/assets/images/marker-icon.png +0 -0
  209. data/vendor/assets/javascripts/codemirror-4.inline-attachment.js +0 -89
  210. data/vendor/assets/javascripts/codemirror.js +0 -9801
  211. data/vendor/assets/javascripts/delta.min.js +0 -405
  212. data/vendor/assets/javascripts/delta.min.js.map +0 -1
  213. data/vendor/assets/javascripts/europa.min.js +0 -4
  214. data/vendor/assets/javascripts/form-builder.min.js +0 -19
  215. data/vendor/assets/javascripts/form-render.min.js +0 -19
  216. data/vendor/assets/javascripts/form-storage.js +0 -824
  217. data/vendor/assets/javascripts/highlight.min.js +0 -44
  218. data/vendor/assets/javascripts/inline-attachment.js +0 -399
  219. data/vendor/assets/javascripts/inscrybmde.min.js +0 -7
  220. data/vendor/assets/javascripts/jquery-ui.min.js +0 -13
  221. data/vendor/assets/javascripts/jquery.inline-attachment.js +0 -66
  222. data/vendor/assets/javascripts/jsrender.min.js +0 -4
  223. data/vendor/assets/javascripts/keymap/sublime.js +0 -720
  224. data/vendor/assets/javascripts/leaflet.featuregroup.subgroup.js +0 -6
  225. data/vendor/assets/javascripts/mode/css/css.js +0 -864
  226. data/vendor/assets/javascripts/select2.js +0 -6147
  227. data/vendor/assets/langs/en-US.lang +0 -110
  228. data/vendor/assets/stylesheets/codemirror.css +0 -350
  229. data/vendor/assets/stylesheets/default.min.css +0 -1
  230. data/vendor/assets/stylesheets/foundation.min.css +0 -1
  231. data/vendor/assets/stylesheets/github.min.css +0 -2
  232. data/vendor/assets/stylesheets/inscrybmde.min.scss +0 -194
  233. data/vendor/assets/stylesheets/jquery-ui.min.css +0 -7
  234. data/vendor/assets/stylesheets/select2-foundation-theme.css +0 -249
  235. data/vendor/assets/stylesheets/select2.css +0 -515
@@ -7,198 +7,116 @@ sv:
7
7
  allow_images_in_proposals: Tillåt bilder i förslagsfältet
8
8
  allow_images_in_small_editor: Tillåt bilder i den minimala HTML-editorn
9
9
  auto_save_forms: Spara formulär automatiskt i lokal lagring
10
- intergram_auto_no_response: A message that is sent one minute after the user sends its first message and no response was received
11
- intergram_auto_response: A message that is sent immediately after the user sends its first message
12
10
  intergram_chat_id: Chatt ID
13
11
  intergram_color: Huvudfärg för widget
14
- intergram_for_admins: Enable Intergram Chat in the admin backend
15
12
  intergram_intro_message: Första meddelandet när användaren öppnar chatten för första gången
16
13
  intergram_require_login: Endast för inloggade användare
17
- intergram_title_closed: Closed chat title
18
- intergram_title_open: Opened chat title
19
- intergram_use_floating_button: If checked, the closed chat is always a button instead of a text
20
- proposal_custom_fields: Custom fields %{id}
21
- scoped_admins: Scoped admins group %{id}
22
- scoped_styles: Custom styles %{id}
23
- use_markdown_editor: Use a Markdown editor instead of the HTML editor
14
+ proposal_custom_fields: Tilläggsfält %{id}
15
+ scoped_styles: Tilläggsstilar %{id}
24
16
  constraint:
25
- component_id: or specifically in
26
- component_manifest: Only in components of type
27
- participatory_space_manifest: Apply to participatory spaces of type
17
+ component_id: eller specifikt i
28
18
  participatory_space_slug: Endast i
19
+ custom_redirect:
20
+ active: Aktiv
21
+ destination: Mål
22
+ origin: Ursprung
23
+ status: Status
29
24
  menu:
30
25
  position: Position
31
- raw_label: Etikett
32
- target: Opens in
26
+ raw_label: Text
27
+ target: Öppna i
33
28
  url: Webbadress
34
29
  visibility: Synlighet
35
30
  proposal:
36
- proposal_custom_fields: Custom fields
31
+ proposal_custom_fields: Tilläggsfält
37
32
  decidim:
38
33
  admin:
39
34
  menu:
40
35
  decidim_awesome: Decidim Awesome
41
36
  components:
42
37
  awesome_iframe:
43
- name: Fullscreen Iframe
38
+ name: Fullskärm Iframe
44
39
  settings:
45
40
  global:
46
41
  announcement: Meddelande
47
42
  iframe: Iframe kod
48
- iframe_help: 'Put your code as html: <iframe width="100%" height="700" frameBorder="0" allowFullscreen src="..."></iframe>. Content will be sanitized from other HTML tags. Ensure to use 100% as width to fill the screen.'
49
- no_margins: No margins between the iframe and the rest of the page
50
- viewport_width: Limit maximum width to the application viewport
51
43
  step:
52
- announcement: Announcement
44
+ announcement: Meddelande
53
45
  iframe: Iframe kod
54
46
  awesome_map:
55
47
  name: Karta
56
48
  settings:
57
49
  global:
58
50
  announcement: Meddelande
59
- collapse: Start with collapsed menu
60
- map_center: Map center (Latitude, Longitude)
61
- map_center_help: 'Use decimal points (ie: 41.38879, 2.15899). Leave it empty to automatically fit all the markers'
62
- map_height: Map height (px)
63
- map_zoom: Zoom (any number betwen 0 and 18)
64
- map_zoom_help: Only applies if a map center is defined
65
- menu_amendments: Show amendments
66
- menu_hashtags: Show Hasthag search menu
51
+ map_height: Karthöjd (px)
52
+ menu_amendments: Visa ändringsförslag
67
53
  menu_meetings: Visa möten
68
- truncate: Maximum characters for popup descriptions
69
54
  step:
70
55
  announcement: Meddelande
71
56
  show_accepted: Visa godkända förslag
72
57
  show_evaluating: Visa förslag som utvärderas
73
- show_not_answered: Show not answered proposals
74
- show_rejected: Show rejected proposals
75
- show_withdrawn: Show withdrawn proposals
76
58
  decidim_awesome:
77
59
  admin:
78
60
  checks:
79
61
  index:
80
- admin_head_tags: Awesome tags included in the admin application header
81
- decidim-admin: From Admin module
82
- decidim-core: From Core module
83
- decidim-proposals: From Proposals module
62
+ decidim-admin: Från Admin modul
63
+ decidim-core: Från Core modul
64
+ decidim-proposals: Från Proposals modul
84
65
  decidim_version: Decidim version %{version}
85
- errors:
86
- CSS: Head does not contain the required <link> stylesheet entries. To solve it, you can manually add it to your custom _head.html.erb
87
- JavaScript: Head does not contain the required <script> Javascript entries. To solve it, you can manually add it to your custom admin/_header.html.erb
88
- head_tags: Awesome tags included in the application header
89
- title: System compatibility checks
66
+ images_migrated: Bilder migrerade till ActiveStorage
90
67
  config:
91
- caution: 'NOTE: This feature heavily modifies some default behaviours that might lead to unexpected results. Use it with caution!'
92
68
  constraints:
93
- add_condition: Add case
94
- always: Always
95
- cannot_be_destroyed: Sorry, this cannot be deleted. This configuration needs at least one constraint.
96
- delete: Delete
97
- edit: Edit
98
- title: 'Applicable only in these cases:'
99
- create_proposal_custom_field:
100
- error: Error creating a new "custom field" box! %{error}
101
- success: '"custom field" box %{key} created successfully'
102
- create_scoped_admin:
103
- error: Error creating a new Admin group! %{error}
104
- success: Admin group %{key} created successfully
105
- create_scoped_style:
106
- error: Error creating a new CSS box! %{error}
107
- success: CSS box %{key} created successfully
108
- destroy_proposal_custom_field:
109
- error: Error removing "custom field" box! %{error}
110
- success: '"custom field" box %{key} removed successfully'
111
- destroy_scoped_admin:
112
- error: Error removing Admin group! %{error}
113
- success: Admin group %{key} removed successfully
114
- destroy_scoped_style:
115
- error: Error removing CSS box! %{error}
116
- success: CSS box %{key} removed successfully
69
+ add_condition: Lägg till begränsning
70
+ always: Alltid
71
+ delete: Radera
72
+ edit: Redigera
117
73
  form:
118
- edit_label: Rename label
119
- errors:
120
- incorrect_css: 'CSS in box #%{key} is invalid'
121
- incorrect_json: 'JSON definition in box #%{key} is invalid'
74
+ edit_label: Byt namn på etikett
122
75
  help:
123
- allow_images_in_full_editor: This will add an image uploader icon in all the editors WYSIWYG with the full toolbar enabled.
124
- allow_images_in_markdown_editor: This will allow markdown editor to upload images by copy & paste or drag & drop.
125
- allow_images_in_proposals: This will allow to upload images in the proposals editor, available to any user
126
- allow_images_in_small_editor: This will add an image uploader icon in all the editors WYSIWYG with minimal options in the toolbar enabled.
127
- auto_save_forms: This will use LocalStorage to automatically save data introduced by users in surveys and other forms while they are filling it. Data will be restored in a future visit with the same browser in case the form is not submitted. If the form is submitted, data will be removed. If users remove their LocalStorage data, data won't be restored either.
128
- drag_and_drop_supported: When uploading images, Drag & Drop is supported. Images will be uploaded to the server and inserted as external resources (it doesn't use base64 inline encoding).
129
- intergram_about: Intergram uses Telegram messenger to handle a live support chat widget embedded in the bottom of the page.
130
- intergram_config: 'Invite the <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> to your group or start a chat with it directly. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
131
- proposal_custom_fields: Create custom proposal fields that applies only in certain parts of the public web (use the restrictions editor for that)
132
- proposal_custom_fields_example: Data is stored in a XML object using compatible HTML attributes (dl,dt,dd elements) replacing the "body" in a normal proposal.
133
- proposal_custom_fields_translations: "Labels, help text, placeholders and default values can use your application custom translations. \nFor that, instead of using a string literal, use the i18n key (it must containt at least one dot).\nFor instance:\n- \"activemodel.attributes.proposal.title\" instead of \"Title\"\n- \"activemodel.attributes.proposal.address\" instead of \"Address\"\nOr use your own keys in combination with other tools to define translations (eg: using the module Term Customizer):\n - \"myapp.custom_fields.bio\" instead of \"Biography\""
134
- scoped_admins: Promote regular user to admins that can only administrate certain parts of the public web (use the restrictions editor for that). Note that users who already have regular admin permissions will be ignored.
135
- scoped_styles: Create custom CSS that applies only in certain parts of the public web (use the restrictions editor for that)
136
- scoped_styles_variables: 'You can use the following CSS variables for organization customized colors:'
137
76
  use_markdown_editor: This will substitute the Quill WYSIWYG editor, use a Markdown editor instead. Text will be rendered as HTML in the public pages (text in database will be saved as markdown text)
138
- form_proposal_custom_fields:
139
- new: Add a new "custom fields" box
140
- remove: Remove this "custom fields" box
141
- sure_to_remove: Are you sure you want to destroy this fields box?
142
- form_scoped_admins:
143
- new: Add a new "Scoped Admins" group
144
- remove: Remove this "Scoped Admins" group
145
- sure_to_remove: Are you sure you want to destroy this "Scoped Admins" group?
146
77
  form_scoped_styles:
147
- new: Add a new CSS box
148
- remove: Remove this CSS box
149
- sure_to_remove: Are you sure you want to destroy this CSS box?
150
- none: "⛔ Never! - Deactivate any other constraint"
151
- process_groups: Process groups
152
- rich_text_editor_in_public_views: 'NOTE: "Rich text editor for participants" is enabled, this option won''t apply. Use the editors hacks instead to enable images in proposals.'
78
+ remove: Ta bort CSS-rutan
79
+ process_groups: Dialoggrupper
153
80
  show:
154
- title: Tweaks for %{setting}
155
- update: Update configuration
156
- system: Everywhere except participatory spaces
157
- update:
158
- error: Error updating configuration! %{error}
159
- success: Configuration updated successfully
81
+ title: Tweaks för %{setting}
82
+ update: Uppdatera konfiguration
160
83
  constraints:
161
- create:
162
- error: Error creating condition case
163
- success: Condition case created successfully
164
- destroy:
165
- error: Error removing condition case
166
- success: Condition case removed successfully
167
- errors:
168
- not_unique: Same condition already exists
169
84
  new:
170
- cancel: Cancel
171
- constraint: New condition case
172
- save: Save
85
+ cancel: Avbryt
86
+ constraint: Ny begränsning
87
+ save: Spara
173
88
  show:
174
- cancel: Cancel
175
- constraint: Edit condition case
176
- save: Save
177
- update:
178
- error: Error updating condition case
179
- success: Condition case updated successfully
89
+ cancel: Avbryt
90
+ constraint: Redigera begränsning
91
+ save: Spara
92
+ custom_redirects:
93
+ edit:
94
+ save: Spara
95
+ title: Redigera omdirigering
96
+ index:
97
+ check_redirections: "✔ Kontrollera omdirigeringar"
98
+ edit: Redigera omdirigering
99
+ new: Ny omdirigering
100
+ remove: Ta bort omdirigering
101
+ title: Anpassade omdirigeringar
102
+ new:
103
+ save: Spara
104
+ title: Ny omdirigering
180
105
  menu:
181
- admins: Scoped Admins
106
+ admins: Begränsade administratörer
182
107
  checks: System compatibility
108
+ custom_redirects: Anpassade omdirigeringar
183
109
  editors: Editor hacks
184
110
  livechat: Live Chat
185
111
  menu_hacks: Menu tweaks
186
- proposal_custom_fields: Proposals Custom Fields
187
112
  proposals: Proposals hacks
188
113
  styles: Custom styles
189
114
  surveys: Surveys & forms
190
115
  menu_hacks:
191
- create:
192
- error: Error creating menu item! %{error}
193
- success: Menu item created successfully
194
- destroy:
195
- error: Error removing menu item! %{error}
196
- success: Menu item removed successfully
197
116
  edit:
198
117
  save: Spara
199
118
  title: Redigera menyobjekt
200
119
  form:
201
- label_help: Translations aren't automatically detected, be sure to fill in all the fields!
202
120
  target:
203
121
  blank: Nytt fönster
204
122
  self: Samma fönster
@@ -206,61 +124,32 @@ sv:
206
124
  default: Synligt
207
125
  hidden: Alltid dolt
208
126
  logged: Endast synlig för inloggade användare
209
- non_logged: Only visible for non-logged users
210
127
  index:
211
- confirm_destroy: Are you sure to remove this customization?
212
- edit: Edit
213
- new: New item
214
- remove: Remove addition
215
- remove_hack: Remove customization
216
- title: Main menu
128
+ edit: Redigera
129
+ new: Ny menyknapp
130
+ remove: Ta bort menyknapp
131
+ remove_hack: Ta bort menyknapp
132
+ title: Huvudmeny
217
133
  new:
218
134
  save: Spara
219
- title: New menu item
220
- update:
221
- error: Error updating menu item! %{error}
222
- success: Menu item updated successfully
223
- url_exists: The same URL is already configured, please edit that instead of creating it again.
135
+ title: Ny menyknapp
224
136
  config:
225
137
  intergram:
226
- auto_no_response: It seems that no one is available to answer right now. Please tell us how we can contact you, and we will get back to you as soon as we can.
227
- auto_response: Looking for the first available admin (It might take a minute)
228
- intro_message: Hello! How can we help you?
229
- title_closed: Click to chat!
230
- title_open: Let's chat!
138
+ title_closed: Klicka här för att chatta!
139
+ title_open: Låt oss chatta!
231
140
  content_blocks:
232
141
  map:
233
- collapse: Start with collapsed menu
234
- map_center: Map center (Latitude, Longitude)
235
- map_center_help: 'Use decimal points (ie: 41.38879, 2.15899). Leave it empty to automatically fit all the markers'
236
- map_height: Map height (px)
237
- map_settings: Map settings
238
- map_zoom: Zoom (any number betwen 0 and 18)
239
- map_zoom_help: Only applies if a map center is defined
240
- menu_amendments: Show amendments
142
+ map_height: Karthöjd (px)
143
+ map_settings: Kartinställningar
144
+ menu_amendments: Visa ändringsförslag
241
145
  menu_meetings: Visa möten
242
146
  name: Karta
243
147
  show_accepted: Visa godkända förslag
244
148
  show_evaluating: Visa förslag som utvärderas
245
- show_not_answered: Show not answered proposals
246
- show_rejected: Show rejected proposals
247
- show_withdrawn: Show withdrawn proposals
248
- text_settings: Text settings
249
- title: Title
250
- truncate: Maximum characters for popup descriptions
251
- credits: Decidim Awesome %{version} · Made with ♥ by Platoniq
252
- custom_fields:
253
- errors:
254
- invalid_fields: Content couldn't be parsed but has been assigned to the field '%{field}'
255
- invalid_xml: 'Content couldn''t be parsed: DL/DD elements not found in the XML'
256
- editor_images:
257
- create:
258
- error: Error uploading image!
259
- success: Image uploaded successfully
149
+ text_settings: Textinställningar
150
+ title: Titel
260
151
  map_component:
261
152
  map:
262
- error:
263
- unavailable: The map is unavailable. Please configure geocoding to enable this component.
264
153
  show:
265
154
  view_meeting: Visa möte
266
155
  view_proposal: Visa förslag
@@ -271,14 +160,10 @@ sv:
271
160
  title: Decidim Tweaks
272
161
  decidim_awesome:
273
162
  awesome_config:
274
- amendments: Amendments
275
- autosaved_error: LocalStorage is not supported in your browser, form cannot be saved automatically.
276
- autosaved_retrieved: Data for this form has been recovered from a previous session
277
- autosaved_success: Data saved in local storage
278
- categories: Categories
279
- drag_and_drop_image: Add images by dragging & dropping or pasting them.
280
- hashtags: Hashtags
281
- items: items
163
+ amendments: Ändringsförslag
164
+ categories: Kategorier
165
+ hashtags: Hashtaggar
166
+ items: föremål
282
167
  meetings: Möten
283
168
  proposals: Förslag
284
- select_deselect_all: Select/deselect all
169
+ select_deselect_all: Markera/avmarkera alla
@@ -17,6 +17,7 @@ module Decidim
17
17
  # Add admin engine routes here
18
18
  resources :constraints
19
19
  resources :menu_hacks, except: [:show]
20
+ resources :custom_redirects, except: [:show]
20
21
  resources :config, param: :var, only: [:show, :update]
21
22
  resources :scoped_styles, param: :var, only: [:create, :destroy]
22
23
  resources :proposal_custom_fields, param: :var, only: [:create, :destroy]
@@ -24,15 +25,8 @@ module Decidim
24
25
  get :users, to: "config#users"
25
26
  post :rename_scope_label, to: "config#rename_scope_label"
26
27
  get :checks, to: "checks#index"
27
- root to: "config#show", var: :editors
28
- end
29
-
30
- initializer "decidim_admin_awesome.assets" do |app|
31
- app.config.assets.precompile += if version_prefix == "v0.23"
32
- %w(legacy_decidim_admin_decidim_awesome_manifest.js decidim_admin_decidim_awesome_manifest.css)
33
- else
34
- %w(decidim_admin_decidim_awesome_manifest.js decidim_admin_decidim_awesome_manifest.css)
35
- end
28
+ post :migrate_images, to: "checks#migrate_images"
29
+ root to: "config#show"
36
30
  end
37
31
 
38
32
  initializer "decidim_decidim_awesome.admin_mount_routes" do
@@ -43,12 +37,13 @@ module Decidim
43
37
 
44
38
  initializer "decidim_awesome.admin_menu" do
45
39
  Decidim.menu :admin_menu do |menu|
46
- menu.item I18n.t("menu.decidim_awesome", scope: "decidim.admin", default: "Decidim Awesome"),
47
- decidim_admin_decidim_awesome.config_path(:editors),
48
- icon_name: "fire",
49
- position: 7.5,
50
- active: is_active_link?(decidim_admin_decidim_awesome.config_path(:editors), :inclusive),
51
- if: defined?(current_user) && current_user&.read_attribute("admin")
40
+ menu.add_item :awesome_menu,
41
+ I18n.t("menu.decidim_awesome", scope: "decidim.admin", default: "Decidim Awesome"),
42
+ decidim_admin_decidim_awesome.config_path(:editors),
43
+ icon_name: "fire",
44
+ position: 7.5,
45
+ active: is_active_link?(decidim_admin_decidim_awesome.config_path(:editors), :inclusive),
46
+ if: defined?(current_user) && current_user&.read_attribute("admin")
52
47
  end
53
48
  end
54
49
 
@@ -0,0 +1,214 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module DecidimAwesome
5
+ include ActiveSupport::Configurable
6
+
7
+ autoload :Config, "decidim/decidim_awesome/config"
8
+ autoload :SystemChecker, "decidim/decidim_awesome/system_checker"
9
+ autoload :ContextAnalyzers, "decidim/decidim_awesome/context_analyzers"
10
+ autoload :MenuHacker, "decidim/decidim_awesome/menu_hacker"
11
+ autoload :CustomFields, "decidim/decidim_awesome/custom_fields"
12
+
13
+ # Awesome coms with some components for participatory spaces
14
+ # Currently :awesome_map and :awesome_iframe, list them here
15
+ # if you wan to disable them
16
+ # NOTE if you have spaces with some of these components already configured
17
+ # and then they are deactivated, it will break you application as there will be
18
+ # references in the database
19
+ #
20
+ # use only symbols here
21
+ config_accessor :disabled_components do
22
+ [
23
+ # :awesome_map,
24
+ # :awesome_iframe
25
+ ]
26
+ end
27
+
28
+ # Boolean configuration options
29
+ #
30
+ # Default values for configuration options:
31
+ # true => always true but admins can still restrict its scope
32
+ # false => default false, admins can turn it true
33
+ # :disabled => false and non available, hidden from admins
34
+ config_accessor :allow_images_in_full_editor do
35
+ false
36
+ end
37
+
38
+ config_accessor :allow_images_in_small_editor do
39
+ false
40
+ end
41
+
42
+ config_accessor :allow_images_in_proposals do
43
+ false
44
+ end
45
+
46
+ config_accessor :use_markdown_editor do
47
+ false
48
+ end
49
+
50
+ config_accessor :allow_images_in_markdown_editor do
51
+ false
52
+ end
53
+
54
+ # used to save forms in localstorage
55
+ config_accessor :auto_save_forms do
56
+ false
57
+ end
58
+
59
+ # Live chat widget linked to Telegram account or group
60
+ config_accessor :intergram_for_admins do
61
+ false
62
+ end
63
+
64
+ config_accessor :intergram_for_public do
65
+ false
66
+ end
67
+
68
+ # allows admins to created specific CSS snippets affecting only some specific parts
69
+ # Valid values differ a little from the previous convention:
70
+ # :disabled => false and non available, hidden from admins
71
+ # Hash => hash of different css text, each key will be used for the contraints
72
+ # Admins create this hash dynamically but some pre-defined css boxes can be created here as:
73
+ # {
74
+ # some_identifier: ".wrapper { background: red; }"
75
+ # }
76
+ config_accessor :scoped_styles do
77
+ {}
78
+ end
79
+
80
+ # custom fields for proposals using JSON specification:
81
+ # https://github.com/jsonform/jsonform/wiki
82
+ # Valid values uses the same structure as :scoped_styles
83
+ # :disabled => false and non available, hidden from admins
84
+ # Hash => hash of different JSON texts, each key will be used for the contraints
85
+ # Admins can create this hash dynamically but some pre-defined css boxes can be created here as:
86
+ # {
87
+ # some_identifier: "{ ... some definition... }"
88
+ # }
89
+ config_accessor :proposal_custom_fields do
90
+ {}
91
+ end
92
+
93
+ # allows to keep modifications for the main menu
94
+ # can return :disabled to completly remove this feature
95
+ # otherwise it should be an array (some overrides can be specified by default):
96
+ # [
97
+ # {
98
+ # url: "/a-new-link",
99
+ # label: { "en" => "The label to show in the menu" },
100
+ # position: 10
101
+ # }
102
+ # ]
103
+ config_accessor :menu do
104
+ []
105
+ end
106
+
107
+ # Allows admins to assignate "fake" admins scoped to some admin zones using the
108
+ # same scope editor as :scoped_styles, valid values uses the same convention:
109
+ # :disabled => false and non available, hidden from admins
110
+ # Hash => hash of different admin ids, each key will be used for the contraints
111
+ # Admins create this hash dynamically but some pre-defined admin boxes can be created here as:
112
+ # {
113
+ # some_identifier: [1234, 5678, 90123]
114
+ # }
115
+ #
116
+ # To test this feature in development, ensure that config/environmnets/development.rb is configured as:
117
+ # config.action_dispatch.show_exceptions = true
118
+ # config.action_dispatch.show_detailed_exceptions = false
119
+ # config.consider_all_requests_local = false
120
+ config_accessor :scoped_admins do
121
+ {}
122
+ end
123
+
124
+ # Allow to configure custom redirections
125
+ # can return :disabled to completly remove this feature
126
+ # You can initialize some default redirection if desired as follows:
127
+ # {
128
+ # "/decidim-docs" => { destination: "http://docs.decidim.org", active: true }
129
+ # }
130
+ #
131
+ # To test this feature in development, ensure that config/environmnets/development.rb is configured as:
132
+ # config.action_dispatch.show_exceptions = true
133
+ # config.action_dispatch.show_detailed_exceptions = false
134
+ # config.consider_all_requests_local = false
135
+
136
+ config_accessor :custom_redirects do
137
+ {}
138
+ end
139
+
140
+ # these settings do not follow the :disabled convention but
141
+ # depends on the previous intergram configurations
142
+ config_accessor :intergram_url do
143
+ "https://www.intergram.xyz/js/widget.js"
144
+ end
145
+
146
+ # no need to override these settings, there admin-configurable
147
+ config_accessor :intergram_for_admins_settings do
148
+ {
149
+ chat_id: nil,
150
+ color: nil,
151
+ use_floating_button: false,
152
+ title_closed: nil,
153
+ title_open: nil,
154
+ intro_message: nil,
155
+ auto_response: nil,
156
+ auto_no_response: nil
157
+ }
158
+ end
159
+
160
+ config_accessor :intergram_for_public_settings do
161
+ {
162
+ chat_id: nil,
163
+ require_login: true,
164
+ color: nil,
165
+ use_floating_button: false,
166
+ title_closed: nil,
167
+ title_open: nil,
168
+ intro_message: nil,
169
+ auto_response: nil,
170
+ auto_no_response: nil
171
+ }
172
+ end
173
+
174
+ # additional correspondences between participatory spaces manifests and routes
175
+ # ie: /admin/assemblies and /admin/assemblies_types are both treated as a "assembly" participatory space in terms of permission scoping
176
+ # This can be tuned in a initialized if some other hacks over routes are applied
177
+ # if a registered participatory space is not listed here then the name manifest will be used as a default route /manifest_name /admin/manifes_name
178
+ config_accessor :participatory_spaces_routes_context do
179
+ {
180
+ # route in admin is diferent than in the frontend: /processes, /admin/participatory_processes
181
+ participatory_processes: [:participatory_processes, :processes],
182
+ # both /admin/assemblies and /admin/assemblies_types are considered assemblies
183
+ assemblies: [:assemblies, :assemblies_types],
184
+ # route in admin is diferent than in the frontend: /process_groups, /admin/participatory_process_groups
185
+ process_groups: [:processes_groups, :participatory_process_groups]
186
+ }
187
+ end
188
+
189
+ #
190
+ # HELPERS
191
+ #
192
+ # pass a single config var or an array of them
193
+ # any non disabled match will return as true
194
+ def self.enabled?(config_vars)
195
+ config_vars = [config_vars] unless config_vars.respond_to?(:detect)
196
+
197
+ config_vars.detect do |item|
198
+ next unless config.has_key?(item.to_sym)
199
+
200
+ config.send(item) != :disabled
201
+ end
202
+ end
203
+
204
+ def self.registered_components
205
+ @registered_components ||= []
206
+ end
207
+
208
+ # Wrapp component registering to register component later, after initializer
209
+ # so we can honor disabled_components config
210
+ def self.register_component(manifest, &block)
211
+ registered_components << [manifest, block]
212
+ end
213
+ end
214
+ end
@@ -46,13 +46,6 @@ module Decidim
46
46
  ::Decidim::DecidimAwesome::VERSION
47
47
  end
48
48
 
49
- def tenant_stylesheets
50
- return @tenant_stylesheets if @tenant_stylesheets
51
-
52
- prefix = Rails.root.join("app", "assets", "themes", current_organization.host)
53
- return @tenant_stylesheets = current_organization.host.to_s if File.exist?("#{prefix}.css") || File.exist?("#{prefix}.scss") || File.exist?("#{prefix}.scss.erb")
54
- end
55
-
56
49
  # Collects all CSS that is applied in the current URL context
57
50
  def awesome_custom_styles
58
51
  @awesome_custom_styles ||= awesome_config_instance.collect_sub_configs_values("scoped_style")
@@ -1,33 +1,30 @@
1
1
  decidim-admin:
2
2
  /app/views/layouts/decidim/admin/_header.html.erb:
3
- decidim-0.23: 45f0e15f1b02a1c1a73b1a2184fd55af
3
+ decidim-0.25: 1aff077428830b12306d6c42e6b37216
4
4
  decidim-core:
5
5
  /app/views/layouts/decidim/_head.html.erb:
6
- decidim-0.23: e7f5eea07e884665474948ea750fc720
7
- /app/assets/javascripts/decidim/editor.js.es6:
8
- decidim-0.23: cb059b8ff0ffc62c67eb99d8d7a6637b
9
- decidim-0.23.1: 4787f73f0f33661e3897404f10019d26
10
- decidim-0.24: 35262835144421baa700a34ca0939396
6
+ decidim-0.25: eb490aa482477ff70f541d20cddec773
7
+ decidim-0.26: 0927fc81123addec70853c2e7986c538
8
+ /app/packs/src/decidim/editor.js:
9
+ decidim-0.25: 742698903a30034094c01aecaca6de84
10
+ decidim-0.26: 651830d87aeeeff39316a787fc70d461
11
11
  /app/presenters/decidim/menu_presenter.rb:
12
- decidim-0.23: 042743c44a2aff284b493c7bebbccbb3
13
- decidim-0.24: 284c96f19cd98df091d8178d6db5a8b3
12
+ decidim-0.25: f3b05daf279f909f8b3b628658dd5810
14
13
  /app/presenters/decidim/menu_item_presenter.rb:
15
- decidim-0.23: 70db39954b5840924530bf94d2a0a73a
14
+ decidim-0.25: 860ffb160ec5f8552cc2855a6a47851b
16
15
  /app/helpers/decidim/amendments_helper.rb:
17
- decidim-0.23: 75bd41c3186729c7c84911bc7c7e9677
16
+ decidim-0.25: 63532a04fcf07cf92b789833a9421416
17
+ decidim-0.26: 636943ccb2e994fe0124dc87e72e49e9
18
18
  decidim-proposals:
19
19
  /app/forms/decidim/proposals/proposal_wizard_create_step_form.rb:
20
- decidim-0.23: b99c3223f1e75f2a69a89ae9a3d28182
21
- decidim-0.23.1: 13ebf86ec88fa64d2651ab9735d5de90
22
20
  decidim-0.24: db69edd0ba8ffa3965a5c44a6bfaba8d
23
21
  /app/helpers/decidim/proposals/application_helper.rb:
24
- decidim-0.23: d923323e3db542b84f42db3a4f782a8d
25
22
  decidim-0.24: c5f99f5fa7de9a6e45776983330e9d73
23
+ decidim-0.26: 216c974bc425393c18b01bfc4eed4f0b
26
24
  /app/views/decidim/proposals/collaborative_drafts/show.html.erb:
27
- decidim-0.23: b0fc5dfaf056c1a1dc667f8ded1a4b2e
28
25
  decidim-0.24: 2a7e0a4c65361f238fd1b917f39c8642
29
26
  /app/views/decidim/proposals/collaborative_drafts/_edit_form_fields.html.erb:
30
- decidim-0.23: b0fc5dfaf056c1a1dc667f8ded1a4b2e
31
27
  decidim-0.24: 6f717555a20e2ab3f555003c337d3003
28
+ decidim-0.26: 97fa28043a26fc2940d30d38d9a7369b
32
29
  /app/views/decidim/proposals/admin/proposals/_form.html.erb:
33
- decidim-0.23: 022eef3e8f57ccc2136ed1289b0f217d
30
+ decidim-0.25: 90a04984d4269398b7cd21aa33763a1f