decidim 0.0.6 → 0.0.7
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/.babelrc +2 -1
- data/.ruby-version +1 -1
- data/.travis.yml +4 -6
- data/Dockerfile +2 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +48 -48
- data/README.md +6 -1
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_decidim.scss +9 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_variables.scss +7 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/application.scss +2 -19
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_categories.scss +5 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/{_email_preview.scss → extra/_email_preview.scss} +0 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/{_login.scss → extra/_login.scss} +0 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_select_multiple.scss +3 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +5 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_action-icon.scss +13 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_buttons.scss +44 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_callouts.scss +32 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_cards.scss +36 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_char-counter.scss +20 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_component-counter.scss +17 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_forms.scss +80 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_icons.scss +65 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_layout.scss +67 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_main-nav.scss +41 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_modules.scss +24 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_process-header.scss +11 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +95 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_table-list.scss +78 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_tabs.scss +49 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_title-bar.scss +32 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_typography.scss +15 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_user-login.scss +23 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_fontface.scss +27 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_helpers.scss +25 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_keyframes.scss +21 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_mixins.scss +20 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_settings.scss +590 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_toggle-expand.scss +8 -0
- data/decidim-admin/app/commands/decidim/admin/create_attachment.rb +13 -4
- data/decidim-admin/app/commands/decidim/admin/update_participatory_process.rb +3 -3
- data/decidim-admin/app/commands/decidim/admin/update_participatory_process_admin.rb +40 -0
- data/decidim-admin/app/controllers/decidim/admin/application_controller.rb +7 -1
- data/decidim-admin/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
- data/decidim-admin/app/controllers/decidim/admin/organization_controller.rb +2 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +29 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_processes_controller.rb +2 -2
- data/decidim-admin/app/controllers/decidim/admin/scopes_controller.rb +2 -0
- data/decidim-admin/app/controllers/decidim/admin/static_pages_controller.rb +2 -0
- data/decidim-admin/app/controllers/decidim/admin/user_groups_controller.rb +3 -1
- data/decidim-admin/app/controllers/decidim/admin/users_controller.rb +1 -1
- data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +8 -0
- data/decidim-admin/app/helpers/decidim/admin/icon_link_helper.rb +30 -0
- data/decidim-admin/app/jobs/decidim/admin/newsletter_job.rb +1 -1
- data/decidim-admin/app/queries/decidim/admin/process_admin_roles_for_process.rb +1 -1
- data/decidim-admin/app/views/decidim/admin/attachments/_form.html.erb +29 -8
- data/decidim-admin/app/views/decidim/admin/attachments/edit.html.erb +3 -5
- data/decidim-admin/app/views/decidim/admin/attachments/index.html.erb +45 -35
- data/decidim-admin/app/views/decidim/admin/attachments/new.html.erb +3 -5
- data/decidim-admin/app/views/decidim/admin/categories/_form.html.erb +18 -10
- data/decidim-admin/app/views/decidim/admin/categories/edit.html.erb +3 -5
- data/decidim-admin/app/views/decidim/admin/categories/index.html.erb +57 -42
- data/decidim-admin/app/views/decidim/admin/categories/new.html.erb +3 -5
- data/decidim-admin/app/views/decidim/admin/dashboard/show.html.erb +6 -3
- data/decidim-admin/app/views/decidim/admin/features/_feature.html.erb +11 -11
- data/decidim-admin/app/views/decidim/admin/features/_form.html.erb +56 -48
- data/decidim-admin/app/views/decidim/admin/features/edit.html.erb +3 -5
- data/decidim-admin/app/views/decidim/admin/features/index.html.erb +21 -19
- data/decidim-admin/app/views/decidim/admin/features/new.html.erb +3 -4
- data/decidim-admin/app/views/decidim/admin/moderations/index.html.erb +71 -61
- data/decidim-admin/app/views/decidim/admin/newsletters/_form.html.erb +7 -1
- data/decidim-admin/app/views/decidim/admin/newsletters/edit.html.erb +10 -8
- data/decidim-admin/app/views/decidim/admin/newsletters/index.html.erb +50 -43
- data/decidim-admin/app/views/decidim/admin/newsletters/new.html.erb +10 -8
- data/decidim-admin/app/views/decidim/admin/newsletters/show.html.erb +20 -12
- data/decidim-admin/app/views/decidim/admin/organization/_form.html.erb +98 -62
- data/decidim-admin/app/views/decidim/admin/organization/edit.html.erb +11 -8
- data/decidim-admin/app/views/decidim/admin/participatory_process_groups/_form.html.erb +4 -4
- data/decidim-admin/app/views/decidim/admin/participatory_process_groups/edit.html.erb +15 -9
- data/decidim-admin/app/views/decidim/admin/participatory_process_groups/index.html.erb +37 -35
- data/decidim-admin/app/views/decidim/admin/participatory_process_groups/new.html.erb +10 -8
- data/decidim-admin/app/views/decidim/admin/participatory_process_steps/_form.html.erb +21 -11
- data/decidim-admin/app/views/decidim/admin/participatory_process_steps/edit.html.erb +3 -4
- data/decidim-admin/app/views/decidim/admin/participatory_process_steps/index.html.erb +60 -51
- data/decidim-admin/app/views/decidim/admin/participatory_process_steps/new.html.erb +4 -5
- data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +23 -0
- data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/edit.html.erb +7 -0
- data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +46 -34
- data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/new.html.erb +7 -0
- data/decidim-admin/app/views/decidim/admin/participatory_processes/_form.html.erb +103 -72
- data/decidim-admin/app/views/decidim/admin/participatory_processes/edit.html.erb +15 -17
- data/decidim-admin/app/views/decidim/admin/participatory_processes/index.html.erb +52 -43
- data/decidim-admin/app/views/decidim/admin/participatory_processes/new.html.erb +6 -5
- data/decidim-admin/app/views/decidim/admin/scopes/edit.html.erb +9 -7
- data/decidim-admin/app/views/decidim/admin/scopes/index.html.erb +37 -36
- data/decidim-admin/app/views/decidim/admin/scopes/new.html.erb +9 -6
- data/decidim-admin/app/views/decidim/admin/static_pages/_form.html.erb +3 -3
- data/decidim-admin/app/views/decidim/admin/static_pages/edit.html.erb +10 -8
- data/decidim-admin/app/views/decidim/admin/static_pages/index.html.erb +38 -37
- data/decidim-admin/app/views/decidim/admin/static_pages/new.html.erb +10 -8
- data/decidim-admin/app/views/decidim/admin/user_groups/index.html.erb +37 -31
- data/decidim-admin/app/views/decidim/admin/users/_form.html.erb +5 -4
- data/decidim-admin/app/views/decidim/admin/users/index.html.erb +57 -52
- data/decidim-admin/app/views/decidim/admin/users/new.html.erb +10 -7
- data/decidim-admin/app/views/layouts/decidim/admin/_application.html.erb +23 -36
- data/decidim-admin/app/views/layouts/decidim/admin/_callouts_full.html.erb +10 -0
- data/decidim-admin/app/views/layouts/decidim/admin/_language_chooser.html.erb +9 -9
- data/decidim-admin/app/views/layouts/decidim/admin/_main_nav.html.erb +11 -0
- data/decidim-admin/app/views/layouts/decidim/admin/_template_bottom.html.erb +2 -0
- data/decidim-admin/app/views/layouts/decidim/admin/_template_top.html.erb +3 -0
- data/decidim-admin/app/views/layouts/decidim/admin/_title_bar.html.erb +20 -0
- data/decidim-admin/app/views/layouts/decidim/admin/newsletters.erb +14 -0
- data/decidim-admin/app/views/layouts/decidim/admin/pages.html.erb +14 -0
- data/decidim-admin/app/views/layouts/decidim/admin/participatory_process.html.erb +55 -53
- data/decidim-admin/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +14 -0
- data/decidim-admin/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -0
- data/decidim-admin/app/views/layouts/decidim/admin/settings.html.erb +19 -0
- data/decidim-admin/app/views/layouts/decidim/admin/users.html.erb +21 -0
- data/decidim-admin/config/i18n-tasks.yml +1 -0
- data/decidim-admin/config/locales/ca.yml +77 -22
- data/decidim-admin/config/locales/en.yml +75 -20
- data/decidim-admin/config/locales/es.yml +77 -22
- data/decidim-admin/config/locales/eu.yml +191 -16
- data/decidim-admin/config/locales/fi.yml +0 -29
- data/decidim-admin/config/routes.rb +1 -1
- data/decidim-admin/lib/decidim/admin/test/manage_attachments_examples.rb +11 -11
- data/decidim-admin/spec/commands/deliver_newsletter_spec.rb +4 -1
- data/decidim-admin/spec/commands/update_participatory_process_spec.rb +117 -0
- data/decidim-admin/spec/features/admin_invite_spec.rb +5 -1
- data/decidim-admin/spec/features/admin_manages_feature_permissions_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_features_spec.rb +10 -10
- data/decidim-admin/spec/features/admin_manages_newsletters_spec.rb +11 -9
- data/decidim-admin/spec/features/admin_manages_organization_admins_spec.rb +8 -5
- data/decidim-admin/spec/features/admin_manages_organization_scopes_spec.rb +7 -6
- data/decidim-admin/spec/features/admin_manages_organization_spec.rb +14 -0
- data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +6 -6
- data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +27 -5
- data/decidim-admin/spec/features/admin_manages_user_groups_spec.rb +1 -1
- data/decidim-admin/spec/features/participatory_process_admin_manages_participatory_process_admins_spec.rb +2 -2
- data/decidim-admin/spec/features/static_pages_spec.rb +9 -7
- data/decidim-admin/spec/jobs/newsletter_job_spec.rb +2 -0
- data/decidim-admin/spec/queries/process_admin_roles_for_process_spec.rb +4 -3
- data/decidim-admin/spec/shared/manage_process_admins_examples.rb +31 -8
- data/decidim-admin/spec/shared/manage_process_attachments_examples.rb +1 -1
- data/decidim-admin/spec/shared/manage_process_categories_examples.rb +11 -26
- data/decidim-admin/spec/shared/manage_process_steps_examples.rb +8 -23
- data/decidim-admin/spec/shared/manage_processes_examples.rb +5 -33
- data/decidim-admin/spec/support/processes_menu_links_helpers.rb +1 -1
- data/decidim-admin/yarn.lock +4 -0
- data/decidim-api/app/controllers/decidim/api/application_controller.rb +2 -1
- data/decidim-budgets/app/controllers/decidim/budgets/admin/projects_controller.rb +1 -1
- data/decidim-budgets/app/controllers/decidim/budgets/line_items_controller.rb +21 -15
- data/decidim-budgets/app/views/decidim/budgets/admin/projects/_form.html.erb +34 -24
- data/decidim-budgets/app/views/decidim/budgets/admin/projects/edit.html.erb +3 -5
- data/decidim-budgets/app/views/decidim/budgets/admin/projects/index.html.erb +52 -34
- data/decidim-budgets/app/views/decidim/budgets/admin/projects/new.html.erb +4 -5
- data/decidim-budgets/app/views/decidim/budgets/projects/_filters.html.erb +1 -1
- data/decidim-budgets/config/i18n-tasks.yml +1 -0
- data/decidim-budgets/config/locales/ca.yml +5 -0
- data/decidim-budgets/config/locales/en.yml +5 -0
- data/decidim-budgets/config/locales/es.yml +5 -0
- data/decidim-budgets/config/locales/eu.yml +27 -0
- data/decidim-budgets/spec/features/orders_spec.rb +22 -0
- data/decidim-budgets/spec/shared/manage_attachments_examples.rb +1 -1
- data/decidim-budgets/spec/shared/manage_projects_examples.rb +10 -8
- data/decidim-comments/README.md +33 -0
- data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
- data/decidim-comments/app/assets/javascripts/decidim/comments/comments.js.erb +2 -0
- data/decidim-comments/app/frontend/application/{apollo_client.js → apollo_client.ts} +5 -5
- data/decidim-comments/app/frontend/application/application.component.test.tsx +36 -0
- data/decidim-comments/app/frontend/application/application.component.tsx +37 -0
- data/decidim-comments/app/frontend/application/icon.component.test.tsx +49 -0
- data/decidim-comments/app/frontend/application/icon.component.tsx +35 -0
- data/decidim-comments/app/frontend/comments/{add_comment_form.component.test.jsx → add_comment_form.component.test.tsx} +98 -92
- data/decidim-comments/app/frontend/comments/{add_comment_form.component.jsx → add_comment_form.component.tsx} +152 -153
- data/decidim-comments/app/frontend/comments/{comment.component.test.jsx → comment.component.test.tsx} +59 -71
- data/decidim-comments/app/frontend/comments/{comment.component.jsx → comment.component.tsx} +114 -116
- data/decidim-comments/app/frontend/comments/comment_order_selector.component.test.tsx +21 -0
- data/decidim-comments/app/frontend/comments/comment_order_selector.component.tsx +88 -0
- data/decidim-comments/app/frontend/comments/comment_thread.component.test.tsx +65 -0
- data/decidim-comments/app/frontend/comments/comment_thread.component.tsx +70 -0
- data/decidim-comments/app/frontend/comments/{comments.component.test.jsx → comments.component.test.tsx} +38 -81
- data/decidim-comments/app/frontend/comments/{comments.component.jsx → comments.component.tsx} +49 -63
- data/decidim-comments/app/frontend/comments/down_vote_button.component.test.tsx +39 -0
- data/decidim-comments/app/frontend/comments/down_vote_button.component.tsx +89 -0
- data/decidim-comments/app/frontend/comments/up_vote_button.component.test.tsx +39 -0
- data/decidim-comments/app/frontend/comments/up_vote_button.component.tsx +89 -0
- data/decidim-comments/app/frontend/comments/vote_button.component.tsx +36 -0
- data/decidim-comments/app/frontend/comments/{vote_button_component.test.jsx → vote_button_component.test.tsx} +16 -20
- data/decidim-comments/app/frontend/entry.ts +19 -0
- data/decidim-comments/app/frontend/{comments → fragments}/add_comment_form_commentable.fragment.graphql +1 -1
- data/decidim-comments/app/frontend/{comments → fragments}/add_comment_form_session.fragment.graphql +1 -1
- data/decidim-comments/app/frontend/{comments → fragments}/comment.fragment.graphql +3 -1
- data/decidim-comments/app/frontend/{comments → fragments}/comment_data.fragment.graphql +6 -3
- data/decidim-comments/app/frontend/{comments → fragments}/comment_thread.fragment.graphql +3 -1
- data/decidim-comments/app/frontend/{comments/down_vote.fragment.graphql → fragments/down_vote_button.fragment.graphql} +2 -2
- data/decidim-comments/app/frontend/{comments/up_vote.fragment.graphql → fragments/up_vote_button.fragment.graphql} +2 -2
- data/decidim-comments/app/frontend/{comments/add_comment_form.mutation.graphql → mutations/add_comment.mutation.graphql} +3 -1
- data/decidim-comments/app/frontend/{comments → mutations}/down_vote.mutation.graphql +3 -1
- data/decidim-comments/app/frontend/{comments → mutations}/up_vote.mutation.graphql +3 -1
- data/decidim-comments/app/frontend/{comments → queries}/comments.query.graphql +4 -1
- data/decidim-comments/app/frontend/support/{asset_url.js → asset_url.ts} +1 -1
- data/decidim-comments/app/frontend/support/{generate_comments_data.js → generate_comments_data.ts} +11 -6
- data/decidim-comments/app/frontend/support/{generate_user_data.js → generate_user_data.ts} +2 -2
- data/decidim-comments/app/frontend/support/{generate_user_group_data.js → generate_user_group_data.ts} +2 -2
- data/decidim-comments/app/frontend/support/graphql_transformer.js +32 -0
- data/decidim-comments/app/frontend/support/load_translations.ts +44 -0
- data/decidim-comments/app/frontend/support/{require_all.js → require_all.ts} +1 -1
- data/decidim-comments/app/frontend/support/{resolve_graphql_query.js → resolve_graphql_query.ts} +7 -7
- data/decidim-comments/app/frontend/support/schema.ts +119 -0
- data/decidim-comments/config/locales/eu.yml +29 -5
- data/decidim-dev/Rakefile +2 -0
- data/decidim-dev/config/locales/eu.yml +1 -1
- data/decidim-dev/decidim-dev.gemspec +1 -1
- data/decidim-dev/lib/decidim/dev/test/rspec_support/capybara.rb +1 -4
- data/decidim-dev/lib/decidim/dev/test/rspec_support/feature.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/helpers.rb +1 -1
- data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-shim.js +215 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/translation_helpers.rb +1 -1
- data/decidim-dev/lib/generators/decidim/dummy_generator.rb +5 -0
- data/decidim-meetings/app/controllers/decidim/meetings/admin/application_controller.rb +1 -1
- data/decidim-meetings/app/views/decidim/meetings/admin/meeting_closes/_form.html.erb +30 -19
- data/decidim-meetings/app/views/decidim/meetings/admin/meeting_closes/edit.html.erb +3 -5
- data/decidim-meetings/app/views/decidim/meetings/admin/meetings/_form.html.erb +46 -35
- data/decidim-meetings/app/views/decidim/meetings/admin/meetings/edit.html.erb +5 -6
- data/decidim-meetings/app/views/decidim/meetings/admin/meetings/index.html.erb +72 -51
- data/decidim-meetings/app/views/decidim/meetings/admin/meetings/new.html.erb +4 -6
- data/decidim-meetings/app/views/decidim/meetings/meetings/_filters.html.erb +1 -1
- data/decidim-meetings/config/locales/ca.yml +2 -1
- data/decidim-meetings/config/locales/en.yml +2 -1
- data/decidim-meetings/config/locales/es.yml +2 -1
- data/decidim-meetings/config/locales/eu.yml +25 -5
- data/decidim-meetings/config/locales/fi.yml +0 -1
- data/decidim-meetings/spec/shared/manage_attachments_examples.rb +1 -1
- data/decidim-meetings/spec/shared/manage_meetings_examples.rb +18 -16
- data/decidim-pages/app/views/decidim/pages/admin/pages/_form.html.erb +10 -3
- data/decidim-pages/app/views/decidim/pages/admin/pages/edit.html.erb +3 -5
- data/decidim-pages/config/locales/eu.yml +4 -2
- data/decidim-pages/spec/features/admin_spec.rb +1 -1
- data/decidim-proposals/app/controllers/decidim/proposals/admin/proposals_controller.rb +1 -1
- data/decidim-proposals/app/views/decidim/proposals/admin/proposal_answers/edit.html.erb +14 -8
- data/decidim-proposals/app/views/decidim/proposals/admin/proposals/_form.html.erb +28 -20
- data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +60 -43
- data/decidim-proposals/app/views/decidim/proposals/admin/proposals/new.html.erb +3 -5
- data/decidim-proposals/app/views/decidim/proposals/proposals/_filters.html.erb +1 -1
- data/decidim-proposals/config/locales/ca.yml +3 -0
- data/decidim-proposals/config/locales/en.yml +4 -1
- data/decidim-proposals/config/locales/es.yml +3 -0
- data/decidim-proposals/config/locales/eu.yml +42 -19
- data/decidim-proposals/config/locales/fi.yml +0 -1
- data/decidim-proposals/spec/shared/manage_proposals_examples.rb +15 -13
- data/decidim-results/README.md +1 -1
- data/decidim-results/app/controllers/decidim/results/admin/results_controller.rb +1 -1
- data/decidim-results/app/views/decidim/results/admin/results/_form.html.erb +30 -21
- data/decidim-results/app/views/decidim/results/admin/results/edit.html.erb +4 -5
- data/decidim-results/app/views/decidim/results/admin/results/index.html.erb +40 -25
- data/decidim-results/app/views/decidim/results/admin/results/new.html.erb +4 -5
- data/decidim-results/app/views/decidim/results/results/_filters.html.erb +1 -1
- data/decidim-results/config/locales/ca.yml +2 -0
- data/decidim-results/config/locales/en.yml +2 -0
- data/decidim-results/config/locales/es.yml +2 -0
- data/decidim-results/config/locales/eu.yml +22 -4
- data/decidim-results/spec/shared/manage_results_examples.rb +10 -8
- data/decidim-system/config/locales/eu.yml +60 -2
- data/lib/generators/decidim/app_generator.rb +0 -4
- data/lib/generators/decidim/install_generator.rb +0 -4
- data/lib/generators/decidim/templates/README.md.erb +18 -18
- data/package.json +47 -22
- data/tsconfig.json +17 -0
- data/tslint.json +12 -0
- data/webpack.config.js +8 -6
- data/webpack.d.ts +5 -0
- data/yarn.lock +1461 -781
- metadata +119 -83
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_actions.scss +0 -8
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_forms.scss +0 -10
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_foundation_and_overrides.scss +0 -53
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_icons.scss +0 -9
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_layout.scss +0 -27
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_settings.scss +0 -566
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_tables.scss +0 -21
- data/decidim-admin/app/views/layouts/decidim/admin/_login_items.html.erb +0 -8
- data/decidim-admin/app/views/layouts/decidim/admin/_sidebar.html.erb +0 -22
- data/decidim-comments/app/frontend/application/application.component.jsx +0 -37
- data/decidim-comments/app/frontend/application/application.component.test.jsx +0 -33
- data/decidim-comments/app/frontend/application/icon.component.jsx +0 -26
- data/decidim-comments/app/frontend/application/icon.component.test.jsx +0 -53
- data/decidim-comments/app/frontend/comments/comment_order_selector.component.jsx +0 -72
- data/decidim-comments/app/frontend/comments/comment_order_selector.component.test.jsx +0 -20
- data/decidim-comments/app/frontend/comments/comment_thread.component.jsx +0 -75
- data/decidim-comments/app/frontend/comments/comment_thread.component.test.jsx +0 -83
- data/decidim-comments/app/frontend/comments/down_vote_button.component.jsx +0 -98
- data/decidim-comments/app/frontend/comments/down_vote_button.component.test.jsx +0 -48
- data/decidim-comments/app/frontend/comments/featured_comment.component.jsx +0 -23
- data/decidim-comments/app/frontend/comments/featured_comment.component.test.jsx +0 -15
- data/decidim-comments/app/frontend/comments/up_vote_button.component.jsx +0 -98
- data/decidim-comments/app/frontend/comments/up_vote_button.component.test.jsx +0 -48
- data/decidim-comments/app/frontend/comments/vote_button.component.jsx +0 -32
- data/decidim-comments/app/frontend/entry.js +0 -17
- data/decidim-comments/app/frontend/entry.test.js +0 -31
- data/decidim-comments/app/frontend/support/load_translations.js +0 -23
- data/decidim-comments/app/frontend/support/stub_component.js +0 -29
- data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js +0 -18
- data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/object-assign-polyfill.js +0 -24
- data/karma.conf.js +0 -45
- data/lib/generators/decidim/review_app_generator.rb +0 -53
- data/lib/generators/decidim/templates/app.json.erb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e9c56c3c5c523b0fb73cb2829124e26f0941c5a
|
4
|
+
data.tar.gz: 7fcec2d679fc0ab79092b496a8bbe21dffba3177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a878386ca9e3ff9a9d30df4fed2078b34b416096b53d82e594504bd77e658c77bdd6446478342fe91b49e4170e6f31b4c828af065e1b56165ab029f3b862fab7
|
7
|
+
data.tar.gz: 21d78117f80c05f38657886e9327b3a402a5905a5eb494b9e270ff076ac79419e653efb78eb95a893e8ff072e02cc4a7b86a72215e0d131bc6321c21fd76257b
|
data/.babelrc
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.1
|
data/.travis.yml
CHANGED
@@ -10,6 +10,7 @@ language: ruby
|
|
10
10
|
branches:
|
11
11
|
only:
|
12
12
|
- master
|
13
|
+
- revamp_admin
|
13
14
|
|
14
15
|
env:
|
15
16
|
global:
|
@@ -31,6 +32,7 @@ env:
|
|
31
32
|
- GEM=decidim-budgets DB=postgres
|
32
33
|
|
33
34
|
before_install:
|
35
|
+
- nvm install 7
|
34
36
|
# Upgrade PhantomJS
|
35
37
|
- "export PATH=$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
|
36
38
|
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $HOME/travis_phantomjs; mkdir -p $HOME/travis_phantomjs; fi"
|
@@ -38,12 +40,8 @@ before_install:
|
|
38
40
|
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $HOME/travis_phantomjs; fi"
|
39
41
|
- "phantomjs --version"
|
40
42
|
# Repo for newer Node.js versions
|
41
|
-
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
42
43
|
- gem update --system
|
43
|
-
-
|
44
|
-
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
45
|
-
- sudo apt-get update -qq
|
46
|
-
- sudo apt-get install -y -qq yarn
|
44
|
+
- yarn --ignore-engines
|
47
45
|
|
48
46
|
bundler_args: --jobs=3 --retry=3 --deployment --path="$HOME/.bundle"
|
49
47
|
|
@@ -60,7 +58,7 @@ script:
|
|
60
58
|
- $TRAVIS_BUILD_DIR/run_ci.sh
|
61
59
|
|
62
60
|
rvm:
|
63
|
-
- 2.4.
|
61
|
+
- 2.4.1
|
64
62
|
|
65
63
|
notifications:
|
66
64
|
email: false
|
data/Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
FROM ruby:2.4.
|
1
|
+
FROM ruby:2.4.1
|
2
2
|
MAINTAINER david.morcillo@codegram.com
|
3
3
|
|
4
4
|
ENV APP_HOME /decidim
|
@@ -7,7 +7,7 @@ RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
|
7
7
|
echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
8
8
|
|
9
9
|
RUN apt-get update
|
10
|
-
RUN curl -sL https://deb.nodesource.com/
|
10
|
+
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash && \
|
11
11
|
apt-get install -y nodejs yarn
|
12
12
|
|
13
13
|
ADD Gemfile /tmp/Gemfile
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,34 +1,34 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
decidim (0.0.
|
5
|
-
decidim-admin (= 0.0.
|
6
|
-
decidim-api (= 0.0.
|
7
|
-
decidim-budgets (= 0.0.
|
8
|
-
decidim-comments (= 0.0.
|
9
|
-
decidim-core (= 0.0.
|
10
|
-
decidim-meetings (= 0.0.
|
11
|
-
decidim-pages (= 0.0.
|
12
|
-
decidim-proposals (= 0.0.
|
13
|
-
decidim-results (= 0.0.
|
14
|
-
decidim-system (= 0.0.
|
4
|
+
decidim (0.0.7)
|
5
|
+
decidim-admin (= 0.0.7)
|
6
|
+
decidim-api (= 0.0.7)
|
7
|
+
decidim-budgets (= 0.0.7)
|
8
|
+
decidim-comments (= 0.0.7)
|
9
|
+
decidim-core (= 0.0.7)
|
10
|
+
decidim-meetings (= 0.0.7)
|
11
|
+
decidim-pages (= 0.0.7)
|
12
|
+
decidim-proposals (= 0.0.7)
|
13
|
+
decidim-results (= 0.0.7)
|
14
|
+
decidim-system (= 0.0.7)
|
15
15
|
rails (~> 5.0.2)
|
16
16
|
rails-i18n (~> 5.0.2)
|
17
|
-
decidim-budgets (0.0.
|
18
|
-
decidim-comments (= 0.0.
|
19
|
-
decidim-core (= 0.0.
|
17
|
+
decidim-budgets (0.0.7)
|
18
|
+
decidim-comments (= 0.0.7)
|
19
|
+
decidim-core (= 0.0.7)
|
20
20
|
kaminari (~> 1.0.0.rc1)
|
21
21
|
rectify (~> 0.8)
|
22
22
|
searchlight (~> 4.1.0)
|
23
|
-
decidim-proposals (0.0.
|
24
|
-
decidim-comments (= 0.0.
|
25
|
-
decidim-core (= 0.0.
|
23
|
+
decidim-proposals (0.0.7)
|
24
|
+
decidim-comments (= 0.0.7)
|
25
|
+
decidim-core (= 0.0.7)
|
26
26
|
kaminari (~> 1.0.1)
|
27
27
|
rectify (~> 0.8.0)
|
28
28
|
social-share-button (~> 0.9.0)
|
29
|
-
decidim-results (0.0.
|
30
|
-
decidim-comments (= 0.0.
|
31
|
-
decidim-core (= 0.0.
|
29
|
+
decidim-results (0.0.7)
|
30
|
+
decidim-comments (= 0.0.7)
|
31
|
+
decidim-core (= 0.0.7)
|
32
32
|
kaminari (~> 1.0.0.rc1)
|
33
33
|
rectify (~> 0.8)
|
34
34
|
searchlight (~> 4.1.0)
|
@@ -36,10 +36,10 @@ PATH
|
|
36
36
|
PATH
|
37
37
|
remote: decidim-admin
|
38
38
|
specs:
|
39
|
-
decidim-admin (0.0.
|
39
|
+
decidim-admin (0.0.7)
|
40
40
|
active_link_to (~> 1.0.0)
|
41
41
|
carrierwave (~> 1.0.0.rc)
|
42
|
-
decidim-core (= 0.0.
|
42
|
+
decidim-core (= 0.0.7)
|
43
43
|
devise (~> 4.2)
|
44
44
|
devise-i18n (~> 1.1.0)
|
45
45
|
devise_invitable (~> 1.7.0)
|
@@ -52,7 +52,7 @@ PATH
|
|
52
52
|
PATH
|
53
53
|
remote: decidim-api
|
54
54
|
specs:
|
55
|
-
decidim-api (0.0.
|
55
|
+
decidim-api (0.0.7)
|
56
56
|
graphiql-rails (~> 1.4.1)
|
57
57
|
graphql (~> 1.5.3)
|
58
58
|
rack-cors (~> 0.4.0)
|
@@ -62,21 +62,21 @@ PATH
|
|
62
62
|
PATH
|
63
63
|
remote: decidim-comments
|
64
64
|
specs:
|
65
|
-
decidim-comments (0.0.
|
66
|
-
decidim-core (= 0.0.
|
65
|
+
decidim-comments (0.0.7)
|
66
|
+
decidim-core (= 0.0.7)
|
67
67
|
jquery-rails (~> 4.0)
|
68
68
|
rails (~> 5.0.2)
|
69
69
|
|
70
70
|
PATH
|
71
71
|
remote: decidim-core
|
72
72
|
specs:
|
73
|
-
decidim-core (0.0.
|
73
|
+
decidim-core (0.0.7)
|
74
74
|
active_link_to (~> 1.0.0)
|
75
75
|
autoprefixer-rails (~> 6.7, >= 6.7.4)
|
76
76
|
cancancan (~> 1.16.0)
|
77
77
|
carrierwave (~> 1.0.0)
|
78
78
|
date_validator (~> 0.9.0)
|
79
|
-
decidim-api (= 0.0.
|
79
|
+
decidim-api (= 0.0.7)
|
80
80
|
devise (~> 4.2)
|
81
81
|
devise-i18n (~> 1.1.0)
|
82
82
|
file_validators (~> 2.1.0)
|
@@ -105,21 +105,21 @@ PATH
|
|
105
105
|
PATH
|
106
106
|
remote: decidim-dev
|
107
107
|
specs:
|
108
|
-
decidim-dev (0.0.
|
108
|
+
decidim-dev (0.0.7)
|
109
109
|
byebug
|
110
110
|
capybara (~> 2.12.0)
|
111
111
|
capybara-screenshot (~> 1.0.14)
|
112
112
|
codecov (~> 0.1.9)
|
113
113
|
database_cleaner (~> 1.5.0)
|
114
114
|
db-query-matchers (~> 0.7.0)
|
115
|
-
decidim (= 0.0.
|
115
|
+
decidim (= 0.0.7)
|
116
116
|
factory_girl_rails
|
117
117
|
faker (~> 1.7.3)
|
118
118
|
i18n-tasks (= 0.9.12)
|
119
119
|
launchy
|
120
120
|
letter_opener_web (~> 1.3.0)
|
121
121
|
listen (~> 3.1.0)
|
122
|
-
poltergeist (~> 1.
|
122
|
+
poltergeist (~> 1.14.0)
|
123
123
|
rails-controller-testing (~> 1.0.1)
|
124
124
|
rspec-html-matchers (~> 0.9.1)
|
125
125
|
rspec-rails (~> 3.5)
|
@@ -132,9 +132,9 @@ PATH
|
|
132
132
|
PATH
|
133
133
|
remote: decidim-meetings
|
134
134
|
specs:
|
135
|
-
decidim-meetings (0.0.
|
135
|
+
decidim-meetings (0.0.7)
|
136
136
|
date_validator (~> 0.9)
|
137
|
-
decidim-core (= 0.0.
|
137
|
+
decidim-core (= 0.0.7)
|
138
138
|
httparty (~> 0.14.0)
|
139
139
|
jquery-tmpl-rails (~> 1.1.0)
|
140
140
|
kaminari (~> 1.0.1)
|
@@ -144,17 +144,17 @@ PATH
|
|
144
144
|
PATH
|
145
145
|
remote: decidim-pages
|
146
146
|
specs:
|
147
|
-
decidim-pages (0.0.
|
148
|
-
decidim-comments (= 0.0.
|
149
|
-
decidim-core (= 0.0.
|
147
|
+
decidim-pages (0.0.7)
|
148
|
+
decidim-comments (= 0.0.7)
|
149
|
+
decidim-core (= 0.0.7)
|
150
150
|
rectify (~> 0.8.0)
|
151
151
|
|
152
152
|
PATH
|
153
153
|
remote: decidim-system
|
154
154
|
specs:
|
155
|
-
decidim-system (0.0.
|
155
|
+
decidim-system (0.0.7)
|
156
156
|
active_link_to (~> 1.0.0)
|
157
|
-
decidim-core (= 0.0.
|
157
|
+
decidim-core (= 0.0.7)
|
158
158
|
devise (~> 4.2)
|
159
159
|
devise-i18n (~> 1.1.0)
|
160
160
|
devise_invitable (~> 1.7.1)
|
@@ -207,7 +207,7 @@ GEM
|
|
207
207
|
i18n (~> 0.7)
|
208
208
|
minitest (~> 5.1)
|
209
209
|
tzinfo (~> 1.1)
|
210
|
-
addressable (2.5.
|
210
|
+
addressable (2.5.1)
|
211
211
|
public_suffix (~> 2.0, >= 2.0.2)
|
212
212
|
arel (7.1.4)
|
213
213
|
ast (2.3.0)
|
@@ -272,7 +272,7 @@ GEM
|
|
272
272
|
responders
|
273
273
|
warden (~> 1.2.3)
|
274
274
|
devise-i18n (1.1.2)
|
275
|
-
devise_invitable (1.7.
|
275
|
+
devise_invitable (1.7.2)
|
276
276
|
actionmailer (>= 4.1.0)
|
277
277
|
devise (>= 4.0.0)
|
278
278
|
diff-lcs (1.3)
|
@@ -312,7 +312,7 @@ GEM
|
|
312
312
|
activesupport (>= 4.1.0)
|
313
313
|
graphiql-rails (1.4.1)
|
314
314
|
rails
|
315
|
-
graphql (1.5.
|
315
|
+
graphql (1.5.5)
|
316
316
|
hashdiff (0.3.2)
|
317
317
|
hashie (3.5.5)
|
318
318
|
high_voltage (3.0.0)
|
@@ -413,7 +413,7 @@ GEM
|
|
413
413
|
parser (2.4.0.0)
|
414
414
|
ast (~> 2.2)
|
415
415
|
pg (0.19.0)
|
416
|
-
poltergeist (1.
|
416
|
+
poltergeist (1.14.0)
|
417
417
|
capybara (~> 2.1)
|
418
418
|
cliver (~> 0.3.1)
|
419
419
|
websocket-driver (>= 0.2.0)
|
@@ -500,7 +500,7 @@ GEM
|
|
500
500
|
rspec-repeat (1.0.2)
|
501
501
|
rspec (~> 3.0)
|
502
502
|
rspec-support (3.5.0)
|
503
|
-
rubocop (0.
|
503
|
+
rubocop (0.48.1)
|
504
504
|
parser (>= 2.3.3.1, < 3.0)
|
505
505
|
powerpack (~> 0.1)
|
506
506
|
rainbow (>= 1.99.1, < 3.0)
|
@@ -540,7 +540,7 @@ GEM
|
|
540
540
|
actionpack (>= 4.0)
|
541
541
|
activesupport (>= 4.0)
|
542
542
|
sprockets (>= 3.0.0)
|
543
|
-
term-ansicolor (1.
|
543
|
+
term-ansicolor (1.5.0)
|
544
544
|
tins (~> 1.0)
|
545
545
|
terminal-table (1.7.3)
|
546
546
|
unicode-display_width (~> 1.1.1)
|
@@ -552,7 +552,7 @@ GEM
|
|
552
552
|
truncato (0.7.9)
|
553
553
|
htmlentities (~> 4.3.1)
|
554
554
|
nokogiri (~> 1.7.0)
|
555
|
-
tzinfo (1.2.
|
555
|
+
tzinfo (1.2.3)
|
556
556
|
thread_safe (~> 0.1)
|
557
557
|
unicode-display_width (1.1.3)
|
558
558
|
url (0.3.2)
|
@@ -588,14 +588,14 @@ DEPENDENCIES
|
|
588
588
|
decidim-dev!
|
589
589
|
decidim-meetings!
|
590
590
|
decidim-pages!
|
591
|
-
decidim-proposals (= 0.0.
|
592
|
-
decidim-results (= 0.0.
|
591
|
+
decidim-proposals (= 0.0.7)
|
592
|
+
decidim-results (= 0.0.7)
|
593
593
|
decidim-system!
|
594
594
|
rake (~> 12.0.0)
|
595
595
|
rspec (~> 3.0)
|
596
596
|
|
597
597
|
RUBY VERSION
|
598
|
-
ruby 2.4.
|
598
|
+
ruby 2.4.1p111
|
599
599
|
|
600
600
|
BUNDLED WITH
|
601
|
-
1.14.
|
601
|
+
1.14.6
|
data/README.md
CHANGED
@@ -33,6 +33,7 @@ Decidim is a participatory democracy framework written on Ruby on Rails original
|
|
33
33
|
- [Install "Decidim" for an organization](#installation-instructions)
|
34
34
|
- [Upgrade an already existing "Decidim" installation](#upgrade-instructions)
|
35
35
|
- [Use Docker to deploy "Decidim"](#docker-instructions)
|
36
|
+
- [Deploying to Heroku](#deploying-to-heroku)
|
36
37
|
- [Check current components](#components)
|
37
38
|
- [Further configuration](#further-configuration)
|
38
39
|
- [Technical tradeoffs](#technical-tradeoffs)
|
@@ -112,12 +113,16 @@ Also you can run it as a standalone container like this:
|
|
112
113
|
|
113
114
|
Now you have a new Decidim app created at `<app-name>` 🎉
|
114
115
|
|
116
|
+
## Deploying to Heroku
|
117
|
+
|
118
|
+
Once you've generated the Decidim app you might need to do some changes in order to deploy it to Heroku. You can check [codegram/decidim-deploy-heroku](https://github.com/codegram/decidim-deploy-heroku) for an opinionated example of things to do before deploying to Heroku.
|
119
|
+
|
115
120
|
## How to contribute
|
116
121
|
|
117
122
|
In order to develop on decidim, you'll need:
|
118
123
|
|
119
124
|
* **PostgreSQL** 9.4+
|
120
|
-
* **Ruby** 2.4.
|
125
|
+
* **Ruby** 2.4.1
|
121
126
|
* **NodeJS** with **yarn** (JavaScript dependency manager, can be installed with `npm install yarn`)
|
122
127
|
* **ImageMagick**
|
123
128
|
* **PhantomJS**
|
@@ -1,19 +1,2 @@
|
|
1
|
-
@import "
|
2
|
-
@import "
|
3
|
-
@import "login";
|
4
|
-
@import "sidebar";
|
5
|
-
@import "tables";
|
6
|
-
@import "actions";
|
7
|
-
@import "forms";
|
8
|
-
@import "icons";
|
9
|
-
@import "email_preview";
|
10
|
-
|
11
|
-
@import "decidim/editor";
|
12
|
-
@import "decidim/utils/fontface";
|
13
|
-
|
14
|
-
@import "foundation";
|
15
|
-
@include foundation-everything;
|
16
|
-
|
17
|
-
body {
|
18
|
-
font-family: 'Source Sans Pro', sans-serif;
|
19
|
-
}
|
1
|
+
@import "decidim";
|
2
|
+
@import "extra/*";
|
File without changes
|
File without changes
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/* Foundation button overrides*/
|
2
|
+
|
3
|
+
.button{
|
4
|
+
&.small{
|
5
|
+
padding-top: .5rem;
|
6
|
+
padding-bottom: .5rem;
|
7
|
+
}
|
8
|
+
&.tiny{
|
9
|
+
padding-top: .25rem;
|
10
|
+
padding-bottom: .25rem;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.button.muted{
|
15
|
+
background-color: $medium-gray;
|
16
|
+
&:hover{
|
17
|
+
background-color: darken($medium-gray, 10);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.button--title{
|
22
|
+
margin-bottom: 0;
|
23
|
+
@include breakpoint(mediumlarge){
|
24
|
+
float: right;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
.button--double{
|
30
|
+
.button:not(:last-child){
|
31
|
+
margin-right: 1rem;
|
32
|
+
}
|
33
|
+
@include breakpoint(mediumlarge){
|
34
|
+
display: flex;
|
35
|
+
align-items: center;
|
36
|
+
.button{
|
37
|
+
margin-bottom: 0;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.button--simple{
|
43
|
+
margin-bottom: 0;
|
44
|
+
}
|