decidim-decidim_awesome 0.7.2 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +181 -0
- data/README.md +61 -35
- data/Rakefile +11 -12
- data/app/cells/decidim/decidim_awesome/content_blocks/map/error.erb +11 -0
- data/app/cells/decidim/decidim_awesome/content_blocks/map/show.erb +1 -61
- data/app/cells/decidim/decidim_awesome/content_blocks/map_cell.rb +11 -0
- data/app/cells/decidim/decidim_awesome/content_blocks/map_form/show.erb +8 -4
- data/app/commands/decidim/decidim_awesome/admin/create_custom_redirect.rb +51 -0
- data/app/commands/decidim/decidim_awesome/admin/destroy_custom_redirect.rb +47 -0
- data/app/commands/decidim/decidim_awesome/admin/update_custom_redirect.rb +49 -0
- data/app/commands/decidim/decidim_awesome/create_editor_image.rb +12 -5
- data/app/controllers/concerns/decidim/decidim_awesome/not_found_redirect.rb +58 -0
- data/app/controllers/decidim/decidim_awesome/admin/checks_controller.rb +24 -24
- data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +9 -1
- data/app/controllers/decidim/decidim_awesome/admin/custom_redirects_controller.rb +91 -0
- data/app/controllers/decidim/decidim_awesome/admin/menu_hacks_controller.rb +5 -8
- data/app/controllers/decidim/decidim_awesome/blank_component_controller.rb +19 -0
- data/app/controllers/decidim/decidim_awesome/editor_images_controller.rb +2 -3
- data/app/controllers/decidim/decidim_awesome/iframe_component/iframe_controller.rb +1 -1
- data/app/controllers/decidim/decidim_awesome/map_component/map_controller.rb +2 -6
- data/app/forms/decidim/decidim_awesome/admin/config_form.rb +2 -0
- data/app/forms/decidim/decidim_awesome/admin/custom_redirect_form.rb +45 -0
- data/app/forms/decidim/decidim_awesome/editor_image_form.rb +3 -2
- data/app/forms/decidim/decidim_awesome/proposals/proposal_wizard_create_step_form_override.rb +38 -0
- data/app/helpers/decidim/decidim_awesome/admin/config_constraints_helpers.rb +22 -9
- data/app/helpers/decidim/decidim_awesome/admin/system_checker_helpers.rb +36 -0
- data/app/helpers/decidim/decidim_awesome/map_helper.rb +18 -12
- data/app/helpers/decidim/decidim_awesome/proposals/application_helper_override.rb +2 -2
- data/app/jobs/decidim/decidim_awesome/migrate_legacy_images_job.rb +106 -0
- data/app/models/decidim/decidim_awesome/editor_image.rb +4 -9
- data/app/packs/entrypoints/decidim_admin_decidim_awesome.js +5 -0
- data/app/packs/entrypoints/decidim_admin_decidim_awesome.scss +1 -0
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_custom_fields.js +2 -0
- data/app/packs/entrypoints/decidim_decidim_awesome.js +9 -0
- data/app/packs/entrypoints/decidim_decidim_awesome.scss +1 -0
- data/app/packs/entrypoints/decidim_decidim_awesome_admin_form_exit_warn.js +1 -0
- data/app/packs/entrypoints/decidim_decidim_awesome_custom_fields.js +1 -0
- data/app/packs/entrypoints/decidim_decidim_awesome_iframe.scss +1 -0
- data/app/packs/entrypoints/decidim_decidim_awesome_map.js +5 -0
- data/app/packs/entrypoints/decidim_decidim_awesome_map.scss +1 -0
- data/app/{assets → packs}/images/decidim/decidim_awesome/platoniq-logo.png +0 -0
- data/app/{assets/javascripts/decidim/decidim_awesome/admin/auto_edit.js.es6 → packs/src/decidim/decidim_awesome/admin/auto_edit.js} +39 -34
- data/app/packs/src/decidim/decidim_awesome/admin/check_redirections.js +48 -0
- data/app/{assets/javascripts/decidim/decidim_awesome/admin/codemirror.js.es6 → packs/src/decidim/decidim_awesome/admin/codemirror.js} +4 -4
- data/app/packs/src/decidim/decidim_awesome/admin/constraints.js +55 -0
- data/app/{assets/javascripts/decidim/decidim_awesome/admin/form_builder.js.es6 → packs/src/decidim/decidim_awesome/admin/custom_fields_builder.js} +23 -26
- 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
- data/app/{assets/javascripts/decidim/decidim_awesome/admin/user_picker.js.es6 → packs/src/decidim/decidim_awesome/admin/user_picker.js} +3 -3
- data/app/packs/src/decidim/decidim_awesome/awesome_admin.js +23 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_application.js +17 -0
- 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
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/fetcher.js +134 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/meetings_fetcher.js +59 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js +52 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/awesome_map.js +129 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/controller.js +130 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/meetings_controller.js +31 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/proposals_controller.js +88 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controls_ui.js +221 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/load_map.js +51 -0
- data/app/packs/src/decidim/decidim_awesome/editors/editor.js +191 -0
- data/app/{assets/javascripts/decidim/decidim_awesome/editors/tabs_focus.js.es6 → packs/src/decidim/decidim_awesome/editors/tabs_focus.js} +4 -6
- data/app/{assets/javascripts/decidim/decidim_awesome/forms/autosave.js.es6 → packs/src/decidim/decidim_awesome/forms/autosave.js} +20 -17
- data/app/packs/src/decidim/decidim_awesome/forms/custom_fields_renderer.js +207 -0
- data/app/{assets/javascripts/decidim/decidim_awesome/forms/rich_text_plugin.js.es6 → packs/src/decidim/decidim_awesome/forms/rich_text_plugin.js} +23 -21
- data/app/packs/src/decidim/decidim_awesome/proposals/custom_fields.js +22 -0
- data/app/packs/src/decidim/decidim_awesome/proposals/images.js +25 -0
- data/{vendor/assets/javascripts → app/packs/src/vendor}/image-resize.min.js +0 -0
- data/{vendor/assets/javascripts → app/packs/src/vendor}/image-upload.min.js +0 -0
- data/{vendor/assets/javascripts → app/packs/src/vendor}/jquery.truncate.js +0 -0
- data/app/packs/src/vendor/leaflet.featuregroup.subgroup.js +184 -0
- data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/admin/auto_edits.scss +2 -1
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/check_redirections.scss +28 -0
- data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +8 -6
- data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/admin/constraints.scss +13 -13
- data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/admin/custom_fields.scss +37 -10
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +41 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin.scss +71 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_application.scss +19 -0
- data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/awesome_iframe/iframe.scss +3 -3
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +176 -0
- data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/editors/markdown_editor.scss +6 -4
- data/app/packs/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +58 -0
- data/app/{assets → packs}/stylesheets/decidim/decidim_awesome/forms/autosave.scss +2 -2
- data/app/packs/stylesheets/vendor/select2-foundation-theme.scss +348 -0
- data/app/presenters/decidim/decidim_awesome/menu_item_presenter_override.rb +25 -0
- data/app/presenters/decidim/decidim_awesome/menu_presenter_override.rb +23 -0
- data/app/uploaders/decidim/cw/decidim_awesome/image_uploader.rb +26 -0
- data/app/uploaders/decidim/decidim_awesome/image_uploader.rb +4 -16
- data/app/views/decidim/decidim_awesome/admin/checks/index.html.erb +28 -22
- data/app/views/decidim/decidim_awesome/admin/config/_constraints.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/config/_form_admins.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/config/_form_editors.html.erb +1 -0
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_custom_fields.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +7 -6
- data/app/views/decidim/decidim_awesome/admin/config/_modal.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/config/show.html.erb +3 -3
- data/app/views/decidim/decidim_awesome/admin/constraints/new.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/_form.html.erb +6 -0
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/edit.html.erb +13 -0
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/index.html.erb +37 -0
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/new.html.erb +13 -0
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/edit.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/new.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/proposals/_editor.html.erb +5 -3
- data/app/views/decidim/decidim_awesome/iframe_component/iframe/show.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/map_component/map/_api_ready.html.erb +3 -0
- data/app/views/decidim/decidim_awesome/map_component/map/_map_template.html.erb +68 -0
- data/app/views/decidim/decidim_awesome/map_component/map/{error.erb → error.html.erb} +2 -0
- data/app/views/decidim/decidim_awesome/map_component/map/show.html.erb +3 -67
- data/app/views/decidim/proposals/admin/proposals/_form.html.erb +1 -1
- data/app/views/layouts/decidim/admin/decidim_awesome.html.erb +13 -9
- data/app/views/layouts/decidim/decidim_awesome/_awesome_config.html.erb +0 -2
- data/app/views/{v0.24 → v0.25}/decidim/proposals/collaborative_drafts/_show.html.erb +0 -0
- data/app/views/{v0.23 → v0.25}/layouts/decidim/_head.html.erb +12 -10
- data/app/views/v0.25/layouts/decidim/admin/_header.html.erb +11 -0
- data/app/views/{v0.23 → v0.26}/decidim/proposals/collaborative_drafts/_show.html.erb +1 -7
- data/app/views/{v0.24 → v0.26}/layouts/decidim/_head.html.erb +16 -10
- data/app/views/v0.26/layouts/decidim/admin/_header.html.erb +11 -0
- data/config/assets.rb +46 -0
- data/config/i18n-tasks.yml +6 -0
- data/config/locales/ca.yml +77 -13
- data/config/locales/cs.yml +65 -1
- data/config/locales/en.yml +69 -1
- data/config/locales/es.yml +65 -1
- data/config/locales/eu.yml +0 -232
- data/config/locales/fr.yml +117 -53
- data/config/locales/it.yml +65 -1
- data/config/locales/ja.yml +66 -3
- data/config/locales/nl.yml +5 -46
- data/config/locales/pt-BR.yml +348 -0
- data/config/locales/pt-PT.yml +7 -0
- data/config/locales/pt.yml +7 -0
- data/config/locales/sv.yml +67 -182
- data/lib/decidim/decidim_awesome/admin_engine.rb +10 -15
- data/lib/decidim/decidim_awesome/awesome.rb +214 -0
- data/lib/decidim/decidim_awesome/awesome_helpers.rb +0 -7
- data/lib/decidim/decidim_awesome/checksums.yml +13 -16
- data/lib/decidim/decidim_awesome/config.rb +1 -0
- data/lib/decidim/decidim_awesome/content_parsers/editor_images_parser.rb +39 -0
- data/lib/decidim/decidim_awesome/engine.rb +27 -55
- data/lib/decidim/decidim_awesome/iframe_component/admin_engine.rb +23 -0
- data/lib/decidim/decidim_awesome/iframe_component/component.rb +6 -6
- data/lib/decidim/decidim_awesome/map_component/admin_engine.rb +23 -0
- data/lib/decidim/decidim_awesome/map_component/component.rb +6 -5
- data/lib/decidim/decidim_awesome/map_component/engine.rb +34 -0
- data/lib/decidim/decidim_awesome/menu_hacker.rb +1 -0
- data/lib/decidim/decidim_awesome/test/factories.rb +2 -2
- data/lib/decidim/decidim_awesome/test/initializer.rb +25 -0
- data/lib/decidim/decidim_awesome/test/layouts/decidim/_head.html.erb +30 -2
- data/lib/decidim/decidim_awesome/test/layouts/decidim/admin/_header.html.erb +7 -2
- data/lib/decidim/decidim_awesome/test/shared_examples/config_examples.rb +18 -0
- data/lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb +13 -0
- data/lib/decidim/decidim_awesome/test/shared_examples/custom_redirects_contexts.rb +47 -0
- data/lib/decidim/decidim_awesome/test/shared_examples/menu_hack_contexts.rb +0 -17
- data/lib/decidim/decidim_awesome/test/shared_examples/scoped_admins_examples.rb +9 -17
- data/lib/decidim/decidim_awesome/test/shared_examples/summary_examples.rb +202 -0
- data/lib/decidim/decidim_awesome/version.rb +2 -2
- data/lib/decidim/decidim_awesome.rb +4 -152
- data/lib/tasks/decidim_awesome_active_storage_migrations_tasks.rake +37 -0
- data/lib/tasks/decidim_awesome_webpacker_tasks.rake +64 -0
- data/package.json +211 -0
- metadata +113 -113
- data/app/assets/config/decidim_admin_decidim_awesome_manifest.css +0 -3
- data/app/assets/config/decidim_admin_decidim_awesome_manifest.js +0 -2
- data/app/assets/config/decidim_decidim_awesome_manifest.css +0 -5
- data/app/assets/config/decidim_decidim_awesome_manifest.js +0 -4
- data/app/assets/config/legacy_decidim_admin_decidim_awesome_manifest.js +0 -2
- data/app/assets/config/legacy_decidim_decidim_awesome_manifest.js +0 -4
- data/app/assets/javascripts/decidim/decidim_awesome/admin/constraints.js.es6 +0 -54
- data/app/assets/javascripts/decidim/decidim_awesome/admin/legacy_form_builder.js.es6 +0 -80
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_admin.js +0 -7
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_application.js +0 -3
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/categories.js.es6 +0 -25
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/hashtags.js.es6 +0 -48
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/layers.js.es6 +0 -107
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/load_map.js.es6 +0 -15
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/map.js.es6 +0 -207
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/markers.js.es6 +0 -56
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/meetings.js.es6 +0 -132
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/proposals.js.es6 +0 -107
- data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/utilities.js.es6 +0 -57
- data/app/assets/javascripts/decidim/decidim_awesome/editors/legacy_quill_editor.js.es6 +0 -172
- data/app/assets/javascripts/decidim/decidim_awesome/editors/quill_editor.js.es6 +0 -185
- data/app/assets/javascripts/decidim/decidim_awesome/forms/custom_fields_builder.js.es6 +0 -211
- data/app/assets/javascripts/decidim/decidim_awesome/legacy_admin.js +0 -7
- data/app/assets/javascripts/decidim/decidim_awesome/legacy_application.js +0 -3
- data/app/assets/javascripts/decidim/decidim_awesome/proposals/custom_fields.js.es6 +0 -21
- data/app/assets/javascripts/decidim/decidim_awesome/proposals/images.js.es6 +0 -25
- data/app/assets/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +0 -35
- data/app/assets/stylesheets/decidim/decidim_awesome/awesome_admin.scss +0 -64
- data/app/assets/stylesheets/decidim/decidim_awesome/awesome_application.scss +0 -22
- data/app/assets/stylesheets/decidim/decidim_awesome/awesome_map/leaflet.scss.erb +0 -18
- data/app/assets/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +0 -160
- data/app/assets/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +0 -22
- data/app/awesome_overrides/forms/decidim/proposals/proposal_wizard_create_step_form_override.rb +0 -28
- data/app/awesome_overrides/presenters/decidim/menu_presenter_override.rb +0 -39
- data/app/controllers/concerns/decidim/decidim_awesome/admin_not_found_redirect.rb +0 -39
- data/app/controllers/decidim/decidim_awesome/iframe_component/application_controller.rb +0 -15
- data/app/controllers/decidim/decidim_awesome/map_component/application_controller.rb +0 -15
- data/app/views/v0.23/layouts/decidim/admin/_header.html.erb +0 -12
- data/app/views/v0.24/layouts/decidim/admin/_header.html.erb +0 -12
- data/lib/decidim/decidim_awesome/test/themes/css.lvh.me.css +0 -3
- data/lib/decidim/decidim_awesome/test/themes/erb.lvh.me.scss.erb +0 -2
- data/lib/decidim/decidim_awesome/test/themes/scss.lvh.me.scss +0 -1
- data/lib/decidim/decidim_awesome/test/themes/test-theme/body.scss +0 -4
- data/vendor/assets/images/layers-2x.png +0 -0
- data/vendor/assets/images/layers.png +0 -0
- data/vendor/assets/images/marker-icon.png +0 -0
- data/vendor/assets/javascripts/codemirror-4.inline-attachment.js +0 -89
- data/vendor/assets/javascripts/codemirror.js +0 -9801
- data/vendor/assets/javascripts/delta.min.js +0 -405
- data/vendor/assets/javascripts/delta.min.js.map +0 -1
- data/vendor/assets/javascripts/europa.min.js +0 -4
- data/vendor/assets/javascripts/form-builder.min.js +0 -19
- data/vendor/assets/javascripts/form-render.min.js +0 -19
- data/vendor/assets/javascripts/form-storage.js +0 -824
- data/vendor/assets/javascripts/highlight.min.js +0 -44
- data/vendor/assets/javascripts/inline-attachment.js +0 -399
- data/vendor/assets/javascripts/inscrybmde.min.js +0 -7
- data/vendor/assets/javascripts/jquery-ui.min.js +0 -13
- data/vendor/assets/javascripts/jquery.inline-attachment.js +0 -66
- data/vendor/assets/javascripts/jsrender.min.js +0 -4
- data/vendor/assets/javascripts/keymap/sublime.js +0 -720
- data/vendor/assets/javascripts/leaflet.featuregroup.subgroup.js +0 -6
- data/vendor/assets/javascripts/mode/css/css.js +0 -864
- data/vendor/assets/javascripts/select2.js +0 -6147
- data/vendor/assets/langs/en-US.lang +0 -110
- data/vendor/assets/stylesheets/codemirror.css +0 -350
- data/vendor/assets/stylesheets/default.min.css +0 -1
- data/vendor/assets/stylesheets/foundation.min.css +0 -1
- data/vendor/assets/stylesheets/github.min.css +0 -2
- data/vendor/assets/stylesheets/inscrybmde.min.scss +0 -194
- data/vendor/assets/stylesheets/jquery-ui.min.css +0 -7
- data/vendor/assets/stylesheets/select2-foundation-theme.css +0 -249
- data/vendor/assets/stylesheets/select2.css +0 -515
data/config/locales/sv.yml
CHANGED
@@ -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
|
-
|
18
|
-
|
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:
|
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:
|
32
|
-
target:
|
26
|
+
raw_label: Text
|
27
|
+
target: Öppna i
|
33
28
|
url: Webbadress
|
34
29
|
visibility: Synlighet
|
35
30
|
proposal:
|
36
|
-
proposal_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:
|
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:
|
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
|
-
|
60
|
-
|
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
|
-
|
81
|
-
decidim-
|
82
|
-
decidim-
|
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
|
-
|
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:
|
94
|
-
always:
|
95
|
-
|
96
|
-
|
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:
|
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
|
-
|
148
|
-
|
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
|
155
|
-
update:
|
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:
|
171
|
-
constraint:
|
172
|
-
save:
|
85
|
+
cancel: Avbryt
|
86
|
+
constraint: Ny begränsning
|
87
|
+
save: Spara
|
173
88
|
show:
|
174
|
-
cancel:
|
175
|
-
constraint:
|
176
|
-
save:
|
177
|
-
|
178
|
-
|
179
|
-
|
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:
|
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
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
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:
|
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
|
-
|
227
|
-
|
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
|
-
|
234
|
-
|
235
|
-
|
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
|
-
|
246
|
-
|
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:
|
275
|
-
|
276
|
-
|
277
|
-
|
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:
|
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
|
-
|
28
|
-
|
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.
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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.
|
3
|
+
decidim-0.25: 1aff077428830b12306d6c42e6b37216
|
4
4
|
decidim-core:
|
5
5
|
/app/views/layouts/decidim/_head.html.erb:
|
6
|
-
decidim-0.
|
7
|
-
|
8
|
-
|
9
|
-
decidim-0.
|
10
|
-
decidim-0.
|
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.
|
13
|
-
decidim-0.24: 284c96f19cd98df091d8178d6db5a8b3
|
12
|
+
decidim-0.25: f3b05daf279f909f8b3b628658dd5810
|
14
13
|
/app/presenters/decidim/menu_item_presenter.rb:
|
15
|
-
decidim-0.
|
14
|
+
decidim-0.25: 860ffb160ec5f8552cc2855a6a47851b
|
16
15
|
/app/helpers/decidim/amendments_helper.rb:
|
17
|
-
decidim-0.
|
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.
|
30
|
+
decidim-0.25: 90a04984d4269398b7cd21aa33763a1f
|