Commit 88611c7ec6

88611c7ec6a80b99dcabbeb7b4d482ceee2ee431

parent: 211ea19345

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-07-11 16:46 UTC

Update RepoRow.vue

Layout: unified · split

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