Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(server): Updated to server to freeCodeCamp #12501

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions seed/challenges/04-video-challenges/jslingo.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"description": [
"We are going to cover what constitutes a variable, and the reasoning behind camelCase.",
"A variable also referred to as 'var', is the name or placeholder for a boolean, string, number, or another piece of static information.",
"You can use Google Dev Tools to inspect the Free Code Camp home page and look for some variables.",
"You can use Google Dev Tools to inspect the freeCodeCamp home page and look for some variables.",
"You 'declare' variables the first time with 'var' in front of it, but those can be referenced later in your script.",
"camelCase is the way that JavaScript pushes words together and still keeps them legible. The first letter of the first word is lowercase, along with the remainder of the word, but the first letter of every consecutive word is capitalized. There are no spaces. Examples: brianaLovesHerPets, bestFoodIsCheese, and codeIsWorthLearning.",
"When you name variables, utilize camelCase. Also try to keep the names descriptive and short so that others (and yourself!) can tell what that variable is referring to just by the name."
Expand Down Expand Up @@ -115,7 +115,7 @@
"description": [
"Vamos a cubrir lo que constituye una variable, y el razonamiento detrás de la capitalizaciónCamello (<em>camelCase</em>).",
"Una variable, también conocida como una 'var', es el nombre o el espacio para un booleano, una cadena, un número, u otra pieza de información estática.",
"Puedes usar las Herramientas de desarrollo de Google para inspeccionar la página principal de FreeCodeCamp y buscar algunas variables.",
"Puedes usar las Herramientas de desarrollo de Google para inspeccionar la página principal de freeCodeCamp y buscar algunas variables.",
"Tu 'declaras' variables por primera vez con <code>var</code> en frente de ella, pero después puedes referenciarla más adelante en tu programa.",
"capitalizaciónCamello es una forma en la que juntas varias palabras y aún así las mantienes legibles. La primera letra de la primera palabra va en minúsculas al igual que el resto de la primera palabra, pero la primera letra de cada palabra que siga se escribe en mayúsculas. No hay espacios. Ejemplos: brianaAmaSusMascotas, laMejorComidaEsElQueso, y valeLaPenaAprenderProgramacion.",
"Al asignar un nombre de variable, usa capitalizaciónCamello. Además, trata de mantener los nombres descriptivos y cortos para que los demás (¡e incluso tu!) puedan entender a lo que se refiere la variable simplemente por el nombre."
Expand Down Expand Up @@ -209,7 +209,7 @@
"I'd suggest looking through the MDN (Mozilla Developer Network that we discussed in the first video) to familiarize yourself with the sheer amount and general potential for the methods that exist. <a href='http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Methods_Index' target='_blank'>developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Methods_Index</a>",
"Examples include '.split(' ')', which will turn a string into an array and can do so in many different ways. Methods are powerful - many times when you want your script to do something, there's a method for that.",
"Functions, like variables, are something you define and create.",
"During your algorithm practice at Free Code Camp, you will create functions that take a certain piece of information and manipulate it in whatever way you choose.",
"During your algorithm practice at freeCodeCamp, you will create functions that take a certain piece of information and manipulate it in whatever way you choose.",
"You'll become more familiar with syntax there, but for now, just remember that with methods and functions you can do almost anything with your code."
],
"challengeSeed": [
Expand Down Expand Up @@ -237,7 +237,7 @@
"Me gustaría sugerirte dar un vistazo a MDN (Mozilla Developer Network que discutimos en el primer video) para que te familiarices con la cantidad y el potencial general de los métodos que existen. <a href='http://developer.mozilla.org/es/docs/Web/JavaScript/Referencia/Methods_Index' target='_blank'>developer.mozilla.org/es/docs/Web/JavaScript/Referencia/Methods_Index</a>",
"Los ejemplos incluyen <code>.split (' ')</code>, que convertirá una cadena en un vector y puede hacerlo de muchas maneras diferentes. Los métodos son de gran alcance - muchas veces cuando quieres que tu programa haga algo, ya habrá un método para eso.",
"Las funciones, al igual que las variables, son algo que tu defines y creas.",
"Durante tu práctica con algoritmos en FreeCodeCamp, vas a crear funciones que reciben una determinada pieza de información y la manipulan de la forma que elijas.",
"Durante tu práctica con algoritmos en freeCodeCamp, vas a crear funciones que reciben una determinada pieza de información y la manipulan de la forma que elijas.",
"Vas a estar más familiarizado con la sintaxis, pero por ahora, sólo recuerda que con los métodos y funciones puedes hacer casi cualquier cosa con tu código."
]
}
Expand All @@ -250,7 +250,7 @@
"There is a static object named 'Math' in JS with many built in properties and methods.",
"You'll want to investigate this further whenever you're manipulating numbers. Check MDN documentation before writing your own functions, because they may already be defined there.",
"Examples include Math.random() which will return a random number in a given range and Math.round() which will round the input to the nearest integer.",
"I used Math.random() when I built the random quote generator for the Free Code Camp front end development project.",
"I used Math.random() when I built the random quote generator for the freeCodeCamp front end development project.",
"When you're working with numbers, you should also be aware that JS has an interesting attribute called 'floating-point format'.",
"Depending on the amount of numbers, the size of those numbers, and the number of computations, JS may return something that is inaccurate by .00004.",
"There are ways around this, and in general it doesn't pose issues, but it's something you should be aware of in the event you run into some problems that aren't making sense."
Expand Down Expand Up @@ -278,7 +278,7 @@
"Hay un objeto estático de nombre 'Math' en JS con muchos propiedades y métodos incluidos.",
"Vas a querer investigar más de este cuando manipules números. Consulta la documentación de MDN antes de escribir tus propias funciones, pues ya podrían estar definidas allí. ",
"Los ejemplos incluyen <code>Math.random()</code> que devolverá un número aleatorio en un rango y <code>Math.round()</code> que redondeará el número decimal que reciba al entero más cercano.",
"Yo utilicé <code>Math.random()</code> cuando construí el generador de citas aleatorias como proyecto de desarrollo de interfaces en FreeCodeCamp.",
"Yo utilicé <code>Math.random()</code> cuando construí el generador de citas aleatorias como proyecto de desarrollo de interfaces en freeCodeCamp.",
"Cuando trabajes con números, también debes estar consciente de que JS tiene un atributo interesante llamado 'formato de coma flotante'.",
"Dependiendo de la cantidad de números, su tamaño y la cantidad de cálculos, JS puede devolver un número que es inexacto en 0,00004.",
"Hay maneras de evitar esto, y en general no plantean problemas, pero es algo que debes tener en cuenta si te encuentras con algunos problemas que parecen no tienen sentido."
Expand Down
4 changes: 2 additions & 2 deletions server/boot/a-extendUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ module.exports = function(app) {
var mailOptions = {
type: 'email',
to: user.email,
from: 'Team@freecodecamp.com',
subject: 'Welcome to Free Code Camp!',
from: 'Team@freeCodeCamp.com',

This comment was marked as off-topic.

subject: 'Welcome to freeCodeCamp!',
protocol: isDev ? null : 'https',
host: isDev ? 'localhost' : 'freecodecamp.com',
port: isDev ? null : 443,
Expand Down
2 changes: 1 addition & 1 deletion server/boot/a-extendUserIdent.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function({ models }) {
Your GitHub is already associated with another account.
You may have accidentally created a duplicate account.
No worries, though. We can fix this real quick.
Please email us with your GitHub username: team@freecodecamp.com.
Please email us with your GitHub username: team@freeCodeCamp.com.

This comment was marked as off-topic.

`.split('/n').join(' ')
)
);
Expand Down
8 changes: 4 additions & 4 deletions server/boot/certificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ function sendCertifiedEmail(

const notifyTeam = {
type: 'email',
to: 'Michael@FreeCodeCamp.com',
from: 'Team@FreeCodeCamp.com',
to: 'Michael@freeCodeCamp.com',

This comment was marked as off-topic.

from: 'Team@freeCodeCamp.com',

This comment was marked as off-topic.

subject: 'A new user has arrived!',
text: renderNotifyEmail({
username,
Expand All @@ -125,7 +125,7 @@ function sendCertifiedEmail(
const notifyUser = {
type: 'email',
to: email,
from: 'Michael@FreeCodeCamp.com',
from: 'Michael@freeCodeCamp.com',

This comment was marked as off-topic.

subject: 'Congratulation on gaining your third certification!',
text: renderCertifedEmail({
username,
Expand Down Expand Up @@ -238,7 +238,7 @@ export default function certificate(app) {
We need your name so we can put it on your certificate.
<a href="https://github.com/settings/profile">Add your
name to your GitHub account</a>, then go to your
<a href="https://www.freecodecamp.com/settings">settings
<a href="https://www.freeCodeCamp.com/settings">settings

This comment was marked as off-topic.

page</a> and click the "update my portfolio from GitHub"
button. Then we can issue your certificate.
`
Expand Down
6 changes: 3 additions & 3 deletions server/boot/randomAPIs.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = function(app) {

function showTestimonials(req, res) {
res.render('resources/stories', {
title: 'Testimonials from Happy Free Code Camp Students ' +
title: 'Testimonials from Happy freeCodeCamp Students ' +
'who got Software Engineer Jobs',
stories: testimonials.slice(0, 72),
moreStories: true
Expand All @@ -102,7 +102,7 @@ module.exports = function(app) {

function showAllTestimonials(req, res) {
res.render('resources/stories', {
title: 'Testimonials from Happy Free Code Camp Students ' +
title: 'Testimonials from Happy freeCodeCamp Students ' +
'who got Software Engineer Jobs',
stories: testimonials,
moreStories: false
Expand All @@ -111,7 +111,7 @@ module.exports = function(app) {

function showShop(req, res) {
res.render('resources/shop', {
title: 'Support Free Code Camp by Buying t-shirts, ' +
title: 'Support freeCodeCamp by Buying t-shirts, ' +
'stickers, and other goodies'
});
}
Expand Down
10 changes: 5 additions & 5 deletions server/boot/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ module.exports = function(app) {
return res.redirect('/');
}
return res.render('account/signin', {
title: 'Sign in to Free Code Camp'
title: 'Sign in to freeCodeCamp'
});
}

Expand All @@ -247,7 +247,7 @@ module.exports = function(app) {
return res.redirect('/');
}
return res.render('account/deprecated-signin', {
title: 'Sign in to Free Code Camp using a Deprecated Login'
title: 'Sign in to freeCodeCamp using a Deprecated Login'
});
}

Expand All @@ -265,7 +265,7 @@ module.exports = function(app) {
return res.redirect('/');
}
return res.render('account/email-signin', {
title: 'Sign in to Free Code Camp using your Email Address'
title: 'Sign in to freeCodeCamp using your Email Address'
});
}

Expand All @@ -274,7 +274,7 @@ module.exports = function(app) {
return res.redirect('/');
}
return res.render('account/email-signup', {
title: 'Sign up for Free Code Camp using your Email Address'
title: 'Sign up for freeCodeCamp using your Email Address'
});
}

Expand Down Expand Up @@ -407,7 +407,7 @@ module.exports = function(app) {
msg: dedent`
Upon review, this account has been flagged for academic
dishonesty. If you’re the owner of this account contact
team@freecodecamp.com for details.
team@freeCodeCamp.com for details.
`
});
}
Expand Down
2 changes: 1 addition & 1 deletion server/middlewares/flash-cheaters.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function flashCheaters() {
msg: dedent`
Upon review, this account has been flagged for academic
dishonesty. If you’re the owner of this account contact
team@freecodecamp.com for details.
team@freeCodeCamp.com for details.
`
});
}
Expand Down