fix: updated and consolidated quotes (#39069)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
rdm100
2020-06-15 14:12:27 +01:00
committed by GitHub
parent daed7ad5dd
commit 885538d9e1
9 changed files with 2495 additions and 1337 deletions

View File

@ -1,125 +0,0 @@
{
"verbs": [
"aced",
"nailed",
"rocked",
"destroyed",
"owned",
"crushed",
"conquered",
"shredded",
"demolished",
"devoured",
"banished",
"wrangled"
],
"compliments": [
"Over the top!",
"Down the rabbit hole we go!",
"Bring that rain!",
"Target acquired!",
"Feel that need for speed!",
"You've got guts!",
"We have liftoff!",
"To infinity and beyond!",
"Encore!",
"Onward, ho!",
"Challenge destroyed!",
"It's on like Donkey Kong!",
"Power level? It's over 9000!",
"Coding spree!",
"Code long and prosper.",
"The crowd goes wild!",
"One for the guinness book!",
"Flawless victory!",
"Most efficient!",
"Party on, Wayne!",
"You've got the touch!",
"You're on fire!",
"Don't hurt 'em, Hammer!",
"The town is now red!",
"To the nines!",
"The world rejoices!",
"That's the way it's done!",
"You rock!",
"Woo-hoo!",
"We knew you could do it!",
"Hyper Combo Finish!",
"Nothing but net!",
"Boom-shakalaka!",
"You're a shooting star!",
"You're unstoppable!",
"Way cool!",
"You're king of the world!",
"Walk on that sunshine!",
"Keep on trucking!",
"Off the charts!",
"There is no spoon!",
"Cranked it up to 11!",
"Escape velocity reached!",
"You make this look easy!",
"Passed with flying colors!",
"You've got this!",
"Happy, happy, joy, joy!",
"Tomorrow, the world!",
"Your powers combined!",
"A winner is you!",
"It's alive. It's alive!",
"Sonic Boom!",
"Here's looking at you, Code!",
"Ride like the wind!",
"Legen - wait for it - dary!",
"Ludicrous Speed! Go!",
"Yes we can!",
"Most triumphant!",
"One loop to rule them all!",
"By the power of Grayskull!",
"You did it!",
"Storm that castle!",
"Face-melting guitar solo!",
"Checkmate!",
"Bodacious!",
"Tubular!",
"You're outta sight!",
"Keep calm and code on!",
"Even sad panda smiles!",
"Even grumpy cat approves!",
"Kool-Aid Man says oh yeah!",
"Bullseye!",
"Far out!",
"You're heating up!",
"Hasta la vista, challenge!",
"Terminated.",
"Off the hook!",
"Thundercats, Hooo!",
"Shiver me timbers!",
"Raise the roof!",
"I also live dangerously.",
"Get to the choppa!",
"Bingo!",
"And you're all out of gum.",
"Even honeybadger cares!",
"Helm, Warp Nine. Engage!",
"Gotta code 'em all!",
"Spool up the FTL drive!",
"Cool beans!",
"They're in another castle.",
"Power UP!",
"Pikachu chooses you!",
"We're gonna pump you up!",
"I gotta have more cow bell."
],
"phrases": [
"Shout it from on top of a mountain",
"Tell everyone and their dogs",
"Show them. Show them all!",
"Inspire your friends",
"Tell the world of your greatness",
"Look accomplished on social media",
"Share news of your grand endeavor",
"Establish your alibi for the past two hours",
"Prove to mom that computers aren't just for games",
"With coding power comes sharing responsibility",
"Have you told your friends of your coding powers?"
]
}

View File

@ -4,7 +4,7 @@ import { Loader, Spacer } from '../../components/helpers';
import { Link } from 'gatsby';
import notFoundLogo from '../../assets/images/freeCodeCamp-404.svg';
import { quotes } from '../../resources/quotes.json';
import { randomQuote } from '../../utils/get-words';
import './404.css';
@ -22,7 +22,7 @@ class NotFoundPage extends Component {
updateQuote() {
this.setState({
randomQuote: quotes[Math.floor(Math.random() * quotes.length)]
randomQuote: randomQuote()
});
}

View File

@ -1,14 +1,5 @@
{
"quotes": [
{
"quote": "Never, never, never, never, never, never give up.",
"author": "Winston Churchill"
},
{
"quote":
"The pessimist sees difficulty in every opportunity. The optimist sees opportunity in every difficulty.",
"author": "Winston Churchill"
},
{
"quote":
"Twenty years from now you you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails.",
@ -148,10 +139,6 @@
"quote": "Without hard work, nothing grows but weeds.",
"author": "Gordon B. Hinckley"
},
{
"quote": "If you're going through hell, keep going.",
"author": "Winston Churchill"
},
{
"quote":
"Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time.",
@ -481,11 +468,6 @@
"quote": "Failure is the condiment that gives success its flavor.",
"author": "Truman Capote"
},
{
"quote":
"Success is stumbling from failure to failure with no loss of enthusiasm.",
"author": "Winston S. Churchill"
},
{
"quote": "Only those who dare to fail greatly can ever achieve greatly.",
"author": "Robert F. Kennedy"

View File

@ -10,7 +10,7 @@ import {
import { post } from '../../../utils/ajax';
import { randomCompliment } from '../utils/get-words';
import { randomCompliment } from '../../../utils/get-words';
import { updateSuccessMessage } from './';
export const CURRENT_CHALLENGE_KEY = 'currentChallengeId';

View File

@ -1,17 +0,0 @@
import words from './words.json';
function randomItem(arr) {
return arr[Math.floor(Math.random() * arr.length)];
}
export function randomPhrase() {
return randomItem(words.phrases);
}
export function randomVerb() {
return randomItem(words.verbs);
}
export function randomCompliment() {
return randomItem(words.compliments);
}

View File

@ -1,127 +0,0 @@
{
"verbs": [
"aced",
"nailed",
"rocked",
"destroyed",
"owned",
"crushed",
"conquered",
"shredded",
"demolished",
"devoured",
"banished",
"wrangled"
],
"compliments": [
"Over the top!",
"Down the rabbit hole we go!",
"Bring that rain!",
"Target acquired!",
"Feel that need for speed!",
"You've got guts!",
"We have liftoff!",
"To infinity and beyond!",
"Encore!",
"Onward, ho!",
"Challenge destroyed!",
"It's on like Donkey Kong!",
"Power level? It's over 9000!",
"Coding spree!",
"Code long and prosper.",
"The crowd goes wild!",
"One for the guinness book!",
"Flawless victory!",
"Most efficient!",
"Party on, Wayne!",
"You've got the touch!",
"You're on fire!",
"Don't hurt 'em, Hammer!",
"The town is now red!",
"To the nines!",
"The world rejoices!",
"That's the way it's done!",
"You rock!",
"Woo-hoo!",
"We knew you could do it!",
"Hyper Combo Finish!",
"Nothing but net!",
"Boom-shakalaka!",
"You're a shooting star!",
"You're unstoppable!",
"Way cool!",
"You're king of the world!",
"Walk on that sunshine!",
"Keep on trucking!",
"Off the charts!",
"There is no spoon!",
"Cranked it up to 11!",
"Escape velocity reached!",
"You make this look easy!",
"Passed with flying colors!",
"You've got this!",
"Happy, happy, joy, joy!",
"Tomorrow, the world!",
"Your powers combined!",
"A winner is you!",
"It's alive. It's alive!",
"Sonic Boom!",
"Here's looking at you, Code!",
"Ride like the wind!",
"Legen - wait for it - dary!",
"Ludicrous Speed! Go!",
"Yes we can!",
"Most triumphant!",
"One loop to rule them all!",
"By the power of Grayskull!",
"You did it!",
"Storm that castle!",
"Face-melting guitar solo!",
"Checkmate!",
"Bodacious!",
"Tubular!",
"You're outta sight!",
"Keep calm and code on!",
"Even sad panda smiles!",
"Even grumpy cat approves!",
"Kool Aid Man says oh yeah!",
"Bullseye!",
"Far out!",
"You're heating up!",
"Hasta la vista, challenge!",
"Terminated.",
"Off the hook!",
"Thundercats, Hooo!",
"Shiver me timbers!",
"Raise the roof!",
"We've underestimated you.",
"I also live dangerously.",
"Get to the choppa!",
"Bingo!",
"And you're all out of gum.",
"Even honeybadger cares!",
"Helm, Warp Nine. Engage!",
"Gotta code 'em all!",
"Spool up the FTL drive!",
"Cool beans!",
"They're in another castle.",
"Power UP!",
"Nuclear launch detected.",
"Pikachu chooses you!",
"We're gonna pump you up!",
"I gotta have more cow bell."
],
"phrases": [
"Shout it from on top of a mountain",
"Tell everyone and their dogs",
"Show them. Show them all!",
"Inspire your friends",
"Tell the world of your greatness",
"Look accomplished on social media",
"Share news of your grand endeavor",
"Establish your alibi for the past two hours",
"Prove to mom that computers aren't just for games",
"With coding power comes sharing responsibility",
"Have you told your friends of your coding powers?"
]
}

View File

@ -1,4 +1,4 @@
import words from './words.json';
import words from '../../../config/motivational-quotes.json';
function randomItem(arr) {
return arr[Math.floor(Math.random() * arr.length)];
@ -8,14 +8,6 @@ export function randomQuote() {
return randomItem(words.motivationalQuotes);
}
export function randomPhrase() {
return randomItem(words.phrases);
}
export function randomVerb() {
return randomItem(words.verbs);
}
export function randomCompliment() {
return randomItem(words.compliments);
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff