Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4ad4286
Setting up GitHub Classroom Feedback
github-classroom[bot] Sep 14, 2022
2bddc38
feat: create React app
leximainw Sep 14, 2022
a7217fa
feat: list opentdb categories using Axios
leximainw Sep 14, 2022
0ffb3d9
style: condense li returned by category map
leximainw Sep 14, 2022
4d5ba13
feat: add Bootstrap styles
leximainw Sep 14, 2022
d8178f3
make category button group into radio selection
leximainw Sep 14, 2022
9ce6e80
feat: allow user to view questions from a category
leximainw Sep 14, 2022
25bced5
feat: break trivia questions into separate component
leximainw Sep 14, 2022
4c8af98
fix: only shuffle answers when question is first created
leximainw Sep 14, 2022
417ed28
feat: add setCorrect callback to trivia questions
leximainw Sep 14, 2022
ea3e3ce
feat: make question answers behave as radio buttons
leximainw Sep 14, 2022
357a415
feat: add results page
leximainw Sep 14, 2022
6ef1df9
feat: break parts of Trivia component into subcomponents
leximainw Sep 14, 2022
8a668f7
feat: create CategoryList subcomponent
leximainw Sep 14, 2022
56e0fd8
feat: remove false dependency warning for quizState
leximainw Sep 14, 2022
81cc245
make category list persistent
leximainw Sep 14, 2022
f70c85b
fix: fetch new questions if user reclicks on current category
leximainw Sep 15, 2022
74878ea
style: reorganize code for clarity
leximainw Sep 15, 2022
c92d0e0
style: remove semicolons for consistency
leximainw Sep 15, 2022
ade4740
style: convert htmlDecode to arrow function
leximainw Sep 15, 2022
00cd9ce
feat: sort category list by name
leximainw Sep 15, 2022
8064937
feat: use opentdb API token to avoid repeating questions already seen
leximainw Sep 15, 2022
2ac1150
fix: add code credit for htmlDecode
leximainw Sep 15, 2022
e9eb97e
refactor: rename QuizQuestions to TriviaQuestions
leximainw Sep 15, 2022
3ed5dd1
refactor: show unanswered questions marker with warning style
leximainw Sep 15, 2022
cadac73
refactor: move 'categories' state and API call into CategoryList
leximainw Sep 15, 2022
a158f8a
feat: keep button order consistent for True/False questions
leximainw Sep 15, 2022
8dadbc1
refactor: simplify Trivia by creating TriviaQuiz component
leximainw Sep 16, 2022
2378c14
fix: reset quiz completion when new category is selected
leximainw Sep 16, 2022
0814ff9
fix: clear questions when category changes
leximainw Sep 16, 2022
e695b91
fix: prevent category list from flickering when first selected
leximainw Sep 16, 2022
d892ad7
feat: implement difficulty options
leximainw Sep 16, 2022
74ecbf9
chore: document intended ESLint warning
leximainw Sep 16, 2022
bb23e04
refactor: change 'Reset Token' button styles
leximainw Sep 16, 2022
7e3fd47
refactor: make parameter name less confusing
leximainw Sep 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading