Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
Falcon
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Walter Huang
Falcon
Commits
805b25ca
Commit
805b25ca
authored
Jun 25, 2025
by
Lin Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: change the files name
parent
a014e1d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
diffWithDeepDiff.ts
src/detect_section_selector_masters/diffWithDeepDiff.ts
+1
-1
index.ts
src/detect_section_selector_masters/index.ts
+4
-1
No files found.
src/detect_section_selector_masters/diffWithDeepDiff.ts
View file @
805b25ca
...
...
@@ -91,7 +91,7 @@ selectedSelectors
};
});
const
outFile
=
`
${
baselineId
}
_vs_
${
otherId
}
_diff.json`
;
const
outFile
=
`
${
selectedLanguages
[
baselineId
]}
_vs_
${
selectedLanguages
[
otherId
]
}
_diff.json`
;
const
outPath
=
join
(
outDir
,
outFile
);
writeFileSync
(
outPath
,
JSON
.
stringify
(
semantic
,
null
,
2
),
'utf-8'
);
console
.
log
(
`✅ Diff between
${
baselineId
}
and
${
otherId
}
written to
${
join
(
outDir
,
outFile
)}
${
useAiSelectors
?
'(AI selectors)'
:
''
}
`
);
...
...
src/detect_section_selector_masters/index.ts
View file @
805b25ca
...
...
@@ -2,7 +2,9 @@ import { writeFileSync, mkdirSync, existsSync, rmSync } from 'fs'
import
{
fetchSiteData
}
from
'../clients/bobcat/SiteInfo'
import
{
section_selectors
,
ai_section_selectors
sectionSelectorLanguages
,
ai_section_selectors
,
aiSectionSelectorsLanguages
}
from
'../constant/section_selectors'
import
{
mainParse
}
from
'./handlePageContent'
...
...
@@ -20,6 +22,7 @@ const useAiSelectors = process.env.USE_AI_SELECTORS === 'true';
// 根据环境变量选择使用哪个 selector 数组
const
selectedSelectors
=
useAiSelectors
?
ai_section_selectors
:
section_selectors
;
const
selectedLanguages
=
useAiSelectors
?
aiSectionSelectorsLanguages
:
sectionSelectorLanguages
;
// 确保输出目录存在
let
outDir
=
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment