feat: 1.统一右侧抽屉关闭按钮布局 2.统一 UI 组件为 Ant Design 移除 radix-ui、floating-ui 组件 3. 修复 ESLint 文件格式错误的问题
This commit is contained in:
@@ -18,7 +18,12 @@ function walk(dir, files = []) {
|
||||
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
||||
const full = path.join(dir, entry.name);
|
||||
if (entry.isDirectory()) {
|
||||
if (entry.name === 'node_modules' || entry.name === 'dist' || entry.name.startsWith('.')) continue;
|
||||
if (
|
||||
entry.name === 'node_modules' ||
|
||||
entry.name === 'dist' ||
|
||||
entry.name.startsWith('.')
|
||||
)
|
||||
continue;
|
||||
walk(full, files);
|
||||
} else if (/\.(jsx?|tsx?)$/.test(entry.name)) {
|
||||
files.push(full);
|
||||
@@ -93,13 +98,13 @@ function main() {
|
||||
totalKeysUsedInSource: allKeys.size,
|
||||
missingByLocale: missing,
|
||||
keyToFiles: Object.fromEntries(
|
||||
[...keyToFiles.entries()].map(([k, v]) => [k, v.slice(0, 3)])
|
||||
[...keyToFiles.entries()].map(([k, v]) => [k, v.slice(0, 3)]),
|
||||
),
|
||||
};
|
||||
fs.writeFileSync(
|
||||
path.join(__dirname, 'missing_i18n.json'),
|
||||
JSON.stringify(out, null, 2),
|
||||
'utf8'
|
||||
'utf8',
|
||||
);
|
||||
console.log(`\nWrote ${path.join(__dirname, 'missing_i18n.json')}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user