decidim-comments 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/app/assets/javascripts/decidim/comments/bundle.js +43 -44
  4. data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
  5. data/app/commands/decidim/comments/vote_comment.rb +38 -0
  6. data/app/frontend/application/icon.component.jsx +9 -4
  7. data/app/frontend/application/icon.component.test.jsx +12 -2
  8. data/app/frontend/comments/add_comment_form.component.jsx +43 -11
  9. data/app/frontend/comments/add_comment_form.mutation.graphql +1 -4
  10. data/app/frontend/comments/comment.component.jsx +67 -7
  11. data/app/frontend/comments/comment.component.test.jsx +49 -1
  12. data/app/frontend/comments/comment_data.fragment.graphql +3 -0
  13. data/app/frontend/comments/comment_order_selector.component.jsx +51 -6
  14. data/app/frontend/comments/comment_order_selector.component.test.jsx +12 -1
  15. data/app/frontend/comments/comment_thread.component.jsx +11 -5
  16. data/app/frontend/comments/comment_thread.component.test.jsx +13 -3
  17. data/app/frontend/comments/comment_thread.fragment.graphql +1 -3
  18. data/app/frontend/comments/comments.component.jsx +37 -11
  19. data/app/frontend/comments/comments.component.test.jsx +44 -7
  20. data/app/frontend/comments/comments.query.graphql +2 -2
  21. data/app/frontend/comments/down_vote.fragment.graphql +6 -0
  22. data/app/frontend/comments/down_vote.mutation.graphql +7 -0
  23. data/app/frontend/comments/down_vote_button.component.jsx +84 -0
  24. data/app/frontend/comments/down_vote_button.component.test.jsx +48 -0
  25. data/app/frontend/comments/up_vote.fragment.graphql +6 -0
  26. data/app/frontend/comments/up_vote.mutation.graphql +7 -0
  27. data/app/frontend/comments/up_vote_button.component.jsx +84 -0
  28. data/app/frontend/comments/up_vote_button.component.test.jsx +48 -0
  29. data/app/frontend/comments/vote_button.component.jsx +19 -0
  30. data/app/frontend/comments/vote_button_component.test.jsx +38 -0
  31. data/app/frontend/support/generate_comments_data.js +7 -2
  32. data/app/helpers/decidim/comments/comments_helper.rb +1 -1
  33. data/app/models/decidim/comments/application_record.rb +9 -0
  34. data/app/models/decidim/comments/comment.rb +19 -4
  35. data/app/models/decidim/comments/comment_vote.rb +22 -0
  36. data/app/models/decidim/comments/seed.rb +27 -0
  37. data/app/queries/decidim/comments/comments_with_replies.rb +88 -0
  38. data/app/resolvers/decidim/comments/vote_comment_resolver.rb +20 -0
  39. data/app/types/decidim/comments/comment_mutation_type.rb +19 -0
  40. data/app/types/decidim/comments/comment_type.rb +38 -2
  41. data/config/locales/en.yml +1 -0
  42. data/db/migrate/20161130143508_create_comments.rb +4 -2
  43. data/db/migrate/20161219150806_create_comment_votes.rb +13 -0
  44. data/lib/decidim/comments/mutation_extensions.rb +9 -0
  45. data/lib/decidim/comments/query_extensions.rb +3 -5
  46. data/lib/decidim/comments/test/factories.rb +22 -0
  47. metadata +26 -49

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.