@glossarist/concept-browser 0.7.23 → 0.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glossarist/concept-browser",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.25",
|
|
4
4
|
"description": "Vue SPA for browsing Glossarist terminology datasets with cross-reference resolution, graph visualization, and multi-language support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -796,24 +796,6 @@ const nonVerbalReps = computed(() => {
|
|
|
796
796
|
</div>
|
|
797
797
|
</div>
|
|
798
798
|
|
|
799
|
-
<!-- Cross-references (concept-level related) -->
|
|
800
|
-
<div v-if="conceptRelated.length" class="card p-5">
|
|
801
|
-
<div class="section-label">{{ t('concept.relations') }}</div>
|
|
802
|
-
<div class="mt-3 space-y-1">
|
|
803
|
-
<button
|
|
804
|
-
v-for="(cr, cri) in conceptRelated"
|
|
805
|
-
:key="'cr'+cri"
|
|
806
|
-
@click="navigateRelated(cr.ref!)"
|
|
807
|
-
class="text-sm concept-link block truncate w-full text-left flex items-center gap-1.5"
|
|
808
|
-
>
|
|
809
|
-
<span class="badge text-[9px]" :class="edgeBadgeColor(cr.type, cr.type === 'superseded_by' ? 'in' : 'out')">{{ relationshipLabel(cr.type) }}<template v-if="cr.type === 'supersedes'"> →</template><template v-if="cr.type === 'superseded_by'"> ←</template></span>
|
|
810
|
-
<span v-if="getResolvedRef(cr.ref).target" class="text-ink-600">{{ getResolvedRef(cr.ref).target!.conceptId }}</span>
|
|
811
|
-
<span v-else class="text-ink-400">{{ cr.content || (cr.ref ? `${cr.ref.source || ''} ${cr.ref.id || ''}`.trim() : '') }}</span>
|
|
812
|
-
<span v-if="getResolvedRef(cr.ref).target && getResolvedRef(cr.ref).target!.registerId !== manifest.id" class="badge badge-gray text-[9px] flex-shrink-0">{{ getResolvedRef(cr.ref).target!.registerId }}</span>
|
|
813
|
-
</button>
|
|
814
|
-
</div>
|
|
815
|
-
</div>
|
|
816
|
-
|
|
817
799
|
<!-- Domains -->
|
|
818
800
|
<div v-if="conceptDomains.length" class="card p-5">
|
|
819
801
|
<div class="section-label">{{ t('concept.domains') }}</div>
|
package/src/views/HomeView.vue
CHANGED
|
@@ -9,7 +9,7 @@ import { useI18n } from '../i18n';
|
|
|
9
9
|
const store = useVocabularyStore();
|
|
10
10
|
const router = useRouter();
|
|
11
11
|
const { getStyle } = useDsStyle();
|
|
12
|
-
const { config: siteConfig, localizedTitle, localizedSubtitle, localizedDescription } = useSiteConfig();
|
|
12
|
+
const { config: siteConfig, localizedTitle, localizedSubtitle, localizedDescription, localizedDatasetField } = useSiteConfig();
|
|
13
13
|
const { t } = useI18n();
|
|
14
14
|
const exploring = ref(false);
|
|
15
15
|
|
|
@@ -121,7 +121,7 @@ function goToGraph() { router.push({ name: 'graph' }); }
|
|
|
121
121
|
</h2>
|
|
122
122
|
</div>
|
|
123
123
|
<p v-if="filteredDatasets[0].manifest.description" class="text-sm text-ink-400 mb-4 line-clamp-2 leading-relaxed pl-6">
|
|
124
|
-
{{ filteredDatasets[0].manifest.description }}
|
|
124
|
+
{{ localizedDatasetField(filteredDatasets[0].id, 'description', filteredDatasets[0].manifest.description) }}
|
|
125
125
|
</p>
|
|
126
126
|
<div class="flex items-center gap-3 pl-6 mb-4">
|
|
127
127
|
<span :style="{ color: getStyle(filteredDatasets[0].id).color }" class="text-sm font-semibold tabular-nums">{{ filteredDatasets[0].manifest.conceptCount.toLocaleString() }}</span>
|
|
@@ -164,7 +164,7 @@ function goToGraph() { router.push({ name: 'graph' }); }
|
|
|
164
164
|
</div>
|
|
165
165
|
|
|
166
166
|
<p class="text-sm text-ink-400 mb-5 line-clamp-2 leading-relaxed pl-[22px]">
|
|
167
|
-
{{ ds.manifest.description }}
|
|
167
|
+
{{ localizedDatasetField(ds.id, 'description', ds.manifest.description) }}
|
|
168
168
|
</p>
|
|
169
169
|
|
|
170
170
|
<div class="flex items-center gap-3 pl-[22px] mb-3">
|