mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
5
.gitignore
vendored
5
.gitignore
vendored
@@ -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
|
||||
@@ -1,2 +1,2 @@
|
||||
npm run typecheck
|
||||
npm run type-check
|
||||
npx --no-install lint-staged
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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.
|
||||
|
||||
8
glossary.json
Normal file
8
glossary.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"助手": {
|
||||
"en-US": "Agent"
|
||||
},
|
||||
"文稿": {
|
||||
"en-US": "Page"
|
||||
}
|
||||
}
|
||||
@@ -47,6 +47,9 @@ export default defineConfig({
|
||||
'**/node_modules/**',
|
||||
'**/dist/**',
|
||||
'**/build/**',
|
||||
'**/tmp/**',
|
||||
'**/temp/**',
|
||||
'**/.temp/**',
|
||||
'**/apps/desktop/**',
|
||||
'**/apps/mobile/**',
|
||||
'**/packages/**',
|
||||
|
||||
Reference in New Issue
Block a user