Commit c0e3c299f8
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/ScrapeTable.vue +3 −2
| @@ -21,6 +21,7 @@ interface Site { | |||
| 21 | 21 | ||
| 22 | const props = defineProps<{ | 22 | const props = defineProps<{ |
| 23 | sites: Site[] | 23 | sites: Site[] |
| 24 | cornerLabel?: string | ||
| 24 | }>() | 25 | }>() |
| 25 | 26 | ||
| 26 | function normalizeScrapeValue(value: ScrapeValue): NormalizedScrapeValue { | 27 | function normalizeScrapeValue(value: ScrapeValue): NormalizedScrapeValue { |
| @@ -143,7 +144,7 @@ onMounted(() => { | |||
| 143 | </colgroup> | 144 | </colgroup> |
| 144 | <thead> | 145 | <thead> |
| 145 | <tr> | 146 | <tr> |
| 146 | <th class="corner">Sources</th> | 147 | <th class="corner">{{ cornerLabel ?? 'Sources' }}</th> |
| 147 | <th v-for="source in sources" :key="source" class="source-header"> | 148 | <th v-for="source in sources" :key="source" class="source-header"> |
| 148 | <span>{{ source }}</span> | 149 | <span>{{ source }}</span> |
| 149 | </th> | 150 | </th> |
| @@ -205,4 +206,4 @@ onMounted(() => { | |||
| 205 | 0%, 100% { opacity: 0.5; transform: translateX(0); } | 206 | 0%, 100% { opacity: 0.5; transform: translateX(0); } |
| 206 | 50% { opacity: 1; transform: translateX(4px); } | 207 | 50% { opacity: 1; transform: translateX(4px); } |
| 207 | } | 208 | } |
| 208 | </style> | 209 | </style>\ No newline at end of file |