@glossarist/concept-browser 0.1.3 → 0.1.6

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/cli/index.mjs CHANGED
@@ -92,9 +92,8 @@ Environment:
92
92
  fs.mkdirSync(publicDir, { recursive: true });
93
93
  for (const file of ['favicon.svg']) {
94
94
  const src = resolve(pkgRoot, 'public', file);
95
- if (fs.existsSync(src) && !fs.existsSync(resolve(publicDir, file))) {
95
+ if (fs.existsSync(src)) {
96
96
  fs.copyFileSync(src, resolve(publicDir, file));
97
- console.log(`Copied ${file} to public/`);
98
97
  }
99
98
  }
100
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glossarist/concept-browser",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
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": {
@@ -68,6 +68,7 @@
68
68
  "cli",
69
69
  "scripts",
70
70
  "src",
71
+ "public/favicon.svg",
71
72
  "index.html",
72
73
  "vite.config.ts",
73
74
  "tsconfig.json",
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
2
+ <rect width="32" height="32" rx="6" fill="#2563eb"/>
3
+ <text x="16" y="22" text-anchor="middle" font-family="system-ui" font-weight="bold" font-size="18" fill="white">G</text>
4
+ </svg>
package/src/App.vue CHANGED
@@ -8,7 +8,7 @@ import AppHeader from './components/AppHeader.vue';
8
8
  import AppSidebar from './components/AppSidebar.vue';
9
9
 
10
10
  const store = useVocabularyStore();
11
- const { loadConfig, config } = useSiteConfig();
11
+ const { loadConfig, config, globalPages, datasetPages } = useSiteConfig();
12
12
  const appReady = ref(false);
13
13
  const showScrollTop = ref(false);
14
14
  let mainEl: HTMLElement | null = null;
@@ -23,8 +23,9 @@ function scrollToTop() {
23
23
 
24
24
  onMounted(async () => {
25
25
  const [, cfg] = await Promise.all([store.discoverDatasets(), loadConfig()]);
26
- if (cfg?.pages) {
27
- for (const route of buildPageRoutes(cfg.pages)) {
26
+ const allPages = [...globalPages.value, ...datasetPages.value];
27
+ if (allPages.length > 0) {
28
+ for (const route of buildPageRoutes(allPages)) {
28
29
  router.addRoute(route);
29
30
  }
30
31
  }
@@ -1 +0,0 @@
1
- {"version":"4.1.5","results":[[":__tests__/data-integrity.test.ts",{"duration":578.8590829999999,"failed":false}],[":__tests__/graph.test.ts",{"duration":3.8173329999999623,"failed":false}],[":__tests__/uri-router.test.ts",{"duration":2.3697500000000105,"failed":false}],[":__tests__/dataset-adapter.test.ts",{"duration":5.140625,"failed":false}],[":__tests__/data-integration.test.ts",{"duration":3.391625000000033,"failed":false}]]}