-
Notifications
You must be signed in to change notification settings - Fork 9
ToU: navigation panel component #1140
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
Open
deer-wmde
wants to merge
13
commits into
main
Choose a base branch
from
de/policy-navigation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+63
−0
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a9902c0
add NaviagationPanel component
deer-wmde ddf9afc
delete obsolete NavgationLinks.js
deer-wmde 4ec97b9
use route path instead of name
deer-wmde c5a41e6
refactor
deer-wmde f42c5a3
style
deer-wmde 7f3e8e6
remove debug logs
deer-wmde a68f5a8
better initialization
deer-wmde 9f40cbd
remove examples pages
deer-wmde 976836a
add legacy ToU sfc
deer-wmde 0f77e53
restore router
deer-wmde f571e73
use strict comparison operator
deer-wmde 9155207
remove duplicate element
deer-wmde b5bab85
remove unused style section
deer-wmde 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| <template> | ||
| <v-expansion-panels v-bind:value="$vuetify.breakpoint.mdAndUp ? 0 : null" v-if="links"> | ||
| <v-expansion-panel> | ||
| <v-expansion-panel-header>{{ title }}</v-expansion-panel-header> | ||
|
|
||
| <v-expansion-panel-content> | ||
| <v-list class="wrap"> | ||
| <v-list-item v-for="(link) in links" :key="link.routePath"> | ||
| <v-list-item-content> | ||
| <v-list-item-title v-if="link.routePath === currentPath"> | ||
| {{ link.title }} | ||
| </v-list-item-title> | ||
|
|
||
| <v-list-item-title v-else> | ||
|
deer-wmde marked this conversation as resolved.
|
||
| <router-link :to="{ path: link.routePath }" class="text-decoration-none"> | ||
| {{ link.title }} | ||
| </router-link> | ||
| </v-list-item-title> | ||
| </v-list-item-content> | ||
| </v-list-item> | ||
| </v-list> | ||
| </v-expansion-panel-content> | ||
| </v-expansion-panel> | ||
| </v-expansion-panels> | ||
| </template> | ||
|
|
||
| <script> | ||
| export default { | ||
| name: 'NavigationPanel', | ||
| props: { | ||
| title: String, | ||
| currentPath: String, | ||
| links: Array, | ||
| }, | ||
| } | ||
| </script> | ||
27 changes: 27 additions & 0 deletions
27
src/components/Pages/TermsOfUse/TermsOfUseNavigationPanel.vue
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,27 @@ | ||
| <template> | ||
| <PolicyNavigationPanel title="All Versions" :links="termsOfUseLinks" :currentPath="currentPath" /> | ||
| </template> | ||
|
|
||
| <script> | ||
| import PolicyNavigationPanel from '../Components/PolicyNavigationPanel.vue' | ||
|
|
||
| export default { | ||
| name: 'TermsOfUseNavigationPanel', | ||
| components: { | ||
| PolicyNavigationPanel, | ||
| }, | ||
| data: () => ({ | ||
| termsOfUseLinks: [ | ||
| { title: 'Upcoming Version', routePath: '/terms-of-use/upcoming' }, | ||
| { title: 'April 11th 2022 (current)', routePath: '/terms-of-use' }, | ||
|
deer-wmde marked this conversation as resolved.
|
||
| ], | ||
| currentPath: null, | ||
| }), | ||
| mounted () { | ||
| this.currentPath = this.$route.path | ||
| }, | ||
| } | ||
|
|
||
| </script> | ||
|
|
||
| <style scoped></style> | ||
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.