feat(insight): update insight template and app to React, enhance export functionality

This commit is contained in:
DragonnZhang 2026-01-23 20:06:06 +08:00
parent 2931e75a17
commit 6cb0bb078c
5 changed files with 472 additions and 329 deletions

View file

@ -49,7 +49,10 @@ function copyFilesRecursive(source, target, rootSourceDir) {
const normalizedPath = relativePath.replace(/\\/g, '/');
const isLocaleJs =
ext === '.js' && normalizedPath.startsWith('i18n/locales/');
if (extensionsToCopy.includes(ext) || isLocaleJs) {
const isInsightTemplate = normalizedPath.startsWith(
'services/insight/templates/',
);
if (extensionsToCopy.includes(ext) || isLocaleJs || isInsightTemplate) {
fs.copyFileSync(sourcePath, targetPath);
}
}