Commit 88611c7ec6
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/extrepo/RepoRow.vue +2 −1
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | <script setup lang="ts"> |
| 2 | 2 | import { computed, ref } from 'vue' |
| 3 | 3 | import { data as repoData } from '../../../../ext/extensionRepos.data' |
| 4 | import { stripHtml } from './helpers' | |
| 4 | 5 | import { copyValue, installHref } from './install' |
| 5 | 6 | import SiteGrid from './SiteGrid.vue' |
| 6 | 7 | import type { Repo } from './types' |
| @@ -14,7 +15,7 @@ const open = ref(false) | ||
| 14 | 15 | const copied = ref(false) |
| 15 | 16 | |
| 16 | 17 | const sites = computed(() => repoData[props.repo.indexUrl]?.sites ?? []) |
| 17 | const isExpandable = computed(() => sites.value.length > 1) | |
| 18 | const isExpandable = computed(() => stripHtml(props.repo.name) !== 'MegaRepo') | |
| 18 | 19 | |
| 19 | 20 | async function copyUrl() { |
| 20 | 21 | await navigator.clipboard.writeText(copyValue(props.scheme, props.repo.indexUrl)) |