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
@@ -27,6 +27,7 @@ ca:
|
|
27
27
|
destroy: Esborra
|
28
28
|
edit: Edita
|
29
29
|
new: Nou/va %{name}
|
30
|
+
preview: Previsualitzar
|
30
31
|
title: Accions
|
31
32
|
admin:
|
32
33
|
models:
|
@@ -60,6 +61,7 @@ ca:
|
|
60
61
|
other: "%{count} resultats"
|
61
62
|
filters:
|
62
63
|
category: Categoria
|
64
|
+
category_prompt: Selecciona una categoria
|
63
65
|
scopes: Àmbits
|
64
66
|
search: Cerca
|
65
67
|
filters_small_view:
|
@@ -28,6 +28,7 @@ en:
|
|
28
28
|
destroy: Delete
|
29
29
|
edit: Edit
|
30
30
|
new: New %{name}
|
31
|
+
preview: Preview
|
31
32
|
title: Actions
|
32
33
|
admin:
|
33
34
|
models:
|
@@ -61,6 +62,7 @@ en:
|
|
61
62
|
other: "%{count} results"
|
62
63
|
filters:
|
63
64
|
category: Category
|
65
|
+
category_prompt: Select a category
|
64
66
|
scopes: Scopes
|
65
67
|
search: Search
|
66
68
|
filters_small_view:
|
@@ -27,6 +27,7 @@ es:
|
|
27
27
|
destroy: Borrar
|
28
28
|
edit: Editar
|
29
29
|
new: Nuevo/a %{name}
|
30
|
+
preview: Previsualizar
|
30
31
|
title: Acciones
|
31
32
|
admin:
|
32
33
|
models:
|
@@ -60,6 +61,7 @@ es:
|
|
60
61
|
other: "%{count} resultados"
|
61
62
|
filters:
|
62
63
|
category: Categoría
|
64
|
+
category_prompt: Selecciona una categoría
|
63
65
|
scopes: Ámbitos
|
64
66
|
search: Buscar
|
65
67
|
filters_small_view:
|
@@ -1,19 +1,33 @@
|
|
1
1
|
eu:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
result:
|
5
|
+
decidim_category_id: Kategoria
|
6
|
+
decidim_scope_id: Esparrua
|
7
|
+
description: Deskribapena
|
8
|
+
proposal_ids: Sartutako proposamenak
|
9
|
+
title: Izenburua
|
2
10
|
decidim:
|
3
11
|
features:
|
4
12
|
results:
|
5
13
|
name: Emaitzak
|
14
|
+
settings:
|
15
|
+
global:
|
16
|
+
comments_enabled: Iruzkinak gaituta
|
17
|
+
step:
|
18
|
+
comments_blocked: Iruzkinak blokeatuta
|
6
19
|
resource_links:
|
7
20
|
included_proposals:
|
8
21
|
result_proposals: Emaitza honetan jasotako proposamenak
|
9
22
|
meetings_through_proposals:
|
10
|
-
result_meetings:
|
23
|
+
result_meetings: Proposamenarekin lotutako topaketak
|
11
24
|
results:
|
12
25
|
actions:
|
13
26
|
confirm_destroy: Ziur zaude emaitza hau ezabatu nahi duzula?
|
14
|
-
destroy:
|
27
|
+
destroy: Ezabatu
|
15
28
|
edit: Editatu
|
16
29
|
new: '%{name} berria'
|
30
|
+
preview: Aurreikusi
|
17
31
|
title: Ekintzak
|
18
32
|
admin:
|
19
33
|
models:
|
@@ -43,14 +57,18 @@ eu:
|
|
43
57
|
results:
|
44
58
|
count:
|
45
59
|
results_count:
|
46
|
-
one:
|
60
|
+
one: 1 emaitza
|
47
61
|
other: "%{count} emaitza"
|
48
62
|
filters:
|
49
63
|
category: Kategoria
|
64
|
+
category_prompt: Aukeratu kategoria bat
|
50
65
|
scopes: Esparruak
|
51
66
|
search: Bilatu
|
52
67
|
filters_small_view:
|
68
|
+
close_modal: Itxi leihoa
|
69
|
+
filter: Iragazi
|
53
70
|
filter_by: 'Iragazi honen arabera:'
|
71
|
+
unfold: Zabaldu
|
54
72
|
show:
|
55
73
|
stats:
|
56
74
|
attendees: Bertaratuak
|
@@ -58,4 +76,4 @@ eu:
|
|
58
76
|
contributions: Ekarpenak
|
59
77
|
meetings: Topaketa-zerrenda
|
60
78
|
proposals: Proposamenak
|
61
|
-
votes:
|
79
|
+
votes: Sostenguak
|
@@ -3,7 +3,7 @@
|
|
3
3
|
RSpec.shared_examples "manage results" do
|
4
4
|
it "updates a result" do
|
5
5
|
within find("tr", text: translated(result.title)) do
|
6
|
-
|
6
|
+
find("a.action-icon--edit").click
|
7
7
|
end
|
8
8
|
|
9
9
|
within ".edit_result" do
|
@@ -18,7 +18,7 @@ RSpec.shared_examples "manage results" do
|
|
18
18
|
find("*[type=submit]").click
|
19
19
|
end
|
20
20
|
|
21
|
-
within ".
|
21
|
+
within ".callout-wrapper" do
|
22
22
|
expect(page).to have_content("successfully")
|
23
23
|
end
|
24
24
|
|
@@ -29,9 +29,11 @@ RSpec.shared_examples "manage results" do
|
|
29
29
|
|
30
30
|
context "previewing results" do
|
31
31
|
it "allows the user to preview the result" do
|
32
|
-
|
32
|
+
within find("tr", text: translated(result.title)) do
|
33
|
+
@new_window = window_opened_by { find("a.action-icon--preview").click }
|
34
|
+
end
|
33
35
|
|
34
|
-
within_window new_window do
|
36
|
+
within_window @new_window do
|
35
37
|
expect(current_path).to eq decidim_results.result_path(id: result.id, participatory_process_id: participatory_process.id, feature_id: current_feature.id)
|
36
38
|
expect(page).to have_content(translated(result.title))
|
37
39
|
end
|
@@ -39,7 +41,7 @@ RSpec.shared_examples "manage results" do
|
|
39
41
|
end
|
40
42
|
|
41
43
|
it "creates a new result" do
|
42
|
-
|
44
|
+
click_link "New Result"
|
43
45
|
|
44
46
|
within ".new_result" do
|
45
47
|
fill_in_i18n(
|
@@ -63,7 +65,7 @@ RSpec.shared_examples "manage results" do
|
|
63
65
|
find("*[type=submit]").click
|
64
66
|
end
|
65
67
|
|
66
|
-
within ".
|
68
|
+
within ".callout-wrapper" do
|
67
69
|
expect(page).to have_content("successfully")
|
68
70
|
end
|
69
71
|
|
@@ -81,10 +83,10 @@ RSpec.shared_examples "manage results" do
|
|
81
83
|
|
82
84
|
it "deletes a result" do
|
83
85
|
within find("tr", text: translated(result2.title)) do
|
84
|
-
|
86
|
+
find("a.action-icon--remove").click
|
85
87
|
end
|
86
88
|
|
87
|
-
within ".
|
89
|
+
within ".callout-wrapper" do
|
88
90
|
expect(page).to have_content("successfully")
|
89
91
|
end
|
90
92
|
|
@@ -1,10 +1,68 @@
|
|
1
1
|
eu:
|
2
2
|
decidim:
|
3
3
|
system:
|
4
|
+
actions:
|
5
|
+
confirm_destroy: Ziur hau ezabatu nahi duzula?
|
6
|
+
destroy: Ezabatu
|
7
|
+
edit: Editatu
|
8
|
+
new: '%{name} berria'
|
9
|
+
save: Gorde
|
10
|
+
title: Ekintzak
|
4
11
|
admins:
|
5
12
|
create:
|
6
|
-
|
13
|
+
error: Errorea gertatu da administratzaile berri bat sortzean.
|
14
|
+
success: Administratzailea zuzen sortu da
|
15
|
+
destroy:
|
16
|
+
success: Administratzailea zuzen sortu da
|
17
|
+
edit:
|
18
|
+
title: Editatu administratzailea
|
19
|
+
update: Eguneratu administratzailea
|
20
|
+
index:
|
21
|
+
title: Administratzaileak
|
22
|
+
new:
|
23
|
+
create: Sortu administratzailea
|
24
|
+
title: Administratzaile berria
|
25
|
+
update:
|
26
|
+
error: Errorea gertatu da administratzaile hau eguneratzean.
|
27
|
+
success: Administratzailea zuzen eguneratu da
|
28
|
+
default_pages:
|
29
|
+
placeholders:
|
30
|
+
content: Mesedez, gehitu eduki adierazgarria orri honetan, kontrol-panela baliatuta.
|
31
|
+
title: 'Izenburu lehenetsia orri honetarako: %{page}'
|
32
|
+
menu:
|
33
|
+
admins: Administratzaileak
|
34
|
+
dashboard: Kontrol-panela
|
35
|
+
organizations: Erakundeak
|
7
36
|
models:
|
8
37
|
admin:
|
9
38
|
fields:
|
10
|
-
|
39
|
+
created_at: Sortze-data
|
40
|
+
email: Helbide elektronikoa
|
41
|
+
name: Administratzailea
|
42
|
+
validations:
|
43
|
+
email_uniqueness: beste administratzaile bat dago, helbide elektroniko hauxe bera duena
|
44
|
+
organization:
|
45
|
+
actions:
|
46
|
+
save_and_invite: Sortu erakundea eta gonbit egin administratzaileari
|
47
|
+
fields:
|
48
|
+
created_at: Sortze-data
|
49
|
+
name: Izena
|
50
|
+
name: Erakundea
|
51
|
+
page:
|
52
|
+
name: Orria
|
53
|
+
organizations:
|
54
|
+
create:
|
55
|
+
error: Errorea gertatu da erakunde berri bat sortzean.
|
56
|
+
success: Erakundea zuzen sortu da.
|
57
|
+
edit:
|
58
|
+
secondary_hosts_hint: Sartu haietako bakoitza lerro batean
|
59
|
+
index:
|
60
|
+
title: Erakundeak
|
61
|
+
new:
|
62
|
+
secondary_hosts_hint: Sartu haietako bakoitza lerro batean
|
63
|
+
title: Erakunde berria
|
64
|
+
update:
|
65
|
+
error: Errorea gertatu da erakunde hau eguneratzean.
|
66
|
+
success: Erakundea zuzen eguneratu da.
|
67
|
+
titles:
|
68
|
+
dashboard: Kontrol-panela
|
@@ -33,10 +33,6 @@ module Decidim
|
|
33
33
|
def add_seeds
|
34
34
|
append_file("db/seeds.rb", <<-SEEDS_CONTENT)
|
35
35
|
# You can remove the 'faker' gem if you don't want Decidim seeds.
|
36
|
-
if ENV["HEROKU_APP_NAME"].present?
|
37
|
-
ENV["DECIDIM_HOST"] = ENV["HEROKU_APP_NAME"] + ".herokuapp.com"
|
38
|
-
ENV["SEED"] = "true"
|
39
|
-
end
|
40
36
|
Decidim.seed!
|
41
37
|
SEEDS_CONTENT
|
42
38
|
end
|
@@ -1,26 +1,26 @@
|
|
1
|
-
#
|
1
|
+
# <%= app_name %>
|
2
2
|
|
3
|
-
|
3
|
+
Citizen Participation and Open Government application.
|
4
4
|
|
5
|
-
This
|
6
|
-
application up and running.
|
5
|
+
This is the open-source repository for <%= app_name %>, based on [Decidim](https://github.com/AjuntamentdeBarcelona/decidim).
|
7
6
|
|
8
|
-
|
7
|
+
## Deploying the app
|
9
8
|
|
10
|
-
|
9
|
+
An opinionated guide to deploy this app to Heroku can be found at [https://github.com/codegram/decidim-deploy-heroku](https://github.com/codegram/decidim-deploy-heroku).
|
11
10
|
|
12
|
-
|
11
|
+
## Setting up the application
|
13
12
|
|
14
|
-
|
13
|
+
You will need to do some steps before having the app working properly once you've deployed it:
|
15
14
|
|
16
|
-
|
15
|
+
1. Open a Rails console in the server: `bundle exec rails console`
|
16
|
+
2. Create a System Admin user:
|
17
|
+
```ruby
|
18
|
+
user = Decidim::System::Admin.new(email: <email>, password: <password>, password_confirmation: <password>)
|
19
|
+
user.save!
|
20
|
+
```
|
21
|
+
3. Visit `<your app url>/system` and login with your system admin credentials
|
22
|
+
4. Create a new organization. Check the locales you want to use for that organization, and select a default locale.
|
23
|
+
5. Set the correct default host for the organization, otherwise the app will not work properly. Note that you need to include any subdomain you might be using.
|
24
|
+
6. Fill the rest of the form and submit it.
|
17
25
|
|
18
|
-
|
19
|
-
|
20
|
-
* How to run the test suite
|
21
|
-
|
22
|
-
* Services (job queues, cache servers, search engines, etc.)
|
23
|
-
|
24
|
-
* Deployment instructions
|
25
|
-
|
26
|
-
* ...
|
26
|
+
You're good to go!
|
data/package.json
CHANGED
@@ -10,25 +10,39 @@
|
|
10
10
|
"build": "webpack --env.dev",
|
11
11
|
"build:prod": "NODE_ENV=production webpack -p --env.prod",
|
12
12
|
"start": "webpack --env.dev --watch --progress --color --display-error-details",
|
13
|
+
"prelint": "tslint decidim-*/**/*.ts decidim-*/**/*.tsx",
|
13
14
|
"lint": "eslint -c .eslintrc.json --ext .js,.js.es6,.jsx .",
|
14
|
-
"test": "
|
15
|
-
"test:watch": "yarn test -- --
|
16
|
-
"test:ci": "yarn run lint && yarn test"
|
15
|
+
"test": "jest",
|
16
|
+
"test:watch": "yarn test -- --watch",
|
17
|
+
"test:ci": "yarn run lint && yarn test",
|
18
|
+
"graphql:download_schema": "apollo-codegen download-schema http://localhost:3000/api --output schema.json",
|
19
|
+
"pregraphql:generate_schema_types": "yarn run graphql:download_schema",
|
20
|
+
"graphql:generate_schema_types": "apollo-codegen generate decidim-comments/**/*.graphql --schema schema.json --target typescript --output decidim-comments/app/frontend/support/schema.ts",
|
21
|
+
"postgraphql:generate_schema_types": "rm schema.json"
|
17
22
|
},
|
18
23
|
"devDependencies": {
|
24
|
+
"@types/classnames": "^0.0.32",
|
25
|
+
"@types/enzyme": "^2.7.5",
|
26
|
+
"@types/es6-promise": "^0.0.32",
|
27
|
+
"@types/faker": "^3.1.32",
|
28
|
+
"@types/jest": "^18.1.1",
|
29
|
+
"@types/jquery": "^2.0.41",
|
30
|
+
"@types/react": "^15.0.12",
|
31
|
+
"@types/react-dom": "^0.14.23",
|
32
|
+
"@types/uuid": "^2.0.29",
|
33
|
+
"awesome-typescript-loader": "^3.0.4",
|
19
34
|
"babel-core": "~6.23.1",
|
20
35
|
"babel-eslint": "~7.1.1",
|
36
|
+
"babel-jest": "^19.0.0",
|
21
37
|
"babel-loader": "~6.3.0",
|
22
38
|
"babel-plugin-__coverage__": "~11.0.0",
|
23
39
|
"babel-plugin-transform-decorators-legacy": "~1.3.4",
|
40
|
+
"babel-plugin-transform-es2015-modules-commonjs": "^6.23.0",
|
24
41
|
"babel-preset-airbnb": "~2.2.3",
|
25
42
|
"babel-preset-es2015": "~6.22.0",
|
26
43
|
"babel-preset-react": "~6.22.0",
|
27
44
|
"babel-preset-stage-2": "~6.22.0",
|
28
|
-
"
|
29
|
-
"chai-as-promised": "~6.0.0",
|
30
|
-
"chai-enzyme": "~0.6.1",
|
31
|
-
"enzyme": "~2.7.1",
|
45
|
+
"enzyme": "^2.7.1",
|
32
46
|
"eslint": "~3.15.0",
|
33
47
|
"eslint-loader": "~1.6.1",
|
34
48
|
"eslint-plugin-import": "~2.2.0",
|
@@ -36,39 +50,50 @@
|
|
36
50
|
"eslint-plugin-react": "~6.10.0",
|
37
51
|
"expose-loader": "~0.7.1",
|
38
52
|
"faker": "~3.1.0",
|
39
|
-
"
|
53
|
+
"jest": "^19.0.2",
|
40
54
|
"json-loader": "~0.5.4",
|
41
|
-
"karma": "~1.4.1",
|
42
|
-
"karma-chai": "~0.1.0",
|
43
|
-
"karma-coverage": "~1.1.1",
|
44
|
-
"karma-jasmine": "~1.1.0",
|
45
|
-
"karma-phantomjs-launcher": "~1.0.2",
|
46
|
-
"karma-sinon-chai": "~1.2.4",
|
47
|
-
"karma-sourcemap-loader": "~0.3.7",
|
48
|
-
"karma-webpack": "~2.0.2",
|
49
55
|
"progress-bar-webpack-plugin": "~1.9.0",
|
50
|
-
"raw-loader": "~0.5.1",
|
51
56
|
"react-addons-test-utils": "~15.4.0",
|
52
|
-
"
|
53
|
-
"
|
57
|
+
"source-map-loader": "^0.1.6",
|
58
|
+
"ts-jest": "^19.0.0",
|
59
|
+
"tslint": "^4.5.1",
|
60
|
+
"tslint-react": "^2.5.0",
|
61
|
+
"typescript": "^2.2.1",
|
62
|
+
"typescript-babel-jest": "^1.0.1",
|
54
63
|
"webpack": "~2.2.1",
|
55
64
|
"webpack-bundle-analyzer": "~2.3.0",
|
56
65
|
"webpack-config-utils": "~2.3.0",
|
57
66
|
"webpack-validator": "~2.3.0",
|
67
|
+
"yaml-jest": "^1.0.4",
|
58
68
|
"yaml-loader": "~0.4.0"
|
59
69
|
},
|
60
70
|
"dependencies": {
|
61
|
-
"apollo-client": "^1.0.
|
71
|
+
"apollo-client": "^1.0.1",
|
72
|
+
"apollo-codegen": "^0.10.8",
|
62
73
|
"classnames": "~2.2.5",
|
63
74
|
"graphql-anywhere": "~2.2.0",
|
64
75
|
"graphql-tag": "^1.3.1",
|
65
|
-
"jquery": "
|
76
|
+
"jquery": "^3.2.0",
|
66
77
|
"moment": "~2.17.1",
|
67
78
|
"react": "~15.4.2",
|
68
79
|
"react-addons-update": "~15.4.2",
|
69
|
-
"react-apollo": "^1.0.0
|
80
|
+
"react-apollo": "^1.0.0",
|
70
81
|
"react-dom": "~15.4.2",
|
71
82
|
"react-i18nify": "~1.8.4",
|
72
83
|
"uuid": "~3.0.1"
|
84
|
+
},
|
85
|
+
"jest": {
|
86
|
+
"moduleFileExtensions": [
|
87
|
+
"ts",
|
88
|
+
"tsx",
|
89
|
+
"js"
|
90
|
+
],
|
91
|
+
"transform": {
|
92
|
+
"^.+\\.(ts|tsx)$": "typescript-babel-jest",
|
93
|
+
"\\.yml$": "yaml-jest",
|
94
|
+
"\\.(gql|graphql)$": "<rootDir>/decidim-comments/app/frontend/support/graphql_transformer.js",
|
95
|
+
".*": "babel-jest"
|
96
|
+
},
|
97
|
+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"
|
73
98
|
}
|
74
99
|
}
|
data/tsconfig.json
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"sourceMap": true,
|
4
|
+
"noImplicitAny": true,
|
5
|
+
"strictNullChecks": true,
|
6
|
+
"skipLibCheck": true,
|
7
|
+
"module": "commonjs",
|
8
|
+
"target": "es5",
|
9
|
+
"jsx": "react",
|
10
|
+
"moduleResolution": "node"
|
11
|
+
},
|
12
|
+
"includes": [
|
13
|
+
"decidim-comments/app/frontend/**/*.tsx",
|
14
|
+
"decidim-comments/app/frontend/**/*.ts",
|
15
|
+
"webpack.d.ts"
|
16
|
+
]
|
17
|
+
}
|
data/tslint.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"extends": ["tslint:recommended", "tslint-react"],
|
3
|
+
"rules": {
|
4
|
+
"no-unused-variable": [true, "react"],
|
5
|
+
"no-unused-expression": true,
|
6
|
+
"no-var-requires": false,
|
7
|
+
"object-literal-sort-keys": false,
|
8
|
+
"interface-name": [true, "never-prefix"],
|
9
|
+
"max-line-length": [false],
|
10
|
+
"jsx-no-multiline-js": false
|
11
|
+
}
|
12
|
+
}
|