Commit ae9c15f6 authored by Technoboy10's avatar Technoboy10

update with routes.json from develop branch

parent 2a5f3308
...@@ -2,106 +2,111 @@ ...@@ -2,106 +2,111 @@
{ {
"name": "splash", "name": "splash",
"pattern": "^/?$", "pattern": "^/?$",
"routeAlias": "/?$",
"view": "splash/splash", "view": "splash/splash",
"viewportWidth": "device-width", "title": "Imagine, Program, Share",
"title": "Imagine, Program, Share" "viewportWidth": "device-width"
}, },
{ {
"name": "about", "name": "about",
"pattern": "^/about/?$", "pattern": "^/about/?$",
"routeAlias": "/about/?$",
"view": "about/about", "view": "about/about",
"title": "About" "title": "About"
}, },
{ {
"name": "developers", "name": "guidelines",
"pattern": "^/developers/?$", "pattern": "^/community_guidelines/?$",
"view": "developers/developers", "routeAlias": "/community_guidelines/?$",
"title": "Developers" "view": "guidelines/guidelines",
"title": "Scratch Community Guidelines"
}, },
{ {
"name": "hoc", "name": "student-complete-registration",
"pattern": "^/hoc/?$", "pattern": "^/classes/complete_registration",
"view": "hoc/hoc", "routeAlias": "/classes/(complete_registration|.+/register/.+)",
"title": "Hour of Code" "view": "studentcompleteregistration/studentcompleteregistration",
"title": "Complete your Registration"
}, },
{ {
"name": "explore", "name": "student-registration",
"pattern": "^/explore/:projects/:all/?$", "pattern": "^/classes/:id/register/:token",
"routeAlias": "^/explore(?!/ajax)", "routeAlias": "/classes/(complete_registration|.+/register/.+)",
"view": "explore/explore", "view": "studentregistration/studentregistration",
"title": "Explore" "title": "Class Registration"
}, },
{ {
"name": "explore-redirect", "name": "conference-index",
"pattern": "^/explore/?$", "pattern": "^/conference/?$",
"routeAlias": "^/explore(?!/ajax)", "routeAlias": "/conference(?!/201[4-5])",
"redirect": "/explore/projects/all" "view": "conference/index/index",
"title": "Scratch Conference",
"viewportWidth": "device-width"
}, },
{ {
"name": "explore-projects-redirect", "name": "conference-plan",
"pattern": "^/explore/projects/?$", "pattern": "^/conference/plan/?$",
"routeAlias": "^/explore(?!/ajax)", "routeAlias": "/conference(?!/201[4-5])",
"redirect": "/explore/projects/all" "view": "conference/plan/plan",
"title": "Plan Your Visit",
"viewportWidth": "device-width"
}, },
{ {
"name": "explore-studios-redirect", "name": "conference-expectations",
"pattern": "^/explore/studios/?$", "pattern": "^/conference/expect/?$",
"routeAlias": "^/explore(?!/ajax)", "routeAlias": "/conference(?!/201[4-5])",
"redirect": "/explore/studios/all" "view": "conference/expect/expect",
"title": "What to Expect",
"viewportWidth": "device-width"
}, },
{ {
"name": "search", "name": "conference-schedule",
"pattern": "^/search/:projects?$/?$", "pattern": "^/conference/schedule/?$",
"routeAlias": "^/search", "routeAlias": "/conference(?!/201[4-5])",
"view": "search/search", "view": "conference/schedule/schedule",
"title": "Search" "title": "Conference Schedule",
"viewportWidth": "device-width"
}, },
{ {
"name": "credits", "name": "conference-details",
"pattern": "^/info/credits/?$", "pattern": "^/conference/:id/details/?$",
"view": "credits/credits", "routeAlias": "/conference(?!/201[4-5])",
"title": "Credits" "view": "conference/details/details",
"title": "Event Details",
"viewportWidth": "device-width"
}, },
{ {
"name": "faq", "name": "developers",
"pattern": "^/info/faq/?$", "pattern": "^/developers/?$",
"view": "faq/faq", "routeAlias": "/developers/?$",
"viewportWidth": "device-width", "view": "developers/developers",
"title": "FAQ" "title": "Developers"
},
{
"name": "dmca",
"pattern": "^/DMCA/?$",
"routeAlias": "/DMCA/?$",
"view": "dmca/dmca",
"title": "DMCA"
}, },
{ {
"name": "educator-landing", "name": "educator-landing",
"pattern": "^/educators/?$", "pattern": "^/educators/?$",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$",
"view": "teachers/landing/landing", "view": "teachers/landing/landing",
"title": "Educators" "title": "Educators"
}, },
{ {
"name": "teacher-faq", "name": "teacher-faq",
"pattern": "^/educators/faq/?$", "pattern": "^/educators/faq/?$",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$",
"view": "teachers/faq/faq", "view": "teachers/faq/faq",
"title": "Teacher Accounts FAQ" "title": "Teacher Accounts FAQ"
}, },
{
"name": "cards",
"pattern": "^/info/cards/?$",
"view": "cards/cards",
"title": "Cards"
},
{
"name": "communityblocks-interviews",
"pattern": "^/info/communityblocks-interviews/?$",
"view": "communityblocks-interviews/communityblocks-interviews",
"title": "Community Blocks Beta Tester Interviews"
},
{
"name": "jobs",
"pattern": "^/jobs/?$",
"view": "jobs/jobs",
"title": "Jobs"
},
{ {
"name": "teacherregistration", "name": "teacherregistration",
"pattern": "^/educators/register$", "pattern": "^/educators/register$",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$",
"view": "teacherregistration/teacherregistration", "view": "teacherregistration/teacherregistration",
"title": "Teacher Registration", "title": "Teacher Registration",
"viewportWidth": "device-width" "viewportWidth": "device-width"
...@@ -109,82 +114,109 @@ ...@@ -109,82 +114,109 @@
{ {
"name": "teacherwaitingroom", "name": "teacherwaitingroom",
"pattern": "^/educators/waiting", "pattern": "^/educators/waiting",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$",
"view": "teacherwaitingroom/teacherwaitingroom", "view": "teacherwaitingroom/teacherwaitingroom",
"title": "Thank you for requesting a Scratch Teacher Account" "title": "Thank you for requesting a Scratch Teacher Account"
}, },
{ {
"name": "wedo2", "name": "explore",
"pattern": "^/wedo/?$", "pattern": "^/explore/:projects/:all/?$",
"view": "wedo2/wedo2", "routeAlias": "/explore(?!/ajax)",
"title": "LEGO WeDo 2.0" "view": "explore/explore",
}, "title": "Explore"
{
"name": "conference-index",
"pattern": "^/conference/?$",
"routeAlias": "^/conference(?!/201[4-5])",
"view": "conference/index/index",
"title": "Scratch Conference",
"viewportWidth": "device-width"
},
{
"name": "conference-plan",
"pattern": "^/conference/plan/?$",
"routeAlias": "^/conference(?!/201[4-5])",
"view": "conference/plan/plan",
"title": "Plan Your Visit",
"viewportWidth": "device-width"
}, },
{ {
"name": "conference-expectations", "name": "hoc",
"pattern": "^/conference/expect/?$", "pattern": "^/hoc/?$",
"routeAlias": "^/conference(?!/201[4-5])", "routeAlias": "/hoc/?$",
"view": "conference/expect/expect", "view": "hoc/hoc",
"title": "What to Expect", "title": "Hour of Code"
"viewportWidth": "device-width"
}, },
{ {
"name": "conference-schedule", "name": "cards",
"pattern": "^/conference/schedule/?$", "pattern": "^/info/cards/?$",
"routeAlias": "^/conference(?!/201[4-5])", "routeAlias": "/info/(cards|communityblocks-interviews|credits|faq)/?$",
"view": "conference/schedule/schedule", "view": "cards/cards",
"title": "Conference Schedule", "title": "Cards"
"viewportWidth": "device-width"
}, },
{ {
"name": "conference-details", "name": "communityblocks-interviews",
"pattern": "^/conference/:id/details/?$", "pattern": "^/info/communityblocks-interviews/?$",
"routeAlias": "^/conference(?!/201[4-5])", "routeAlias": "/info/(cards|communityblocks-interviews|credits|faq|donate)/?$",
"view": "conference/details/details", "view": "communityblocks-interviews/communityblocks-interviews",
"title": "Event Details", "title": "Community Blocks Beta Tester Interviews"
"viewportWidth": "device-width"
}, },
{ {
"name": "donate", "name": "credits",
"pattern": "^/info/donate/?", "pattern": "^/info/credits/?$",
"redirect": "https://secure.donationpay.org/scratchfoundation/" "routeAlias": "/info/(cards|communityblocks-interviews|credits|faq)/?$",
"view": "credits/credits",
"title": "Credits"
}, },
{ {
"name": "dmca", "name": "faq",
"pattern": "^/DMCA/?$", "pattern": "^/info/faq/?$",
"view": "dmca/dmca", "routeAlias": "/info/(cards|communityblocks-interviews|credits|faq)/?$",
"title": "DMCA" "view": "faq/faq",
"title": "FAQ"
}, },
{ {
"name": "guidelines", "name": "jobs",
"pattern": "^/community_guidelines/?$", "pattern": "^/jobs/?$",
"view": "guidelines/guidelines", "routeAlias": "/jobs/?$",
"title": "Scratch Community Guidelines" "view": "jobs/jobs",
"title": "Jobs"
}, },
{ {
"name": "privacypolicy", "name": "privacypolicy",
"pattern": "^/privacy_policy/?$", "pattern": "^/privacy_policy/?$",
"routeAlias": "/privacy_policy/?$",
"view": "privacypolicy/privacypolicy", "view": "privacypolicy/privacypolicy",
"title": "Privacy Policy" "title": "Privacy Policy"
}, },
{
"name": "search",
"pattern": "^/search/:projects?$/?$",
"routeAlias": "/search",
"view": "search/search",
"title": "Search"
},
{ {
"name": "terms", "name": "terms",
"pattern": "^/terms_of_use/?$", "pattern": "^/terms_of_use/?$",
"routeAlias": "/terms_of_use/?$",
"view": "terms/terms", "view": "terms/terms",
"title": "Scratch Terms of Use" "title": "Scratch Terms of Use"
},
{
"name": "wedo2",
"pattern": "^/wedo/?$",
"routeAlias": "/wedo/?$",
"view": "wedo2/wedo2",
"title": "LEGO WeDo 2.0"
},
{
"name": "donate",
"pattern": "^/info/donate/?",
"routeAlias": "/info/(cards|communityblocks-interviews|credits|faq|donate)/?$",
"redirect": "https://secure.donationpay.org/scratchfoundation/"
},
{
"name": "explore-redirect",
"pattern": "^/explore/?$",
"routeAlias": "/explore(?!/ajax)",
"redirect": "/explore/projects/all"
},
{
"name": "explore-projects-redirect",
"pattern": "^/explore/projects/?$",
"routeAlias": "/explore(?!/ajax)",
"redirect": "/explore/projects/all"
},
{
"name": "explore-studios-redirect",
"pattern": "^/explore/studios/?$",
"routeAlias": "/explore(?!/ajax)",
"redirect": "/explore/studios/all"
} }
] ]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment