At first this may seem like a lot of changes but it is just moving components to its own files and creating a few new functions.
Let me address what I've done:
Added a small eslint configuration just to match prettier with proper linting
Likewise added .editorconfig
Removed obvious comments such as // Get Problem List from leetcode graphql API from function getProblemListFromLeetCodeAPI() as the name is pretty self descriptive
Moved the global variables to a single variable called state so it is easier to get intellisense on what we have as state
Moved HyperTortureMode to its own component
Moved Permission Checking logic to its own component.
Separated updateStorage into 2 functions (now we have updateProblemState) which only updates which problem we are solving, this is used in solveAnother() logic so that we can just fetch a new problem for the user without necessarily re-enabling the redirects
Created a function to handle whether or not we should redirect on additional problems (aka: solveAnother()) based on a new setting: "should redirect on additional problems"
Closes #99
At first this may seem like a lot of changes but it is just moving components to its own files and creating a few new functions.
Let me address what I've done:
// Get Problem List from leetcode graphql API
fromfunction getProblemListFromLeetCodeAPI()
as the name is pretty self descriptivesolveAnother()
logic so that we can just fetch a new problem for the user without necessarily re-enabling the redirectsaka: solveAnother()
) based on a new setting: "should redirect on additional problems"