Olivier Massot 9 hónapja
szülő
commit
1fd125dee7

+ 6 - 6
components/Ui/Input/Autocomplete/Accesses.vue

@@ -142,7 +142,7 @@ const i18n = useI18n()
 
 /**
  * Génère un AccessListItem à partir d'un Access
- * @param access
+ * @param userSearchItem
  */
 const accessToItem = (userSearchItem: UserSearchItem): UserListItem => {
   return {
@@ -167,8 +167,8 @@ const activeIds = computed(() => {
 })
 
 const queryActive = new Query(
-  new OrderBy('name', ORDER_BY_DIRECTION.ASC),
-  new PageFilter(ref(1), ref(10)),
+  new OrderBy('fullName', ORDER_BY_DIRECTION.ASC),
+  new PageFilter(ref(1), ref(20)),
   new InArrayFilter('id', activeIds)
 )
 
@@ -182,8 +182,8 @@ const {
  * Query transmise à l'API lors des changements de filtre de recherche
  */
 const querySearch = new Query(
-  new OrderBy('name', ORDER_BY_DIRECTION.ASC),
-  new PageFilter(ref(1), ref(100)),
+  new OrderBy('fullName', ORDER_BY_DIRECTION.ASC),
+  new PageFilter(ref(1), ref(20)),
   new SearchFilter('fullName', nameFilter, SEARCH_STRATEGY.IPARTIAL)
 )
 
@@ -210,7 +210,7 @@ const items: ComputedRef<Array<UserListItem>> = computed(() => {
   const activeItems: UserListItem[] = collectionActive.value.items.map(accessToItem)
   const searchedItems: UserListItem[] = collectionSearch.value.items
     .map(accessToItem)
-    .filter(item => !collectionActive.value.items.find(other => other.id === item.id))
+    .filter(item => !collectionActive.value!.items.find(other => other.id === item.id))
 
   return activeItems.concat(searchedItems)
 })

+ 4 - 0
env/.env.ci

@@ -32,3 +32,7 @@ MERCURE_SUBSCRIBER_JWT_KEY=
 # Other links
 NUXT_SUPPORT_URL=
 NUXT_PUBLIC_SUPPORT_URL=
+
+# Basicompta
+NUXT_BASICOMPTA_URL=
+NUXT_PUBLIC_BASICOMPTA_URL=

+ 4 - 0
env/.env.docker

@@ -35,3 +35,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://local.maestro.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://local.maestro.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.prod

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test1

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test1.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test1.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test2

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test2.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test2.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test3

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test3.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test3.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test4

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test4.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test4.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test5

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test5.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test5.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test6

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test6.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test6.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test7

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test7.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test7.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test8

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test8.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test8.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 0
env/.env.test9

@@ -36,3 +36,7 @@ NUXT_PUBLIC_SUPPORT_URL=https://support.opentalent.fr/
 
 NUXT_FILE_STORAGE_BASE_URL=https://maestro.test9.opentalent.fr/uploads/share
 NUXT_PUBLIC_FILE_STORAGE_BASE_URL=https://maestro.test9.opentalent.fr/uploads/share
+
+# Basicompta
+NUXT_BASICOMPTA_URL=https://app.basicompta.fr/
+NUXT_PUBLIC_BASICOMPTA_URL=https://app.basicompta.fr/

+ 4 - 4
nuxt.config.ts

@@ -48,7 +48,7 @@ export default defineNuxtConfig({
    baseUrlMercure: '',
    fileStorageBaseUrl: '',
    supportUrl: '',
-   basicomptaUrl: 'https://app.basicompta.fr/',
+   basicomptaUrl: '',
    // Config within public will be also exposed to the client
    public: {
      env: '',
@@ -59,7 +59,7 @@ export default defineNuxtConfig({
      baseUrlMercure: '',
      fileStorageBaseUrl: '',
      supportUrl: '',
-     basicomptaUrl: 'https://app.basicompta.fr/',
+     basicomptaUrl: '',
    },
  },
 
@@ -241,5 +241,5 @@ export default defineNuxtConfig({
    scripts: ['prepare/buildIndex.ts'],
  },
 
- compatibilityDate: '2025-01-30'
-})
+ compatibilityDate: '2025-03-10'
+})

+ 1 - 1
services/data/Filters/OrderBy.ts

@@ -24,7 +24,7 @@ export default class OrderBy implements ApiFilter {
     query: PiniaOrmQuery<ApiResource>,
   ): PiniaOrmQuery<ApiResource> {
     return query.orderBy(
-      (instance) => StringUtils.normalize(instance[this.field]),
+      (instance) => StringUtils.normalize(instance[this.field] ?? ''),
       this.mode,
     )
   }

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 236 - 397
yarn.lock


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott