decidim-conferences 0.23.3 → 0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/conferences/conference_speaker/show.erb +1 -1
- data/app/cells/decidim/conferences/media_link/show.erb +1 -1
- data/app/cells/decidim/conferences/media_link_cell.rb +1 -0
- data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +40 -18
- data/app/commands/decidim/conferences/admin/create_partner.rb +33 -14
- data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +41 -17
- data/app/commands/decidim/conferences/admin/update_partner.rb +30 -10
- data/app/controllers/decidim/conferences/admin/imports_controller.rb +14 -0
- data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +14 -0
- data/app/events/decidim/conferences/conference_role_assigned_event.rb +1 -1
- data/app/forms/decidim/conferences/admin/conference_form.rb +3 -2
- data/app/forms/decidim/conferences/admin/conference_speaker_form.rb +1 -1
- data/app/forms/decidim/conferences/admin/media_link_form.rb +1 -1
- data/app/forms/decidim/conferences/admin/partner_form.rb +2 -1
- data/app/models/decidim/conference_meeting.rb +1 -1
- data/app/models/decidim/conference_speaker.rb +1 -1
- data/app/models/decidim/conference_speaker_conference_meeting.rb +2 -2
- data/app/models/decidim/conferences/conference_meeting_registration_type.rb +2 -2
- data/app/models/decidim/conferences/registration_type.rb +1 -1
- data/app/permissions/decidim/conferences/permissions.rb +1 -1
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +1 -1
- data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +1 -1
- data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +1 -1
- data/app/views/decidim/conferences/admin/partners/_form.html.erb +1 -1
- data/app/views/layouts/decidim/admin/conference.html.erb +2 -1
- data/config/locales/ar.yml +6 -4
- data/config/locales/ca.yml +50 -3
- data/config/locales/cs.yml +51 -4
- data/config/locales/de.yml +16 -3
- data/config/locales/el.yml +6 -4
- data/config/locales/en.yml +50 -3
- data/config/locales/es-MX.yml +16 -3
- data/config/locales/es-PY.yml +16 -3
- data/config/locales/es.yml +17 -4
- data/config/locales/eu.yml +6 -4
- data/config/locales/fi-plain.yml +51 -4
- data/config/locales/fi.yml +51 -4
- data/config/locales/fr-CA.yml +16 -3
- data/config/locales/fr.yml +16 -3
- data/config/locales/gl.yml +35 -4
- data/config/locales/hu.yml +6 -4
- data/config/locales/id-ID.yml +6 -4
- data/config/locales/it.yml +7 -5
- data/config/locales/ja.yml +12 -4
- data/config/locales/lv.yml +6 -4
- data/config/locales/nl.yml +176 -129
- data/config/locales/no.yml +6 -4
- data/config/locales/pl.yml +20 -7
- data/config/locales/pt-BR.yml +6 -4
- data/config/locales/pt.yml +6 -4
- data/config/locales/ro-RO.yml +66 -3
- data/config/locales/sk.yml +6 -4
- data/config/locales/sv.yml +50 -3
- data/config/locales/tr-TR.yml +13 -4
- data/config/locales/zh-CN.yml +6 -4
- data/db/migrate/20210310134942_add_followable_counter_cache_to_conferences.rb +16 -0
- data/lib/decidim/api/conference_media_link_type.rb +18 -0
- data/lib/decidim/api/conference_partner_type.rb +19 -0
- data/lib/decidim/api/conference_speaker_type.rb +23 -0
- data/lib/decidim/api/conference_type.rb +42 -0
- data/lib/decidim/conferences.rb +1 -0
- data/lib/decidim/conferences/admin_engine.rb +3 -1
- data/lib/decidim/conferences/api.rb +10 -0
- data/lib/decidim/conferences/engine.rb +7 -1
- data/lib/decidim/conferences/participatory_space.rb +25 -25
- data/lib/decidim/conferences/query_extensions.rb +43 -0
- data/lib/decidim/conferences/test/factories.rb +6 -6
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +21 -16
- data/app/types/decidim/conferences/conference_media_link_type.rb +0 -19
- data/app/types/decidim/conferences/conference_partner_type.rb +0 -20
- data/app/types/decidim/conferences/conference_speaker_type.rb +0 -24
- data/app/types/decidim/conferences/conference_type.rb +0 -45
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Conferences
|
5
|
-
# This type represents a conference.
|
6
|
-
ConferenceMediaLinkType = GraphQL::ObjectType.define do
|
7
|
-
name "ConferenceMediaLink"
|
8
|
-
description "A conference media link"
|
9
|
-
|
10
|
-
field :id, !types.ID, "Internal ID for this media link"
|
11
|
-
field :title, Decidim::Core::TranslatedFieldType, "Title for this media link"
|
12
|
-
field :link, types.String, "URL for this media link"
|
13
|
-
field :date, Decidim::Core::DateType, "Relevant date for the media link"
|
14
|
-
field :weight, types.Int, "Order of appearance in which it should be presented"
|
15
|
-
field :createdAt, Decidim::Core::DateTimeType, "The time this entry was created", property: :created_at
|
16
|
-
field :updatedAt, Decidim::Core::DateTimeType, "The time this entry was updated", property: :updated_at
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Conferences
|
5
|
-
# This type represents a conference.
|
6
|
-
ConferencePartnerType = GraphQL::ObjectType.define do
|
7
|
-
name "ConferencePartner"
|
8
|
-
description "A conference partner"
|
9
|
-
|
10
|
-
field :id, !types.ID, "ID of the resource"
|
11
|
-
field :name, types.String, "Partner name"
|
12
|
-
field :partnerType, types.String, "Partner type", property: :partner_type
|
13
|
-
field :weight, types.Int, "Order of appearance in which it should be presented"
|
14
|
-
field :link, types.String, "Relevant URL for this partner"
|
15
|
-
field :logo, types.String, "Link to the partner's logo"
|
16
|
-
field :createdAt, Decidim::Core::DateTimeType, "The time this partner was created", property: :created_at
|
17
|
-
field :updatedAt, Decidim::Core::DateTimeType, "The time this partner was updated", property: :updated_at
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -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
|