From 6f2991715ccf3604ec2626d6afd9276c3e0b2d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr> Date: Thu, 22 Feb 2024 09:58:51 +0100 Subject: [PATCH] =?UTF-8?q?[FIX]=20Les=20composants=20peuvent=20=C3=AAtre?= =?UTF-8?q?=20plac=C3=A9s=20dans=20des=20sous-sous=20r=C3=A9pertoires=20de?= =?UTF-8?q?=20front?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 ++++++- js/Client/main.js | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbe309e..147a4b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +6.1.2 (22/02/2024) +------------------ + +- [FIX] Les composants peuvent être placés dans des sous-sous répertoires de front + 6.1.1 (21/02/2024) ------------------ @@ -13,4 +18,4 @@ CHANGELOG - Passage à PHP8.2 6.0.0 (09/06/2023) ------------------- +------------------ \ No newline at end of file diff --git a/js/Client/main.js b/js/Client/main.js index 1d3a482..b3e9597 100644 --- a/js/Client/main.js +++ b/js/Client/main.js @@ -13,7 +13,7 @@ function init(vues, options) for (const path in vues) { let compPath = path.slice(2, -4); - let compName = compPath.replace('/', ''); + let compName = compPath.replaceAll('/', ''); components[compName] = vues[path].default; } @@ -34,7 +34,7 @@ function init(vues, options) if (undefined !== options.autoloads){ for (const alias in options.autoloads) { - let compName = options.autoloads[alias].replace('/', ''); + let compName = options.autoloads[alias].replaceAll('/', ''); app.component(alias, components[compName]); } } -- GitLab