@paris-ias/list 1.0.149 → 1.0.151

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paris-ias/list",
3
3
  "configKey": "list",
4
- "version": "1.0.149",
4
+ "version": "1.0.151",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -27,14 +27,12 @@
27
27
  import {
28
28
  useNuxtApp,
29
29
  onBeforeUnmount,
30
- onMounted,
31
30
  useI18n,
32
31
  useAppConfig,
33
32
  ref,
34
33
  computed,
35
- watch,
36
34
  } from "#imports"
37
- import SEARCH from "../../../graphql/list/search.gql"
35
+ import SEARCH from "@paris-ias/trees/dist/graphql/client/misc/query.search.all.gql"
38
36
  // Component name for linting
39
37
  defineOptions({
40
38
  name: "SearchResults",
@@ -68,7 +66,7 @@ const sortedModules = computed(() => {
68
66
  // Computed property to filter and sort modules based on selected categories
69
67
  const filteredSortedModules = computed(() => {
70
68
  return sortedModules.value.filter((type) =>
71
- selectedCategories.value.includes(type),
69
+ selectedCategories.value.includes(type)
72
70
  )
73
71
  })
74
72
 
@@ -79,7 +77,7 @@ const { data, pending, error, refresh } = await useAsyncQuery(
79
77
  {
80
78
  key: `search-${$rootStore.search}`, // Unique key for caching
81
79
  server: true, // Enable SSR
82
- },
80
+ }
83
81
  )
84
82
  if (error.value) {
85
83
  console.error("GraphQL query error: ", error.value)
@@ -114,6 +114,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
114
114
  console.log("INITIALIZING STORES");
115
115
  await Promise.all(
116
116
  appConfig.list.modules.map(async (type) => {
117
+ console.log("importing modules", type);
117
118
  try {
118
119
  const imports = await moduleImports[type]();
119
120
  const model = (await imports.model).default;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.149",
4
+ "version": "1.0.151",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",
8
8
  "type": "git"
9
9
  },
10
10
  "dependencies": {
11
- "@paris-ias/trees": "^2.0.2"
11
+ "@paris-ias/trees": "^2.0.6"
12
12
  },
13
13
  "description": "Paris IAS List Module",
14
14
  "peerDependencies": {