thredded 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/app/assets/javascripts/thredded/components/post_form.es6 +5 -0
  4. data/app/assets/javascripts/thredded/components/preview_area.es6 +52 -0
  5. data/app/assets/javascripts/thredded/components/topic_form.es6 +3 -0
  6. data/app/assets/javascripts/thredded/core/debounce.es6 +32 -0
  7. data/app/assets/javascripts/thredded/core/hide_soft_keyboard.es6 +2 -1
  8. data/app/assets/javascripts/thredded/core/mention_autocompletion.es6 +2 -2
  9. data/app/assets/javascripts/thredded/core/on_page_load.es6 +2 -2
  10. data/app/assets/javascripts/thredded/core/thredded.es6 +1 -0
  11. data/app/assets/stylesheets/thredded/_thredded.scss +1 -0
  12. data/app/assets/stylesheets/thredded/components/_pagination.scss +10 -1
  13. data/app/assets/stylesheets/thredded/components/_preview_area.scss +11 -0
  14. data/app/controllers/concerns/thredded/new_private_topic_params.rb +24 -0
  15. data/app/controllers/concerns/thredded/new_topic_params.rb +18 -0
  16. data/app/controllers/concerns/thredded/render_preview.rb +15 -0
  17. data/app/controllers/thredded/post_previews_controller.rb +28 -0
  18. data/app/controllers/thredded/posts_controller.rb +2 -0
  19. data/app/controllers/thredded/private_post_previews_controller.rb +28 -0
  20. data/app/controllers/thredded/private_topic_previews_controller.rb +14 -0
  21. data/app/controllers/thredded/private_topics_controller.rb +2 -15
  22. data/app/controllers/thredded/topic_previews_controller.rb +14 -0
  23. data/app/controllers/thredded/topics_controller.rb +2 -13
  24. data/app/mailer_previews/thredded/private_topic_mailer_preview.rb +3 -1
  25. data/app/mailers/thredded/private_topic_mailer.rb +2 -1
  26. data/app/models/concerns/thredded/post_common.rb +12 -0
  27. data/app/models/thredded/post.rb +3 -5
  28. data/app/models/thredded/private_post.rb +8 -5
  29. data/app/notifiers/thredded/email_notifier.rb +1 -1
  30. data/app/view_hooks/thredded/all_view_hooks.rb +20 -0
  31. data/app/view_models/thredded/private_topic_view.rb +4 -0
  32. data/app/view_models/thredded/topic_view.rb +4 -0
  33. data/app/views/thredded/post_previews/preview.html.erb +1 -0
  34. data/app/views/thredded/post_previews/update.html.erb +1 -0
  35. data/app/views/thredded/posts/_form.html.erb +1 -0
  36. data/app/views/thredded/posts/edit.html.erb +2 -0
  37. data/app/views/thredded/posts_common/_form.html.erb +3 -2
  38. data/app/views/thredded/posts_common/form/_content.html.erb +7 -0
  39. data/app/views/thredded/posts_common/form/_preview_area.html.erb +16 -0
  40. data/app/views/thredded/private_post_previews/preview.html.erb +1 -0
  41. data/app/views/thredded/private_post_previews/update.html.erb +1 -0
  42. data/app/views/thredded/private_posts/_form.html.erb +2 -0
  43. data/app/views/thredded/private_topic_mailer/message_notification.html.erb +9 -5
  44. data/app/views/thredded/private_topic_mailer/message_notification.text.erb +4 -3
  45. data/app/views/thredded/private_topic_previews/preview.html.erb +1 -0
  46. data/app/views/thredded/private_topics/_form.html.erb +15 -8
  47. data/app/views/thredded/private_topics/index.html.erb +5 -4
  48. data/app/views/thredded/private_topics/new.html.erb +1 -0
  49. data/app/views/thredded/private_topics/show.html.erb +8 -2
  50. data/app/views/thredded/shared/preview.html.erb +10 -0
  51. data/app/views/thredded/theme_previews/show.html.erb +7 -0
  52. data/app/views/thredded/topic_previews/preview.html.erb +1 -0
  53. data/app/views/thredded/topics/_form.html.erb +4 -3
  54. data/app/views/thredded/topics/edit.html.erb +1 -1
  55. data/app/views/thredded/topics/index.html.erb +5 -4
  56. data/app/views/thredded/topics/new.html.erb +4 -3
  57. data/app/views/thredded/topics/search.html.erb +1 -1
  58. data/app/views/thredded/topics/show.html.erb +8 -1
  59. data/config/locales/en.yml +1 -0
  60. data/config/locales/es.yml +1 -0
  61. data/config/locales/pl.yml +187 -0
  62. data/config/locales/pt-BR.yml +1 -0
  63. data/config/routes.rb +14 -4
  64. data/lib/thredded/html_pipeline/at_mention_filter.rb +2 -2
  65. data/lib/thredded/version.rb +1 -1
  66. metadata +66 -4
  67. data/app/views/thredded/topics/menu/_new_topic.html.erb +0 -3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thredded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Oliveira
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-26 00:00:00.000000000 Z
12
+ date: 2017-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pundit
@@ -361,6 +361,20 @@ dependencies:
361
361
  - - "~>"
