decidim-conferences 0.23.3 → 0.24.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/conferences/conference_speaker/show.erb +1 -1
  3. data/app/cells/decidim/conferences/media_link/show.erb +1 -1
  4. data/app/cells/decidim/conferences/media_link_cell.rb +1 -0
  5. data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +40 -18
  6. data/app/commands/decidim/conferences/admin/create_partner.rb +33 -14
  7. data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +1 -1
  8. data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +41 -17
  9. data/app/commands/decidim/conferences/admin/update_partner.rb +30 -10
  10. data/app/controllers/decidim/conferences/admin/imports_controller.rb +14 -0
  11. data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +14 -0
  12. data/app/events/decidim/conferences/conference_role_assigned_event.rb +1 -1
  13. data/app/forms/decidim/conferences/admin/conference_speaker_form.rb +1 -1
  14. data/app/forms/decidim/conferences/admin/media_link_form.rb +1 -1
  15. data/app/forms/decidim/conferences/admin/partner_form.rb +2 -1
  16. data/app/models/decidim/conference_meeting.rb +1 -1
  17. data/app/models/decidim/conference_speaker.rb +1 -1
  18. data/app/models/decidim/conference_speaker_conference_meeting.rb +2 -2
  19. data/app/models/decidim/conferences/conference_meeting_registration_type.rb +2 -2
  20. data/app/models/decidim/conferences/registration_type.rb +1 -1
  21. data/app/permissions/decidim/conferences/permissions.rb +1 -1
  22. data/app/presenters/decidim/conferences/conference_stats_presenter.rb +1 -1
  23. data/app/views/decidim/conferences/admin/partners/_form.html.erb +1 -1
  24. data/app/views/layouts/decidim/admin/conference.html.erb +2 -1
  25. data/config/locales/ar.yml +0 -4
  26. data/config/locales/ca.yml +7 -4
  27. data/config/locales/cs.yml +10 -3
  28. data/config/locales/de.yml +10 -3
  29. data/config/locales/el.yml +0 -4
  30. data/config/locales/en.yml +10 -3
  31. data/config/locales/es-MX.yml +7 -4
  32. data/config/locales/es-PY.yml +7 -4
  33. data/config/locales/es.yml +7 -4
  34. data/config/locales/eu.yml +0 -4
  35. data/config/locales/fi-plain.yml +10 -3
  36. data/config/locales/fi.yml +10 -3
  37. data/config/locales/fr-CA.yml +10 -3
  38. data/config/locales/fr.yml +10 -3
  39. data/config/locales/gl.yml +0 -4
  40. data/config/locales/hu.yml +0 -4
  41. data/config/locales/id-ID.yml +0 -4
  42. data/config/locales/it.yml +0 -4
  43. data/config/locales/ja.yml +6 -4
  44. data/config/locales/lv.yml +0 -4
  45. data/config/locales/nl.yml +4 -3
  46. data/config/locales/no.yml +0 -4
  47. data/config/locales/pl.yml +12 -5
  48. data/config/locales/pt-BR.yml +0 -4
  49. data/config/locales/pt.yml +0 -4
  50. data/config/locales/ro-RO.yml +0 -4
  51. data/config/locales/sk.yml +0 -4
  52. data/config/locales/sv.yml +6 -4
  53. data/config/locales/tr-TR.yml +7 -4
  54. data/config/locales/zh-CN.yml +0 -4
  55. data/lib/decidim/api/conference_media_link_type.rb +18 -0
  56. data/lib/decidim/api/conference_partner_type.rb +19 -0
  57. data/lib/decidim/api/conference_speaker_type.rb +23 -0
  58. data/lib/decidim/api/conference_type.rb +42 -0
  59. data/lib/decidim/conferences.rb +1 -0
  60. data/lib/decidim/conferences/admin_engine.rb +3 -1
  61. data/lib/decidim/conferences/api.rb +10 -0
  62. data/lib/decidim/conferences/engine.rb +7 -1
  63. data/lib/decidim/conferences/participatory_space.rb +25 -25
  64. data/lib/decidim/conferences/query_extensions.rb +43 -0
  65. data/lib/decidim/conferences/test/factories.rb +6 -6
  66. data/lib/decidim/conferences/version.rb +1 -1
  67. metadata +22 -18
  68. data/app/types/decidim/conferences/conference_media_link_type.rb +0 -19
  69. data/app/types/decidim/conferences/conference_partner_type.rb +0 -20
  70. data/app/types/decidim/conferences/conference_speaker_type.rb +0 -24
  71. data/app/types/decidim/conferences/conference_type.rb +0 -45
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Conferences
5
- # This type represents a conference.
6
- ConferenceSpeakerType = GraphQL::ObjectType.define do
7
- name "ConferenceSpeaker"
8
- description "A conference speaker"
9
-
10
- field :id, !types.ID, "Internal ID of the speaker"
11
- field :fullName, types.String, "Full name of the speaker", property: :full_name
12
- field :position, Decidim::Core::TranslatedFieldType, "Position of the speaker in the conference"
13
- field :affiliation, Decidim::Core::TranslatedFieldType, "Affiliation of the speaker"
14
- field :twitterHandle, types.String, "Twitter handle", property: :twitter_handle
15
- field :shortBio, Decidim::Core::TranslatedFieldType, "Short biography of the speaker", property: :short_bio
16
- field :personalUrl, types.String, "Personal URL of the speaker", property: :personal_url
17
- field :avatar, types.String, "Avatar of the speaker"
18
- field :user, Decidim::Core::UserType, "Decidim user corresponding to this speaker", property: :user
19
-
20
- field :createdAt, Decidim::Core::DateTimeType, "The time this member was created ", property: :created_at
21
- field :updatedAt, Decidim::Core::DateTimeType, "The time this member was updated", property: :updated_at
22
- end
23
- end
24
- end
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Conferences
5
- # This type represents a conference.
6
- ConferenceType = GraphQL::ObjectType.define do
7
- interfaces [
8
- -> { Decidim::Core::ParticipatorySpaceInterface },
9
- -> { Decidim::Core::ScopableInterface },
10
- -> { Decidim::Core::AttachableInterface }
11
- ]
12
-
13
- name "Conference"
14
- description "A conference"
15
-
16
- field :id, !types.ID, "Internal ID for this conference"
17
- field :shortDescription, Decidim::Core::TranslatedFieldType, "The short description of this conference", property: :short_description
18
- field :description, Decidim::Core::TranslatedFieldType, "The description of this conference"
19
- field :slug, types.String, "The slug of this conference"
20
- field :hashtag, types.String, "The hashtag for this conference"
21
- field :slogan, Decidim::Core::TranslatedFieldType, "The slogan of the conference"
22
- field :location, types.String, "The location of this conference"
23
- field :createdAt, Decidim::Core::DateTimeType, "The time this conference was created", property: :created_at
24
- field :updatedAt, Decidim::Core::DateTimeType, "The time this conference was updated", property: :updated_at
25
- field :publishedAt, Decidim::Core::DateTimeType, "The time this conference was published", property: :published_at
26
- field :reference, types.String, "Reference prefix for this conference"
27
-
28
- field :heroImage, types.String, "The hero image for this conference", property: :hero_image
29
- field :bannerImage, types.String, "The banner image for this conference", property: :banner_image
30
- field :promoted, types.Boolean, "If this conference is promoted (therefore in the homepage)"
31
- field :objectives, Decidim::Core::TranslatedFieldType, "The objectives of the conference"
32
- field :showStatistics, types.Boolean, "If this conference shows the statistics", property: :show_statistics
33
- field :startDate, Decidim::Core::DateType, "The date this conference starts", property: :start_date
34
- field :endDate, Decidim::Core::DateType, "The date this conference ends", property: :end_date
35
- field :registrationsEnabled, types.Boolean, "If the registrations are enabled in this conference", property: :registrations_enabled
36
- field :availableSlots, types.Int, "The number of available slots in this conference", property: :available_slots
37
- field :registrationTerms, Decidim::Core::TranslatedFieldType, "The registration terms of this conference", property: :registration_terms
38
-
39
- field :speakers, types[Decidim::Conferences::ConferenceSpeakerType], "List of speakers in this conference"
40
- field :partners, types[Decidim::Conferences::ConferencePartnerType], "List of partners in this conference"
41
- field :categories, types[Decidim::Core::CategoryType], "List of categories in this conference"
42
- field :mediaLinks, types[Decidim::Conferences::ConferenceMediaLinkType], "List of media links in this conference", property: :media_links
43
- end
44
- end
45
- end