-
Notifications
You must be signed in to change notification settings - Fork 142
Implement src attribute for popovers #1780
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
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d1e9ce8
Implement src attribute
jovyntls 5b98e15
Update tests
jovyntls 62123b6
Update docs
jovyntls d9e490a
Lint
jovyntls 315b67f
Fix tests
jovyntls 8cd21f8
possibly cleaner?
jovyntls 4ba70d1
Refactor
jovyntls 5e45e5e
Fix typo
jovyntls ba79e24
Merge branch 'master' into popover-src-attribute
jovyntls fd2dc1a
Add HTML example to docs
jovyntls de9255f
Refactoring
jovyntls 05d0d65
Fix priority of src and content attribs
jovyntls f4e4cab
Merge branch 'master' into popover-src-attribute
jovyntls 0469ec0
Linting
jovyntls 5605e36
Update tests after merge
jovyntls 8d9a4c5
Fix slot template functions
jovyntls 12f5e95
Linting
jovyntls aba09ec
Fix typo
jovyntls 0ffe8dc
update README.md for vue-components
jovyntls a561d53
Fix docs
jovyntls 639bc19
Merge branch 'popover-src-attribute' of github.com:jovyntls/markbind …
jovyntls beb449a
Update tests
jovyntls 8836d0d
Add test cases
jovyntls a5ee754
Revert unnecessary changes
jovyntls d3c6b5d
Add popovers to defaultTagLinkMap
jovyntls adbcfa4
Update tests for relative links
jovyntls ab6e3d1
Documentation fixes
jovyntls File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
338 changes: 338 additions & 0 deletions
338
packages/cli/test/functional/test_site/expected/testPopovers.html
Large diffs are not rendered by default.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
packages/cli/test/functional/test_site/expected/testPopovers.page-vue-render.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| **Popover with attributes** | ||
jovyntls marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| <popover header="Correct header" content="Correct content"> | ||
| Hover popover | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover header="Correct header" content="Correct content" trigger="click"> | ||
| Click popover | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| **Popover with slots** | ||
|
|
||
| <popover> | ||
| <span slot="content">Correct content</span> | ||
| Hover popover | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover trigger="click"> | ||
| <span slot="header">Correct header</span> | ||
| <span slot="content">Correct content</span> | ||
| Click popover | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| **Popover with slots overriding attributes** | ||
|
|
||
| <popover header="Correct header" content="Should not appear: Overwritten content"> | ||
| <span slot="content">Correct content</span> | ||
| Hover popover | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover header="Should not appear: Overwritten header" content="Should not appear: Overwritten content" trigger="click"> | ||
| <span slot="header">Correct header</span> | ||
| <span slot="content">Correct content</span> | ||
| Click popover | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| **Popover with src attribute** | ||
|
|
||
| <popover header="Correct header" src="{{ baseUrl }}/test_md_fragment.md"> | ||
| src from a .md file with absolute links | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover header="Correct header" src="./test_md_fragment.md"> | ||
| src from a .md file with relative links | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover header="Correct header" src="{{ baseUrl }}/testInclude.html"> | ||
| src from a .html file with absolute links | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover header="Correct header" src="./testInclude.html"> | ||
| src from a .html file with relative links | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover src="{{ baseUrl }}/contentFragmentToInclude.md#fragment"> | ||
| src with a fragment | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover src="{{ baseUrl }}/testPanels/NestedPanel.md"> | ||
| <span slot="header">Reactive content</span> | ||
| src containing reactive content | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| **Popover contents should use the priority of content slot > content attribute > src attribute** | ||
|
|
||
| <popover header="Content slot > content attrib > src attrib" src="{{ baseUrl }}/test_md_fragment.md" content="Correct content"> | ||
| Content attribute overrides src attribute | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover header="Content slot > content attrib > src attrib" src="{{ baseUrl }}/test_md_fragment.md" content="This should be overwritten by slot"> | ||
| <span slot="content">Correct content</span> | ||
| Content slot overrides content attribute overrides src attribute | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| <popover header="Content slot > content attrib > src attrib" src="{{ baseUrl }}/test_md_fragment.md"> | ||
| <span slot="content">Correct content</span> | ||
| Content slot overrides content attribute overrides src attribute | ||
| </popover> | ||
|
|
||
| <br> | ||
|
|
||
| **URLs are not valid src** | ||
|
|
||
| <popover header="URLs are not valid" src="http://www.shouldnotwork.com"> | ||
| URLs should not be valid | ||
| </popover> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cli/test/functional/test_site_algolia_plugin/expected/index.page-vue-render.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.