zhang1pr
Repos
8
Followers
6
Following
18

Advent of Code Javascript solutions

Data Structures and Algorithms notes

MIT OpenCourseWare notes

0
0

A free collection of curated, high-quality resources to take you from Bronze to Platinum and beyond.

1211
338

Events

issue comment
Enable light mode code in light mode

wait so initially when the guide was in light mode, the code was still in dark mode?

Yes, code blocks had been always rendered in prism's vs-dark theme, now they are using vs-light theme in light mode.

Created at 5 hours ago

Enable light mode code in light mode

Created at 1 day ago
issue comment
Enable light mode code in light mode

I see that CodeBlock.stories.tsx isn't updated which is needed in the UI tests. Will update.

Created at 1 day ago

Enable light mode code in light mode

Created at 1 day ago
pull request opened
Enable light mode code in light mode

Pull request for issue #3253

If any of the below don't apply to this Pull Request, mark the checkbox as done.

  • [x] I have tested my code.
  • [x] I have added my solution according to the steps here.
  • [x] I have followed the code conventions mentioned here, which include the following:
    • I understand that if it is clear that I have not attempted to follow these guidelines (ex. if I have not used tabs to indent), my PR will be closed.
    • If changes are requested, I will re-request the review after making the changes.

Summary: Make class component CodeBlock render with prism's light theme in light mode. I couldn't use context hook in the class so I passed the isDarkMode as a prop from parent components.

I really need help testing this change as I'm not sure where to test these components below on website and possibly missed something.

There are 5 parent components use CodeBlock and affected by this PR:

  1. ProblemSolutions
  2. QuizGeneratorModal
  3. ProblemSubmissionPopup
  4. SafeMarkdownRenderer
  5. HTMLComponents
Created at 1 day ago

Enable light mode code in light mode

Created at 1 day ago

Enable light mode code in light mode

Created at 1 day ago

Enable light mode code in light mode

Created at 1 day ago
Created at 2 days ago
Created at 2 days ago
opened issue
Possible bug - Belarus flag

I noticed that Belarusian coders have 2 different flags in front of their ID from https://clist.by/coders/?country=BY.

A Google search shows that this might have historical reasons. I just wanted to confirm if this was a bug.

Created at 2 days ago
started
Created at 6 days ago
Created at 6 days ago

Add 2021A

Created at 1 week ago
Created at 1 week ago
Created at 1 week ago