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

Modernize JS a little #273

Merged
merged 2 commits into from
Jun 21, 2022
Merged

Modernize JS a little #273

merged 2 commits into from
Jun 21, 2022

Conversation

yuvipanda
Copy link
Contributor

  • Get rid of var
  • Use class syntax rather than prototype syntax for classes
  • Remove unused param
  • Split classes to their own files

@yuvipanda
Copy link
Contributor Author

Based on #272

@yuvipanda
Copy link
Contributor Author

See 590b3fc for just the changes in this PR

progressTimers.forEach(function(timer) { clearInterval(timer); });
gsv.setProgressValue(100);
gsv.setProgressText('Sync finished, redirecting...');
window.location.href = gs.redirectUrl;
// window.location.href = gs.redirectUrl;
Copy link
Member

Choose a reason for hiding this comment

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

Was this commented out on purpose?

Copy link
Member

@GeorgianaElena GeorgianaElena left a comment

Choose a reason for hiding this comment

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

Thanks @yuvipanda!

@@ -0,0 +1,56 @@
export class GitSync {
Copy link
Member

@GeorgianaElena GeorgianaElena Jun 14, 2022

Choose a reason for hiding this comment

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

Great having these two classes into their own files!

- Get rid of var
- Use class syntax rather than prototype syntax for classes
- Remove unused param
- Split classes to their own files
Was a debugging aid, accidentally left in
@yuvipanda yuvipanda merged commit cefeb1e into jupyterhub:main Jun 21, 2022
@yuvipanda
Copy link
Contributor Author

Thanks @GeorgianaElena

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

Successfully merging this pull request may close these issues.

3 participants