diff --git a/app/components/Package/Header.vue b/app/components/Package/Header.vue index 759f751b88..14d2f74504 100644 --- a/app/components/Package/Header.vue +++ b/app/components/Package/Header.vue @@ -182,6 +182,75 @@ const timelineLink = computed((): RouteLocationRaw | null => { return packageTimelineRoute(props.pkg.name, props.resolvedVersion) }) +const navLinks = computed(() => { + const links: { + key: string + label: string + to: RouteLocationRaw + ariaKeyshortcuts?: string + title?: string + class?: string + }[] = [] + + if (mainLink.value) { + links.push({ + key: 'main', + label: $t('package.links.main'), + to: mainLink.value, + ariaKeyshortcuts: 'm', + class: 'lowercase', + }) + } + + if (docsLink.value) { + links.push({ + key: 'docs', + label: $t('package.links.docs'), + to: docsLink.value, + ariaKeyshortcuts: 'd', + }) + } + + if (codeLink.value) { + links.push({ + key: 'code', + label: $t('package.links.code'), + to: codeLink.value, + ariaKeyshortcuts: '.', + }) + } + + if (diffLink.value) { + links.push({ + key: 'diff', + label: $t('compare.compare_versions'), + to: diffLink.value, + ariaKeyshortcuts: 'f', + title: $t('compare.compare_versions_title'), + }) + } + + if (changelogLink.value) { + links.push({ + key: 'changelog', + label: $t('package.links.changelog'), + to: changelogLink.value, + ariaKeyshortcuts: '-', + }) + } + + if (timelineLink.value) { + links.push({ + key: 'timeline', + label: $t('package.links.timeline'), + to: timelineLink.value, + ariaKeyshortcuts: 't', + }) + } + + return links +}) + useShortcuts({ '.': () => codeLink.value, 'm': () => mainLink.value, @@ -308,69 +377,14 @@ useShortcuts({ - + /> diff --git a/app/components/Profile/AccountsList.vue b/app/components/Profile/AccountsList.vue new file mode 100644 index 0000000000..9b3d34e372 --- /dev/null +++ b/app/components/Profile/AccountsList.vue @@ -0,0 +1,61 @@ + + + diff --git a/app/components/Profile/AddKnownAccountDialog.client.vue b/app/components/Profile/AddKnownAccountDialog.client.vue new file mode 100644 index 0000000000..bfc66a8bcf --- /dev/null +++ b/app/components/Profile/AddKnownAccountDialog.client.vue @@ -0,0 +1,148 @@ + + + diff --git a/app/components/Profile/AddRelatedAccountDialog.client.vue b/app/components/Profile/AddRelatedAccountDialog.client.vue new file mode 100644 index 0000000000..b829d6d444 --- /dev/null +++ b/app/components/Profile/AddRelatedAccountDialog.client.vue @@ -0,0 +1,204 @@ + + + diff --git a/app/components/Profile/AddRoleDialog.client.vue b/app/components/Profile/AddRoleDialog.client.vue new file mode 100644 index 0000000000..74e275b35e --- /dev/null +++ b/app/components/Profile/AddRoleDialog.client.vue @@ -0,0 +1,161 @@ + + +