add donate links and mousetrap
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
import { donateUrl } from '../common/utils/constantStrings.json';
|
||||||
|
|
||||||
var main = window.main || {};
|
var main = window.main || {};
|
||||||
|
|
||||||
main.ga = window.ga || function() {};
|
main.ga = window.ga || function() {};
|
||||||
@ -106,9 +108,9 @@ $(document).ready(function() {
|
|||||||
// About
|
// About
|
||||||
window.location = '/about';
|
window.location = '/about';
|
||||||
});
|
});
|
||||||
window.Mousetrap.bind('g n s', () => {
|
window.Mousetrap.bind('g n d', () => {
|
||||||
// Shop
|
// Donate
|
||||||
window.location = '/shop';
|
window.location = donateUrl;
|
||||||
});
|
});
|
||||||
window.Mousetrap.bind('g n o', () => {
|
window.Mousetrap.bind('g n o', () => {
|
||||||
// Settings
|
// Settings
|
||||||
|
@ -18,7 +18,6 @@ const softRedirects = {
|
|||||||
'g n n': '/challenges/next-challenge',
|
'g n n': '/challenges/next-challenge',
|
||||||
'g n a': '/about',
|
'g n a': '/about',
|
||||||
'g n m': '/map',
|
'g n m': '/map',
|
||||||
'g n s': '/shop',
|
|
||||||
'g n o': '/settings'
|
'g n o': '/settings'
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -30,6 +29,10 @@ export default function mouseTrapSaga(actions$) {
|
|||||||
'g n r',
|
'g n r',
|
||||||
() => hardGoTo('https://github.com/freecodecamp/freecodecamp')
|
() => hardGoTo('https://github.com/freecodecamp/freecodecamp')
|
||||||
),
|
),
|
||||||
|
bindKey(
|
||||||
|
'g n d',
|
||||||
|
() => hardGoTo('https://www.freecodecamp.com/donate')
|
||||||
|
),
|
||||||
bindKey(
|
bindKey(
|
||||||
'g n w',
|
'g n w',
|
||||||
() => hardGoTo('http://forum.freecodecamp.com')
|
() => hardGoTo('http://forum.freecodecamp.com')
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
"isReact": true
|
"isReact": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"content": "Shop",
|
"content": "Donate",
|
||||||
"link": "/shop"
|
"link": "https://www.freecodecamp.com/donate"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"defaultProfileImage": "https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png"
|
"defaultProfileImage": "https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png",
|
||||||
|
"donateUrl": "https://www.freecodecamp.com/donate"
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ nav.navbar.navbar-default.navbar-static-top.nav-height
|
|||||||
li
|
li
|
||||||
a(href='/map') Map
|
a(href='/map') Map
|
||||||
li
|
li
|
||||||
a(href='/shop') Shop
|
a(href='https://www.freecodecamp.com/donate') Donate
|
||||||
if !user
|
if !user
|
||||||
li
|
li
|
||||||
a(href='/signup') Sign Up
|
a(href='/signup') Sign Up
|
||||||
|
@ -32,7 +32,7 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
|
|||||||
priority= 0.9
|
priority= 0.9
|
||||||
|
|
||||||
url
|
url
|
||||||
loc http://www.freecodecamp.com/shop
|
loc http://www.freecodecamp.com/donate
|
||||||
changefreq weekly
|
changefreq weekly
|
||||||
lastmod= now
|
lastmod= now
|
||||||
priority= 0.9
|
priority= 0.9
|
||||||
|
Reference in New Issue
Block a user