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

🚧 [WIP] Revamp metabox into admin settings #17

Merged
merged 34 commits into from
Aug 24, 2018

Conversation

williamchong
Copy link
Member

@williamchong williamchong commented Aug 21, 2018

Also updated UI

@williamchong williamchong changed the base branch from master to develop August 21, 2018 10:33
@williamchong williamchong force-pushed the develop branch 2 times, most recently from 5a61cd5 to 132cb1f Compare August 22, 2018 10:39
@williamchong williamchong changed the title 🚧 [WIP] Add likecoin id option UI 🚧 [WIP] Revamp metabox into admin settings Aug 22, 2018
const elem = document.querySelector(`.likecoin${selector}`);
elem.style.display = '';
const elems = document.querySelectorAll(`.likecoin${selector}`);
elems.forEach((elem) => { elem.style.display = ''; }); // eslint-disable-line no-param-reassign
Copy link

Choose a reason for hiding this comment

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

querySelectorAll is not returning an array, but a NodeList, see: https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Browser_Compatibility
Do we need Array.prototype.forEach.call(elems, ...)?

Copy link
Member Author

Choose a reason for hiding this comment

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

should we trust babel in this case

Copy link
Member Author

Choose a reason for hiding this comment

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

zloirock/core-js#329 seems it doesn't polyfill itself, will handle later

@@ -95,6 +92,7 @@ async function login() {
throw new Error(webThreeError);
}
const challenge = await fetchLikeCoinID(address);
console.log(challenge);
Copy link

Choose a reason for hiding this comment

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

Debug usage? Or intended?

Copy link
Member Author

Choose a reason for hiding this comment

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

removed

@williamchong williamchong merged commit d33128e into likecoin:develop Aug 24, 2018
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