chore(frontend): 将暂定品牌名统一为 NotesAgent
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="theme-color" content="#171717" />
|
<meta name="theme-color" content="#171717" />
|
||||||
<title>Notes Agent</title>
|
<title>NotesAgent</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const pageTitle = computed(() => {
|
|||||||
themes: '主题管理',
|
themes: '主题管理',
|
||||||
settings: '设置',
|
settings: '设置',
|
||||||
}
|
}
|
||||||
return titles[name] || '知笔知己'
|
return titles[name] || 'NotesAgent'
|
||||||
})
|
})
|
||||||
|
|
||||||
const currentFileName = computed(() => {
|
const currentFileName = computed(() => {
|
||||||
@@ -50,7 +50,7 @@ const isDirty = computed(() => editorStore.saveStatus === 'dirty' || editorStore
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="titlebar-center">
|
<div class="titlebar-center">
|
||||||
<span class="app-name">知笔知己</span>
|
<span class="app-name">NotesAgent</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="titlebar-right">
|
<div class="titlebar-right">
|
||||||
<button class="icon-btn" @click="themeStore.toggleTheme()" :title="themeStore.isDark ? '切换浅色主题' : '切换深色主题'">
|
<button class="icon-btn" @click="themeStore.toggleTheme()" :title="themeStore.isDark ? '切换浅色主题' : '切换深色主题'">
|
||||||
|
|||||||
@@ -30,9 +30,9 @@ afterEach(() => {
|
|||||||
describe('EditorPane file switching', () => {
|
describe('EditorPane file switching', () => {
|
||||||
it('recreates the visual editor with the newly loaded file content', async () => {
|
it('recreates the visual editor with the newly loaded file content', async () => {
|
||||||
const store = useEditorStore()
|
const store = useEditorStore()
|
||||||
await store.loadFile('/欢迎使用知笔知己.md')
|
await store.loadFile('/欢迎使用 NotesAgent.md')
|
||||||
wrapper = mount(EditorPane, { attachTo: document.body })
|
wrapper = mount(EditorPane, { attachTo: document.body })
|
||||||
await waitForText('欢迎使用知笔知己')
|
await waitForText('欢迎使用 NotesAgent')
|
||||||
|
|
||||||
await store.loadFile('/数据结构/红黑树.md')
|
await store.loadFile('/数据结构/红黑树.md')
|
||||||
await nextTick()
|
await nextTick()
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ async function createVault() {
|
|||||||
<div class="entry-container">
|
<div class="entry-container">
|
||||||
<div class="brand-section">
|
<div class="brand-section">
|
||||||
<div class="logo"><AppIcon :icon="Document" :size="56" /></div>
|
<div class="logo"><AppIcon :icon="Document" :size="56" /></div>
|
||||||
<h1 class="app-title">知笔知己</h1>
|
<h1 class="app-title">NotesAgent</h1>
|
||||||
<p class="app-subtitle">本地优先的 AI 笔记软件</p>
|
<p class="app-subtitle">本地优先的 AI 笔记软件</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ onMounted(() => {
|
|||||||
// Already loaded
|
// Already loaded
|
||||||
}
|
}
|
||||||
if (!workspaceStore.activeFilePath && workspaceStore.fileTree.length === 0) {
|
if (!workspaceStore.activeFilePath && workspaceStore.fileTree.length === 0) {
|
||||||
void editorStore.loadFile('/欢迎使用知笔知己.md').then(() => {
|
void editorStore.loadFile('/欢迎使用 NotesAgent.md').then(() => {
|
||||||
// 默认文件加载期间用户可能已经点击了其他文件,不能覆盖用户的选择。
|
// 默认文件加载期间用户可能已经点击了其他文件,不能覆盖用户的选择。
|
||||||
if (!workspaceStore.activeFilePath && editorStore.currentFilePath === '/欢迎使用知笔知己.md') {
|
if (!workspaceStore.activeFilePath && editorStore.currentFilePath === '/欢迎使用 NotesAgent.md') {
|
||||||
workspaceStore.openFile('/欢迎使用知笔知己.md')
|
workspaceStore.openFile('/欢迎使用 NotesAgent.md')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ router.beforeEach((to, _from, next) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
router.afterEach((to) => {
|
router.afterEach((to) => {
|
||||||
const baseTitle = '知笔知己'
|
const baseTitle = 'NotesAgent'
|
||||||
const title = to.meta.title as string | undefined
|
const title = to.meta.title as string | undefined
|
||||||
document.title = title ? `${title} · ${baseTitle}` : baseTitle
|
document.title = title ? `${title} · ${baseTitle}` : baseTitle
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export const mockPlugins: Plugin[] = [
|
|||||||
version: '1.3.2',
|
version: '1.3.2',
|
||||||
description: '接入 GitHub API,支持搜索 Issue、查看 PR 和管理仓库',
|
description: '接入 GitHub API,支持搜索 Issue、查看 PR 和管理仓库',
|
||||||
icon: '',
|
icon: '',
|
||||||
author: '知笔知己团队',
|
author: 'NotesAgent 团队',
|
||||||
status: 'ready',
|
status: 'ready',
|
||||||
enabled: true,
|
enabled: true,
|
||||||
permissions: ['notes.read', 'network.request'],
|
permissions: ['notes.read', 'network.request'],
|
||||||
@@ -117,7 +117,7 @@ export const mockPlugins: Plugin[] = [
|
|||||||
version: '2.1.0',
|
version: '2.1.0',
|
||||||
description: '导入 PDF 文档,提取文本和目录结构生成笔记',
|
description: '导入 PDF 文档,提取文本和目录结构生成笔记',
|
||||||
icon: '',
|
icon: '',
|
||||||
author: '知笔知己团队',
|
author: 'NotesAgent 团队',
|
||||||
status: 'error',
|
status: 'error',
|
||||||
enabled: false,
|
enabled: false,
|
||||||
permissions: ['notes.write', 'attachments.read'],
|
permissions: ['notes.write', 'attachments.read'],
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export const mockSkills: Skill[] = [
|
|||||||
version: '1.0.0',
|
version: '1.0.0',
|
||||||
description: '根据课程笔记生成复习要点和练习题,帮助高效备考',
|
description: '根据课程笔记生成复习要点和练习题,帮助高效备考',
|
||||||
icon: '',
|
icon: '',
|
||||||
author: '知笔知己团队',
|
author: 'NotesAgent 团队',
|
||||||
permissions: ['notes.search', 'notes.read', 'tasks.create'],
|
permissions: ['notes.search', 'notes.read', 'tasks.create'],
|
||||||
tools: ['notes.search', 'notes.read', 'tasks.create'],
|
tools: ['notes.search', 'notes.read', 'tasks.create'],
|
||||||
retrieval_config: { top_k: 10, rerank: true, citation: true },
|
retrieval_config: { top_k: 10, rerank: true, citation: true },
|
||||||
@@ -64,7 +64,7 @@ export const mockSkills: Skill[] = [
|
|||||||
version: '1.1.0',
|
version: '1.1.0',
|
||||||
description: '从音频或文本中提取会议要点、行动项和待办任务',
|
description: '从音频或文本中提取会议要点、行动项和待办任务',
|
||||||
icon: '',
|
icon: '',
|
||||||
author: '知笔知己团队',
|
author: 'NotesAgent 团队',
|
||||||
permissions: ['notes.search', 'notes.write', 'tasks.write', 'attachments.read'],
|
permissions: ['notes.search', 'notes.write', 'tasks.write', 'attachments.read'],
|
||||||
tools: ['notes.search', 'notes.create', 'tasks.create', 'attachments.read'],
|
tools: ['notes.search', 'notes.create', 'tasks.create', 'attachments.read'],
|
||||||
retrieval_config: { top_k: 5, rerank: false, citation: true },
|
retrieval_config: { top_k: 5, rerank: false, citation: true },
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const MOCK_FILE_TREE: FileNode[] = [
|
|||||||
{ id: 'n-http', name: 'HTTP协议.md', path: '/计算机网络/HTTP协议.md', type: 'file' },
|
{ id: 'n-http', name: 'HTTP协议.md', path: '/计算机网络/HTTP协议.md', type: 'file' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ id: 'n-welcome', name: '欢迎使用知笔知己.md', path: '/欢迎使用知笔知己.md', type: 'file' },
|
{ id: 'n-welcome', name: '欢迎使用 NotesAgent.md', path: '/欢迎使用 NotesAgent.md', type: 'file' },
|
||||||
]
|
]
|
||||||
|
|
||||||
const mockFileContents = new Map<string, string>()
|
const mockFileContents = new Map<string, string>()
|
||||||
@@ -89,8 +89,8 @@ export function readFileContent(filePath: string): Promise<string> {
|
|||||||
const saved = mockFileContents.get(filePath)
|
const saved = mockFileContents.get(filePath)
|
||||||
if (saved !== undefined) return Promise.resolve(saved)
|
if (saved !== undefined) return Promise.resolve(saved)
|
||||||
const name = filePath.split('/').pop() || 'Untitled'
|
const name = filePath.split('/').pop() || 'Untitled'
|
||||||
if (name === '欢迎使用知笔知己.md') {
|
if (name === '欢迎使用 NotesAgent.md') {
|
||||||
return rememberContent(filePath, `# 欢迎使用知笔知己
|
return rememberContent(filePath, `# 欢迎使用 NotesAgent
|
||||||
|
|
||||||
这是一款本地优先的 AI 笔记软件,支持 Markdown 编辑、智能检索、RAG 问答和 Agent 助手。
|
这是一款本地优先的 AI 笔记软件,支持 Markdown 编辑、智能检索、RAG 问答和 Agent 助手。
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ def quick_sort(arr):
|
|||||||
> 引用内容示例
|
> 引用内容示例
|
||||||
|
|
||||||
\`\`\`javascript
|
\`\`\`javascript
|
||||||
console.log('Hello, Notes Agent!');
|
console.log('Hello, NotesAgent!');
|
||||||
\`\`\`
|
\`\`\`
|
||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user