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

Check this please~ #265

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Check this please~ #265

wants to merge 6 commits into from

Conversation

devjoylee
Copy link
Collaborator

No description provided.

src/runtime/runtime.ts Outdated Show resolved Hide resolved
Copy link
Owner

@zaydek zaydek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Almost there.

I would:

  • Move the parseDurationMs into a separate file
  • Make sure you have tests for parseDurationMs

And just see the other small comments, it’s little things.

src/runtime/runtime.ts Outdated Show resolved Hide resolved
src/runtime/runtime.ts Outdated Show resolved Hide resolved
@@ -144,6 +178,12 @@ class Duomo implements Runtime {
return this.#darkMode
}
setDarkMode(mode: boolean) {
const durValue = getComputedStyle(document.documentElement).getPropertyValue('--default-theme-transition-duration');

if(this.#shouldNoOpDarkMode){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure you’re using Prettier if you’re not already. I would expect this to be if (this.#shouldNoOpDarkMode) { (you have no spaces right now).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I installed the Prettier, but It's still same. Probably prettier setting problem on my vscode..

src/runtime/runtime.ts Outdated Show resolved Hide resolved
Copy link
Owner

@zaydek zaydek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

src/runtime/helper.ts Outdated Show resolved Hide resolved
src/runtime/helper.ts Outdated Show resolved Hide resolved
Copy link
Owner

@zaydek zaydek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you for your hard work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants