diff --git a/frontend/src/components/NewUserGuide.vue b/frontend/src/components/NewUserGuide.vue new file mode 100644 index 00000000..888f4a60 --- /dev/null +++ b/frontend/src/components/NewUserGuide.vue @@ -0,0 +1,544 @@ + + + + + + + + + + + + + + + + + + + + + + + + {{ t('newUserGuide.stepOf', { current: index + 1, total: steps.length }) }} + {{ stepTitle }} + {{ stepDesc }} + + + {{ t('newUserGuide.skip') }} + + + {{ t('newUserGuide.prev') }} + + + {{ t('newUserGuide.next') }} + + + {{ t('newUserGuide.done') }} + + + + + + + + + + + + diff --git a/frontend/src/components/UserMenu.vue b/frontend/src/components/UserMenu.vue index 3472da77..258e8d1b 100644 --- a/frontend/src/components/UserMenu.vue +++ b/frontend/src/components/UserMenu.vue @@ -1,7 +1,7 @@ - + {{ userInitial }} @@ -144,6 +144,10 @@ + + + {{ $t('newUserGuide.reopen') }} + @@ -627,6 +631,12 @@ const openClawhubSkill = () => { window.open(CLAWHUB_SKILL_URL, '_blank') } +// 重新打开新手引导 +const reopenGuide = () => { + menuVisible.value = false + window.dispatchEvent(new CustomEvent('weknora:open-new-user-guide')) +} + // 打开 GitHub const openGithub = () => { menuVisible.value = false diff --git a/frontend/src/components/menu.vue b/frontend/src/components/menu.vue index 2b74a2a2..df583d06 100644 --- a/frontend/src/components/menu.vue +++ b/frontend/src/components/menu.vue @@ -66,7 +66,7 @@ :key="index"> diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 28ad7361..8f459392 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -27,6 +27,44 @@ export default { expandSidebar: 'Expand Sidebar', logoutSuccess: 'Logged out successfully', }, + newUserGuide: { + stepOf: '{current} / {total}', + skip: 'Skip', + prev: 'Back', + next: 'Next', + done: 'Done', + reopen: 'Product tour', + steps: { + welcome: { + title: 'Welcome to WeKnora', + desc: 'A few quick steps to get you familiar with knowledge bases, chat and agents. Click "Next" to begin.', + }, + knowledge: { + title: 'Create your knowledge base', + desc: 'Everything starts here: upload documents, web pages or FAQs and WeKnora parses and indexes them automatically. Click here to open knowledge bases.', + }, + chat: { + title: 'Start an AI chat', + desc: 'Ask questions grounded in your knowledge base and get accurate answers with cited sources. Click here to start a new chat.', + }, + agents: { + title: 'Build dedicated agents', + desc: 'Combine knowledge bases, prompts and tools into reusable agents that capture your expertise.', + }, + settings: { + title: 'Account & settings', + desc: 'Open this to manage your account, members and system settings. You can also reopen this tour from here anytime.', + }, + models: { + title: 'Configure your models', + desc: 'A key step: add chat, embedding and other models in Model Management so knowledge bases and chat can work. Click "Add model" to get started.', + }, + done: { + title: 'You are all set', + desc: 'You now know the essentials — start building your knowledge assistant! You can revisit this tour from the user menu anytime.', + }, + }, + }, batchManage: { title: 'Manage Conversations', selectAll: 'Select All', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index f1cc6a6a..b911a387 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -27,6 +27,44 @@ export default { expandSidebar: "사이드바 펼치기", logoutSuccess: "로그아웃되었습니다", }, + newUserGuide: { + stepOf: "{current} / {total}", + skip: "건너뛰기", + prev: "이전", + next: "다음", + done: "완료", + reopen: "사용 가이드", + steps: { + welcome: { + title: "WeKnora에 오신 것을 환영합니다", + desc: "몇 단계만으로 지식 베이스, 대화, 에이전트의 핵심 사용법을 안내합니다. '다음'을 눌러 시작하세요.", + }, + knowledge: { + title: "지식 베이스 만들기", + desc: "모든 것의 시작점입니다. 문서, 웹페이지, FAQ를 업로드하면 WeKnora가 자동으로 분석하고 색인합니다. 여기를 클릭해 지식 베이스로 이동하세요.", + }, + chat: { + title: "AI 대화 시작하기", + desc: "지식 베이스 내용을 기반으로 질문하고 출처가 포함된 정확한 답변을 받아보세요. 여기를 클릭해 새 대화를 시작하세요.", + }, + agents: { + title: "전용 에이전트 구축", + desc: "지식 베이스, 프롬프트, 도구를 결합해 재사용 가능한 에이전트로 전문성을 축적하세요.", + }, + settings: { + title: "계정 및 설정 입구", + desc: "여기를 열면 계정, 멤버, 시스템 설정을 관리할 수 있습니다. 이 가이드도 이 메뉴에서 언제든 다시 열 수 있습니다.", + }, + models: { + title: "모델 구성하기", + desc: "핵심 단계입니다. 모델 관리에서 대화·임베딩 등 모델을 추가해야 지식 베이스와 대화 기능이 정상 작동합니다. '모델 추가'를 클릭해 시작하세요.", + }, + done: { + title: "준비 완료", + desc: "핵심 기능을 모두 익혔습니다. 이제 나만의 지식 어시스턴트를 만들어 보세요! 사용자 메뉴에서 언제든 가이드를 다시 볼 수 있습니다.", + }, + }, + }, batchManage: { title: "대화 관리", selectAll: "전체 선택", diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 0d868bb2..1b3e4aab 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -27,6 +27,44 @@ export default { agents: 'Агенты', organizations: 'Общие пространства' }, + newUserGuide: { + stepOf: '{current} / {total}', + skip: 'Пропустить', + prev: 'Назад', + next: 'Далее', + done: 'Готово', + reopen: 'Обучение', + steps: { + welcome: { + title: 'Добро пожаловать в WeKnora', + desc: 'Несколько простых шагов познакомят вас с базами знаний, чатом и агентами. Нажмите «Далее», чтобы начать.', + }, + knowledge: { + title: 'Создайте базу знаний', + desc: 'С этого всё начинается: загружайте документы, веб-страницы или FAQ, и WeKnora автоматически разберёт и проиндексирует их. Нажмите здесь, чтобы открыть базы знаний.', + }, + chat: { + title: 'Начните чат с ИИ', + desc: 'Задавайте вопросы на основе вашей базы знаний и получайте точные ответы со ссылками на источники. Нажмите здесь, чтобы начать новый чат.', + }, + agents: { + title: 'Создавайте собственных агентов', + desc: 'Объединяйте базы знаний, промпты и инструменты в переиспользуемых агентов, закрепляя свою экспертизу.', + }, + settings: { + title: 'Аккаунт и настройки', + desc: 'Откройте это меню, чтобы управлять аккаунтом, участниками и системными настройками. Здесь же можно в любой момент снова открыть это обучение.', + }, + models: { + title: 'Настройте модели', + desc: 'Ключевой шаг: добавьте модели чата, эмбеддингов и другие в управлении моделями, чтобы базы знаний и чат работали. Нажмите «Добавить модель», чтобы начать.', + }, + done: { + title: 'Всё готово', + desc: 'Теперь вы знаете основы — начните создавать своего помощника на основе знаний! Вернуться к обучению можно в любой момент из меню пользователя.', + }, + }, + }, batchManage: { title: 'Управление диалогами', selectAll: 'Выбрать все', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 5e39e65a..e638d4bb 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -27,6 +27,44 @@ export default { expandSidebar: "展开侧边栏", logoutSuccess: "已退出登录", }, + newUserGuide: { + stepOf: "{current} / {total}", + skip: "跳过引导", + prev: "上一步", + next: "下一步", + done: "完成", + reopen: "新手引导", + steps: { + welcome: { + title: "欢迎使用 WeKnora", + desc: "只需几步,带你快速了解知识库、对话与智能体的核心用法。点击「下一步」开始。", + }, + knowledge: { + title: "创建你的知识库", + desc: "知识库是一切的起点:上传文档、网页或 FAQ,WeKnora 会自动解析并建立索引。点击这里进入知识库。", + }, + chat: { + title: "发起智能对话", + desc: "基于知识库内容向 AI 提问,获得带引用来源的精准回答。点击这里开始新对话。", + }, + agents: { + title: "打造专属智能体", + desc: "把知识库、提示词与工具组合成可复用的智能体,沉淀你的专业能力。", + }, + settings: { + title: "账户与设置入口", + desc: "点开这里可以管理账户、成员与系统设置。需要再次查看本引导时,也可从该菜单重新打开。", + }, + models: { + title: "配置你的模型", + desc: "这是关键一步:在模型管理中添加对话、向量等模型,知识库与对话功能才能正常工作。点击「添加模型」即可开始配置。", + }, + done: { + title: "一切就绪", + desc: "你已经了解了核心功能,现在就开始构建你的知识助手吧!随时可从用户菜单重新查看引导。", + }, + }, + }, batchManage: { title: "管理对话记录", selectAll: "全选", diff --git a/frontend/src/views/platform/index.vue b/frontend/src/views/platform/index.vue index 9913bf20..b8b888af 100644 --- a/frontend/src/views/platform/index.vue +++ b/frontend/src/views/platform/index.vue @@ -15,6 +15,8 @@ + +
{{ t('newUserGuide.stepOf', { current: index + 1, total: steps.length }) }}
{{ stepDesc }}