update with routes.json from develop branch

This commit is contained in:
Technoboy10 2016-07-26 15:51:05 -04:00
parent 2a5f330884
commit ae9c15f6ce

View file

@ -2,126 +2,43 @@
{ {
"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",
"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"
},
{
"name": "search",
"pattern": "^/search/:projects?$/?$",
"routeAlias": "^/search",
"view": "search/search",
"title": "Search"
},
{
"name": "credits",
"pattern": "^/info/credits/?$",
"view": "credits/credits",
"title": "Credits"
},
{
"name": "faq",
"pattern": "^/info/faq/?$",
"view": "faq/faq",
"viewportWidth": "device-width",
"title": "FAQ"
},
{
"name": "educator-landing",
"pattern": "^/educators/?$",
"view": "teachers/landing/landing",
"title": "Educators"
},
{
"name": "teacher-faq",
"pattern": "^/educators/faq/?$",
"view": "teachers/faq/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",
"pattern": "^/educators/register$",
"view": "teacherregistration/teacherregistration",
"title": "Teacher Registration",
"viewportWidth": "device-width"
},
{
"name": "teacherwaitingroom",
"pattern": "^/educators/waiting",
"view": "teacherwaitingroom/teacherwaitingroom",
"title": "Thank you for requesting a Scratch Teacher Account"
},
{
"name": "wedo2",
"pattern": "^/wedo/?$",
"view": "wedo2/wedo2",
"title": "LEGO WeDo 2.0"
}, },
{ {
"name": "conference-index", "name": "conference-index",
"pattern": "^/conference/?$", "pattern": "^/conference/?$",
"routeAlias": "^/conference(?!/201[4-5])", "routeAlias": "/conference(?!/201[4-5])",
"view": "conference/index/index", "view": "conference/index/index",
"title": "Scratch Conference", "title": "Scratch Conference",
"viewportWidth": "device-width" "viewportWidth": "device-width"
@ -129,7 +46,7 @@
{ {
"name": "conference-plan", "name": "conference-plan",
"pattern": "^/conference/plan/?$", "pattern": "^/conference/plan/?$",
"routeAlias": "^/conference(?!/201[4-5])", "routeAlias": "/conference(?!/201[4-5])",
"view": "conference/plan/plan", "view": "conference/plan/plan",
"title": "Plan Your Visit", "title": "Plan Your Visit",
"viewportWidth": "device-width" "viewportWidth": "device-width"
@ -137,7 +54,7 @@
{ {
"name": "conference-expectations", "name": "conference-expectations",
"pattern": "^/conference/expect/?$", "pattern": "^/conference/expect/?$",
"routeAlias": "^/conference(?!/201[4-5])", "routeAlias": "/conference(?!/201[4-5])",
"view": "conference/expect/expect", "view": "conference/expect/expect",
"title": "What to Expect", "title": "What to Expect",
"viewportWidth": "device-width" "viewportWidth": "device-width"
@ -145,7 +62,7 @@
{ {
"name": "conference-schedule", "name": "conference-schedule",
"pattern": "^/conference/schedule/?$", "pattern": "^/conference/schedule/?$",
"routeAlias": "^/conference(?!/201[4-5])", "routeAlias": "/conference(?!/201[4-5])",
"view": "conference/schedule/schedule", "view": "conference/schedule/schedule",
"title": "Conference Schedule", "title": "Conference Schedule",
"viewportWidth": "device-width" "viewportWidth": "device-width"
@ -153,38 +70,153 @@
{ {
"name": "conference-details", "name": "conference-details",
"pattern": "^/conference/:id/details/?$", "pattern": "^/conference/:id/details/?$",
"routeAlias": "^/conference(?!/201[4-5])", "routeAlias": "/conference(?!/201[4-5])",
"view": "conference/details/details", "view": "conference/details/details",
"title": "Event Details", "title": "Event Details",
"viewportWidth": "device-width" "viewportWidth": "device-width"
}, },
{ {
"name": "donate", "name": "developers",
"pattern": "^/info/donate/?", "pattern": "^/developers/?$",
"redirect": "https://secure.donationpay.org/scratchfoundation/" "routeAlias": "/developers/?$",
"view": "developers/developers",
"title": "Developers"
}, },
{ {
"name": "dmca", "name": "dmca",
"pattern": "^/DMCA/?$", "pattern": "^/DMCA/?$",
"routeAlias": "/DMCA/?$",
"view": "dmca/dmca", "view": "dmca/dmca",
"title": "DMCA" "title": "DMCA"
}, },
{ {
"name": "guidelines", "name": "educator-landing",
"pattern": "^/community_guidelines/?$", "pattern": "^/educators/?$",
"view": "guidelines/guidelines", "routeAlias": "/educators(?:/(faq|register|waiting))?/?$",
"title": "Scratch Community Guidelines" "view": "teachers/landing/landing",
"title": "Educators"
},
{
"name": "teacher-faq",
"pattern": "^/educators/faq/?$",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$",
"view": "teachers/faq/faq",
"title": "Teacher Accounts FAQ"
},
{
"name": "teacherregistration",
"pattern": "^/educators/register$",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$",
"view": "teacherregistration/teacherregistration",
"title": "Teacher Registration",
"viewportWidth": "device-width"
},
{
"name": "teacherwaitingroom",
"pattern": "^/educators/waiting",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$",
"view": "teacherwaitingroom/teacherwaitingroom",
"title": "Thank you for requesting a Scratch Teacher Account"
},
{
"name": "explore",
"pattern": "^/explore/:projects/:all/?$",
"routeAlias": "/explore(?!/ajax)",
"view": "explore/explore",
"title": "Explore"
},
{
"name": "hoc",
"pattern": "^/hoc/?$",
"routeAlias": "/hoc/?$",
"view": "hoc/hoc",
"title": "Hour of Code"
},
{
"name": "cards",
"pattern": "^/info/cards/?$",
"routeAlias": "/info/(cards|communityblocks-interviews|credits|faq)/?$",
"view": "cards/cards",
"title": "Cards"
},
{
"name": "communityblocks-interviews",
"pattern": "^/info/communityblocks-interviews/?$",
"routeAlias": "/info/(cards|communityblocks-interviews|credits|faq|donate)/?$",
"view": "communityblocks-interviews/communityblocks-interviews",
"title": "Community Blocks Beta Tester Interviews"
},
{
"name": "credits",
"pattern": "^/info/credits/?$",
"routeAlias": "/info/(cards|communityblocks-interviews|credits|faq)/?$",
"view": "credits/credits",
"title": "Credits"
},
{
"name": "faq",
"pattern": "^/info/faq/?$",
"routeAlias": "/info/(cards|communityblocks-interviews|credits|faq)/?$",
"view": "faq/faq",
"title": "FAQ"
},
{
"name": "jobs",
"pattern": "^/jobs/?$",
"routeAlias": "/jobs/?$",
"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"
} }
] ]