Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Convert configurator to markdown #644

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

Merged
merged 3 commits into from
Nov 21, 2017
Merged

Convert configurator to markdown #644

merged 3 commits into from
Nov 21, 2017

Conversation

balloob
Copy link
Member

@balloob balloob commented Nov 19, 2017

  • Convert the configurator to use markdown.
  • Markdown element will now trigger links to external resources to open in a new window
  • Markdown element will now fire iron-resize when images in it are done loading
  • I got to use TreeWalker 😎
  • Somehow when clicking a link to an internal resource (ie. /config), instead of navigating the whole page, it uses pushState to navigate. This caused some issues with the url sync hack that we have that pops the state when we close a more info dialog. I fixed this by only popping state if the url is still the same as the url from which we pushed an extra state to the stack.

Backend PR: home-assistant/core#10668

// We keep track of where we opened moreInfo from so that we don't
// pop the state when we close the modal if the modal has navigated
// us away.
this.moreInfoOpenedFromPath = window.location.pathname;
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this to before pushState? Could there be some callback on it that changes location?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated it. Shouldn't happen right now but order doesn't matter, so why not.

@balloob balloob merged commit cb5c9b3 into master Nov 21, 2017
@balloob balloob deleted the configurator-markdown branch November 21, 2017 05:41
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants