Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔨 chore: update config (#10857)

Arvin Xu5cc9141b523f
diff --git a/.gitignore b/.gitignore
index 89e29f8fbdb..ec01caf102f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,7 +24,7 @@ Desktop.ini
.windsurfrules
*.code-workspace
.vscode/sessions.json
-
+prd
# Temporary files
.temp/
temp/
@@ -93,7 +93,6 @@ robots.txt
.husky/prepare-commit-msg
# Documents and media
-*.patch
*.pdf
# Cloud service keys
@@ -116,3 +115,5 @@ CLAUDE.local.md
*.xls*
e2e/reports
+
+out
\ No newline at end of file
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 545ac8fb334..b1c7670b7bf 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,2 +1,2 @@
-npm run typecheck
+npm run type-check
npx --no-install lint-staged
diff --git a/.i18nrc.js b/.i18nrc.js
index cde6e663a30..659cb17a5d6 100644
--- a/.i18nrc.js
+++ b/.i18nrc.js
@@ -30,7 +30,9 @@ module.exports = defineConfig({
jsonMode: true,
},
markdown: {
- reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
+ reference:
+ '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法。以下是一些词汇的固定翻译:\n' +
+ JSON.stringify(require('./glossary.json'), null, 2),
entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
entryLocale: 'zh-CN',
outputLocales: ['en-US'],
diff --git a/docs/development/state-management/state-management-selectors.mdx b/docs/development/state-management/state-management-selectors.mdx
index 4271a66bf1e..23f0d260c9e 100644
--- a/docs/development/state-management/state-management-selectors.mdx
+++ b/docs/development/state-management/state-management-selectors.mdx
@@ -8,7 +8,7 @@ This TypeScript code snippet defines an object named `pluginSelectors`, which co
Here are some key points to note:
-- `enabledSchema`: A function that returns an array of `ChatCompletionFunctions` filtered based on the enabled plugin list `enabledPlugins`. It appends the plugin identifier as a prefix to the API names to ensure uniqueness and uses the `uniqBy` function from the Lodash library to remove duplicates.
+- `enabledSchema`: A function that returns an array of `ChatCompletionFunctions` filtered based on the enabled plugin list `enabledPlugins`. It appends the plugin identifier as a prefix to the API names to ensure uniqueness and uses the `uniqBy` function from the es-toolkit library to remove duplicates.
- `onlinePluginStore`: Returns the current online plugin list.
- `pluginList`: Returns the list of plugins, including custom plugins and standard plugins.
- `getPluginMetaById`: Returns the plugin metadata based on the plugin ID.
diff --git a/glossary.json b/glossary.json
new file mode 100644
index 00000000000..ec372b1cd42
--- /dev/null
+++ b/glossary.json
@@ -0,0 +1,8 @@
+{
+ "助手": {
+ "en-US": "Agent"
+ },
+ "文稿": {
+ "en-US": "Page"
+ }
+}
diff --git a/vitest.config.mts b/vitest.config.mts
index 1f06a9b388e..83a8b66296d 100644
--- a/vitest.config.mts
+++ b/vitest.config.mts
@@ -47,6 +47,9 @@ export default defineConfig({
'**/node_modules/**',
'**/dist/**',
'**/build/**',
+ '**/tmp/**',
+ '**/temp/**',
+ '**/.temp/**',
'**/apps/desktop/**',
'**/apps/mobile/**',
'**/packages/**',