decidim-decidim_awesome 0.10.3 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-decidim_awesome might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -5
- data/README.md +65 -67
- data/app/cells/concerns/decidim/decidim_awesome/global_menu_cell_override.rb +20 -0
- data/app/cells/concerns/decidim/decidim_awesome/proposal_l_cell_override.rb +44 -0
- data/app/cells/decidim/decidim_awesome/content_blocks/map/show.erb +5 -12
- data/app/cells/decidim/decidim_awesome/voting/proposal_metadata_cell.rb +54 -0
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal/modal.erb +18 -0
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal/show.erb +37 -32
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_cell.rb +9 -4
- data/app/commands/concerns/decidim/decidim_awesome/admin/needs_constraint_helpers.rb +1 -1
- data/app/commands/concerns/decidim/decidim_awesome/proposals/create_proposal_override.rb +2 -2
- data/app/commands/concerns/decidim/decidim_awesome/proposals/update_proposal_override.rb +2 -2
- data/app/commands/decidim/decidim_awesome/admin/create_constraint.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/destroy_custom_redirect.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/destroy_menu_hack.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/rename_scope_label.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/update_constraint.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/update_custom_redirect.rb +2 -2
- data/app/commands/decidim/decidim_awesome/command.rb +1 -7
- data/app/controllers/concerns/decidim/decidim_awesome/admin/maintenance_context.rb +1 -1
- data/app/controllers/concerns/decidim/decidim_awesome/admin_accountability/admin/filterable_helper.rb +3 -4
- data/app/controllers/concerns/decidim/decidim_awesome/content_security_policy.rb +34 -0
- data/app/controllers/concerns/decidim/decidim_awesome/not_found_redirect.rb +1 -1
- data/app/controllers/concerns/decidim/decidim_awesome/proposals/orderable_override.rb +22 -9
- data/app/controllers/concerns/decidim/decidim_awesome/proposals/proposal_votes_controller_override.rb +3 -3
- data/app/controllers/decidim/decidim_awesome/admin/admin_accountability_controller.rb +7 -7
- data/app/controllers/decidim/decidim_awesome/admin/checks_controller.rb +7 -7
- data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +8 -10
- data/app/controllers/decidim/decidim_awesome/admin/constraints_controller.rb +20 -19
- data/app/controllers/decidim/decidim_awesome/admin/custom_redirects_controller.rb +6 -8
- data/app/controllers/decidim/decidim_awesome/admin/maintenance_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/admin/menu_hacks_controller.rb +6 -8
- data/app/controllers/decidim/decidim_awesome/admin/proposal_custom_fields_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/admin/scoped_admins_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/admin/scoped_styles_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/blank_component_controller.rb +8 -3
- data/app/controllers/decidim/decidim_awesome/editor_images_controller.rb +3 -3
- data/app/controllers/decidim/decidim_awesome/iframe_component/iframe_controller.rb +11 -5
- data/app/forms/concerns/decidim/decidim_awesome/proposals/proposal_wizard_create_step_form_override.rb +1 -1
- data/app/forms/decidim/decidim_awesome/admin/config_form.rb +13 -25
- data/app/forms/decidim/decidim_awesome/admin/custom_redirect_form.rb +2 -2
- data/app/forms/decidim/decidim_awesome/admin/intergram_form.rb +4 -0
- data/app/forms/decidim/decidim_awesome/admin/menu_form.rb +4 -4
- data/app/helpers/concerns/decidim/decidim_awesome/amendments_helper_override.rb +8 -1
- data/app/helpers/concerns/decidim/decidim_awesome/breadcrumb_helper_override.rb +23 -0
- data/app/helpers/concerns/decidim/decidim_awesome/proposals/application_helper_override.rb +23 -39
- data/app/helpers/decidim/decidim_awesome/admin/config_constraints_helpers.rb +2 -2
- data/app/helpers/decidim/decidim_awesome/map_helper.rb +8 -27
- data/app/jobs/decidim/decidim_awesome/migrate_legacy_images_job.rb +5 -4
- data/app/middleware/decidim/decidim_awesome/current_config.rb +3 -5
- data/app/models/concerns/decidim/decidim_awesome/has_proposal_extra_fields.rb +1 -1
- data/app/models/decidim/decidim_awesome/awesome_config.rb +1 -1
- data/app/models/decidim/decidim_awesome/paper_trail_version.rb +4 -8
- data/app/models/decidim/decidim_awesome/proposal_extra_field.rb +1 -1
- data/app/models/decidim/decidim_awesome/vote_weight.rb +2 -2
- data/app/overrides/decidim/proposals/proposals/{show → _proposal_aside}/limit_amendments_modal.html.erb.deface +1 -1
- data/app/overrides/decidim/proposals/proposals/_vote_button/replace_vote_button.html.erb.deface +1 -1
- data/app/overrides/layouts/decidim/_decidim_javascript/add_awesome_tags.html.erb.deface +6 -0
- data/app/overrides/layouts/decidim/_head/add_awesome_tags.html.erb.deface +4 -11
- data/app/overrides/layouts/decidim/admin/_header/{replace_scripts.html.erb.deface → add_awesome_tags.html.erb.deface} +4 -4
- data/app/packs/entrypoints/decidim_admin_decidim_awesome.js +1 -2
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_global.js +4 -0
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_global.scss +1 -0
- data/app/packs/entrypoints/decidim_decidim_awesome.js +2 -2
- data/app/packs/entrypoints/decidim_editor.js +14 -0
- data/app/packs/src/decidim/decidim_awesome/admin/auto_edit.js +95 -70
- data/app/packs/src/decidim/decidim_awesome/admin/check_redirections.js +46 -41
- data/app/packs/src/decidim/decidim_awesome/admin/codemirror.js +3 -3
- data/app/packs/src/decidim/decidim_awesome/admin/constraint_form_events.js +115 -0
- data/app/packs/src/decidim/decidim_awesome/admin/custom_fields_builder.js +4 -1
- data/app/packs/src/decidim/decidim_awesome/admin/form_exit_warn.js +22 -11
- data/app/packs/src/decidim/decidim_awesome/admin/proposal_sortings.js +26 -8
- data/app/packs/src/decidim/decidim_awesome/admin/user_picker.js +34 -21
- data/app/packs/src/decidim/decidim_awesome/amendments/show_modal_on_limits.js +20 -22
- data/app/packs/src/decidim/decidim_awesome/awesome_admin.js +5 -16
- data/app/packs/src/decidim/decidim_awesome/awesome_admin_global.js +1 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_application.js +0 -15
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/fetcher.js +33 -11
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/meetings_fetcher.js +9 -12
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js +28 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/awesome_map.js +3 -4
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/controller.js +12 -12
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/meetings_controller.js +11 -7
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/proposals_controller.js +6 -13
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controls_ui.js +51 -20
- data/app/packs/src/decidim/decidim_awesome/awesome_map/load_map.js +27 -18
- data/app/packs/src/decidim/decidim_awesome/editor/index.js +94 -0
- data/app/packs/src/decidim/decidim_awesome/forms/autosave.js +28 -23
- data/app/packs/src/decidim/decidim_awesome/forms/custom_fields_renderer.js +9 -14
- data/app/packs/src/decidim/decidim_awesome/forms/rich_text_plugin.js +27 -32
- data/app/packs/src/decidim/decidim_awesome/proposals/images.js +16 -10
- data/app/packs/src/decidim/decidim_awesome/voting/voting_cards.js +47 -38
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/auto_edits.scss +11 -12
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/check_redirections.scss +15 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +19 -12
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/constraints.scss +8 -32
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_fields.scss +28 -78
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_styles.scss +48 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/intergram_fixes.scss +11 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +15 -24
- data/app/packs/stylesheets/decidim/decidim_awesome/amendments/modal.scss +5 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin.scss +9 -47
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin_global.scss +3 -12
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_application.scss +3 -19
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_iframe/iframe.scss +1 -1
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +27 -21
- data/app/packs/stylesheets/decidim/decidim_awesome/forms/autosave.scss +6 -6
- data/app/packs/stylesheets/decidim/decidim_awesome/forms/custom_fields.scss +32 -101
- data/app/packs/stylesheets/decidim/decidim_awesome/shared/spinner.scss +5 -26
- data/app/packs/stylesheets/decidim/decidim_awesome/voting/voting_cards.scss +34 -52
- data/app/permissions/decidim/decidim_awesome/permissions.rb +3 -4
- data/app/presenters/concerns/decidim/decidim_awesome/breadcrumb_root_menu_item_presenter_override.rb +23 -0
- data/app/presenters/concerns/decidim/decidim_awesome/menu_item_presenter_override.rb +10 -2
- data/app/presenters/concerns/decidim/decidim_awesome/menu_presenter_override.rb +8 -0
- data/app/presenters/decidim/decidim_awesome/participatory_space_role_presenter.rb +1 -1
- data/app/presenters/decidim/decidim_awesome/private_data_presenter.rb +11 -11
- data/app/presenters/decidim/decidim_awesome/user_entity_presenter.rb +1 -1
- data/app/queries/decidim/decidim_awesome/private_data_finder.rb +1 -1
- data/app/serializers/decidim/decidim_awesome/proposals/private_proposal_serializer.rb +0 -8
- data/app/views/decidim/decidim_awesome/admin/admin_accountability/index.html.erb +23 -17
- data/app/views/decidim/decidim_awesome/admin/checks/index.html.erb +1 -3
- data/app/views/decidim/decidim_awesome/admin/config/_autoedit_box_label.html.erb +3 -3
- data/app/views/decidim/decidim_awesome/admin/config/_constraints.html.erb +20 -21
- data/app/views/decidim/decidim_awesome/admin/config/_form_admins.html.erb +6 -5
- data/app/views/decidim/decidim_awesome/admin/config/_form_editors.html.erb +2 -2
- data/app/views/decidim/decidim_awesome/admin/config/_form_livechat.html.erb +39 -23
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_custom_fields.html.erb +4 -6
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposals.html.erb +64 -76
- data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +15 -11
- data/app/views/decidim/decidim_awesome/admin/config/_form_surveys.html.erb +8 -6
- data/app/views/decidim/decidim_awesome/admin/config/show.html.erb +22 -12
- data/app/views/decidim/decidim_awesome/admin/constraints/_form.html.erb +1 -49
- data/app/views/decidim/decidim_awesome/admin/constraints/new.html.erb +14 -9
- data/app/views/decidim/decidim_awesome/admin/constraints/show.html.erb +14 -9
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/_form.html.erb +20 -5
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/edit.html.erb +5 -5
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/index.html.erb +15 -15
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/new.html.erb +5 -5
- data/app/views/decidim/decidim_awesome/admin/maintenance/_private_data.html.erb +4 -4
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/_form.html.erb +6 -6
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/edit.html.erb +21 -12
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb +16 -18
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/new.html.erb +21 -12
- data/app/views/decidim/decidim_awesome/admin/shared/_filters_with_date.html.erb +14 -18
- data/app/views/decidim/decidim_awesome/amendments/_modal.html.erb +18 -11
- data/app/views/decidim/decidim_awesome/custom_fields/_form_render.html.erb +3 -5
- data/app/views/decidim/decidim_awesome/iframe_component/iframe/show.html.erb +7 -12
- data/app/views/decidim/decidim_awesome/map_component/map/_map_template.html.erb +53 -37
- data/app/views/decidim/decidim_awesome/map_component/map/show.html.erb +14 -5
- data/app/views/decidim/decidim_awesome/voting/voting_cards/_show_vote_button.html.erb +0 -3
- data/app/views/layouts/decidim/decidim_awesome/_awesome_config.html.erb +9 -7
- data/app/views/layouts/decidim/decidim_awesome/_intergram_widget.html.erb +9 -6
- data/app/views/layouts/decidim/decidim_awesome/admin/_base.html.erb +3 -12
- data/config/assets.rb +3 -33
- data/config/i18n-tasks.yml +1 -0
- data/config/locales/ca.yml +17 -94
- data/config/locales/cs.yml +15 -93
- data/config/locales/de.yml +15 -91
- data/config/locales/en.yml +24 -28
- data/config/locales/es.yml +18 -96
- data/config/locales/eu.yml +8 -18
- data/config/locales/fr.yml +15 -94
- data/config/locales/hu.yml +4 -18
- data/config/locales/it.yml +9 -26
- data/config/locales/ja.yml +16 -93
- data/config/locales/lt.yml +2 -4
- data/config/locales/nl.yml +8 -18
- data/config/locales/pt-BR.yml +11 -25
- data/config/locales/ro-RO.yml +2 -14
- data/config/locales/sv.yml +10 -21
- data/config/rubocop/disabled.yml +11 -0
- data/config/rubocop/faker.yml +480 -0
- data/config/rubocop/rails.yml +88 -0
- data/config/rubocop/rspec.yml +65 -0
- data/config/rubocop/ruby.yml +1210 -0
- data/db/migrate/20240306175331_rename_editor_images_awesome_config.rb +18 -0
- data/db/migrate/20240729164227_add_decidim_awesome_proposal_private_fields_date.rb +1 -1
- data/db/seeds.rb +3 -3
- data/lib/decidim/decidim_awesome/admin_engine.rb +4 -1
- data/lib/decidim/decidim_awesome/api/types/translated_custom_fields_type.rb +2 -3
- data/lib/decidim/decidim_awesome/awesome.rb +42 -28
- data/lib/decidim/decidim_awesome/awesome_helpers.rb +1 -1
- data/lib/decidim/decidim_awesome/checksums.yml +39 -60
- data/lib/decidim/decidim_awesome/config.rb +1 -1
- data/lib/decidim/decidim_awesome/custom_fields.rb +5 -5
- data/lib/decidim/decidim_awesome/engine.rb +24 -6
- data/lib/decidim/decidim_awesome/iframe_component/component.rb +1 -2
- data/lib/decidim/decidim_awesome/lock.rb +2 -2
- data/lib/decidim/decidim_awesome/map_component/component.rb +1 -1
- data/lib/decidim/decidim_awesome/menu.rb +33 -14
- data/lib/decidim/decidim_awesome/menu_hacker.rb +4 -8
- data/lib/decidim/decidim_awesome/system_checker.rb +2 -4
- data/lib/decidim/decidim_awesome/test/factories.rb +10 -10
- data/lib/decidim/decidim_awesome/test/initializer.rb +3 -11
- data/lib/decidim/decidim_awesome/test/layouts/decidim/_head.html.erb +2 -2
- data/lib/decidim/decidim_awesome/test/layouts/decidim/admin/_header.html.erb +2 -2
- data/lib/decidim/decidim_awesome/test/shared_examples/box_label_editor_examples.rb +18 -18
- data/lib/decidim/decidim_awesome/test/shared_examples/config_examples.rb +3 -3
- data/lib/decidim/decidim_awesome/test/shared_examples/custom_fields_examples.rb +11 -11
- data/lib/decidim/decidim_awesome/test/shared_examples/custom_redirects_contexts.rb +7 -7
- data/lib/decidim/decidim_awesome/test/shared_examples/editor_examples.rb +26 -66
- data/lib/decidim/decidim_awesome/test/shared_examples/menu_hack_contexts.rb +10 -9
- data/lib/decidim/decidim_awesome/test/shared_examples/scoped_admins_examples.rb +30 -20
- data/lib/decidim/decidim_awesome/test/shared_examples/summary_examples.rb +19 -10
- data/lib/decidim/decidim_awesome/version.rb +2 -2
- data/lib/decidim/decidim_awesome/voting_manifest.rb +5 -10
- data/lib/decidim/decidim_awesome.rb +1 -2
- data/lib/tasks/decidim_awesome_active_storage_migrations_tasks.rake +1 -1
- data/lib/tasks/decidim_awesome_upgrade_tasks.rake +4 -0
- data/package.json +19 -28
- metadata +40 -56
- data/app/cells/concerns/decidim/decidim_awesome/proposal_m_cell_override.rb +0 -18
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter/show.erb +0 -15
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter/vote_button.erb +0 -15
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter_cell.rb +0 -21
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal/show.erb +0 -16
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb +0 -20
- data/app/cells/decidim/proposals/proposal_m/footer.erb +0 -13
- data/app/overrides/layouts/decidim/_head/add_awesome_legacy_scripts.rb +0 -14
- data/app/overrides/layouts/decidim/admin/_header/replace_styles.html.erb.deface +0 -3
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_custom_fields.js +0 -2
- data/app/packs/entrypoints/decidim_decidim_awesome_admin_form_exit_warn.js +0 -1
- data/app/packs/src/decidim/decidim_awesome/admin/constraints.js +0 -55
- data/app/packs/src/decidim/decidim_awesome/editors/editor.js +0 -213
- data/app/packs/stylesheets/decidim/decidim_awesome/editors/markdown_editor.scss +0 -19
- data/app/packs/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +0 -58
- data/app/packs/stylesheets/vendor/select2-foundation-theme.scss +0 -348
- data/app/serializers/concerns/decidim/decidim_awesome/proposal_serializer_override.rb +0 -65
- data/app/views/decidim/decidim_awesome/admin/config/_modal.html.erb +0 -11
- data/app/views/decidim/decidim_awesome/voting/voting_cards/_proposal_m_cell_footer.erb +0 -15
- /data/app/packs/src/decidim/decidim_awesome/{editors/tabs_focus.js → admin/tabs_change.js} +0 -0
data/config/locales/ro-RO.yml
CHANGED
@@ -3,10 +3,7 @@ ro:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
config:
|
6
|
-
allow_images_in_full_editor: Permite imagini în editorul HTML complet
|
7
|
-
allow_images_in_markdown_editor: Permite imagini în editorul markdown
|
8
6
|
allow_images_in_proposals: Permite imaginile în editorul de propuneri
|
9
|
-
allow_images_in_small_editor: Permite imagini în editorul HTML minimal
|
10
7
|
auto_save_forms: Salvare automată a formularelor în memoria locală
|
11
8
|
intergram_chat_id: ID Conversație
|
12
9
|
intergram_color: Culoarea widget-ului
|
@@ -25,6 +22,8 @@ ro:
|
|
25
22
|
target: Deschidere in
|
26
23
|
url: URL
|
27
24
|
visibility: Vizibilitate
|
25
|
+
proposal:
|
26
|
+
proposal_custom_fields: Câmpuri particularizate
|
28
27
|
decidim:
|
29
28
|
admin:
|
30
29
|
filters:
|
@@ -95,18 +94,7 @@ ro:
|
|
95
94
|
error: Eroare la crearea unui nou "câmp personalizat"! %{error}
|
96
95
|
form:
|
97
96
|
edit_label: Redenumește eticheta
|
98
|
-
form_proposal_custom_fields:
|
99
|
-
delete: Șterge
|
100
|
-
form_proposal_private_custom_fields:
|
101
|
-
delete: Șterge
|
102
|
-
form_scoped_admins:
|
103
|
-
delete: Șterge
|
104
|
-
form_scoped_styles:
|
105
|
-
delete: Șterge
|
106
97
|
process_groups: Grupuri de procese
|
107
|
-
title:
|
108
|
-
styles: Stiluri personalizate
|
109
|
-
surveys: Chestionare și formulare
|
110
98
|
constraints:
|
111
99
|
errors:
|
112
100
|
not_unique: Această condiție există deja
|
data/config/locales/sv.yml
CHANGED
@@ -3,10 +3,7 @@ sv:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
config:
|
6
|
-
allow_images_in_full_editor: Tillåt bilder i den fullständiga HTML-editorn
|
7
|
-
allow_images_in_markdown_editor: Tillåt bilder i den fullständiga Markdown-editorn
|
8
6
|
allow_images_in_proposals: Tillåt bilder i förslagsfältet
|
9
|
-
allow_images_in_small_editor: Tillåt bilder i den minimala HTML-editorn
|
10
7
|
auto_save_forms: Spara formulär automatiskt i lokal lagring
|
11
8
|
intergram_chat_id: Chatt ID
|
12
9
|
intergram_color: Huvudfärg för widget
|
@@ -28,6 +25,8 @@ sv:
|
|
28
25
|
target: Öppna i
|
29
26
|
url: Webbadress
|
30
27
|
visibility: Synlighet
|
28
|
+
proposal:
|
29
|
+
proposal_custom_fields: Tilläggsfält
|
31
30
|
decidim:
|
32
31
|
admin:
|
33
32
|
menu:
|
@@ -71,27 +70,12 @@ sv:
|
|
71
70
|
edit: Redigera
|
72
71
|
form:
|
73
72
|
edit_label: Byt namn på etikett
|
74
|
-
help:
|
75
|
-
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)
|
76
|
-
form_proposal_custom_fields:
|
77
|
-
delete: Radera
|
78
|
-
form_proposal_private_custom_fields:
|
79
|
-
delete: Radera
|
80
|
-
form_scoped_admins:
|
81
|
-
delete: Radera
|
82
73
|
form_scoped_styles:
|
83
|
-
delete: Radera
|
84
74
|
remove: Ta bort CSS-rutan
|
85
75
|
process_groups: Dialoggrupper
|
86
76
|
show:
|
87
77
|
title: Tweaks för %{setting}
|
88
78
|
update: Uppdatera konfiguration
|
89
|
-
title:
|
90
|
-
admins: Begränsade administratörer
|
91
|
-
editors: Editor hacks
|
92
|
-
proposals: Proposals hacks
|
93
|
-
styles: Custom styles
|
94
|
-
surveys: Surveys & forms
|
95
79
|
constraints:
|
96
80
|
new:
|
97
81
|
cancel: Avbryt
|
@@ -116,11 +100,10 @@ sv:
|
|
116
100
|
title: Ny omdirigering
|
117
101
|
menu:
|
118
102
|
admins: Begränsade administratörer
|
103
|
+
checks: System compatibility
|
119
104
|
custom_redirects: Anpassade omdirigeringar
|
120
105
|
editors: Editor hacks
|
121
106
|
livechat: Live Chat
|
122
|
-
maintenance:
|
123
|
-
checks: System compatibility
|
124
107
|
menu_hacks: Menu tweaks
|
125
108
|
proposals: Proposals hacks
|
126
109
|
styles: Custom styles
|
@@ -144,7 +127,6 @@ sv:
|
|
144
127
|
new: Ny menyknapp
|
145
128
|
remove: Ta bort menyknapp
|
146
129
|
remove_hack: Ta bort menyknapp
|
147
|
-
title: Huvudmeny
|
148
130
|
new:
|
149
131
|
save: Spara
|
150
132
|
title: Ny menyknapp
|
@@ -172,6 +154,13 @@ sv:
|
|
172
154
|
voting_cards:
|
173
155
|
modal:
|
174
156
|
cancel: Avbryt
|
157
|
+
meetings:
|
158
|
+
meetings_map:
|
159
|
+
view_meeting: Visa möte
|
160
|
+
proposals:
|
161
|
+
proposals:
|
162
|
+
proposal:
|
163
|
+
view_proposal: Visa förslag
|
175
164
|
layouts:
|
176
165
|
decidim:
|
177
166
|
decidim_awesome:
|
@@ -0,0 +1,480 @@
|
|
1
|
+
require: rubocop-faker
|
2
|
+
|
3
|
+
Faker/DeprecatedArguments:
|
4
|
+
Description: 'Checks that Faker arguments style is based on Faker 2.'
|
5
|
+
Enabled: true
|
6
|
+
VersionAdded: '0.1'
|
7
|
+
Reference: 'https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md#v20-2019-31-07'
|
8
|
+
ArgumentKeywords:
|
9
|
+
#
|
10
|
+
# FakerClassName:
|
11
|
+
# method_name:
|
12
|
+
# - keyword_name_for_first_argument
|
13
|
+
# - keyword_name_for_second_argument
|
14
|
+
# - keyword_name_for_third_argument
|
15
|
+
#
|
16
|
+
Faker::Dune:
|
17
|
+
quote:
|
18
|
+
- character
|
19
|
+
saying:
|
20
|
+
- source
|
21
|
+
Faker::Books::Lovecraft:
|
22
|
+
fhtagn:
|
23
|
+
- number
|
24
|
+
sentence:
|
25
|
+
- word_count
|
26
|
+
- random_words_to_add
|
27
|
+
words:
|
28
|
+
- number
|
29
|
+
- spaces_allowed
|
30
|
+
sentences:
|
31
|
+
- number
|
32
|
+
paragraph:
|
33
|
+
- sentence_count
|
34
|
+
- random_sentences_to_add
|
35
|
+
paragraphs:
|
36
|
+
- number
|
37
|
+
paragraph_by_chars:
|
38
|
+
- characters
|
39
|
+
Faker::Address:
|
40
|
+
city:
|
41
|
+
- options
|
42
|
+
street_address:
|
43
|
+
- include_secondary
|
44
|
+
zip_code:
|
45
|
+
- state_abbreviation
|
46
|
+
country_by_code:
|
47
|
+
- code
|
48
|
+
country_name_to_code:
|
49
|
+
- name
|
50
|
+
Faker::Alphanumeric:
|
51
|
+
alpha:
|
52
|
+
- number
|
53
|
+
alphanumeric:
|
54
|
+
- number
|
55
|
+
Faker::App:
|
56
|
+
semantic_version:
|
57
|
+
- major
|
58
|
+
- minor
|
59
|
+
- patch
|
60
|
+
Faker::Avatar:
|
61
|
+
image:
|
62
|
+
- slug
|
63
|
+
- size
|
64
|
+
- format
|
65
|
+
- set
|
66
|
+
- bgset
|
67
|
+
Faker::Bank:
|
68
|
+
account_number:
|
69
|
+
- digits
|
70
|
+
iban:
|
71
|
+
- country_code
|
72
|
+
Faker::Boolean:
|
73
|
+
boolean:
|
74
|
+
- true_ratio
|
75
|
+
Faker::ChileRut:
|
76
|
+
rut:
|
77
|
+
- min_rut
|
78
|
+
- fixed
|
79
|
+
full_rut:
|
80
|
+
- min_rut
|
81
|
+
- fixed
|
82
|
+
Faker::Code:
|
83
|
+
isbn:
|
84
|
+
- base
|
85
|
+
ean:
|
86
|
+
- base
|
87
|
+
nric:
|
88
|
+
- min_age
|
89
|
+
- max_age
|
90
|
+
Faker::Commerce:
|
91
|
+
promotion_code:
|
92
|
+
- digits
|
93
|
+
department:
|
94
|
+
- max
|
95
|
+
- fixed_amount
|
96
|
+
price:
|
97
|
+
- range
|
98
|
+
- as_string
|
99
|
+
Faker::Company:
|
100
|
+
polish_register_of_national_economy:
|
101
|
+
- length
|
102
|
+
brazilian_company_number:
|
103
|
+
- formatted
|
104
|
+
Faker::CryptoCoin:
|
105
|
+
coin_name:
|
106
|
+
- coin
|
107
|
+
acronym:
|
108
|
+
- coin
|
109
|
+
url_logo:
|
110
|
+
- coin
|
111
|
+
Faker::Date:
|
112
|
+
between:
|
113
|
+
- from
|
114
|
+
- to
|
115
|
+
between_except:
|
116
|
+
- from
|
117
|
+
- to
|
118
|
+
- excepted
|
119
|
+
forward:
|
120
|
+
- days
|
121
|
+
backward:
|
122
|
+
- days
|
123
|
+
birthday:
|
124
|
+
- min_age
|
125
|
+
- max_age
|
126
|
+
Faker::Demographic:
|
127
|
+
height:
|
128
|
+
- unit
|
129
|
+
Faker::DrivingLicence:
|
130
|
+
british_driving_licence:
|
131
|
+
- last_name
|
132
|
+
- initials
|
133
|
+
- gender
|
134
|
+
- date_of_birth
|
135
|
+
Faker::File:
|
136
|
+
dir:
|
137
|
+
- segment_count
|
138
|
+
- root
|
139
|
+
- directory_separator
|
140
|
+
file_name:
|
141
|
+
- dir
|
142
|
+
- name
|
143
|
+
- ext
|
144
|
+
- directory_separator
|
145
|
+
Faker::Fillmurray:
|
146
|
+
image:
|
147
|
+
- grayscale
|
148
|
+
- width
|
149
|
+
- height
|
150
|
+
Faker::Finance:
|
151
|
+
vat_number:
|
152
|
+
- country
|
153
|
+
Faker::Hipster:
|
154
|
+
words:
|
155
|
+
- number
|
156
|
+
- supplemental
|
157
|
+
- spaces_allowed
|
158
|
+
sentence:
|
159
|
+
- word_count
|
160
|
+
- supplemental
|
161
|
+
- random_words_to_add
|
162
|
+
sentences:
|
163
|
+
- number
|
164
|
+
- supplemental
|
165
|
+
paragraph:
|
166
|
+
- sentence_count
|
167
|
+
- supplemental
|
168
|
+
- random_sentences_to_add
|
169
|
+
paragraphs:
|
170
|
+
- number
|
171
|
+
- supplemental
|
172
|
+
paragraph_by_chars:
|
173
|
+
- characters
|
174
|
+
- supplemental
|
175
|
+
Faker::IDNumber:
|
176
|
+
brazilian_citizen_number:
|
177
|
+
- formatted
|
178
|
+
brazilian_id:
|
179
|
+
- formatted
|
180
|
+
Faker::Internet:
|
181
|
+
email:
|
182
|
+
- name
|
183
|
+
- separators
|
184
|
+
free_email:
|
185
|
+
- name
|
186
|
+
safe_email:
|
187
|
+
- name
|
188
|
+
username:
|
189
|
+
- specifier
|
190
|
+
- separators
|
191
|
+
password:
|
192
|
+
- min_length
|
193
|
+
- max_length
|
194
|
+
- mix_case
|
195
|
+
- special_characters
|
196
|
+
domain_name:
|
197
|
+
- subdomain
|
198
|
+
fix_umlauts:
|
199
|
+
- string
|
200
|
+
mac_address:
|
201
|
+
- prefix
|
202
|
+
url:
|
203
|
+
- host
|
204
|
+
- path
|
205
|
+
- scheme
|
206
|
+
slug:
|
207
|
+
- words
|
208
|
+
- glue
|
209
|
+
user_agent:
|
210
|
+
- vendor
|
211
|
+
Faker::Invoice:
|
212
|
+
amount_between:
|
213
|
+
- from
|
214
|
+
- to
|
215
|
+
creditor_reference:
|
216
|
+
- ref
|
217
|
+
reference:
|
218
|
+
- ref
|
219
|
+
Faker::Json:
|
220
|
+
shallow_json:
|
221
|
+
- width
|
222
|
+
- options
|
223
|
+
add_depth_to_json:
|
224
|
+
- json
|
225
|
+
- width
|
226
|
+
- options
|
227
|
+
Faker::Lorem:
|
228
|
+
words:
|
229
|
+
- number
|
230
|
+
- supplemental
|
231
|
+
characters:
|
232
|
+
- number
|
233
|
+
sentence:
|
234
|
+
- word_count
|
235
|
+
- supplemental
|
236
|
+
- random_words_to_add
|
237
|
+
sentences:
|
238
|
+
- number
|
239
|
+
- supplemental
|
240
|
+
paragraph:
|
241
|
+
- sentence_count
|
242
|
+
- supplemental
|
243
|
+
- random_sentences_to_add
|
244
|
+
paragraphs:
|
245
|
+
- number
|
246
|
+
- supplemental
|
247
|
+
paragraph_by_chars:
|
248
|
+
- number
|
249
|
+
- supplemental
|
250
|
+
question:
|
251
|
+
- word_count
|
252
|
+
- supplemental
|
253
|
+
- random_words_to_add
|
254
|
+
questions:
|
255
|
+
- number
|
256
|
+
- supplemental
|
257
|
+
Faker::LoremFlickr:
|
258
|
+
image:
|
259
|
+
- size
|
260
|
+
- search_terms
|
261
|
+
- match_all
|
262
|
+
grayscale_image:
|
263
|
+
- size
|
264
|
+
- search_terms
|
265
|
+
- match_all
|
266
|
+
pixelated_image:
|
267
|
+
- size
|
268
|
+
- search_terms
|
269
|
+
- match_all
|
270
|
+
colorized_image:
|
271
|
+
- size
|
272
|
+
- color
|
273
|
+
- search_terms
|
274
|
+
- match_all
|
275
|
+
Faker::LoremPixel:
|
276
|
+
image:
|
277
|
+
- size
|
278
|
+
- is_gray
|
279
|
+
- category
|
280
|
+
- number
|
281
|
+
- text
|
282
|
+
- secure
|
283
|
+
Faker::Markdown:
|
284
|
+
sandwich:
|
285
|
+
- sentences
|
286
|
+
- repeat
|
287
|
+
Faker::Measurement:
|
288
|
+
height:
|
289
|
+
- amount
|
290
|
+
length:
|
291
|
+
- amount
|
292
|
+
volume:
|
293
|
+
- amount
|
294
|
+
weight:
|
295
|
+
- amount
|
296
|
+
metric_height:
|
297
|
+
- amount
|
298
|
+
metric_length:
|
299
|
+
- amount
|
300
|
+
metric_volume:
|
301
|
+
- amount
|
302
|
+
metric_weight:
|
303
|
+
- amount
|
304
|
+
Faker::Name:
|
305
|
+
initials:
|
306
|
+
- number
|
307
|
+
Faker::NationalHealthService:
|
308
|
+
check_digit:
|
309
|
+
- number
|
310
|
+
Faker::Number:
|
311
|
+
number:
|
312
|
+
- digits
|
313
|
+
leading_zero_number:
|
314
|
+
- digits
|
315
|
+
decimal_part:
|
316
|
+
- digits
|
317
|
+
decimal:
|
318
|
+
- l_digits
|
319
|
+
- r_digits
|
320
|
+
hexadecimal:
|
321
|
+
- digits
|
322
|
+
normal:
|
323
|
+
- mean
|
324
|
+
- standard_deviation
|
325
|
+
between:
|
326
|
+
- from
|
327
|
+
- to
|
328
|
+
within:
|
329
|
+
- range
|
330
|
+
positive:
|
331
|
+
- from
|
332
|
+
- to
|
333
|
+
negative:
|
334
|
+
- from
|
335
|
+
- to
|
336
|
+
Faker::Omniauth:
|
337
|
+
google:
|
338
|
+
- name
|
339
|
+
- email
|
340
|
+
- uid
|
341
|
+
facebook:
|
342
|
+
- name
|
343
|
+
- email
|
344
|
+
- username
|
345
|
+
- uid
|
346
|
+
twitter:
|
347
|
+
- name
|
348
|
+
- nickname
|
349
|
+
- uid
|
350
|
+
linkedin:
|
351
|
+
- name
|
352
|
+
- email
|
353
|
+
- uid
|
354
|
+
github:
|
355
|
+
- name
|
356
|
+
- email
|
357
|
+
- uid
|
358
|
+
Faker::PhoneNumber:
|
359
|
+
subscriber_number:
|
360
|
+
- length
|
361
|
+
Faker::Placeholdit:
|
362
|
+
image:
|
363
|
+
- size
|
364
|
+
- format
|
365
|
+
- background_color
|
366
|
+
- text_color
|
367
|
+
- text
|
368
|
+
Faker::Relationship:
|
369
|
+
familial:
|
370
|
+
- connection
|
371
|
+
Faker::Source:
|
372
|
+
hello_world:
|
373
|
+
- lang
|
374
|
+
print:
|
375
|
+
- str
|
376
|
+
- lang
|
377
|
+
print_1_to_10:
|
378
|
+
- lang
|
379
|
+
Faker::String:
|
380
|
+
random:
|
381
|
+
- length
|
382
|
+
Faker::Stripe:
|
383
|
+
valid_card:
|
384
|
+
- card_type
|
385
|
+
valid_token:
|
386
|
+
- card_type
|
387
|
+
invalid_card:
|
388
|
+
- card_error
|
389
|
+
ccv:
|
390
|
+
- card_type
|
391
|
+
Faker::Time:
|
392
|
+
between:
|
393
|
+
- from
|
394
|
+
- to
|
395
|
+
- format
|
396
|
+
between_dates:
|
397
|
+
- from
|
398
|
+
- to
|
399
|
+
- period
|
400
|
+
- format
|
401
|
+
forward:
|
402
|
+
- days
|
403
|
+
- period
|
404
|
+
- format
|
405
|
+
backward:
|
406
|
+
- days
|
407
|
+
- period
|
408
|
+
- format
|
409
|
+
Faker::Twitter:
|
410
|
+
user:
|
411
|
+
- include_status
|
412
|
+
- include_email
|
413
|
+
status:
|
414
|
+
- include_user
|
415
|
+
- include_photo
|
416
|
+
status_entities:
|
417
|
+
- include_photo
|
418
|
+
Faker::Types:
|
419
|
+
rb_string:
|
420
|
+
- words
|
421
|
+
rb_integer:
|
422
|
+
- from
|
423
|
+
- to
|
424
|
+
rb_hash:
|
425
|
+
- number
|
426
|
+
- type
|
427
|
+
complex_rb_hash:
|
428
|
+
- number
|
429
|
+
rb_array:
|
430
|
+
- len
|
431
|
+
Faker::Vehicle:
|
432
|
+
model:
|
433
|
+
- make_of_model
|
434
|
+
mileage:
|
435
|
+
- min
|
436
|
+
- max
|
437
|
+
license_plate:
|
438
|
+
- state_abbreviation
|
439
|
+
Faker::WorldCup:
|
440
|
+
group:
|
441
|
+
- group
|
442
|
+
roster:
|
443
|
+
- country
|
444
|
+
- type
|
445
|
+
Faker::Dota:
|
446
|
+
quote:
|
447
|
+
- hero
|
448
|
+
Faker::Movies::StarWars:
|
449
|
+
quote:
|
450
|
+
- character
|
451
|
+
Decidim::Faker::Localized:
|
452
|
+
words:
|
453
|
+
- number
|
454
|
+
- supplemental
|
455
|
+
characters:
|
456
|
+
- number
|
457
|
+
sentence:
|
458
|
+
- word_count
|
459
|
+
- supplemental
|
460
|
+
- random_words_to_add
|
461
|
+
sentences:
|
462
|
+
- number
|
463
|
+
- supplemental
|
464
|
+
paragraph:
|
465
|
+
- sentence_count
|
466
|
+
- supplemental
|
467
|
+
- random_sentences_to_add
|
468
|
+
paragraphs:
|
469
|
+
- number
|
470
|
+
- supplemental
|
471
|
+
paragraph_by_chars:
|
472
|
+
- number
|
473
|
+
- supplemental
|
474
|
+
question:
|
475
|
+
- word_count
|
476
|
+
- supplemental
|
477
|
+
- random_words_to_add
|
478
|
+
questions:
|
479
|
+
- number
|
480
|
+
- supplemental
|
@@ -0,0 +1,88 @@
|
|
1
|
+
require: rubocop-rails
|
2
|
+
|
3
|
+
Rails:
|
4
|
+
Enabled: true
|
5
|
+
|
6
|
+
Rails/ActionFilter:
|
7
|
+
Include:
|
8
|
+
- app/controllers/**/*.rb
|
9
|
+
|
10
|
+
Rails/ContentTag:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Rails/CreateTableWithTimestamps:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Rails/EnumUniqueness:
|
17
|
+
Include:
|
18
|
+
- app/models/**/*.rb
|
19
|
+
|
20
|
+
Rails/Exit:
|
21
|
+
Include:
|
22
|
+
- app/**/*.rb
|
23
|
+
- config/**/*.rb
|
24
|
+
- lib/**/*.rb
|
25
|
+
Exclude:
|
26
|
+
- lib/**/*.rake
|
27
|
+
|
28
|
+
Rails/FindBy:
|
29
|
+
Include:
|
30
|
+
- "**/*.rb"
|
31
|
+
|
32
|
+
Rails/FindEach:
|
33
|
+
Include:
|
34
|
+
- app/models/**/*.rb
|
35
|
+
|
36
|
+
Rails/HasAndBelongsToMany:
|
37
|
+
Include:
|
38
|
+
- app/models/**/*.rb
|
39
|
+
|
40
|
+
Rails/HasManyOrHasOneDependent:
|
41
|
+
Include:
|
42
|
+
- app/models/**/*.rb
|
43
|
+
|
44
|
+
Rails/InverseOf:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
Rails/LexicallyScopedActionFilter:
|
48
|
+
Include:
|
49
|
+
- app/controllers/**/*.rb
|
50
|
+
|
51
|
+
Rails/NotNullColumn:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
Rails/Output:
|
55
|
+
Include:
|
56
|
+
- app/**/*.rb
|
57
|
+
- config/**/*.rb
|
58
|
+
- db/**/*.rb
|
59
|
+
- lib/**/*.rb
|
60
|
+
Exclude:
|
61
|
+
- db/seeds.rb
|
62
|
+
|
63
|
+
Rails/OutputSafety:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Rails/Pluck:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Rails/RakeEnvironment:
|
70
|
+
Enabled: false
|
71
|
+
|
72
|
+
Rails/ReadWriteAttribute:
|
73
|
+
Include:
|
74
|
+
- app/models/**/*.rb
|
75
|
+
|
76
|
+
Rails/ReversibleMigration:
|
77
|
+
Enabled: false
|
78
|
+
|
79
|
+
Rails/ScopeArgs:
|
80
|
+
Include:
|
81
|
+
- app/models/**/*.rb
|
82
|
+
|
83
|
+
Rails/SkipsModelValidations:
|
84
|
+
Enabled: true
|
85
|
+
|
86
|
+
Rails/Validation:
|
87
|
+
Include:
|
88
|
+
- app/models/**/*.rb
|