瀏覽代碼

Merge branch 'hotfix/V8-6147-la-page-mon-abonnement-ne-foncti'

Olivier Massot 1 年之前
父節點
當前提交
29f2685cdc
共有 14 個文件被更改,包括 31 次插入22 次删除
  1. 0 0
      assets/css/global.scss
  2. 1 1
      composables/data/useRefreshProfile.ts
  3. 2 2
      env/.env.test
  4. 2 2
      env/.env.test1
  5. 2 2
      env/.env.test2
  6. 2 2
      env/.env.test3
  7. 2 2
      env/.env.test4
  8. 2 2
      env/.env.test5
  9. 2 2
      env/.env.test6
  10. 2 2
      env/.env.test7
  11. 2 2
      env/.env.test8
  12. 2 2
      env/.env.test9
  13. 1 0
      nuxt.config.ts
  14. 9 1
      services/data/entityManager.ts

File diff suppressed because it is too large
+ 0 - 0
assets/css/global.scss


+ 1 - 1
composables/data/useRefreshProfile.ts

@@ -38,7 +38,7 @@ export const useRefreshProfile = () => {
       switchId,
     })
 
-    const profile = await fetchProfile(accessId)
+    const profile = await fetchProfile(switchId ?? accessId)
 
     // Sans le flush, on observe un bug non-expliqué au rechargement de la page en mode dev : la fonction save
     //  du repo de MyProfile ne fonctionne pas quand le plugin init.server.ts re-fetch le profil

+ 2 - 2
env/.env.test

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test1

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test1.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test1.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test1.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test1.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test1.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test1.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test2

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test2.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test2.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test2.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test2.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test2.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test2.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test3

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test3.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test3.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test3.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test3.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test3.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test3.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test4

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test4.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test4.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test4.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test4.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test4.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test4.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test5

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test5.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test5.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test5.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test5.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test5.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test5.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test6

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test6.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test6.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test6.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test6.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test6.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test6.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test7

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test7.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test7.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test7.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test7.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test7.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test7.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test8

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test8.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test8.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test8.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test8.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test8.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test8.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 2 - 2
env/.env.test9

@@ -22,8 +22,8 @@ NUXT_BASE_URL_ADMIN_LEGACY=https://admin.test9.opentalent.fr/#
 NUXT_PUBLIC_BASE_URL_ADMIN_LEGACY=https://admin.test9.opentalent.fr/#
 
 # Typo3 Base Url
-NUXT_BASE_URL_TYPO3=https://test9.opentalent.fr/###subDomain###
-NUXT_PUBLIC_BASE_URL_TYPO3=https://test9.opentalent.fr/###subDomain###
+NUXT_BASE_URL_TYPO3=https://sub.test9.opentalent.fr/###subDomain###
+NUXT_PUBLIC_BASE_URL_TYPO3=https://sub.test9.opentalent.fr/###subDomain###
 
 # Mercure push events
 NUXT_BASE_URL_MERCURE=https://mercure.test.opentalent.fr/.well-known/mercure

+ 1 - 0
nuxt.config.ts

@@ -191,6 +191,7 @@ export default defineNuxtConfig({
   i18n: {
     langDir: 'lang',
     lazy: true,
+    strategy: 'no_prefix',
     locales: [
       {
         code: 'en',

+ 9 - 1
services/data/entityManager.ts

@@ -240,7 +240,7 @@ class EntityManager {
       piniaOrmQuery = query.applyToPiniaOrmQuery(piniaOrmQuery)
     }
 
-    return computed(() => {
+    const res = computed(() => {
       const items: PiniaOrmCollection<ApiResource> = piniaOrmQuery.get()
 
       return {
@@ -254,6 +254,14 @@ class EntityManager {
         },
       }
     })
+
+    // @ts-expect-error Needed to avoid 'Cannot stringify non POJO' occasional bugs
+    // eslint-disable-next-line
+    res.toJSON = () => {
+      return 'Computed result from fetchCollection at : ' + url
+    }
+
+    return res
   }
 
   /**

Some files were not shown because too many files changed in this diff