362
362
  - !ruby/object:Gem::Version
363
363
  version: '2.4'
364
+ - !ruby/object:Gem::Dependency
365
+ name: poltergeist
366
+ requirement: !ruby/object:Gem::Requirement
367
+ requirements:
368
+ - - ">="
369
+ - !ruby/object:Gem::Version
370
+ version: '0'
371
+ type: :development
372
+ prerelease: false
373
+ version_requirements: !ruby/object:Gem::Requirement
374
+ requirements:
375
+ - - ">="
376
+ - !ruby/object:Gem::Version
377
+ version: '0'
364
378
  - !ruby/object:Gem::Dependency
365
379
  name: database_cleaner
366
380
  requirement: !ruby/object:Gem::Requirement
@@ -585,6 +599,34 @@ dependencies:
585
599
  - - ">="
586
600
  - !ruby/object:Gem::Version
587
601
  version: '0'
602
+ - !ruby/object:Gem::Dependency
603
+ name: thredded-markdown_coderay
604
+ requirement: !ruby/object:Gem::Requirement
605
+ requirements:
606
+ - - ">="
607
+ - !ruby/object:Gem::Version
608
+ version: '0'
609
+ type: :development
610
+ prerelease: false
611
+ version_requirements: !ruby/object:Gem::Requirement
612
+ requirements:
613
+ - - ">="
614
+ - !ruby/object:Gem::Version
615
+ version: '0'
616
+ - !ruby/object:Gem::Dependency
617
+ name: thredded-markdown_katex
618
+ requirement: !ruby/object:Gem::Requirement
619
+ requirements:
620
+ - - ">="
621
+ - !ruby/object:Gem::Version
622
+ version: '0'
623
+ type: :development
624
+ prerelease: false
625
+ version_requirements: !ruby/object:Gem::Requirement
626
+ requirements:
627
+ - - ">="
628
+ - !ruby/object:Gem::Version
629
+ version: '0'
588
630
  - !ruby/object:Gem::Dependency
589
631
  name: turbolinks
590
632
  requirement: !ruby/object:Gem::Requirement
@@ -635,15 +677,18 @@ files:
635
677
  - app/assets/javascripts/thredded/components/currently_online.es6
636
678
  - app/assets/javascripts/thredded/components/flash_messages.es6
637
679
  - app/assets/javascripts/thredded/components/post_form.es6
680
+ - app/assets/javascripts/thredded/components/preview_area.es6
638
681
  - app/assets/javascripts/thredded/components/time_stamps.es6
639
682
  - app/assets/javascripts/thredded/components/topic_form.es6
640
683
  - app/assets/javascripts/thredded/components/topics.es6
641
684
  - app/assets/javascripts/thredded/components/turboforms.es6
642
685
  - app/assets/javascripts/thredded/components/user_preferences_form.es6
643
686
  - app/assets/javascripts/thredded/components/users_select.es6
687
+ - app/assets/javascripts/thredded/core/debounce.es6
644
688
  - app/assets/javascripts/thredded/core/hide_soft_keyboard.es6
645
689
  - app/assets/javascripts/thredded/core/mention_autocompletion.es6
646
690
  - app/assets/javascripts/thredded/core/on_page_load.es6
691
+ - app/assets/javascripts/thredded/core/thredded.es6
647
692
  - app/assets/javascripts/thredded/dependencies.js
648
693
  - app/assets/javascripts/thredded/dependencies/jquery.js
649
694
  - app/assets/javascripts/thredded/thredded.es6
@@ -675,6 +720,7 @@ files:
675
720
  - app/assets/stylesheets/thredded/components/_post-form.scss
676
721
  - app/assets/stylesheets/thredded/components/_post.scss
677
722
  - app/assets/stylesheets/thredded/components/_preferences.scss
723
+ - app/assets/stylesheets/thredded/components/_preview_area.scss
678
724
  - app/assets/stylesheets/thredded/components/_select2.scss
679
725
  - app/assets/stylesheets/thredded/components/_topic-delete.scss
680
726
  - app/assets/stylesheets/thredded/components/_topic-header.scss
@@ -696,18 +742,25 @@ files:
696
742
  - app/commands/thredded/moderate_post.rb
697
743
  - app/commands/thredded/notify_following_users.rb
698
744
  - app/commands/thredded/notify_private_topic_users.rb
745
+ - app/controllers/concerns/thredded/new_private_topic_params.rb
746
+ - app/controllers/concerns/thredded/new_topic_params.rb
747
+ - app/controllers/concerns/thredded/render_preview.rb
699
748
  - app/controllers/thredded/application_controller.rb
700
749
  - app/controllers/thredded/autocomplete_users_controller.rb
701
750
  - app/controllers/thredded/messageboard_groups_controller.rb
702
751
  - app/controllers/thredded/messageboards_controller.rb
703
752
  - app/controllers/thredded/moderation_controller.rb
704
753
  - app/controllers/thredded/post_permalinks_controller.rb
754
+ - app/controllers/thredded/post_previews_controller.rb
705
755
  - app/controllers/thredded/posts_controller.rb
706
756
  - app/controllers/thredded/preferences_controller.rb
707
757
  - app/controllers/thredded/private_post_permalinks_controller.rb
758
+ - app/controllers/thredded/private_post_previews_controller.rb
759
+ - app/controllers/thredded/private_topic_previews_controller.rb
708
760
  - app/controllers/thredded/private_topics_controller.rb
709
761
  - app/controllers/thredded/read_states_controller.rb
710
762
  - app/controllers/thredded/theme_previews_controller.rb
763
+ - app/controllers/thredded/topic_previews_controller.rb
711
764
  - app/controllers/thredded/topics_controller.rb
712
765
  - app/forms/thredded/private_topic_form.rb
713
766
  - app/forms/thredded/topic_form.rb
@@ -816,6 +869,8 @@ files:
816
869
  - app/views/thredded/moderation/users.html.erb
817
870
  - app/views/thredded/post_mailer/post_notification.html.erb
818
871
  - app/views/thredded/post_mailer/post_notification.text.erb
872
+ - app/views/thredded/post_previews/preview.html.erb
873
+ - app/views/thredded/post_previews/update.html.erb
819
874
  - app/views/thredded/posts/_form.html.erb
820
875
  - app/views/thredded/posts/_post.html.erb
821
876
  - app/views/thredded/posts/_user.html.erb
@@ -828,14 +883,19 @@ files:
828
883
  - app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
829
884
  - app/views/thredded/posts_common/form/_after_content.html.erb
830
885
  - app/views/thredded/posts_common/form/_before_content.html.erb
886
+ - app/views/thredded/posts_common/form/_content.html.erb
831
887
  - app/views/thredded/posts_common/form/_content_field.html.erb
888
+ - app/views/thredded/posts_common/form/_preview_area.html.erb
832
889
  - app/views/thredded/preferences/_form.html.erb
833
890
  - app/views/thredded/preferences/_header.html.erb
834
891
  - app/views/thredded/preferences/edit.html.erb
892
+ - app/views/thredded/private_post_previews/preview.html.erb
893
+ - app/views/thredded/private_post_previews/update.html.erb
835
894
  - app/views/thredded/private_posts/_form.html.erb
836
895
  - app/views/thredded/private_posts/_private_post.html.erb
837
896
  - app/views/thredded/private_topic_mailer/message_notification.html.erb
838
897
  - app/views/thredded/private_topic_mailer/message_notification.text.erb
898
+ - app/views/thredded/private_topic_previews/preview.html.erb
839
899
  - app/views/thredded/private_topics/_breadcrumbs.html.erb
840
900
  - app/views/thredded/private_topics/_form.html.erb
841
901
  - app/views/thredded/private_topics/_header.html.erb
@@ -859,8 +919,10 @@ files:
859
919
  - app/views/thredded/shared/nav/_notification_preferences.html.erb
860
920
  - app/views/thredded/shared/nav/_private_topics.html.erb
861
921
  - app/views/thredded/shared/nav/_standalone.html.erb
922
+ - app/views/thredded/shared/preview.html.erb
862
923
  - app/views/thredded/theme_previews/_section_title.html.erb
863
924
  - app/views/thredded/theme_previews/show.html.erb
925
+ - app/views/thredded/topic_previews/preview.html.erb
864
926
  - app/views/thredded/topics/_followers.html.erb
865
927
  - app/views/thredded/topics/_form.html.erb
866
928
  - app/views/thredded/topics/_header.html.erb
@@ -868,7 +930,6 @@ files:
868
930
  - app/views/thredded/topics/_topic_form_admin_options.html.erb
869
931
  - app/views/thredded/topics/edit.html.erb
870
932
  - app/views/thredded/topics/index.html.erb
871
- - app/views/thredded/topics/menu/_new_topic.html.erb
872
933
  - app/views/thredded/topics/new.html.erb
873
934
  - app/views/thredded/topics/search.html.erb
874
935
  - app/views/thredded/topics/show.html.erb
@@ -879,6 +940,7 @@ files:
879
940
  - config/i18n-tasks.yml
880
941
  - config/locales/en.yml
881
942
  - config/locales/es.yml
943
+ - config/locales/pl.yml
882
944
  - config/locales/pt-BR.yml
883
945
  - config/routes.rb
884
946
  - db/migrate/20160329231848_create_thredded.rb
@@ -928,7 +990,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
928
990
  version: '0'
929
991
  requirements: []
930
992
  rubyforge_project:
931
- rubygems_version: 2.6.8
993
+ rubygems_version: 2.6.10
932
994
  signing_key:
933
995
  specification_version: 4
934
996
  summary: The best Rails forums engine ever.
@@ -1,3 +0,0 @@
1
- <li>
2
- <%= link_to 'New Topic', new_messageboard_topic_path %>
3
- </li>