mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
feat(insight): update insight template and app to React, enhance export functionality
This commit is contained in:
parent
2931e75a17
commit
6cb0bb078c
5 changed files with 472 additions and 329 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue