decidim 0.0.8.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.circleci/config.yml +21 -21
- data/.codeclimate.yml +10 -6
- data/.eslintignore +1 -0
- data/.gitignore +1 -1
- data/.rubocop.yml +38 -20
- data/.travis.yml +0 -1
- data/Gemfile +6 -9
- data/Gemfile.lock +165 -205
- data/Rakefile +1 -1
- data/codecov.yml +5 -71
- data/crowdin.yaml +1 -1
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_decidim.scss +9 -2
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_action-icon.scss +7 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_cards.scss +6 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_editor.scss +1 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/{_sidebar.scss → extra/_sidebar.scss} +0 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_action-icon.scss +23 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_cards.scss +0 -7
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_icons.scss +4 -2
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_modules.scss +0 -1
- data/decidim-admin/app/assets/stylesheets/decidim/admin/{modules/_datepicker.scss → plugins/_foundation-datepicker.scss} +1 -1
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/_constants.scss +5 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/_math.scss +45 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +12 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +12 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +28 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +37 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +13 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_cot.scss +9 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_csc.scss +9 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_exp.scss +12 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +18 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +21 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +17 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +34 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +28 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sec.scss +9 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sin.scss +9 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +16 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss +9 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +4 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +4 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +8 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +13 -0
- data/decidim-admin/app/commands/decidim/admin/create_participatory_process.rb +23 -17
- data/decidim-admin/app/commands/decidim/admin/create_participatory_process_group.rb +1 -1
- data/decidim-admin/app/controllers/decidim/admin/moderations_controller.rb +4 -4
- data/decidim-admin/app/controllers/decidim/admin/participatory_processes_controller.rb +1 -1
- data/decidim-admin/app/forms/decidim/admin/organization_form.rb +6 -2
- data/decidim-admin/app/forms/decidim/admin/participatory_process_form.rb +5 -0
- data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +1 -1
- data/decidim-admin/app/helpers/decidim/admin/attributes_display_helper.rb +1 -1
- data/decidim-admin/app/views/decidim/admin/features/_feature.html.erb +5 -1
- data/decidim-admin/app/views/decidim/admin/moderations/_report.html.erb +11 -0
- data/decidim-admin/app/views/decidim/admin/moderations/index.html.erb +22 -24
- data/decidim-admin/app/views/layouts/decidim/admin/participatory_process.html.erb +3 -0
- data/decidim-admin/config/i18n-tasks.yml +1 -0
- data/decidim-admin/config/locales/ca.yml +7 -3
- data/decidim-admin/config/locales/en.yml +6 -2
- data/decidim-admin/config/locales/es.yml +7 -3
- data/decidim-admin/config/locales/eu.yml +4 -3
- data/decidim-admin/config/locales/fi.yml +4 -3
- data/decidim-admin/config/locales/fr.yml +389 -2
- data/decidim-admin/config/locales/nl.yml +4 -1
- data/decidim-admin/decidim-admin.gemspec +3 -3
- data/decidim-admin/lib/decidim/admin/test/manage_attachments_examples.rb +2 -2
- data/decidim-admin/spec/commands/activate_participatory_process_step_spec.rb +1 -0
- data/decidim-admin/spec/commands/create_category_spec.rb +1 -1
- data/decidim-admin/spec/commands/create_feature_spec.rb +7 -5
- data/decidim-admin/spec/commands/create_participatory_process_admin_spec.rb +2 -1
- data/decidim-admin/spec/commands/create_participatory_process_spec.rb +14 -6
- data/decidim-admin/spec/commands/create_scope_spec.rb +3 -2
- data/decidim-admin/spec/commands/deactivate_participatory_process_step_spec.rb +1 -0
- data/decidim-admin/spec/commands/destroy_feature_spec.rb +1 -0
- data/decidim-admin/spec/commands/destroy_participatory_process_step_spec.rb +1 -0
- data/decidim-admin/spec/commands/publish_participatory_process_spec.rb +1 -0
- data/decidim-admin/spec/commands/reorder_participatory_process_steps_spec.rb +1 -0
- data/decidim-admin/spec/commands/unpublish_participatory_process_spec.rb +1 -0
- data/decidim-admin/spec/commands/update_feature_spec.rb +7 -5
- data/decidim-admin/spec/commands/update_participatory_process_spec.rb +5 -5
- data/decidim-admin/spec/commands/update_scope_spec.rb +3 -2
- data/decidim-admin/spec/factories.rb +1 -0
- data/decidim-admin/spec/features/admin_invite_spec.rb +5 -5
- data/decidim-admin/spec/features/admin_manages_newsletters_spec.rb +5 -5
- data/decidim-admin/spec/features/admin_manages_organization_admins_spec.rb +2 -2
- data/decidim-admin/spec/features/admin_manages_organization_scopes_spec.rb +3 -3
- data/decidim-admin/spec/features/admin_manages_organization_spec.rb +7 -11
- data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +2 -2
- data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +3 -3
- data/decidim-admin/spec/features/static_pages_spec.rb +8 -7
- data/decidim-admin/spec/forms/newsletter_form_spec.rb +2 -2
- data/decidim-admin/spec/forms/organization_form_spec.rb +3 -3
- data/decidim-admin/spec/forms/participatory_process_form_spec.rb +4 -4
- data/decidim-admin/spec/forms/participatory_process_step_form_spec.rb +1 -1
- data/decidim-admin/spec/forms/participatory_process_user_role_form_spec.rb +1 -1
- data/decidim-admin/spec/forms/scope_form_spec.rb +1 -1
- data/decidim-admin/spec/helpers/aria_selected_link_to_helper_spec.rb +1 -0
- data/decidim-admin/spec/helpers/feature_settings_helper_spec.rb +1 -0
- data/decidim-admin/spec/jobs/newsletter_delivery_job_spec.rb +2 -2
- data/decidim-admin/spec/queries/process_admins_spec.rb +1 -1
- data/decidim-admin/spec/shared/manage_process_admins_examples.rb +2 -2
- data/decidim-admin/spec/shared/manage_process_categories_examples.rb +3 -3
- data/decidim-admin/spec/shared/manage_process_steps_examples.rb +5 -5
- data/decidim-admin/spec/shared/manage_processes_examples.rb +4 -4
- data/decidim-admin/spec/shared/participatory_admin_shared_context.rb +1 -0
- data/decidim-admin/spec/spec_helper.rb +1 -0
- data/decidim-admin/spec/views/decidim/static_pages/_form.html.erb_spec.rb +1 -0
- data/decidim-api/app/controllers/decidim/api/application_controller.rb +1 -1
- data/decidim-api/decidim-api.gemspec +1 -1
- data/decidim-api/spec/factories.rb +1 -0
- data/decidim-api/spec/spec_helper.rb +1 -0
- data/decidim-budgets/app/queries/decidim/budgets/filtered_projects.rb +36 -0
- data/decidim-budgets/config/locales/ca.yml +1 -0
- data/decidim-budgets/config/locales/en.yml +1 -0
- data/decidim-budgets/config/locales/es.yml +1 -0
- data/decidim-budgets/config/locales/fr.yml +35 -3
- data/decidim-budgets/decidim-budgets.gemspec +2 -2
- data/decidim-budgets/lib/decidim/budgets/feature.rb +9 -0
- data/decidim-budgets/spec/commands/add_line_item_spec.rb +6 -9
- data/decidim-budgets/spec/commands/cancel_order_spec.rb +3 -1
- data/decidim-budgets/spec/commands/checkout_spec.rb +3 -1
- data/decidim-budgets/spec/commands/create_project_spec.rb +4 -3
- data/decidim-budgets/spec/commands/remove_line_item_spec.rb +2 -1
- data/decidim-budgets/spec/commands/update_project_spec.rb +4 -3
- data/decidim-budgets/spec/factories.rb +1 -0
- data/decidim-budgets/spec/features/orders_spec.rb +24 -24
- data/decidim-budgets/spec/forms/project_form_spec.rb +1 -0
- data/decidim-budgets/spec/models/project_spec.rb +1 -1
- data/decidim-budgets/spec/queries/decidim/budgets/filtered_projects_spec.rb +21 -0
- data/decidim-budgets/spec/services/project_search_spec.rb +4 -3
- data/decidim-budgets/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-budgets/spec/shared/manage_attachments_examples.rb +1 -0
- data/decidim-budgets/spec/spec_helper.rb +1 -0
- data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
- data/decidim-comments/app/commands/decidim/comments/create_comment.rb +8 -2
- data/decidim-comments/app/frontend/application/application.component.tsx +3 -3
- data/decidim-comments/app/frontend/application/icon.component.tsx +1 -1
- data/decidim-comments/app/frontend/comments/add_comment_form.component.tsx +7 -7
- data/decidim-comments/app/frontend/comments/comment.component.test.tsx +7 -7
- data/decidim-comments/app/frontend/comments/comment.component.tsx +6 -6
- data/decidim-comments/app/frontend/comments/comment_thread.component.tsx +2 -2
- data/decidim-comments/app/frontend/comments/comments.component.test.tsx +5 -5
- data/decidim-comments/app/frontend/comments/comments.component.tsx +6 -6
- data/decidim-comments/app/frontend/comments/down_vote_button.component.test.tsx +4 -4
- data/decidim-comments/app/frontend/comments/down_vote_button.component.tsx +3 -3
- data/decidim-comments/app/frontend/comments/up_vote_button.component.test.tsx +4 -4
- data/decidim-comments/app/frontend/comments/up_vote_button.component.tsx +3 -3
- data/decidim-comments/app/frontend/comments/vote_button.component.tsx +1 -1
- data/decidim-comments/app/frontend/comments/vote_button_component.test.tsx +2 -2
- data/decidim-comments/app/frontend/entry.ts +2 -2
- data/decidim-comments/app/frontend/support/generate_comments_data.ts +2 -2
- data/decidim-comments/app/frontend/support/load_translations.ts +2 -2
- data/decidim-comments/app/frontend/support/resolve_graphql_query.ts +1 -1
- data/decidim-comments/app/mailers/decidim/comments/comment_notification_mailer.rb +1 -1
- data/decidim-comments/app/models/decidim/comments/comment.rb +3 -8
- data/decidim-comments/app/models/decidim/comments/seed.rb +1 -0
- data/decidim-comments/config/locales/fr.yml +62 -1
- data/decidim-comments/db/migrate/20170504085413_add_root_commentable_to_comments.rb +7 -0
- data/decidim-comments/db/migrate/20170510091348_update_root_commentable_for_comments.rb +22 -0
- data/decidim-comments/db/migrate/20170510091409_set_root_commentable_null_constraints.rb +6 -0
- data/decidim-comments/db/seeds.rb +4 -2
- data/decidim-comments/lib/decidim/comments/engine.rb +8 -0
- data/decidim-comments/lib/decidim/comments/test/factories.rb +1 -0
- data/decidim-comments/spec/commands/create_comment_spec.rb +13 -6
- data/decidim-comments/spec/commands/vote_comment_spec.rb +2 -6
- data/decidim-comments/spec/factories.rb +1 -0
- data/decidim-comments/spec/features/notifications_spec.rb +4 -4
- data/decidim-comments/spec/features/process_admin_manages_comments_spec.rb +1 -1
- data/decidim-comments/spec/features/report_comment_spec.rb +4 -2
- data/decidim-comments/spec/helpers/comments_helper_spec.rb +3 -3
- data/decidim-comments/spec/mailers/comment_notification_mailer_spec.rb +2 -1
- data/decidim-comments/spec/models/comment_spec.rb +5 -9
- data/decidim-comments/spec/models/comment_vote_spec.rb +3 -3
- data/decidim-comments/spec/models/seed_spec.rb +1 -1
- data/decidim-comments/spec/queries/sorted_comments_spec.rb +5 -5
- data/decidim-comments/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-comments/spec/spec_helper.rb +1 -0
- data/decidim-comments/spec/types/comment_mutation_type_spec.rb +4 -12
- data/decidim-comments/spec/types/comment_type_spec.rb +4 -5
- data/decidim-comments/spec/types/commentable_mutation_type_spec.rb +2 -2
- data/decidim-comments/spec/types/mutation_type_spec.rb +4 -6
- data/decidim-comments/spec/types/query_type_spec.rb +1 -1
- data/decidim-dev/decidim-dev.gemspec +6 -6
- data/decidim-dev/lib/decidim/dev/common_rake.rb +5 -1
- data/decidim-dev/lib/decidim/dev/railtie.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/base_spec_helper.rb +0 -2
- data/decidim-dev/lib/decidim/dev/test/rspec_support/geocoder.rb +4 -3
- data/decidim-dev/lib/decidim/dev/test/rspec_support/i18n.rb +2 -2
- data/decidim-dev/lib/decidim/dev/test/rspec_support/webmock.rb +1 -0
- data/decidim-dev/lib/generators/decidim/dummy_generator.rb +1 -1
- data/decidim-dev/lib/generators/decidim/templates/autoprefixer_initializer.rb +4 -3
- data/decidim-dev/lib/tasks/test_app.rake +1 -0
- data/decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb +1 -0
- data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +8 -8
- data/decidim-meetings/app/helpers/decidim/meetings/map_helper.rb +9 -9
- data/decidim-meetings/app/models/decidim/meetings/meeting.rb +1 -1
- data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/show.html.erb +8 -17
- data/decidim-meetings/config/locales/fr.yml +95 -1
- data/decidim-meetings/lib/decidim/meetings/feature.rb +7 -0
- data/decidim-meetings/spec/commands/close_meeting_spec.rb +2 -1
- data/decidim-meetings/spec/commands/create_meeting_spec.rb +6 -5
- data/decidim-meetings/spec/commands/update_meeting_spec.rb +6 -5
- data/decidim-meetings/spec/factories.rb +1 -0
- data/decidim-meetings/spec/features/explore_meetings_spec.rb +2 -1
- data/decidim-meetings/spec/forms/close_meeting_form_spec.rb +1 -0
- data/decidim-meetings/spec/forms/meeting_form_spec.rb +5 -3
- data/decidim-meetings/spec/services/meeting_search_spec.rb +3 -2
- data/decidim-meetings/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-meetings/spec/shared/manage_attachments_examples.rb +1 -1
- data/decidim-meetings/spec/shared/manage_meetings_examples.rb +21 -20
- data/decidim-meetings/spec/spec_helper.rb +1 -0
- data/decidim-pages/config/locales/fr.yml +18 -1
- data/decidim-pages/decidim-pages.gemspec +1 -1
- data/decidim-pages/lib/decidim/pages/feature.rb +7 -0
- data/decidim-pages/spec/commands/create_page_spec.rb +1 -3
- data/decidim-pages/spec/factories.rb +1 -0
- data/decidim-pages/spec/spec_helper.rb +1 -0
- data/decidim-proposals/app/commands/decidim/proposals/create_proposal_export.rb +36 -0
- data/decidim-proposals/app/controllers/decidim/proposals/admin/exports_controller.rb +24 -0
- data/decidim-proposals/app/controllers/decidim/proposals/proposal_votes_controller.rb +3 -1
- data/decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb +0 -5
- data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +0 -1
- data/decidim-proposals/app/jobs/decidim/proposals/export_job.rb +21 -0
- data/decidim-proposals/app/models/decidim/proposals/proposal.rb +1 -1
- data/decidim-proposals/app/queries/decidim/proposals/filtered_proposals.rb +36 -0
- data/decidim-proposals/app/services/decidim/proposals/proposal_serializer.rb +72 -0
- data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +15 -3
- data/decidim-proposals/app/views/decidim/proposals/proposal_widgets/show.html.erb +4 -25
- data/decidim-proposals/config/locales/ca.yml +4 -0
- data/decidim-proposals/config/locales/en.yml +6 -1
- data/decidim-proposals/config/locales/es.yml +4 -0
- data/decidim-proposals/config/locales/fr.yml +146 -1
- data/decidim-proposals/decidim-proposals.gemspec +2 -2
- data/decidim-proposals/lib/decidim/proposals/admin_engine.rb +5 -0
- data/decidim-proposals/lib/decidim/proposals/feature.rb +14 -0
- data/decidim-proposals/spec/factories.rb +1 -0
- data/decidim-proposals/spec/features/admin_manages_proposals_spec.rb +1 -0
- data/decidim-proposals/spec/features/process_admin_manages_proposals_spec.rb +1 -0
- data/decidim-proposals/spec/features/proposals_spec.rb +29 -28
- data/decidim-proposals/spec/features/report_proposal_spec.rb +2 -2
- data/decidim-proposals/spec/features/vote_proposal_spec.rb +36 -32
- data/decidim-proposals/spec/helpers/proposal_order_helper_spec.rb +3 -3
- data/decidim-proposals/spec/jobs/export_job_spec.rb +57 -0
- data/decidim-proposals/spec/lib/decidim/proposals/feature_spec.rb +1 -0
- data/decidim-proposals/spec/models/decidim/proposals/proposal_vote_spec.rb +3 -3
- data/decidim-proposals/spec/queries/decidim/proposals/filtered_proposals_spec.rb +21 -0
- data/decidim-proposals/spec/services/decidim/proposals/proposal_search_spec.rb +12 -12
- data/decidim-proposals/spec/services/decidim/proposals/proposal_serializer_spec.rb +71 -0
- data/decidim-proposals/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-proposals/spec/shared/create_proposal_examples.rb +4 -3
- data/decidim-proposals/spec/shared/export_proposals_examples.rb +37 -0
- data/decidim-proposals/spec/shared/manage_proposals_examples.rb +12 -11
- data/decidim-proposals/spec/shared/proposal_form_examples.rb +9 -8
- data/decidim-proposals/spec/spec_helper.rb +1 -0
- data/decidim-results/app/controllers/decidim/results/result_widgets_controller.rb +1 -0
- data/decidim-results/app/controllers/decidim/results/results_controller.rb +1 -1
- data/decidim-results/app/queries/decidim/results/filtered_results.rb +36 -0
- data/decidim-results/app/services/decidim/results/result_stats_calculator.rb +1 -1
- data/decidim-results/app/views/decidim/results/result_widgets/show.html.erb +2 -10
- data/decidim-results/config/locales/fr.yml +75 -1
- data/decidim-results/decidim-results.gemspec +2 -2
- data/decidim-results/lib/decidim/results/feature.rb +9 -0
- data/decidim-results/spec/commands/create_result_spec.rb +4 -3
- data/decidim-results/spec/commands/update_result_spec.rb +5 -4
- data/decidim-results/spec/controllers/results_controller_spec.rb +31 -0
- data/decidim-results/spec/factories.rb +1 -0
- data/decidim-results/spec/features/explore_results_spec.rb +75 -74
- data/decidim-results/spec/forms/result_form_spec.rb +2 -1
- data/decidim-results/spec/queries/decidim/results/filtered_results_spec.rb +21 -0
- data/decidim-results/spec/services/result_search_spec.rb +4 -3
- data/decidim-results/spec/services/result_stats_calculator_spec.rb +1 -0
- data/decidim-results/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-results/spec/spec_helper.rb +1 -0
- data/decidim-system/config/locales/fr.yml +64 -1
- data/decidim-system/decidim-system.gemspec +3 -3
- data/decidim-system/spec/factories.rb +1 -0
- data/decidim-system/spec/spec_helper.rb +1 -0
- data/docs/how_to_create_a_plugin.md +117 -139
- data/lib/generators/decidim/install_generator.rb +1 -1
- data/package.json +30 -31
- data/tslint.json +1 -2
- data/webpack.config.js +2 -3
- data/yarn.lock +976 -1326
- metadata +68 -31
- data/decidim-admin/yarn.lock +0 -4
- data/decidim-api/.gitignore +0 -7
- data/decidim-budgets/.gitignore +0 -7
- data/decidim-meetings/.gitignore +0 -7
- data/decidim-pages/.gitignore +0 -3
- data/decidim-proposals/.gitignore +0 -3
- data/decidim-results/.gitignore +0 -7
data/Rakefile
CHANGED
@@ -14,7 +14,7 @@ RSpec::Core::RakeTask.new(:spec)
|
|
14
14
|
task default: :spec
|
15
15
|
|
16
16
|
desc "Runs all tests in all Decidim engines"
|
17
|
-
task test_all: [
|
17
|
+
task test_all: ["decidim:generate_test_app"] do
|
18
18
|
DECIDIM_GEMS.each do |gem_name|
|
19
19
|
Dir.chdir("#{File.dirname(__FILE__)}/decidim-#{gem_name}") do
|
20
20
|
sh "rake"
|
data/codecov.yml
CHANGED
@@ -1,85 +1,19 @@
|
|
1
|
-
|
2
|
-
branch: master
|
3
|
-
bot: null
|
4
|
-
notify:
|
5
|
-
after_n_builds:
|
1
|
+
---
|
6
2
|
|
7
3
|
coverage:
|
8
4
|
precision: 2
|
9
5
|
round: down
|
10
|
-
range:
|
11
|
-
|
12
|
-
notify:
|
13
|
-
slack:
|
14
|
-
default:
|
15
|
-
url: null
|
16
|
-
threshold: null
|
17
|
-
branches: null
|
18
|
-
attachments: "sunburst, diff"
|
19
|
-
|
20
|
-
hipchat:
|
21
|
-
default:
|
22
|
-
url: null
|
23
|
-
notify: no
|
24
|
-
threshold: null
|
25
|
-
branches: null
|
26
|
-
card: yes
|
27
|
-
only_pulls: null
|
28
|
-
message: null
|
29
|
-
|
30
|
-
gitter:
|
31
|
-
default:
|
32
|
-
url: null
|
33
|
-
threshold: null
|
34
|
-
branches: null
|
35
|
-
message: null
|
36
|
-
|
37
|
-
webhook:
|
38
|
-
default:
|
39
|
-
url: null
|
40
|
-
threshold: null
|
41
|
-
branches: null
|
42
|
-
only_pulls: null
|
43
|
-
|
44
|
-
irc:
|
45
|
-
default:
|
46
|
-
server: null
|
47
|
-
channel: null
|
48
|
-
branches: null
|
49
|
-
threshold: null
|
50
|
-
message: null
|
6
|
+
range: 70...100
|
51
7
|
|
52
8
|
status:
|
53
|
-
project:
|
54
|
-
default:
|
55
|
-
base: pr
|
56
|
-
target: auto
|
57
|
-
threshold: 0.5%
|
58
|
-
branches: null
|
9
|
+
project: true
|
59
10
|
|
60
11
|
patch:
|
61
12
|
default:
|
62
|
-
only_pulls: true
|
63
|
-
base: pr
|
64
|
-
target: auto
|
65
13
|
target: 50%
|
66
|
-
branches: null
|
67
|
-
|
68
|
-
changes:
|
69
|
-
default:
|
70
|
-
branches: null
|
71
14
|
|
72
|
-
|
73
|
-
- "decidim-*/spec/*"
|
74
|
-
- "spec/*"
|
75
|
-
- "decidim-*/lib/**/*/test/*"
|
76
|
-
- "lib/**/*/test/*"
|
77
|
-
- "bundle.js"
|
78
|
-
- "vendor/*"
|
79
|
-
- "node_modules/*"
|
80
|
-
- ".bundle/*"
|
15
|
+
changes: false
|
81
16
|
|
82
17
|
comment:
|
83
|
-
layout: "header, diff
|
84
|
-
branches: null
|
18
|
+
layout: "header, diff"
|
85
19
|
behavior: default
|
data/crowdin.yaml
CHANGED
@@ -1,8 +1,15 @@
|
|
1
1
|
@import "variables";
|
2
|
-
|
2
|
+
|
3
|
+
@import "utils/fontface";
|
4
|
+
@import "utils/helpers";
|
5
|
+
@import "utils/keyframes";
|
6
|
+
@import "utils/mixins";
|
7
|
+
@import "utils/settings";
|
8
|
+
@import "utils/toggle-expand";
|
3
9
|
|
4
10
|
@import "foundation";
|
5
11
|
@include foundation-everything();
|
6
|
-
|
12
|
+
|
13
|
+
@import "plugins/foundation-datepicker";
|
7
14
|
|
8
15
|
@import "modules/modules";
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "decidim/editor";
|
data/decidim-admin/app/assets/stylesheets/decidim/admin/{_sidebar.scss → extra/_sidebar.scss}
RENAMED
File without changes
|
@@ -1,3 +1,12 @@
|
|
1
|
+
@import "../vendor/mathsass/math";
|
2
|
+
|
3
|
+
$action-icon-height: 24px;
|
4
|
+
$action-icon-width: $icon-size;
|
5
|
+
|
6
|
+
.action-icon {
|
7
|
+
height: $action-icon-height;
|
8
|
+
}
|
9
|
+
|
1
10
|
.action-icon:not(:last-child){
|
2
11
|
margin-right: 1rem;
|
3
12
|
}
|
@@ -11,3 +20,17 @@
|
|
11
20
|
.action-icon.action-icon--remove{
|
12
21
|
color: $alert-color;
|
13
22
|
}
|
23
|
+
|
24
|
+
.action-icon--hide{
|
25
|
+
position: relative;
|
26
|
+
|
27
|
+
&:before{
|
28
|
+
border-left: 1px solid;
|
29
|
+
bottom: 0;
|
30
|
+
content: "";
|
31
|
+
left: 50%;
|
32
|
+
position: absolute;
|
33
|
+
top: 0;
|
34
|
+
transform: rotate(rad-to-deg(atan2($action-icon-width, $action-icon-height)));
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// MathSass v0.10.0
|
2
|
+
// https://github.com/terkel/mathsass
|
3
|
+
//
|
4
|
+
// Copyright (c) 2014 Takeru Suzuki - http://terkel.jp/
|
5
|
+
// Licensed under the MIT license - http://opensource.org/licenses/MIT
|
6
|
+
|
7
|
+
// Constants
|
8
|
+
@import "constants";
|
9
|
+
|
10
|
+
// Exponentiation
|
11
|
+
@import "functions/pow";
|
12
|
+
|
13
|
+
// Factorial
|
14
|
+
@import "functions/fact";
|
15
|
+
|
16
|
+
// Square root
|
17
|
+
@import "functions/sqrt";
|
18
|
+
|
19
|
+
// Exponential function
|
20
|
+
@import "functions/exp";
|
21
|
+
@import "functions/frexp";
|
22
|
+
@import "functions/ldexp";
|
23
|
+
|
24
|
+
// Logarithms
|
25
|
+
@import "functions/log";
|
26
|
+
|
27
|
+
// Trigonometric functions
|
28
|
+
@import "functions/sin";
|
29
|
+
@import "functions/cos";
|
30
|
+
@import "functions/tan";
|
31
|
+
@import "functions/csc";
|
32
|
+
@import "functions/sec";
|
33
|
+
@import "functions/cot";
|
34
|
+
|
35
|
+
// Inverse trigonometric functions
|
36
|
+
@import "functions/asin";
|
37
|
+
@import "functions/acos";
|
38
|
+
@import "functions/atan";
|
39
|
+
@import "functions/atan2";
|
40
|
+
|
41
|
+
// Helpers
|
42
|
+
@import "helpers/strip-unit";
|
43
|
+
@import "helpers/deg-to-rad";
|
44
|
+
@import "helpers/rad-to-deg";
|
45
|
+
@import "helpers/unitless-rad";
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// Returns the arccosine of a number.
|
2
|
+
// @param {Number} $x A number between -1 and 1.
|
3
|
+
// @example
|
4
|
+
// acos(0.1) // 1.47063
|
5
|
+
// acos(-1) // 3.14159
|
6
|
+
@function acos ($x) {
|
7
|
+
@if $x > 1 or $x < -1 {
|
8
|
+
@warn "Argument for `acos()` must be a number between -1 and 1";
|
9
|
+
@return null;
|
10
|
+
}
|
11
|
+
@return $PI / 2 - asin($x);
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// Returns the arcsine of a number.
|
2
|
+
// @param {Number} $x A number between -1 and 1.
|
3
|
+
// @example
|
4
|
+
// asin(0.1) // 0.10017
|
5
|
+
// asin(-1) // -1.5708
|
6
|
+
@function asin ($x) {
|
7
|
+
@if $x > 1 or $x < -1 {
|
8
|
+
@warn "Argument for `asin()` must be a number between -1 and 1";
|
9
|
+
@return null;
|
10
|
+
}
|
11
|
+
@return atan($x / sqrt(1 - $x * $x));
|
12
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
// Returns the arctangent of a number.
|
2
|
+
// @param {Number} $x
|
3
|
+
// @example
|
4
|
+
// atan(0.1) // 0.09967
|
5
|
+
// atan(-1) // -0.7854
|
6
|
+
@function atan ($x) {
|
7
|
+
$i: 24;
|
8
|
+
$sgn: 0;
|
9
|
+
$a: 0;
|
10
|
+
@if $x > 1 {
|
11
|
+
$sgn: 1;
|
12
|
+
$x: 1 / $x;
|
13
|
+
} @else if $x < -1 {
|
14
|
+
$sgn: -1;
|
15
|
+
$x: 1 / $x;
|
16
|
+
}
|
17
|
+
@while $i > 0 {
|
18
|
+
$a: ($i * $i * $x * $x) / (2 * $i + 1 + $a);
|
19
|
+
$i: $i - 1;
|
20
|
+
}
|
21
|
+
@if $sgn > 0 {
|
22
|
+
@return $PI / 2 - $x / (1 + $a);
|
23
|
+
} @else if $sgn < 0 {
|
24
|
+
@return -$PI / 2 - $x / (1 + $a);
|
25
|
+
} @else {
|
26
|
+
@return $x / (1 + $a);
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// Returns the arctangent of the quotient of its arguments.
|
2
|
+
// @param {Number} $y
|
3
|
+
// @param {Number} $x
|
4
|
+
// @example
|
5
|
+
// atan2(0, 0) // 0
|
6
|
+
// atan2(0, -0.0) // 3.14159
|
7
|
+
// atan2(-0.0, 0) // 0
|
8
|
+
// atan2(-0.0, -0.0) // -3.14159
|
9
|
+
// atan2(0, 1) // 0
|
10
|
+
// atan2(0, -1) // 3.14159
|
11
|
+
@function atan2 ($y, $x) {
|
12
|
+
@if $x > 0 {
|
13
|
+
@return atan($y / $x);
|
14
|
+
} @else if $x < 0 {
|
15
|
+
@if $y < 0 {
|
16
|
+
@return atan($y / $x) - $PI;
|
17
|
+
} @else {
|
18
|
+
@return atan($y / $x) + $PI;
|
19
|
+
}
|
20
|
+
} @else {
|
21
|
+
@if $y < 0 {
|
22
|
+
@return - $PI / 2;
|
23
|
+
} @else if $y > 0 {
|
24
|
+
@return $PI / 2;
|
25
|
+
} @else {
|
26
|
+
@if 1 / $x == 1 / 0 {
|
27
|
+
@return 0;
|
28
|
+
} @else {
|
29
|
+
@if 1 / $y == 1 / 0 {
|
30
|
+
@return $PI;
|
31
|
+
} @else {
|
32
|
+
@return -$PI;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// Returns the cosine of a number.
|
2
|
+
// @param {Number} $x A number in rad or deg. Assuming unitless number to be in rad.
|
3
|
+
// @example
|
4
|
+
// cos(0.7854) // 0.70711
|
5
|
+
// cos(45deg) // 0.70711
|
6
|
+
@function cos ($x) {
|
7
|
+
$x: unitless-rad($x) % ($PI * 2);
|
8
|
+
$ret: 0;
|
9
|
+
@for $n from 0 to 24 {
|
10
|
+
$ret: $ret + pow(-1, $n) * pow($x, 2 * $n) / fact(2 * $n);
|
11
|
+
}
|
12
|
+
@return $ret;
|
13
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// Returns the cotangent of a number.
|
2
|
+
// @param {Number} $x A number in rad or deg. Assuming unitless number to be in rad.
|
3
|
+
// @example
|
4
|
+
// cot(0.5236) // 1.73205
|
5
|
+
// cot(30deg) // 1.73205
|
6
|
+
@function cot ($x) {
|
7
|
+
$x: unitless-rad($x);
|
8
|
+
@return 1 / tan($x);
|
9
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// Returns the cosecant of a number.
|
2
|
+
// @param {Number} $x A number in rad or deg. Assuming unitless number to be in rad.
|
3
|
+
// @example
|
4
|
+
// csc(1.0472) // 1.1547
|
5
|
+
// csc(60deg) // 1.1547
|
6
|
+
@function csc ($x) {
|
7
|
+
$x: unitless-rad($x);
|
8
|
+
@return 1 / sin($x);
|
9
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// Returns E^x, where x is the argument, and E is Euler's constant, the base of the natural logarithms.
|
2
|
+
// @param {Number} $x
|
3
|
+
// @example
|
4
|
+
// exp(1) // 2.71828
|
5
|
+
// exp(-1) // 0.36788
|
6
|
+
@function exp ($x) {
|
7
|
+
$ret: 0;
|
8
|
+
@for $n from 0 to 24 {
|
9
|
+
$ret: $ret + pow($x, $n) / fact($n);
|
10
|
+
}
|
11
|
+
@return $ret;
|
12
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Returns the factorial of a non-negative integer.
|
2
|
+
// @param {Number} $x A non-negative integer.
|
3
|
+
// @return {Number}
|
4
|
+
// @example
|
5
|
+
// fact(0) // 1
|
6
|
+
// fact(8) // 40320
|
7
|
+
@function fact ($x) {
|
8
|
+
@if $x < 0 or $x != floor($x) {
|
9
|
+
@warn "Argument for `fact()` must be a positive integer.";
|
10
|
+
@return null;
|
11
|
+
}
|
12
|
+
$ret: 1;
|
13
|
+
@while $x > 0 {
|
14
|
+
$ret: $ret * $x;
|
15
|
+
$x: $x - 1;
|
16
|
+
}
|
17
|
+
@return $ret;
|
18
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Returns a two-element list containing the normalized fraction and exponent of number.
|
2
|
+
// @param {Number} $x
|
3
|
+
// @return {List} fraction, exponent
|
4
|
+
@function frexp ($x) {
|
5
|
+
$exp: 0;
|
6
|
+
@if $x < 0 {
|
7
|
+
$x: $x * -1;
|
8
|
+
}
|
9
|
+
@if $x < 0.5 {
|
10
|
+
@while $x < 0.5 {
|
11
|
+
$x: $x * 2;
|
12
|
+
$exp: $exp - 1;
|
13
|
+
}
|
14
|
+
} @else if $x >= 1 {
|
15
|
+
@while $x >= 1 {
|
16
|
+
$x: $x / 2;
|
17
|
+
$exp: $exp + 1;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
@return $x, $exp;
|
21
|
+
}
|