Skip to content

Instantly share code, notes, and snippets.

@Mood-al
Created June 29, 2022 15:07
Show Gist options
  • Save Mood-al/3b8c959d284c1cdba427e56076ddbc36 to your computer and use it in GitHub Desktop.
Save Mood-al/3b8c959d284c1cdba427e56076ddbc36 to your computer and use it in GitHub Desktop.
export const donateRoutes = {
medical_support: {
constant: "sections_medical_support",
sections: [
{
main_section_name: "medical_support",
section_name: "medical-cases",
title_constant_name: "medical_cases_title",
description_constant_name: "medical_cases_description",
route_url: "medical-cases",
endpoint_url: "targetables/cases/?program_id=1",
},
{
main_section_name: "medical_support",
section_name: "medical-sponsorships",
title_constant_name: "medical_sponsorships_title",
description_constant_name: "medical_sponsorships_description",
route_url: "medical-sponsorships",
endpoint_url: "targetables/cases/?program_id=1",
},
{
main_section_name: "medical_support",
section_name: "medical-campaigns",
title_constant_name: "medical_campaigns_title",
description_constant_name: "medical_campaigns_description",
route_url: "medical-campaigns",
endpoint_url: "targetables/cases/?program_id=1",
},
],
},
orphans_support: {
constant: "sections_orphans_support",
sections: [
{
main_section_name: "orphans_support",
section_name: "orphans-sponsorships",
title_constant_name: "orphans_sponsorships_title",
description_constant_name: "orphans_sponsorships_description",
route_url: "orphans-sponsorships",
endpoint_url: "targetables/cases/?program_id=1",
},
{
main_section_name: "orphans_support",
section_name: "orphans-campaigns",
title_constant_name: "orphans_campaigns_title",
description_constant_name: "orphans_campaigns_description",
route_url: "orphans-campaigns",
endpoint_url: "targetables/cases/?program_id=1",
},
],
},
humanitarian_support: {
constant: "sections_humanitarian_support",
sections: [
{
main_section_name: "humanitarian_support",
section_name: "humanitarian-cases",
title_constant_name: "humanitarian_cases_title",
description_constant_name: "humanitarian_cases_description",
route_url: "humanitarian-cases",
endpoint_url: "targetables/cases/?program_id=1",
},
{
main_section_name: "humanitarian_support",
section_name: "humanitarian-sponsorships",
title_constant_name: "humanitarian_sponsorships_title",
description_constant_name: "humanitarian_sponsorships_description",
route_url: "humanitarian-sponsorships",
endpoint_url: "targetables/sponsorships/?program_id=1",
},
{
main_section_name: "humanitarian_support",
section_name: "humanitarian-campaigns",
title_constant_name: "humanitarian_campaigns_title",
description_constant_name: "humanitarian_campaigns_description",
route_url: "humanitarian-campaigns",
endpoint_url: "targetables/campaigns/?program_id=1",
},
],
},
shelter: {
constant: "sections_shelter",
sections: [
{
main_section_name: "shelter",
section_name: "shelter",
title_constant_name: "shelter_title",
description_constant_name: "shelter_description",
route_url: "shelter",
endpoint_url: "targetables/campaigns/?program_id=1",
},
],
},
education_support: {
constant: "sections_education_support",
sections: [
{
main_section_name: "education_support",
section_name: "students-sponsorships",
title_constant_name: "students_sponsorships_title",
description_constant_name: "students_sponsorships_description",
route_url: "students-sponsorships",
endpoint_url: "targetables/campaigns/?program_id=1",
},
{
main_section_name: "education_support",
section_name: "education-campaigns",
title_constant_name: "education_campaigns_title",
description_constant_name: "education_campaigns_description",
route_url: "education-campaigns",
endpoint_url: "targetables/campaigns/?program_id=1",
},
],
},
emergency: {
constant: "sections_emergency",
sections: [
{
main_section_name: "emergency",
section_name: "campaigns",
title_constant_name: "campaigns_title",
description_constant_name: "campaigns_description",
route_url: "campaigns",
endpoint_url: "targetables/campaigns/?program_id=1",
},
],
},
events: {
constant: "sections_events",
sections: [
{
main_section_name: "events",
section_name: "events",
title_constant_name: "events_title",
description_constant_name: "events_description",
route_url: "events",
endpoint_url: "targetables/events/?program_id=1",
},
{
main_section_name: "events",
section_name: "add-event",
title_constant_name: "add_event_title",
description_constant_name: "add_event_description",
route_url: "events/create",
endpoint_url: "targetables/events/?program_id=1",
},
],
},
fundraisers: {
constant: "sections_fundraisers",
sections: [
{
main_section_name: "fundraisers",
section_name: "fundraisers",
title_constant_name: "fundraisers_title",
description_constant_name: "fundraisers_description",
route_url: "fundraisers",
endpoint_url: "targetables/fundraisers/?program_id=1",
},
{
main_section_name: "fundraisers",
section_name: "add-fundraiser",
title_constant_name: "add_fundraiser_title",
description_constant_name: "add_fundraiser_description",
route_url: "fundraisers/create",
endpoint_url: "targetables/fundraisers/?program_id=1",
},
],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment